CN108770011B - Gateway automatic test system and method based on special media gateway control protocol - Google Patents

Gateway automatic test system and method based on special media gateway control protocol Download PDF

Info

Publication number
CN108770011B
CN108770011B CN201810427514.3A CN201810427514A CN108770011B CN 108770011 B CN108770011 B CN 108770011B CN 201810427514 A CN201810427514 A CN 201810427514A CN 108770011 B CN108770011 B CN 108770011B
Authority
CN
China
Prior art keywords
message
gateway
call
module
state machine
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.)
Active
Application number
CN201810427514.3A
Other languages
Chinese (zh)
Other versions
CN108770011A (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 COMMUNICATION TECHNOLOGY CO LTD
Data communication science and technology research institute
Original Assignee
XINGTANG COMMUNICATION TECHNOLOGY CO LTD
Data communication science and technology research institute
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 COMMUNICATION TECHNOLOGY CO LTD, Data communication science and technology research institute filed Critical XINGTANG COMMUNICATION TECHNOLOGY 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

Images

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)
  • Telephonic Communication Services (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to a gateway automatic test system and a method based on a special media gateway control protocol, wherein the system is connected with a media intercommunication gateway to realize the automatic test of the call function of the media intercommunication gateway, and specifically comprises a registration function module, an authentication service module, a message receiving and distributing module, a call management module, a calling state machine and a voice data processing module. The invention makes up the defects of manual testing, improves the testing efficiency and solves the problem that the testing requirements of the special intercommunication gateway cannot be met; the requirement of simultaneous testing of the performance and the stability of the media gateway is met, the defect that the different-network intercommunication gateway cannot be comprehensively tested in the actual environment is effectively overcome, and the development of the different-network intercommunication gateway is guaranteed.

Description

Gateway automatic test system and method based on special media gateway control protocol
Technical Field
The invention relates to the technical field of communication, in particular to a gateway automatic test system and a method based on a special media gateway control protocol.
Background
In recent years, with the rapid development of mobile communication technology, mobile communication has transitioned from the 3G era to the 4G era, and is currently evolving to the 5G era, and different network standards appear, and different networks need to be interconnected and intercommunicated. In special application areas, users also put demands on the security of the network, resulting in private mobile communication systems. The interworking of different devices requires the provision of a dedicated interworking gateway. Before formal use, the interworking gateway needs to be tested comprehensively. The test can effectively ensure the product quality, timely find potential errors of the product, help developers to correct the errors in time and improve the product quality.
In the product development process, in order to ensure the product quality, repeated tests and regression tests are often required to be carried out on the product, and if the traditional manual test is adopted, a large amount of manpower, material resources and time are consumed.
At present, the skills of testers of a common test team are uneven, and manual tests are mainly relied on in the test team. The test needs to participate in the whole development process, and after the application system is on line, a development team still needs to divide a part of personnel to perform daily maintenance and BUG repair on the on-line system. Statistical tests take up to 40% of the development time, some very highly reliable software, and testing time even up to 60% of the development time, where many operations are repetitive, non-intellectual, and non-creative.
Disclosure of Invention
In view of the above analysis, the present invention aims to provide an automatic gateway testing method based on a dedicated media gateway control protocol, which overcomes the drawbacks of manual testing and improves the testing efficiency.
The purpose of the invention is mainly realized by the following technical scheme:
a gateway automatic test system based on media gateway control protocol comprises a message receiving and distributing module, a call management module, a calling state machine and a voice data processing module;
the message receiving and distributing module monitors the communication interface, receives the message sent by the media intercommunication gateway, analyzes the message type and distributes the message according to the message type;
the call management module receives the message related to the call sent by the message receiving and distributing module, outputs control information to the calling state machine and controls the state of the calling state machine;
the calling state machine receives the control information of the call management module, sends state information to the gateway and the voice data processing module for conversation according to the request of a calling user, controls the call state and carries out automatic test on the media intercommunication gateway;
and the voice data processing module realizes the communication between users through the media intercommunication gateway according to the state information of the calling state machine.
Further, the calling state machine creates, maintains or destroys the calling state according to the control information.
Further, when the calling state machine initiates a call, the calling state machine sends a call connection channel control to the gateway, and sends a command for starting a calling UDP (user datagram protocol) receiving and sending thread to the voice data processing module; when the call is finished or the abnormity occurs in the test process, the media resource control is sent to the gateway, and the UDP receiving and sending thread of the calling party and the called party is sent to the voice data processing module.
Further, the voice data processing module comprises a sending module and a receiving module, and the sending module sends the received call data packet to the gateway; and the receiving module receives the call data packet sent by the gateway.
Further, the system also comprises a registration function module and an authentication service module;
the registration function module receives the message related to the registration service sent by the message receiving and distributing module, and realizes the registration of the media resource of the media intercommunication gateway network;
the authentication service module receives the message related to the authentication service sent by the message receiving and distributing module, and realizes the authentication of the media intercommunication gateway to different types of networks.
An automated testing method for a call function of a media gateway comprises the following steps:
step S1, starting the automatic test of the conversation function, and the call management module creates and initializes the state of the calling state machine;
step S2, the calling state machine applies for media resource to the gateway and waits for confirming the state information;
step S3, the gateway sends confirmation status information, after the calling state machine confirms that the media resource application is successful, the calling state machine switches on a speech path and starts a calling UDP receiving and sending thread and a called UDP receiving and sending thread;
step S4, the calling party and the called party carry out communication, and the calling state machine maintains the communication state;
step S5, after the call is finished, the calling state machine releases the media resource.
Further, in step S2, the calling state machine sends a request message for applying for media resource to the gateway, and simultaneously jumps to a media resource application state to wait for an ACK message replied by the processing unit of the media interworking gateway.
Further, step S3 includes:
1) after the gateway replies the ACK message of the media resource request message, the message receiving and distributing module receives the ACK message and analyzes the message format, and the message is forwarded to the call management module according to the message type, and the call management module forwards the message to the calling state machine;
2) after receiving the ACK message, the calling state machine sends a control message to inform the calling and called numbers of the media intercommunication gateway and skips to a waiting confirmation state;
3) after receiving the calling and called numbers, the media intercommunication gateway replies a confirmation message to the message receiving and sending module, the message receiving and sending module successfully analyzes the confirmation message and sends the confirmation message to the call management module, and the call management module forwards the message to the calling state machine;
4) after the calling state machine confirms that the media resource application is successful, a speech path is connected, and a UDP receiving and sending thread of the calling party and the called party is started.
Further, if the message transceiver module in 3) fails to analyze the confirmation message, outputting a message to the call management module to prompt that the message analysis fails, and the calling state machine releases the speech path and returns to the initialization state.
Further, after the call is finished, a hang-up flow is automatically triggered, the call management module informs the calling state machine of hanging up a call path, the calling state machine sends a message of releasing media resources and jumps to a state of waiting for finishing confirmation, and after the gateway replies an ACK message, the call is finished and related call path resources are released.
The invention has the following beneficial effects:
1. the method makes up the defects of manual testing, improves the testing efficiency, and solves the problem that some common automatic testing software such as LoadRunner and the like can not meet the testing requirements of the special intercommunication gateway;
2. the method simultaneously solves the problem that the media gateway can not be tested in performance, stability and the like, and a large amount of manpower and material resources are required to be input for the performance test in a development stage or a final trial stage.
Drawings
The drawings are only for purposes of illustrating particular embodiments and are not to be construed as limiting the invention, wherein like reference numerals are used to designate like parts throughout.
Fig. 1 is a flow chart of automated testing of call function of a media gateway.
Detailed Description
The preferred embodiments of the present invention will now be described in detail with reference to the accompanying drawings, which form a part hereof, and which together with the embodiments of the invention serve to explain the principles of the invention.
The invention discloses a gateway automatic test system based on a special media gateway control protocol, which is connected with a media intercommunication gateway to realize the automatic test of the call function of the media intercommunication gateway; the media intercommunication gateway can realize the conversion intercommunication of various sound code media resources and the safety intercommunication of various network media when the voice intercommunication of the special mobile communication system user and other network users is realized.
The system specifically comprises a registration function module, an authentication service module, a message receiving and distributing module, a call management module, a calling state machine and a voice data processing module;
the message receiving and distributing module monitors a communication interface, receives a message sent by the media intercommunication gateway, analyzes the type of the message and distributes the message according to the type of the message;
the call management module receives the message related to the call sent by the message receiving and distributing module, outputs control information to the calling state machine and controls the state of the calling state machine;
the calling state machine receives the control information of the call management module, and sends the state information to the gateway and the voice data processing module for communication according to the request of the calling user to control the call state;
and the voice data processing module realizes the conversation between the users through the media intercommunication gateway according to the state information of the calling state machine.
The call management module receives a special media gateway control protocol related to the call sent by the message receiving and distributing module, and realizes the establishment and destruction of a calling state machine, wherein the calling state machine is established when the call is initiated; destroying the call when the call is ended or abnormality occurs in the test process; and realizing the distribution of the message to the instance of the calling state machine.
Specifically, the message receiving and distributing module processes the message into a special format of a special media gateway control protocol message; distributing the message according to the message type, and sending a special media gateway control protocol related to the registration service to the registration function module to realize the registration of the media resource of the media intercommunication gateway network;
sending a special media gateway control protocol related to the authentication service to an authentication service processing module; realizing the registration of media resources of a media intercommunication gateway network;
and the authentication service module receives the information related to the authentication service to realize the authentication of the media intercommunication gateway on different types of networks.
Particularly, the calling state machine processes the calling request of the user and the subsequent related requests and messages, migrates the calling state according to the current state and the message type, and controls the media processing; the main functions are as follows: maintaining a call state; processing the media message; and the creation and destruction of a UDP data receiving instance and a UDP sending instance are realized.
Specifically, the voice data processing module sets to send and receive a UDP data packet according to the indication of the calling state machine, and comprises a sending module and a receiving module, wherein the sending module sends the received call data packet to the media gateway; the receiving module receives a call data packet sent by the media gateway.
An automated testing method for a call function of a media gateway specifically comprises the following steps:
step S1, starting the automatic test of the conversation function, and the call management module creates and initializes the state of the calling state machine;
wherein the initialization is performed according to a configuration file.
Step S2, the calling state machine applies for media resource to the media gateway, and waits for confirming the state information;
after the calling state machine is established, a request message for applying the media resource is sent to the media gateway to apply for the media resource, and simultaneously, the calling state machine jumps to a media resource application state to wait for an ACK message replied by the media gateway processing unit, if the ACK message is not received, the media gateway is indicated to have problems.
Step S3, the media gateway sends confirmation status information, after the calling state machine confirms that the media resource application is successful, the calling state machine switches on a speech path and starts a calling UDP receiving and sending thread and a called UDP receiving and sending thread;
specifically, step S3 includes:
1) after the media gateway replies the ACK message of the media resource request message, the message receiving and distributing module receives the ACK message and analyzes the message format, and the message is forwarded to the call management module according to the message type, and the call management module forwards the message to the calling state machine;
2) after receiving the ACK message, the calling state machine sends a control message to inform the calling and called numbers of the media gateway and skips to a waiting confirmation state;
3) after receiving the calling and called numbers, the media gateway replies a confirmation message to the message receiving and sending module, the message receiving and sending module successfully analyzes the confirmation message and sends the confirmation message to the call management module, and the call management module forwards the message to the calling state machine; if the message receiving and sending module fails to analyze the confirmation message, outputting a message to the call management module to prompt that the message analysis fails, and the calling state machine releases the speech path and returns to the initialization state to indicate that the media gateway has a problem;
4) after the calling state machine confirms that the media resource application is successful, a speech path is connected, and a UDP receiving and sending thread of the calling party and the called party is started.
Step S4, the calling party and the called party carry out communication, and the calling state machine maintains the communication state;
after receiving the success message, the calling state machine maintains the call state according to the time of compiling the test case;
step S5, after the call is finished, the calling state machine releases the media resource.
After the conversation is finished, automatically triggering a hang-up flow, informing a calling state machine of hanging up a speech path by a call management module, after the calling state machine confirms the hang-up speech path, closing a UDP (user datagram protocol) receiving and sending thread of a calling party and a called party, sending a media resource releasing message to a media gateway, and jumping to a state waiting for finishing confirmation;
the media gateway replies an ACK message to the message receiving and distributing module, the message receiving and distributing module receives the ACK message and analyzes the message format, the ACK message is forwarded to the call management module according to the message type, the call management module forwards the message to the calling state machine, the calling state machine is enabled to enter an idle state, and the conversation is finished.
In the simulation process, each step is a key test point, and the tester effectively simulates the interaction between the signaling and the media of the media gateway in the real use process, so that the existing problems can be found in advance, and research personnel can correct the problems in time. The special media gateway control protocol used in the test process can make up the deficiency of the universal automatic test method in the special media gateway test. The signaling layer completes the signaling control of the speech path (comprising two channels) and the transmission of the special information; and the media layer completes the transmission of media data and the transmission of special information.
In summary, the system and the method for automatically testing a gateway based on a dedicated media gateway control protocol provided in this embodiment make up for the disadvantage of manual testing, improve the testing efficiency, and solve the problem that some currently general automated testing software, such as LoadRunner, cannot meet the testing requirements of a dedicated interworking gateway; the method can be used for carrying out comprehensive performance test on the media gateway before practical application, effectively overcomes the defect that the different-network intercommunication gateway cannot be tested comprehensively in a practical environment, and provides guarantee for research and development of the different-network intercommunication gateway.
Those skilled in the art will appreciate that all or part of the flow of the method implementing the above embodiments may be implemented by a computer program, which is stored in a computer readable storage medium, to instruct related hardware. The computer readable storage medium is a magnetic disk, an optical disk, a read-only memory or a random access memory.
The above description is only for the preferred embodiment of the present invention, but the scope of the present invention is not limited thereto, and any changes or substitutions that can be easily conceived by those skilled in the art within the technical scope of the present invention are included in the scope of the present invention.

