CN101141328B - Method and device for simulating Diameter server terminal - Google Patents
Method and device for simulating Diameter server terminal Download PDFInfo
- Publication number
- CN101141328B CN101141328B CN2007101757663A CN200710175766A CN101141328B CN 101141328 B CN101141328 B CN 101141328B CN 2007101757663 A CN2007101757663 A CN 2007101757663A CN 200710175766 A CN200710175766 A CN 200710175766A CN 101141328 B CN101141328 B CN 101141328B
- Authority
- CN
- China
- Prior art keywords
- message
- diameter
- configuration data
- response packet
- iameter
- 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.)
- Expired - Fee Related
Links
Images
Landscapes
- Data Exchanges In Wide-Area Networks (AREA)
- Computer And Data Communications (AREA)
Abstract
The utility model discloses a Diameter server simulation method and the device thereof, which are used to test the function and performance of the Diameter client. The method comprises the configuring and the management procedure, which is used to conduct the configuration as per the returned messages as required by the Diameter client, so as to obtain the layout data; the message handling procedure, which is used to receive the Diameter messages delivered by the Diameter client; the Diameter messages are analyzed to obtain the relevant message types and the acknowledgement packet's contents; based on the acknowledgement packet's contents, the related layout data are taken out and packed, and then delivered to the Diameter client. The utility model completes the function and the performance test for the Diameter client. Meanwhile, based on the CCR message's field parcel configuring, ascertain whether the configuring contents shall be returned or conducting the logical processing as per the user's information, so as to further reach the degree of the artificial Intelligence.
Description
Technical field
The present invention relates in the engineering application process particularly to relate to a kind of method and device thereof of analog D iameter server end for a kind of method of measurement of Diameter client.
Background technology
Diameter (diameter) serial protocols is AAA (Authentication, Authorization, Accounting, authentication, mandate, the charging) technology of a new generation.Diameter is meant the upgrading of RADIUS (radius) agreement, comprises basic agreement, transportation protocol, different application extension, as NASREQ and mobile IP etc.The purpose of design of Diameter is the aaa protocol that one of establishment can fully be satisfied at present and even the control of IP network (comprising NGN and 3G or the like) user capture from now on requires.The shared basic function of all application and service all realizes in the Diameter basic agreement, uses specific function and then can implement in different application.
The Diameter basic agreement aims to provide an AAA framework, to be used for various application.The Diameter basic agreement has also defined all Diameter application uses, and all necessary message format, transmission, Report of Discrepancy and the security service of supporting of all Diameter equipment.
Lot of domestic and international producer all or promotes the application of Diameter at present, such as the promotion and implementation of Online Charging System OCS (Online Charging System).
In the engineering of Diameter was used, the two ends of Diameter equipment were often implemented by different suppliers, need equipment separately to carry out the test and the measurement of function and performance before integration testing.
Summary of the invention
Technical problem to be solved by this invention is to provide a kind of method and device thereof of analog D iameter server end, is used for function by disposing adaptive Diameter server end and performance test stake and finishes the functional test and the performance index of Diameter client are weighed.
To achieve these goals, the invention provides a kind of method of analog D iameter server end, be used for the function and the performance of Diameter client are tested, it is characterized in that, comprising:
The configuration management step is used for being configured according to the message that described Diameter client needs return, and obtains configuration data;
Message processing step is used to receive the Diameter message that described Diameter client sends; Described Diameter message is resolved, obtain the content of corresponding type of message, response packet; And carry out different processing according to described type of message:
When described Diameter message is the capabilities exchange request message, form the capabilities exchange response packet according to described configuration data, and log;
When described Diameter message is the monitoring of tools request message, according to described configuration data component devices monitoring response packet, and log;
When described Diameter message is that interruption communicates to connect with described Diameter client, and log when removing peers include both connection request message;
When described Diameter message is credit control request information, resolve the critical field in the described credit control request information, and take out corresponding configuration data according to the content of described response packet, be sent to described Diameter client behind the group bag.
The method of described analog D iameter server end wherein, in the described configuration management step, further comprises:
After receiving the config update order, read the step of all described configuration datas again to internal storage.
The method of described analog D iameter server end, wherein, in the described message processing step, the type of message of described Diameter message comprises one or more in capabilities exchange request message, monitoring of tools request message, dismounting peers include both connection request message, interruption session response message, the credit control request information.
The method of described analog D iameter server end wherein, in the described message processing step, further comprises:
When described Diameter message is credit control request information, further judge whether to carry out according to described credit control request information the step of logical process; Concrete deterministic process is:
Judge whether service logic is arranged, when having service logic, carry out corresponding logical process, otherwise do not carry out logical process.
The method of described analog D iameter server end wherein, in the described message processing step, further comprises:
When judging when not needing to carry out logical process, determine the content of described response packet according to described critical field, and take out corresponding configuration data, according to this set of configuration data bag, log according to the content of described response packet; Otherwise carry out logical process according to the user profile in the described internal storage.
To achieve these goals, the invention provides a kind of device of analog D iameter server end, be used for the function and the performance of Diameter client are tested, it is characterized in that, comprising:
The data communication module is responsible for communicating to connect between described device and the described Diameter client;
Configuration Manager is used for being configured according to the message that described Diameter client needs return, and obtains configuration data; Also be used for after receiving the config update order, read all described configuration datas again to internal storage; And
Message processing module is used for receiving the Diameter message that described Diameter client sends by described data communication module; Described Diameter message is resolved, obtain the content of corresponding type of message, response packet; And carry out different processing according to described type of message:
When described Diameter message is the capabilities exchange request message, form the capabilities exchange response packet according to described configuration data, and log;
When described Diameter message is the monitoring of tools request message, according to described configuration data component devices monitoring response packet, and log;
When described Diameter message is that interruption communicates to connect with described Diameter client, and log when removing peers include both connection request message;
When described Diameter message is credit control request information, resolve the critical field in the described credit control request information, and take out corresponding configuration data from described Configuration Manager according to the content of described response packet, be sent to described Diameter client behind the group bag.
The device of described analog D iameter server end, wherein, described Configuration Manager comprises again:
Internal storage is used to store described configuration data and user data;
Described configuration data is the configuration data of the described Diameter message of the different messages type in the configuration file; Described user data is a user basic information.
The device of described analog D iameter server end, wherein, described message processing module also comprises:
Message adapter is used for described Diameter message is carried out adaptive, verification, letter sorting, obtains corresponding type of message;
The message parse device is used for described Diameter message being resolved the content of determining described response packet according to type of message; And
Message groups bag module is used for taking out corresponding configuration data and packaging from described Configuration Manager according to the content of described response packet.
The device of described analog D iameter server end wherein, also comprises:
Log processing module is used for writing down the dealing daily record of described message processing module at message processing procedure, and the property value of checking the message that described message processing module receives and sends by daily record uses for functional test AVP value, code stream; And/or
The order line functional module is used to provide command line mode, by order line described Configuration Manager, described message processing module is finished corresponding operational processes.
The device of described analog D iameter server end, wherein, described data communication module realizes communicating to connect between described device and the described Diameter client with the connected mode of one-to-many or multi-to-multi.
Useful technique effect of the present invention:
Compared with prior art, the present invention has finished the functional test of Diameter client and the measurement of performance index by the function and the performance test stake of disposing adaptive Diameter server end, do not need the response message content is write in the code, the masterplate of a response message is provided, and message content is flexible configuration as required.Some field for CCR message can determine whether directly returning deploy content by configuration in addition, perhaps carries out logical process according to the user profile that is written into internal memory, reaches the emulation of higher degree.
In addition, the present invention also provides friendly man-machine interface when LINUX (UNIX) uses down, self-defined manmachine command is provided.
Describe the present invention below in conjunction with the drawings and specific embodiments, but not as a limitation of the invention.
Description of drawings
Fig. 1 is an application model schematic diagram of the present invention;
Fig. 2 is the structure drawing of device of a kind of analog D iameter server end of the present invention;
Fig. 3 is the method flow diagram of a kind of analog D iameter server end of the present invention;
Fig. 4 is the main Message Processing flow chart of a kind of analog D iameter server end of the present invention.
Embodiment
Below in conjunction with the drawings and specific embodiments technical scheme of the present invention is made further more detailed description.
As shown in Figure 1, be application model schematic diagram of the present invention, this application model is used for the simulation to the Diameter server end, and a message loop mainly is provided, as the function of Diameter client and an equipment of performance test.Simulator can provide one or more connection with Diameter client, supports multithreading.Diameter client adopts the Transmission Control Protocol communication with Diameter server bottom layer, follows Diameter application protocol standard.
Among Fig. 1, comprise Diameter client 1~m, Diameter server end 1~n, wherein m, n are natural number.
Diameter client 1~m is connected with Diameter server end 1~n by Transmission Control Protocol, adopts Transmission Control Protocol to carry out communication.
As shown in Figure 2, be the structure drawing of device of a kind of analog D iameter server end of the present invention.This device 200 is simulators of analog D iameter server end, comprises as lower unit: data communication module 21, message processing module 22, Configuration Manager 23 also can comprise log processing module 24, order line functional module 25.
The type of message of distinguishing comprises: CER message, DWR message, DPR message, ASA message, CCR message.
CER (Capabilities-Exchange-Request) refers to the capabilities exchange request;
DWR (Device-Watchdog-Request) refers to the monitoring of tools request;
DPR (Disconnect-Peer-Request) refers to remove the peers include both connection request;
ASA (Abort-Session-Answer) refers to interrupt session and replys;
CCR (Credit-Control-Request) is the credit control request.
The type of message that need reply comprises CEA message, DWA message.
CEA (Capabilities-Exchange-Answer) refers to that capabilities exchange replys;
DWA (Device-Watchdog-Answer) refers to that monitoring of tools replys.
Realize the capabilities exchange of peers include both by CER message, CEA message.
When not having flow mutual between two peers include both, send DWR message/DWA message to peers include both; In case detect transmission error, then this message does not allow to be sent to alternative peers include both.
Any server asks to interrupt the session that Session-Id represents by sending ASA message to the access device that access service is provided.
By DPR message is sent to peers include both, prompting the other side oneself will close transmission and connect.
Diameter client is by sending CCR message to the Diameter server end, and such as authenticating and charging, this message is defined by user oneself.
[RAR]
value_name=Session-Id,Origin-Host,Origin-Realm,Destination-Realm,Destination-Host,Auth-Application-Id
Session-Id=263,0,OctetString,0,0,1,cc1.zte.com.cn;1876543210;523
Origin-Host=264,0,OctetString,0,0,1,cc1.zte.com.cn
……
Form is followed: AVP Code Flag Type Length Vid Level Value
Order line functional module 25 is responsible for providing the function of the order line under the non-Windows platform, can come a series of functions such as maintenance customer's information, display message statistics, internal memory dynamic loading by order line, and convenient expansion.
Order line functional module 25 can provide command line mode below unix platform, the user can finish series operation by self-defining order, such as checking the various types of messages real-time statistics, user profile being safeguarded, the online updating configuration, generated function such as user profile in batches.
As shown in Figure 3, be the method flow diagram of a kind of analog D iameter server end of the present invention.In conjunction with Fig. 1,2, this method flow specifically comprises the steps:
Configuration management flow process 31, receive the order of config update after, will read all again and be configured to internal memory; For user profile, can between configuration file and internal memory, change mutually, promptly realize the configuration file dynamic loading to internal memory, user data can dynamically write in the configuration file in the internal memory simultaneously.
Message Processing flow process 32, this flow process comprises substantially:
Step 321 receives the message from the opposite end, and message is carried out verification;
Step 322 is determined type of message, and carries out different processing according to type of message:
A1) for CER message, DWR message, DPR message, stipulate to finish corresponding action according to agreement;
A2) for CCR message, according to the crucial AVP field of this request message, the definite message that need return, thus find out corresponding configuration data in the memory 233 internally, the group bag also sends response.
Whether step 323 can select the code stream of printmessage, statistical message number simultaneously in the outlet of the inlet of message and message.
As shown in Figure 4, be the main Message Processing flow chart of a kind of analog D iameter server end of the present invention.In conjunction with Fig. 1-3, this main Message Processing flow process is described below:
Step 401, messaging interface receives the Diameter message from Diameter client;
Step 402 is resolved the message packet header that receives;
Step 403 judges that whether message is CER message, if change step 408 over to, otherwise changes step 404 over to;
Step 404 judges that whether message is DWR message, if change step 409 over to, otherwise changes step 405 over to;
Step 405 judges that whether message is DPR message, if change step 410 over to, otherwise changes step 406 over to;
Step 406 judges that whether message is ASA message, if change step 411 over to, otherwise changes step 407 over to;
Step 407 judges that whether message is CCR message, if change step 412 over to, otherwise changes step 416 over to;
Step 408 is according to Diameter group CEA response packet, log;
Step 409 is according to Diameter group DWA response packet, log;
Step 410 interrupts connecting with Diameter client, and log;
Step 411, log is not done other processing;
Step 412 is resolved the crucial AVP field in the CCR message, for back group bag is prepared;
Step 413 judges whether and need do logical process according to request message, if change step 414 over to, otherwise changes step 415 over to;
Step 414 is carried out simple logic and is handled;
Step 416 is carried out unexpected message and is handled.
The invention provides the method and the device of an analog D iameter server end, in unit testing or do not possess a test pile is provided under the integration testing condition, finish the functional test of Diameter client and the measurement of performance index; This device is as the simulator of Diameter server end, and it is by processing and response to client request message, or the message of active triggering part agreement appointment, thereby realizes the function and the performance of Diameter client are tested.
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 (9)
1. the method for an analog D iameter server end is used for the function and the performance of Diameter client are tested, and it is characterized in that, comprising:
The configuration management step is used for being configured according to the message that described Diameter client needs return, and obtains configuration data; After receiving the config update order, read all described configuration datas again to internal storage;
Message processing step is used to receive the Diameter message that described Diameter client sends;
Described Diameter message is resolved, obtain the content of corresponding type of message, response packet; And carry out different processing according to described type of message:
When described Diameter message is the capabilities exchange request message, form the capabilities exchange response packet according to described configuration data, and log;
When described Diameter message is the monitoring of tools request message, according to described configuration data component devices monitoring response packet, and log;
When described Diameter message is that interruption communicates to connect with described Diameter client, and log when removing peers include both connection request message;
When described Diameter message is credit control request information, resolve the critical field in the described credit control request information, and take out corresponding configuration data according to the content of described response packet, be sent to described Diameter client behind the group bag.
2. the method for analog D iameter server end according to claim 1, it is characterized in that, in the described message processing step, the type of message of described Diameter message comprises one or more in capabilities exchange request message, monitoring of tools request message, dismounting peers include both connection request message, interruption session response message, the credit control request information.
3. the method for analog D iameter server end according to claim 2 is characterized in that, in the described message processing step, further comprises:
When described Diameter message is credit control request information, further judge whether to carry out according to described credit control request information the step of logical process; Concrete deterministic process is:
Judge whether service logic is arranged, when having service logic, carry out corresponding logical process, otherwise do not carry out logical process.
4. the method for analog D iameter server end according to claim 3 is characterized in that, in the described message processing step, further comprises:
When judging when not needing to carry out logical process, determine the content of described response packet according to described critical field, and take out corresponding configuration data, according to this set of configuration data bag, log according to the content of described response packet; Otherwise carry out logical process according to the user profile in the described internal storage.
5. the device of an analog D iameter server end is used for the function and the performance of Diameter client are tested, and it is characterized in that, comprising:
The data communication module is responsible for communicating to connect between described device and the described Diameter client;
Configuration Manager is used for being configured according to the message that described Diameter client needs return, and obtains configuration data; Also be used for after receiving the config update order, read all described configuration datas again to internal storage; And
Message processing module is used for receiving the Diameter message that described Diameter client sends by described data communication module; Described Diameter message is resolved, obtain the content of corresponding type of message, response packet; And carry out different processing according to described type of message:
When described Diameter message is the capabilities exchange request message, form the capabilities exchange response packet according to described configuration data, and log;
When described Diameter message is the monitoring of tools request message, according to described configuration data component devices monitoring response packet, and log;
When described Diameter message is that interruption communicates to connect with described Diameter client, and log when removing peers include both connection request message;
When described Diameter message is credit control request information, resolve the critical field in the described credit control request information, and take out corresponding configuration data from described Configuration Manager according to the content of described response packet, be sent to described Diameter client behind the group bag.
6. the device of analog D iameter server end according to claim 5 is characterized in that, described Configuration Manager comprises again:
Internal storage is used to store described configuration data and user data;
Described configuration data is the configuration data of the described Diameter message of the different messages type in the configuration file; Described user data is a user basic information.
7. the device of analog D iameter server end according to claim 5 is characterized in that, described message processing module also comprises:
Message adapter is used for described Diameter message is carried out adaptive, verification, letter sorting, obtains corresponding type of message;
The message parse device is used for described Diameter message being resolved the content of determining described response packet according to type of message; And
Message groups bag module is used for taking out corresponding configuration data and packaging from described Configuration Manager according to the content of described response packet.
8. according to the device of claim 5,6 or 7 described analog D iameter server ends, it is characterized in that, also comprise:
Log processing module is used for writing down the dealing daily record of described message processing module at message processing procedure, and the property value of checking the message that described message processing module receives and sends by daily record uses for functional test AVP value, code stream; And/or
The order line functional module is used to provide command line mode, by order line described Configuration Manager, described message processing module is finished corresponding operational processes.
9. according to the device of claim 5,6 or 7 described analog D iameter server ends, it is characterized in that described data communication module realizes communicating to connect between described device and the described Diameter client with the connected mode of one-to-many or multi-to-multi.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101757663A CN101141328B (en) | 2007-10-11 | 2007-10-11 | Method and device for simulating Diameter server terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2007101757663A CN101141328B (en) | 2007-10-11 | 2007-10-11 | Method and device for simulating Diameter server terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN101141328A CN101141328A (en) | 2008-03-12 |
CN101141328B true CN101141328B (en) | 2010-07-14 |
Family
ID=39193090
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2007101757663A Expired - Fee Related CN101141328B (en) | 2007-10-11 | 2007-10-11 | Method and device for simulating Diameter server terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101141328B (en) |
Families Citing this family (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101582835A (en) * | 2008-05-13 | 2009-11-18 | 华为技术有限公司 | Method, system and device for alternating equipment capability |
CN102143523B (en) * | 2010-11-18 | 2014-06-25 | 华为技术有限公司 | Service delivery platform and application testing method based on service delivery platform |
CN102833125A (en) * | 2011-06-17 | 2012-12-19 | 腾讯科技(深圳)有限公司 | Test server, test system adopting test server, and test method |
CN104660548B (en) * | 2013-11-19 | 2018-01-19 | 北京信威通信技术股份有限公司 | Diameter message resolution methods and device |
CN104065490B (en) * | 2014-06-20 | 2017-12-08 | 普元信息技术股份有限公司 | The system and method for analog transceiver equipment signaling is realized based on online charging environment |
CN105391506B (en) * | 2015-11-24 | 2018-03-16 | 上海汽车集团股份有限公司 | Onboard wireless communicating terminal emulation test method and system |
CN105721251B (en) * | 2016-03-04 | 2019-03-08 | 深圳市分期乐网络科技有限公司 | A kind of method and system of configurable test pile service |
CN107070922B (en) * | 2017-04-18 | 2020-02-04 | 北京思特奇信息技术股份有限公司 | Method and device for accelerating message generation |
CN110176964B (en) * | 2019-06-12 | 2022-01-21 | 浙江沁园水处理科技有限公司 | Production test system and method of wireless equipment |
Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1859238A (en) * | 2006-03-17 | 2006-11-08 | 华为技术有限公司 | Measuring method and device and system for Diameter protocol interface |
CN101008904A (en) * | 2006-01-26 | 2007-08-01 | 西门子通信技术(北京)有限公司 | Method for simulating multimedia subsystem based on IP |
-
2007
- 2007-10-11 CN CN2007101757663A patent/CN101141328B/en not_active Expired - Fee Related
Patent Citations (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101008904A (en) * | 2006-01-26 | 2007-08-01 | 西门子通信技术(北京)有限公司 | Method for simulating multimedia subsystem based on IP |
CN1859238A (en) * | 2006-03-17 | 2006-11-08 | 华为技术有限公司 | Measuring method and device and system for Diameter protocol interface |
Also Published As
Publication number | Publication date |
---|---|
CN101141328A (en) | 2008-03-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN101141328B (en) | Method and device for simulating Diameter server terminal | |
CN101360015B (en) | Method, system and apparatus for test network appliance | |
CN107786548A (en) | Charging management method and device, server and computer-readable recording medium | |
CN205883299U (en) | Data storage system based on cloud computing | |
CN107341109A (en) | The generation method and system of a kind of test data | |
CN104639656B (en) | A kind of cloud bill printing system for supporting orientation to print | |
CN102685709A (en) | Method and device for auditing charging | |
CN101656642B (en) | Method, device and system for testing authentication performance of network access equipment | |
CN103458407A (en) | Internet account number login management system and method based on short message | |
CN102497379A (en) | Network access method, system and equipment | |
CN107423909A (en) | Allocator and device, dispatching platform, server, distribution box, storage medium | |
CN110008722A (en) | Logical card transfer of rewards processing method, device and storage medium based on block chain | |
CN108366176A (en) | A kind of charging method of terminal applies, apparatus and system | |
CN108401231A (en) | A kind of charging method, device and system | |
CN102480472B (en) | Application program integration login method of enterprise inner network and verification server thereof | |
CN108337328A (en) | A kind of data exchange system, data uploading method and data download method | |
CN101765069B (en) | Value added service subscribing method, device and system | |
CN109104458A (en) | A kind of collecting method and system for cloud platform Trusting eBusiness | |
CN103067184A (en) | Exception handling method of offline charging and system | |
CN102480383A (en) | Log information message processing method and device | |
CN102316076B (en) | Method, device and system for recognizing cross-network system user | |
CN104065490B (en) | The system and method for analog transceiver equipment signaling is realized based on online charging environment | |
CN100518097C (en) | Simple detection method for GGSN facilities | |
CN103326892B (en) | The operating method and device of web interface | |
CN109214746A (en) | Delivering method and system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20100714 Termination date: 20161011 |
|
CF01 | Termination of patent right due to non-payment of annual fee |