CN108770011A - Gateway automatization test system and method based on specialized media gateway control protocol - Google Patents

Gateway automatization test system and method based on specialized media gateway control protocol Download PDF

Info

Publication number
CN108770011A
CN108770011A CN201810427514.3A CN201810427514A CN108770011A CN 108770011 A CN108770011 A CN 108770011A CN 201810427514 A CN201810427514 A CN 201810427514A CN 108770011 A CN108770011 A CN 108770011A
Authority
CN
China
Prior art keywords
gateway
message
state machine
module
media
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.)
Granted
Application number
CN201810427514.3A
Other languages
Chinese (zh)
Other versions
CN108770011B (en
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.)
XINGTANG COMMUNICATIONS CO Ltd
Data Communication Institute Of Science And Technology
Original Assignee
XINGTANG COMMUNICATIONS CO Ltd
Data Communication Institute Of Science And Technology
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 XINGTANG COMMUNICATIONS CO Ltd, Data Communication Institute Of Science And Technology filed Critical XINGTANG COMMUNICATIONS CO Ltd
Priority to CN201810427514.3A priority Critical patent/CN108770011B/en
Publication of CN108770011A publication Critical patent/CN108770011A/en
Application granted granted Critical
Publication of CN108770011B publication Critical patent/CN108770011B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/08Testing, supervising or monitoring using real traffic
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/12Arrangements for detecting or preventing errors in the information received by using return channel
    • H04L1/16Arrangements for detecting or preventing errors in the information received by using return channel in which the return channel carries supervisory signals, e.g. repetition request signals
    • H04L1/1607Details of the supervisory signal
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W12/00Security arrangements; Authentication; Protecting privacy or anonymity
    • H04W12/06Authentication

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Computer Security & Cryptography (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)
  • Telephonic Communication Services (AREA)

Abstract

The present invention relates to a kind of gateway automatization test systems and method based on specialized media gateway control protocol, the system is connect with media Interworking gateway, it realizes to the call function automatic test of media Interworking gateway, specifically includes registering functional module, authentication services module, message sink distribution module, call management module, caller state machine and language data process module.The present invention compensates for the drawbacks of manual test, improves the efficiency of test, solves the problems, such as to cannot be satisfied special Interworking gateway test request;The requirement for meeting Media Gateway performance and stability while test, effectively makes up the deficiency that isomerous network communication gateway can not be tested comprehensively under practical circumstances, guarantee is provided for the research and development of isomerous network communication gateway.

Description