Claims (10)

1. A gateway automatic test system based on media gateway control protocol is characterized by comprising a message receiving and distributing module, a call management module, a calling state machine and a voice data processing module;
the message receiving and distributing module monitors the communication interface, receives the message sent by the media intercommunication gateway, analyzes the message type and distributes the message according to the message type;
the call management module receives the message related to the call sent by the message receiving and distributing module, outputs control information to the calling state machine and controls the state of the calling state machine;
the calling state machine receives the control information of the call management module, sends state information to the gateway and the voice data processing module for conversation according to the request of a calling user, controls the call state and carries out automatic test on the media intercommunication gateway;
and the voice data processing module realizes the communication between users through the media intercommunication gateway according to the state information of the calling state machine.
2. The gateway automated test system of claim 1, wherein the calling state machine creates, maintains, or destroys call states based on control information.
3. The gateway automation test system of claim 2, wherein the calling state machine sends a call connection control to the gateway when initiating a call, and sends a command to start a calling UDP transceiving thread to the voice data processing module; when the call is finished or the abnormity occurs in the test process, the media resource control is sent to the gateway, and the UDP receiving and sending thread of the calling party and the called party is sent to the voice data processing module.
4. The gateway automation test system of claim 1, wherein the voice data processing module comprises a sending module and a receiving module, and the sending module sends the received call data packet to the gateway; and the receiving module receives the call data packet sent by the gateway.
5. The gateway automated testing system of claim 1, further comprising a registration function module and an authentication service module;
the registration function module receives the message related to the registration service sent by the message receiving and distributing module, and realizes the registration of the media resource of the media intercommunication gateway network;
the authentication service module receives the message related to the authentication service sent by the message receiving and distributing module, and realizes the authentication of the media intercommunication gateway to different types of networks.
6. An automated testing method for a call function of a media gateway is characterized by comprising the following steps:
step S1, starting the automatic test of the conversation function, and the call management module creates and initializes the state of the calling state machine;
step S2, the calling state machine applies for media resource to the gateway and waits for confirming the state information;
step S3, the gateway sends confirmation status information, after the calling state machine confirms that the media resource application is successful, the calling state machine switches on a speech path and starts a calling UDP receiving and sending thread and a called UDP receiving and sending thread;
step S4, the calling party and the called party carry out communication, and the calling state machine maintains the communication state;
step S5, after the call is finished, the calling state machine releases the media resource.
7. The method according to claim 6, wherein in step S2, the calling state machine sends a request message for applying media resources to the gateway, and simultaneously jumps to a media resource application state to wait for an ACK message returned by the processing unit of the media interworking gateway.
8. The automated testing method for call functions of claim 6, wherein step S3 comprises:
1) after the gateway replies the ACK message of the media resource request message, the message receiving and distributing module receives the ACK message and analyzes the message format, and the message is forwarded to the call management module according to the message type, and the call management module forwards the message to the calling state machine;
2) after receiving the ACK message, the calling state machine sends a control message to inform the calling and called numbers of the media intercommunication gateway and skips to a waiting confirmation state;
3) after receiving the calling and called numbers, the media intercommunication gateway replies a confirmation message to the message receiving and sending module, the message receiving and sending module successfully analyzes the confirmation message and sends the confirmation message to the call management module, and the call management module forwards the message to the calling state machine;
4) after the calling state machine confirms that the media resource application is successful, a speech path is connected, and a UDP receiving and sending thread of the calling party and the called party is started.
9. The automated testing method of call functions of claim 8,
if the message is unsuccessfully analyzed by the message transceiver module in 3), outputting a message to the call management module to prompt that the message analysis is failed, and releasing the speech path and returning to the initialization state by the calling state machine.
10. The automated testing method of call functions of claim 6,
and after the call is finished, the hang-up flow is automatically triggered, the call management module informs the calling state machine of hang-up of the call path, the calling state machine sends a message for releasing the media resources and jumps to a state for waiting for finishing and confirming, and after the gateway replies an ACK message, the call is finished and the related call path resources are released.
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 CN108770011A (en) 2018-11-06
CN108770011B true 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
CN108770011A (en) 2018-11-06

