CN101873322A - Diameter protocol interface system and realization method thereof - Google Patents

Diameter protocol interface system and realization method thereof Download PDF

Info

Publication number
CN101873322A
CN101873322A CN201010203682A CN201010203682A CN101873322A CN 101873322 A CN101873322 A CN 101873322A CN 201010203682 A CN201010203682 A CN 201010203682A CN 201010203682 A CN201010203682 A CN 201010203682A CN 101873322 A CN101873322 A CN 101873322A
Authority
CN
China
Prior art keywords
message
module
data
content
diameter
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201010203682A
Other languages
Chinese (zh)
Inventor
尹宏伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201010203682A priority Critical patent/CN101873322A/en
Publication of CN101873322A publication Critical patent/CN101873322A/en
Priority to PCT/CN2010/078517 priority patent/WO2011157027A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/90Buffering arrangements
    • H04L49/9084Reactions to storage capacity overflow
    • H04L49/9089Reactions to storage capacity overflow replacing packets in a storage arrangement, e.g. pushout
    • H04L49/9094Arrangements for simultaneous transmit and receive, e.g. simultaneous reading/writing from/to the storage element

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer And Data Communications (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses a Diameter protocol interface system and a realization method thereof, which can be suitable for each operator to expand the standard Diameter protocol. The method comprises the following steps that: after receiving a first message, analyzing the first message according to a pre-configured format definition of the first message, extracting content data from the first message, storing the extracted content data according to a pre-determined storage rule, determining the content data required for building a second message according to a pre-configured format definition of the second message, extracting the required content data according to the storage rule, and encapsulating the content data as the second message. The interface soft system which is developed with the method is applicable to any operator, so the interface is free from being independently developed for each operator, all operators can uniformly use the same code, and the cost and time can be saved.

Description

A kind of Diameter interface system and its implementation
Technical field
The present invention relates to the communications field, relate in particular to a kind of Diameter interface system and its implementation.
Background technology
In the modern communications field, each service node all goes Online Charging System (OCS) to deduct fees, mend operations such as expense by Diameter.The Diameter of standard (RFC3588, RFC4006) defines (AVP, Attribute Value Pairs) the framework and the base attribute of agreement, but can't satisfy the needs in some concrete charging process.For this reason, each operator expands on the Diameter basis of standard in succession, has defined some oneself AVP respectively.And each operator is inequality to the definition of AVP.
At present, can only develop respectively at different operators, and safeguard a cover code respectively for the exploitation of Diameter.This has caused inconvenience for the exploitation and the maintenance of project, and the cost of project is improved.
Summary of the invention
The problem to be solved in the present invention provides a kind of Diameter interface system and its implementation, can adapt to the expansion of each operator to the standard Diameter.
For solving the problems of the technologies described above, the invention provides a kind of Diameter interface implementation method, comprising:
After receiving first message, formal definition according to the first pre-configured message, resolve described first message, from described first message, extract content-data, preserve the content-data that extracts according to predetermined storage rule, determine the content-data of the structure second message needs according to the formal definition of the second pre-configured message, extract the content-data of described needs, described content-data is encapsulated as second message according to described storage rule.
Further, described first message is non-Diameter message, and described second message is Diameter message.
Further, described second message is credit control request (CCR) message.
Further, described first message is Diameter message, and described second message is non-Diameter message.
Further, described first message is Credit Control Answer (CCA) message.
For solving the problems of the technologies described above, the present invention also provides a kind of diameter protocol interface system, comprising:
The first message format definition module is used to preserve the formal definition of the first pre-configured message;
The second message format definition module is used to preserve the formal definition of the second pre-configured message;
Computing and control module are used to receive first message, and the formal definition of first message of preserving according to the first message format definition module is resolved described first message, extracts content-data from described first message, send to preserve module and preserve; And the content-data that is used for determining the structure second message needs according to the formal definition of the second pre-configured message, from the respective memory unit of preserving module, extract the content-data of described needs according to storage rule, described content-data is encapsulated as second message;
Preserve module, be used for preserving the content-data that extracts according to predetermined storage rule.
Further, described first message is non-Diameter message, and described second message is Diameter message.
Further, the described first message format definition module is further used for preserving the message format of pre-configured non-Diameter message;
The described second message format definition module, be further used for preserving the source of the AVP data of forming the needed AVP form of Diameter message and every kind of AVP form correspondence, described source comprise following one or more: content is preserved module, configuration module, conversation module;
Described preservation module further comprises: content is preserved module, configuration module and conversation module, wherein:
Described content is preserved module, is used to preserve the content-data of the non-Diameter message that receives;
Described configuration module is used for preserving the pre-configured common configuration item that uses in message interaction process;
Described conversation module, what be used for preserving non-Diameter message need be in the parameter of carrying when transmitting terminal is replied;
Described computing and control module, be further used for after the non-Diameter message that receives the transmitting terminal transmission, message format according to this non-Diameter message of preserving in the described first message format definition module, resolve this non-Diameter message, therefrom extract message content and be kept in the described content preservation module, and need be kept in the conversation module in the parameter of when transmitting terminal is replied, carrying; According to the source of the AVP data of the AVP form correspondence of preserving in the described second message format definition module, from corresponding module, extract data configuration AVP, the AVP of structure is encapsulated as Diameter message.
Further, described first message is Diameter message, and described second message is non-Diameter message.
Further, the described first message format definition module is further used for preserving the AVP form of pre-configured Diameter message;
The described second message format definition module, be further used for preserving the source of data in the message format of pre-configured non-Diameter message and this message format, described source comprise following one or more: content is preserved module, configuration module, conversation module;
Described preservation module further comprises: content is preserved module, configuration module and conversation module, wherein:
Described content is preserved module, is used to preserve the content-data of the Diameter message that receives;
Described configuration module is used for preserving the pre-configured common configuration item that uses in message interaction process;
Described conversation module, what be used for preserving non-Diameter message need be in the parameter of carrying when transmitting terminal is replied;
Described computing and control module, be further used for after receiving Diameter message, AVP form according to this Diameter message of preserving in the first message format definition module, resolve this Diameter message, therefrom extract the AVP data, and the AVP data are kept in the content preservation module; According to the source of the data of preserving in the described second message format definition module, from corresponding module, extract the non-Diameter message of data configuration.
Using the interface floppy disk system of this method exploitation, can apply to any operator, needn't be each operator interface of exploitation separately again, and each operator can unify to use a cover code, for project is saved cost and time.
Description of drawings
Fig. 1 is interface structure figure;
Fig. 2 is CCR request product process figure;
Fig. 3 replys product process figure for CCA.
Embodiment
The present invention passes through interface system, handle receiving non-Diameter message, be translated into Diameter message, send to other Diameter equipment, and the Diameter message that receives from other Diameter equipment handled, be translated into non-Diameter message, send to relevant device.
Method of the present invention comprises:
After receiving first message, formal definition according to the first pre-configured message, resolve described first message, from described first message, extract content-data, preserve the content-data that extracts according to predetermined storage rule, determine the content-data of the structure second message needs according to the formal definition of the second pre-configured message, extract the content-data of described needs, described content-data is encapsulated as second message according to described storage rule.
First message is non-Diameter message, and as any non-Diameter message that receives, to call request message in the following text, second message is Diameter message, as credit control request (CCR, CreditControl Request) message.
First message is Diameter message, and as Credit Control Answer (CCA, Credit ControlAnswer) message, second message is non-Diameter message, as response message.
Describedly preserve the content-data that extracts according to predetermined storage rule and be meant: according to pre-configured rule data are stored in different positions respectively, so that use when constructing second message.
The system that realizes the inventive method comprises:
The first message format definition module is used to preserve the formal definition of the first pre-configured message;
The second message format definition module is used to preserve the formal definition of the second pre-configured message;
Computing and control module are used to receive first message, and the formal definition of first message of preserving according to the first message format definition module is resolved described first message, extracts content-data from described first message, send to preserve module and preserve; And the content-data that is used for determining the structure second message needs according to the formal definition of the second pre-configured message, from the respective memory unit of preserving module, extract the content-data of described needs according to storage rule, described content-data is encapsulated as second message;
Preserve module, be used for preserving the content-data that extracts according to predetermined storage rule.
Particularly:
● first message is non-Diameter message, when second message is Diameter message, with the non-Diameter message transformation system that is Diameter message as shown in Figure 1, comprising:
The first message format definition module is the request definition module among Fig. 1, and it is used to preserve the message format of pre-configured non-Diameter message, form by which field as this message, and the information such as type of each field;
The second message format definition module is the CCR organization definition module among Fig. 1, it is used to preserve the source of the AVP data of forming the needed AVP form of Diameter message and every kind of AVP form correspondence, and described source comprises with in the lower module one or several: content is preserved module, configuration module, conversation module; As first AVP among the CCR is that OriginHost (transmitting terminal host identification) and its Data Source are configuration module etc.;
Preserve module and comprise configuration module, conversation module and content preservation module, wherein:
Content is preserved module, is used to preserve the content-data of the non-Diameter message that receives; In the present embodiment, content is preserved module and request definition module and is closed and be located at together, and in other embodiments, two modules also can be divided and are arranged;
Configuration module is used for preserving the pre-configured common configuration item that uses in message interaction process, as IP of this machine IP and OCS etc.;
Conversation module is used for preserving need can determining according to configuration in the parameter of carrying of non-Diameter message when transmitting terminal is replied;
Computing and control module are the computing module among Fig. 1, be used for after the non-Diameter message that receives the transmitting terminal transmission, message format according to this non-Diameter message of preserving in the request definition module, resolve this non-Diameter message, therefrom extract message content, message content data is kept in the request definition module (in content preserve module), and will wherein need be kept in the conversation module in the parameter of when transmitting terminal is replied, carrying; According to the source of the AVP data of the AVP form correspondence of preserving in the described CCR organization definition module, from corresponding module, extract data configuration AVP, the AVP of structure is encapsulated as Diameter message.
Comprise a plurality of AVP in the common Diameter message.
● first message is Diameter message, when second message is non-Diameter message, is that the system of non-Diameter message comprises with the Diameter message transformation:
In the present embodiment, the first message format definition module is a CCA organization definition module, is used to preserve the AVP form of pre-configured Diameter message;
The second message format definition module is the request definition module, be used for preserving the message format of pre-configured non-Diameter message and the source of these message format data, described source comprises with in the lower module one or several: content is preserved module, configuration module, conversation module;
Preserve module and comprise configuration module, conversation module and content preservation module, wherein:
Content is preserved module, is used to preserve the content-data of the Diameter message that receives; In the present embodiment, content is preserved module and CCA organization definition module and can be closed and be located at together, and in other embodiments, two modules also can be divided and are arranged;
Configuration module is used for preserving the pre-configured common configuration item that uses in message interaction process, as IP of this machine IP and OCS etc.;
Conversation module, what be used for preserving non-Diameter message need be in the parameter of carrying when transmitting terminal is replied;
Computing module, be used for after receiving Diameter message, AVP form according to this Diameter message of preserving in the CCA organization definition module, resolve this Diameter message, therefrom extract the AVP data, be kept in the CCA organization definition module (in content preserve module); According to the source of the data of preserving in the described request definition module, from corresponding module, extract the non-Diameter message of data configuration.
Behind the program start, read the information of configuration module, CCR organization definition module, request definition module and conversation module and initialization data from configuration file.
The idiographic flow that request message is converted into CCR message is as shown in Figure 2:
Step 201: computing module is received request message;
Step 202: computing module defines information from the message format that the request definition module reads request message, and according to message format definition analysis request message;
Step 203: the request message after will resolving deposits the request definition module in, generates CCR message in order to the back and uses;
In the present embodiment, content preservation module is closed with the request definition module and is located at.
Then, begin to scan CCR organization definition module, and generate CCR message according to the information of this module, as follows:
Step 204: be scanned up to first territory of CCR organization definition module, i.e. first AVP, the data source of finding this AVP is the request definition module;
Step 205: according to data source is this information of request definition module, goes for and asks definition module to search corresponding data;
Step 206: the data that find are copied in first AVP zone of CCR data buffer zone;
So far, finish the generation of first AVP data.Circulation execution in step 204-206, the data of generation AVP2, AVP3 and AVP4.
Step 207: be scanned up to the 5th territory of CCR organization definition module, i.e. the 5th AVP, the data source of finding this AVP is a configuration module;
Step 208: according to data source is this information of configuration module, configure module searches corresponding data;
Step 209: the data that find are copied in the 5th the AVP zone of CCR data buffer zone;
Step 210:, will need data in buffer to copy to conversation module from request module according to the information of conversation module.
This step is not limited to carry out at this moment, also can receive after the data and just carry out.
So far, finish the data assembling of whole C CR, will send to OCS by TCP/IP.
With the CCA message transformation be response message idiographic flow as shown in Figure 3:
Step 301: interface is received the response message (CCA) that OCS returns;
Step 302: computing module defines information from the message format that CCA organization definition module reads CCA, and resolves response message according to its message format definition;
Step 303: the response message after will resolving deposits CCA organization definition module in, generates response message in order to the back and uses;
Then, begin the scan request definition module, and generate response message according to the information of this module, as follows:
Step 304: be scanned up to first territory of request definition module, the data source of finding this field is an AVP in the CCA response message;
Step 305: according to data source is this information of CCA, removes CCA organization definition module searches corresponding data;
Step 306: the data that find are copied in first zone of reply data buffering area;
So far, finish the generation of first field data.Generate the data of second, the 3rd and the 4th field according to this method.
Step 307: be scanned up to the 5th territory of request definition module, the data source of finding this field is conversation module (data of conversation module generates in step 210);
Step 308: according to data source is this information of conversation module, goes conversation module to search corresponding data;
Step 309: the data that find are copied in the 5th zone of reply data buffering area.
So far, response message generates, and sends to the transmission requesting party.Flow process finishes.
One of ordinary skill in the art will appreciate that all or part of step in the said method can instruct related hardware to finish by program, described program can be stored in the computer-readable recording medium, as read-only memory, disk or CD etc.Alternatively, all or part of step of the foregoing description also can use one or more integrated circuits to realize.Correspondingly, each module in the foregoing description can adopt the form of hardware to realize, also can adopt the form of software function module to realize.The present invention is not restricted to the combination of the hardware and software of any particular form.
Certainly; the present invention also can have other various embodiments; under the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong to the protection range of the appended claim of the present invention.

Claims (10)

1. Diameter interface implementation method comprises:
After receiving first message, formal definition according to the first pre-configured message, resolve described first message, from described first message, extract content-data, preserve the content-data that extracts according to predetermined storage rule, determine the content-data of the structure second message needs according to the formal definition of the second pre-configured message, extract the content-data of described needs, described content-data is encapsulated as second message according to described storage rule.
2. the method for claim 1 is characterized in that:
Described first message is non-Diameter message, and described second message is Diameter message.
3. method as claimed in claim 2 is characterized in that:
Described second message is credit control request (CCR) message.
4. the method for claim 1 is characterized in that:
Described first message is Diameter message, and described second message is non-Diameter message.
5. method as claimed in claim 4 is characterized in that:
Described first message is Credit Control Answer (CCA) message.
6. diameter protocol interface system comprises:
The first message format definition module is used to preserve the formal definition of the first pre-configured message;
The second message format definition module is used to preserve the formal definition of the second pre-configured message;
Computing and control module are used to receive first message, and the formal definition of first message of preserving according to the first message format definition module is resolved described first message, extracts content-data from described first message, send to preserve module and preserve; And the content-data that is used for determining the structure second message needs according to the formal definition of the second pre-configured message, from the respective memory unit of preserving module, extract the content-data of described needs according to storage rule, described content-data is encapsulated as second message;
Preserve module, be used for preserving the content-data that extracts according to predetermined storage rule.
7. system as claimed in claim 6 is characterized in that:
Described first message is non-Diameter message, and described second message is Diameter message.
8. system as claimed in claim 7 is characterized in that:
The described first message format definition module is further used for preserving the message format of pre-configured non-Diameter message;
The described second message format definition module, be further used for preserving the source of the AVP data of forming the needed AVP form of Diameter message and every kind of AVP form correspondence, described source comprise following one or more: content is preserved module, configuration module, conversation module;
Described preservation module further comprises: content is preserved module, configuration module and conversation module, wherein:
Described content is preserved module, is used to preserve the content-data of the non-Diameter message that receives;
Described configuration module is used for preserving the pre-configured common configuration item that uses in message interaction process;
Described conversation module, what be used for preserving non-Diameter message need be in the parameter of carrying when transmitting terminal is replied;
Described computing and control module, be further used for after the non-Diameter message that receives the transmitting terminal transmission, message format according to this non-Diameter message of preserving in the described first message format definition module, resolve this non-Diameter message, therefrom extract message content and be kept in the described content preservation module, and need be kept in the conversation module in the parameter of when transmitting terminal is replied, carrying; According to the source of the AVP data of the AVP form correspondence of preserving in the described second message format definition module, from corresponding module, extract data configuration AVP, the AVP of structure is encapsulated as Diameter message.
9. system as claimed in claim 6 is characterized in that:
Described first message is Diameter message, and described second message is non-Diameter message.
10. system as claimed in claim 9 is characterized in that:
The described first message format definition module is further used for preserving the AVP form of pre-configured Diameter message;
The described second message format definition module, be further used for preserving the source of data in the message format of pre-configured non-Diameter message and this message format, described source comprise following one or more: content is preserved module, configuration module, conversation module;
Described preservation module further comprises: content is preserved module, configuration module and conversation module, wherein:
Described content is preserved module, is used to preserve the content-data of the Diameter message that receives;
Described configuration module is used for preserving the pre-configured common configuration item that uses in message interaction process;
Described conversation module, what be used for preserving non-Diameter message need be in the parameter of carrying when transmitting terminal is replied;
Described computing and control module, be further used for after receiving Diameter message, AVP form according to this Diameter message of preserving in the first message format definition module, resolve this Diameter message, therefrom extract the AVP data, and the AVP data are kept in the content preservation module; According to the source of the data of preserving in the described second message format definition module, from corresponding module, extract the non-Diameter message of data configuration.
CN201010203682A 2010-06-17 2010-06-17 Diameter protocol interface system and realization method thereof Pending CN101873322A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201010203682A CN101873322A (en) 2010-06-17 2010-06-17 Diameter protocol interface system and realization method thereof
PCT/CN2010/078517 WO2011157027A1 (en) 2010-06-17 2010-11-08 Diameter protocol interface device and implementation method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010203682A CN101873322A (en) 2010-06-17 2010-06-17 Diameter protocol interface system and realization method thereof

Publications (1)

Publication Number Publication Date
CN101873322A true CN101873322A (en) 2010-10-27

Family

ID=42997982

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010203682A Pending CN101873322A (en) 2010-06-17 2010-06-17 Diameter protocol interface system and realization method thereof

Country Status (2)

Country Link
CN (1) CN101873322A (en)
WO (1) WO2011157027A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157027A1 (en) * 2010-06-17 2011-12-22 中兴通讯股份有限公司 Diameter protocol interface device and implementation method thereof
CN102611530A (en) * 2012-03-08 2012-07-25 北京神州数码思特奇信息技术股份有限公司 Telecommunication data encoding method and telecommunication data decoding method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1376351A (en) * 1999-09-24 2002-10-23 英国电讯有限公司 Packet network interfacing
CN101252788A (en) * 2008-04-11 2008-08-27 北京首信科技有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof
CN101488945A (en) * 2008-01-14 2009-07-22 北京大唐高鸿数据网络技术有限公司 Authentication method oriented to SIP

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100454851C (en) * 2006-03-17 2009-01-21 华为技术有限公司 Measuring method and device and system for Diameter protocol interface
CN101136943B (en) * 2007-10-18 2011-06-22 中兴通讯股份有限公司 System and method for implementing extended Diameter protocol application
CN101873322A (en) * 2010-06-17 2010-10-27 中兴通讯股份有限公司 Diameter protocol interface system and realization method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1376351A (en) * 1999-09-24 2002-10-23 英国电讯有限公司 Packet network interfacing
CN101488945A (en) * 2008-01-14 2009-07-22 北京大唐高鸿数据网络技术有限公司 Authentication method oriented to SIP
CN101252788A (en) * 2008-04-11 2008-08-27 北京首信科技有限公司 Diameter-AAA server supporting RADIUS protocol and working method thereof

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2011157027A1 (en) * 2010-06-17 2011-12-22 中兴通讯股份有限公司 Diameter protocol interface device and implementation method thereof
CN102611530A (en) * 2012-03-08 2012-07-25 北京神州数码思特奇信息技术股份有限公司 Telecommunication data encoding method and telecommunication data decoding method

Also Published As

Publication number Publication date
WO2011157027A1 (en) 2011-12-22

Similar Documents

Publication Publication Date Title
CN103347137B (en) A kind of customer service is handled processing method and the device of data
CN103618794A (en) Automatic login method, terminal and server
CN104144106B (en) A kind of message forwarding method, Apparatus and system
CN104144419A (en) Identity authentication method, device and system
CN105303112B (en) The detection method and device of component call loophole
CN110209652A (en) Tables of data moving method, device, computer equipment and storage medium
CN105096137A (en) Method for sharing resources, server and terminal device
CN101340314A (en) Real-time debugging positioning method of embedded system and apparatus thereof
CN105611488A (en) Automatic Bluetooth connection method and master device, slave device and system
CN105592011A (en) Account login method and account login device
CN104809816B (en) Pickup processing method, pickup perform method, pickup method and apparatus and system
CN105228140A (en) A kind of data access method and device
CN110312046B (en) Outbound data optimization method and device, computer equipment and storage medium
CN107004088A (en) Determining device, determine method and determination program
CN103475746A (en) Terminal service method and apparatus
CN113067859B (en) Communication method and device based on cloud mobile phone
CN103795622A (en) Message forwarding method and device using same
CN105992204A (en) Access authentication method of applications of mobile intelligent terminal and device
CN110855688B (en) Block chain information processing method and related equipment
CN103078984A (en) Dialing method based on OCR (Optical Character Recognition)
CN103561063A (en) Method and terminal for logging onto set top box
CN101873322A (en) Diameter protocol interface system and realization method thereof
CN104184723A (en) Application identifying method and device and network equipment
CN101577713A (en) Realization method, device and testing system for virtual user identification module
CN104320766A (en) Spam short message identification method, device and equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20101027