Gateway automatization test system and method based on specialized media gateway control protocol
Technical field
The present invention relates to field of communication technology more particularly to a kind of gateway based on specialized media gateway control protocol are automatic Change test system and method.
Background technology
In recent years, as mobile communication technology develops rapidly, mobile communication has been transitioned into 4G epoch, mesh via the 3G epoch Preceding while different network formats also occur to 5G evolution, different networks, which needs to realize, to interconnect.Special Application field, user also propose requirement to the safety of network, thereby produce dedicated mobile communications subsystem.Distinct device It interconnects and just needs to be equipped with special Interworking gateway.Before formal use, need comprehensively to test Interworking gateway.It surveys Examination can effectively ensure product quality, find the potential mistake of product in time, contribute to developer to correct a mistake promptly, change Kind product quality.
In product development process, in order to ensure product quality, we generally require to product carry out test repeatedly and If regression test will expend a large amount of manpower and materials and time using traditional manual test.
Tester's technical ability of typically now test team is irregular, and manual survey is relied primarily on inside test team Examination.Test not only needs to participate in entire development process, and after application system is reached the standard grade, there is still a need for mark off one to development teams Some of the staff carry out daily maintenance to the system reached the standard grade and BUG is repaired.Test can occupy the development time to 40% according to statistics, The very high software of some reliability requirements, testing time even account for the 60% of the development time, wherein many operations are all weights It is renaturation, non-intelligence and non-creative.
Invention content
In view of above-mentioned analysis, the present invention is intended to provide a kind of gateway automation based on specialized media gateway control protocol Test method, improves the efficiency of test at the drawbacks of compensating for manual test.
The purpose of the present invention is mainly achieved through the following technical solutions:
A kind of gateway automatization test system based on Media Gateway Control Protocol, including message sink distribution module, exhale It is management module, caller state machine and language data process module;
The message sink distribution module monitors communication interface, receives the message that media Interworking gateway is sent, and analyzes message Type carries out message distribution according to type of message;
The call management module receive that the message sink distribution module sends with call relevant message, output control Information processed controls the state of caller state machine to caller state machine;
The caller state machine receives the control information of the call management module, according to the request of calling subscribe, sends Status information is conversed to the gateway and language data process module, carries out the control of call state, to media Interworking gateway into Row automatic test;
The language data process module realizes user according to the status information of caller state machine by media Interworking gateway Between call.
Further, the caller state machine according to the control information, creates, safeguards or destroys call state.
Further, the caller state machine sends when initiating to call and connects speech path control to the gateway, transmission is opened Dynamic calling and called UDP receiving or sending threads are instructed to the language data process module;Occur in terminating calling or test process different Chang Shi sends the control of release media resource to the gateway, sends and close calling and called UDP receiving or sending threads at the voice data Manage module.
Further, the language data process module includes sending module and receiving module, and the sending module will connect The communicating data packet of receipts is sent to the gateway;The receiving module receives the communicating data packet that the gateway is sent.
Further, further include registering functional module and authentication services module;
The registering functional module receive that the message sink distribution module sends with the relevant message of registration business, it is real The registration of existing media Interworking gateway network media resource;
The authentication services module receive that the message sink distribution module sends with the relevant message of authentication services, it is real Authentication of the existing media Interworking gateway to different type network.
A kind of call function automated testing method of Media Gateway, includes the following steps:
Step S1, call function automatic test starts, and call management module creates and initializes the shape of caller state machine State;
Step S2, caller state machine waits for acknowledgement state information to gateway application media resource;
Step S3, gateway sends acknowledgement state information and connects words after caller state machine confirms media resource application success Road starts calling and called UDP receiving or sending threads;
Step S4, calling and called both sides converse, and caller state machine maintains talking state;
Step S5, after end of conversation, caller state machine discharges media resource.
Further, in step 2, caller state machine sends application media resource request message to gateway, jumps to simultaneously Media resource application status, the ACK message for waiting for media Interworking gateway processing unit to reply.
Further, step S3 includes:
1) after the ACK message of gateway reply media resource request message, message sink distribution module receives ACK message simultaneously Message format is parsed, call management module is forwarded to according to type of message, call management module forwards the message to the master It is state machine;
2) caller state machine sends the numbers of calling and called parties that control message notifies media Interworking gateway after receiving ACK message, and Jump to waiting acknowledgement state;
3) after the media Interworking gateway receives numbers of calling and called parties, confirmation message is replied to messaging interface, message is received Module parsing confirmation message success is sent out, is sent to call management module, call management module forwards the message to caller state Machine;
4) after caller state machine confirms media resource application success, speech channel is connected, starts calling and called UDP receiving or sending threads.
Further, if messaging interface parsing confirmation message is unsuccessful in 3), output message to call manager mould The parsing failure of block prompting message, the release speech channel of caller state machine simultaneously return to init state.
Further, automatic trigger hangs up flow after end of conversation, and call management module notice caller state machine hangs up words Road, caller state machine send release media resource message, and jump to waiting and terminate acknowledgement state, after gateway replys ACK message, End of conversation, and discharge related traffic resource.
The present invention has the beneficial effect that:
1, this method compensates for the drawbacks of manual test, improves the efficiency of test, while solving generally used now one The problem of a little automatic test softwares such as LoadRunner etc. cannot be satisfied special Interworking gateway test request;
2, this method meets the problem of Media Gateway can not carry out the tests such as performance and stability simultaneously, is either opening Hair stage or last trial period, performance test are required for putting into a large amount of man power and material, this test method can be in reality Border application is preceding to carry out comprehensive performance test to gateway, and effectively making up isomerous network communication gateway can not survey comprehensively under practical circumstances The deficiency of examination provides guarantee for the research and development of isomerous network communication gateway.
Description of the drawings
Attached drawing is only used for showing the purpose of specific embodiment, and is not considered as limitation of the present invention, in entire attached drawing In, identical reference mark indicates identical component.
Fig. 1 is the call function automatic testing process figure of Media Gateway.
Specific implementation mode
Specifically describing the preferred embodiment of the present invention below in conjunction with the accompanying drawings, wherein attached drawing constitutes the application part, and It is used to illustrate the principle of the present invention together with embodiments of the present invention.
The specific embodiment of the present invention discloses a kind of gateway automation based on specialized media gateway control protocol Test system, the system are connect with media Interworking gateway, realize the call function automatic test to media Interworking gateway;The matchmaker Body Interworking gateway can realize a variety of acoustic code matchmakers in dedicated mobile communications subsystem user and other network user's voice intercommunications The conversion intercommunication of body resource and the safe intercommunication of multiple network media.
Above system specifically includes registering functional module, authentication services module, message sink distribution module, call manager mould Block, caller state machine and language data process module;
Wherein, message sink distribution module monitors communication interface, receives the message that media Interworking gateway is sent, and analyzes message Type carries out message distribution according to type of message;
Call management module receive that message sink distribution module sends with call relevant message, output control information arrives Caller state machine controls the state of caller state machine;
Caller state machine receives the control information of call management module, according to the request of calling subscribe, sends status information It converses to gateway and language data process module, carries out the control of call state;
Language data process module is realized between user by media Interworking gateway according to the status information of caller state machine Call.
Call management module, what reception message sink distribution module was sent assists with the relevant specialized media gateway control of calling View realizes that the establishment and destruction of caller state machine, wherein caller state machine are created when initiating calling;Terminate call when or It is destroyed when occurring abnormal in test process;Realize that message is distributed to the example of caller state machine.
Specifically, above-mentioned message sink distribution module, by Message Processing at the special of specialized media Gateway Control Protocol Message Use format;Message distribution is carried out according to type of message, will be sent to the relevant specialized media gateway control protocol of registration business Registering functional module realizes the registration of media Interworking gateway network media resource;
It will be sent to authentication services processing module with the relevant specialized media gateway control protocol of authentication services;Realize media The registration of Interworking gateway network media resource;
Authentication services module receives and the relevant message of authentication services, realizes media Interworking gateway to different type network Authentication.
Special, caller state machine handles caller request and subsequent association requests and the message of user, according to current shape State and type of message migrate call state, and control media handling;Its major function:Maintenance call state;Media information processing; Realize that UDP message receives example, UDP sends the establishment of example, destroys.
Special, language data process module sends and receives UDP message packet according to the instruction of caller state machine setting, wraps Sending module and receiving module are included, the communicating data packet of reception is sent to Media Gateway by sending module;Receiving module receives matchmaker The communicating data packet that body gateway is sent.
A kind of call function automated testing method of Media Gateway, specifically includes following steps:
Step S1, call function automatic test starts, and call management module creates and initializes the shape of caller state machine State;
Wherein initialization is carried out according to configuration file.
Step S2, caller state machine waits for acknowledgement state information to Media Gateway application media resource;
After caller state machine creates, application media resource request message application media resource is sent to Media Gateway, simultaneously Media resource application status is jumped to, the ACK message that media gateway handles unit is replied is waited for illustrate matchmaker if do not received Body gateway is problematic.
Step S3, Media Gateway sends acknowledgement state information and is connected after caller state machine confirms media resource application success Speech channel starts calling and called UDP receiving or sending threads;
Specifically, step S3 includes:
1) after the ACK message of Media Gateway reply media resource request message, message sink distribution module receives ACK and disappears Message format is ceased and parsed, call management module is forwarded to according to type of message, call management module forwards the message to master It is state machine;
2) caller state machine sends the numbers of calling and called parties of control message notice Media Gateway after receiving ACK message, and redirects To waiting acknowledgement state;
3) after Media Gateway receives numbers of calling and called parties, confirmation message is replied to messaging interface, message sink distributes mould Block parses confirmation message success, is sent to call management module, call management module forwards the message to caller state machine;Such as Fruit messaging interface parsing confirmation message is unsuccessful, and output message to call management module prompting message, which parses, to fail, caller State machine discharges speech channel and returns to init state, illustrates that Media Gateway is problematic;
4) after caller state machine confirms media resource application success, speech channel is connected, starts calling and called UDP receiving or sending threads.
Step S4, calling and called both sides converse, and caller state machine maintains talking state;
After caller state machine receives success message, the time write according to test case maintains talking state;
Step S5, after end of conversation, caller state machine discharges media resource.
Automatic trigger hangs up flow after end of conversation, and call management module notice caller state machine hangs up speech channel, caller shape After speech channel is hung up in the confirmation of state machine, calling and called UDP receiving or sending threads are closed, send release media resource message to Media Gateway, and jump It goes to waiting and terminates acknowledgement state;
Media Gateway replys ACK message to message sink distribution module, and message sink distribution module receives ACK message and solves Message format is analysed, call management module is forwarded to according to type of message, call management module forwards the message to caller state Machine makes caller state machine enter Idle state, end of conversation.
In above-mentioned simulation process, each step is the test point of key, and test machine effectively simulates Media Gateway The interaction of signaling and media during true use, can find in advance there are the problem of, research staff corrects in time.It surveys The specialized media gateway control protocol for trying to use in the process can make up general automated testing method in specialized media gateway The deficiency of test.Signaling level completes signaling control, the transmission of specific information of speech channel (including two channels);Media level, Complete the transmission of media data, the transmission of specific information.
In conclusion the gateway automatization test system based on specialized media gateway control protocol that the present embodiment is provided And method, the drawbacks of compensating for manual test, the efficiency of test is improved, while solving some automations generally used now and surveying The problem of examination software such as LoadRunner etc. cannot be satisfied special Interworking gateway test request;Meeting Media Gateway simultaneously can not The problem of carrying out the tests such as performance and stability, is either required in development phase or last trial period, performance test A large amount of man power and material is put into, this test method can carry out comprehensive performance test before practical application to Media Gateway, The deficiency that isomerous network communication gateway can not be tested comprehensively under practical circumstances effectively is made up, the research and development for isomerous network communication gateway provide It ensures.
It will be understood by those skilled in the art that realizing all or part of flow of above-described embodiment method, meter can be passed through Calculation machine program is completed to instruct relevant hardware, and the program can be stored in computer readable storage medium.Wherein, institute It is disk, CD, read-only memory or random access memory etc. to state computer readable storage medium.
The foregoing is only a preferred embodiment of the present invention, but scope of protection of the present invention is not limited thereto, Any one skilled in the art in the technical scope disclosed by the present invention, the change or replacement that can be readily occurred in, It should be covered by the protection scope of the present invention.