Similar Documents

Publication Publication Date Title
US6011830A (en) Operational test device and method of performing an operational test for a system under test
CN109525461B (en) Network equipment testing method, device, equipment and storage medium
CN107241315B (en) Access method and device of bank gateway interface and computer readable storage medium
CN113037616B (en) Interactive method and device for cooperatively controlling multiple robots
CN108376115B (en) Automatic testing method and system across Android platform
CN110297753A (en) A kind of method and system for verifying software version
CN104426715B (en) A kind of distributed testing tool control method
US11650892B1 (en) Resilient coordination, command, and control of widely distributed test agents
CN108770011B (en) Gateway automatic test system and method based on special media gateway control protocol
CN101217293B (en) Media operation trusteeship switching system and method
CN101662543B (en) Method and system for evaluating availability of voice service
CN102393887B (en) Application centralized management system and method based on Linux security module (LSM) mechanism
US20120320877A1 (en) Method, System and Base Station Subsystem for Realizing Handover in Local Switch
CN114710471B (en) Customer service voice communication method and device based on network, electronic equipment and medium
CN113053374B (en) Large screen control system
CN112217850B (en) Remote control processing method, device, equipment, server and storage medium
CN108337244B (en) SIP protocol-based intercom communication method, server, medium and equipment
CN109981796A (en) A kind of connection method and device
CN112069051A (en) PUSH time-consuming testing method and terminal
JP2006352625A (en) Communication test apparatus, communication test system, communication test method, and communication test program
CN103973519A (en) Simulation testing system of switching center based on PC (Personal Computer) platform
CN102761518A (en) Communication method and server supporting multiple socket connection modes
CN112804105B (en) Method and system for rapidly repairing terminal communication faults in RTC network
CN107395625B (en) Method for realizing steady-state call redundancy of soft switching equipment
CN115344473A (en) Software testing method, device, terminal, server and storage medium

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