Claims (10)

1. a kind of gateway automatization test system based on Media Gateway Control Protocol, which is characterized in that including message sink point Send out module, call management module, caller state machine and language data process module;
The message sink distribution module monitors communication interface, receives the message that media Interworking gateway is sent, and analyzes type of message, Message distribution is carried out according to type of message;
The call management module receive that the message sink distribution module sends with call relevant message, output control letter Caller state machine is ceased, the state of caller state machine is controlled;
The caller state machine receives the control information of the call management module, according to the request of calling subscribe, sends state Information is conversed to the gateway and language data process module, carries out the control of call state, is carried out certainly to media Interworking gateway Dynamicization is tested;
The language data process module is realized between user by media Interworking gateway according to the status information of caller state machine Call.
2. gateway automatization test system according to claim 1, which is characterized in that the caller state machine is according to control Information creates, safeguards or destroys call state.
3. gateway automatization test system according to claim 2, which is characterized in that the caller state machine is initiating to exhale It when crying, sends and connects speech path control to the gateway, send and start the instruction of calling and called UDP receiving or sending threads at the voice data Manage module;When occurring abnormal in terminating calling or test process, the control of release media resource is sent to the gateway, is sent Calling and called UDP receiving or sending threads are closed to the language data process module.
4. gateway automatization test system according to claim 1, which is characterized in that the language data process module packet Sending module and receiving module are included, the communicating data packet of reception is sent to the gateway by the sending module;The reception mould Block receives the communicating data packet that the gateway is sent.
5. gateway automatization test system according to claim 1, which is characterized in that further include registering functional module and mirror Weigh business module;
The registering functional module receive that the message sink distribution module sends with the relevant message of registration business, realize matchmaker The registration of body Interworking gateway network media resource;
The authentication services module receive that the message sink distribution module sends with the relevant message of authentication services, realize matchmaker Authentication of the body Interworking gateway to different type network.
6. a kind of call function automated testing method of Media Gateway, which is characterized in that include the following steps:
Step S1, call function automatic test starts, and call management module creates and initializes the state of caller state machine;
Step S2, caller state machine waits for acknowledgement state information to gateway application media resource;
Step S3, gateway sends acknowledgement state information and connects speech channel after caller state machine confirms media resource application success, open Dynamic calling and called UDP receiving or sending threads;
Step S4, calling and called both sides converse, and caller state machine maintains talking state;
Step S5, after end of conversation, caller state machine discharges media resource.
7. call function automated testing method according to claim 6, which is characterized in that in step 2, caller state machine Application media resource request message is sent to gateway, while jumping to media resource application status, is waited at media Interworking gateway Manage the ACK message that unit is replied.
8. call function automated testing method according to claim 6, which is characterized in that step S3 includes:
1) after the ACK message of gateway reply media resource request message, message sink distribution module receives ACK message and parses Message format is forwarded to call management module according to type of message, and call management module forwards the message to the caller shape State machine;
2) caller state machine sends the numbers of calling and called parties of control message notice media Interworking gateway after receiving ACK message, and redirects To waiting acknowledgement state;
3) after the media Interworking gateway receives numbers of calling and called parties, confirmation message is replied to messaging interface, information receiving and transmitting mould Block parses confirmation message success, is sent to call management module, call management module forwards the message to caller state machine;
4) after caller state machine confirms media resource application success, speech channel is connected, starts calling and called UDP receiving or sending threads.
9. call function automated testing method according to claim 8, which is characterized in that
If 3) messaging interface parsing confirmation message is unsuccessful in, output message to call management module prompting message parses Failure, the release speech channel of caller state machine simultaneously return to init state.
10. call function automated testing method according to claim 6, which is characterized in that
Automatic trigger hangs up flow after end of conversation, and call management module notice caller state machine hangs up speech channel, caller state machine Release media resource message is sent, and jumps to waiting and terminates acknowledgement state, after gateway replys ACK message, end of conversation, and The related traffic resource of release.
CN201810427514.3A 2018-05-07 2018-05-07 Gateway automatic test system and method based on special media gateway control protocol Active CN108770011B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810427514.3A CN108770011B (en) 2018-05-07 2018-05-07 Gateway automatic test system and method based on special media gateway control protocol

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810427514.3A CN108770011B (en) 2018-05-07 2018-05-07 Gateway automatic test system and method based on special media gateway control protocol

Publications (2)

Publication Number Publication Date
CN108770011A true CN108770011A (en) 2018-11-06
CN108770011B CN108770011B (en) 2021-07-02

Family

ID=64009929

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810427514.3A Active CN108770011B (en) 2018-05-07 2018-05-07 Gateway automatic test system and method based on special media gateway control protocol

Country Status (1)

Country Link
CN (1) CN108770011B (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2008000183A1 (en) * 2006-06-23 2008-01-03 Huawei Technologies Co., Ltd. Method, apparatus and system for monitoring qos of softswitch network
CN101145987A (en) * 2007-10-24 2008-03-19 中兴通讯股份有限公司 A call testing method for specifying media resources in 3G core network
CN101193003A (en) * 2006-11-17 2008-06-04 鸿富锦精密工业(深圳)有限公司 Media gateway testing device and method
CN100464538C (en) * 2003-05-21 2009-02-25 华为技术有限公司 Method and apparatus for automatic testing media gateway
CN102857645A (en) * 2011-06-27 2013-01-02 中兴通讯股份有限公司 Method and apparatus for testing voice media gateway

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100464538C (en) * 2003-05-21 2009-02-25 华为技术有限公司 Method and apparatus for automatic testing media gateway
WO2008000183A1 (en) * 2006-06-23 2008-01-03 Huawei Technologies Co., Ltd. Method, apparatus and system for monitoring qos of softswitch network
CN101193003A (en) * 2006-11-17 2008-06-04 鸿富锦精密工业(深圳)有限公司 Media gateway testing device and method
CN101145987A (en) * 2007-10-24 2008-03-19 中兴通讯股份有限公司 A call testing method for specifying media resources in 3G core network
CN102857645A (en) * 2011-06-27 2013-01-02 中兴通讯股份有限公司 Method and apparatus for testing voice media gateway

Also Published As

Publication number Publication date
CN108770011B (en) 2021-07-02

Similar Documents

Publication Publication Date Title
KR101163258B1 (en) Method and device for session control in hybrid telecommunication networks
JP4559481B2 (en) Method and system used to reduce costs associated with connection failures in wireless communications
CN103069775B (en) Calling re-establishes
CN102006616B (en) Test system and test method
CN108173858A (en) A kind of VOIP real-time voice webmaster processing systems based on vxworks operating system
CN113037616B (en) Interactive method and device for cooperatively controlling multiple robots
US8213580B2 (en) Automated message conversion based on availability of bandwidth
CN113055539A (en) Communication system based on VoIP dual-redundancy exchange server
CN101137104B (en) Method and system for implementing resource release
CN100527733C (en) SIP system and method for implementing SIP group call
EP2025102B1 (en) Techniques for message waiting indication support across different protocols
KR20130075252A (en) Apparatus and method for conformance testing of service choreography
WO2018141186A1 (en) Method and device for testing volte network performance
CN108770011A (en) Gateway automatization test system and method based on specialized media gateway control protocol
CN104717375B (en) A kind of method and apparatus for realizing saving power for terminal
CN103916893A (en) Service local switch method and LTE network device
CN102281293A (en) Method and system for transmitting transmission control protocol (TCP) type session media stream
CN101848436A (en) Method, device and system for transmitting short message status report
CN105848112B (en) The implementation method and device of long term evolution LTE Trouble ticket station multicast
WO2010145150A1 (en) Customer service system and cross-platform monitoring method thereof
CN105554319B (en) Call module testing method
CN108347368A (en) A kind of instant communication method, device send terminal and receive terminal
CN113053374A (en) Large screen control system
CN100518213C (en) Method and system for realizing legal monitoring business
CN101166121B (en) A call testing method and device for high traffic

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant