Summary of the invention
The technical problem to be solved in the present invention provides a kind of instrument, system and method for networking simulation test, realizes simulation, the test of complicated network environment with low cost.
For solving the problems of the technologies described above, the invention provides a kind of networking simulation test instrument, this networking simulation test instrument provides virtual soft switch and virtual gateway according to user's configuration data, by the simulation test of packet pass-through mode realization to complicated network environment.
Further, this networking simulation test instrument is supported IP layer network main flow communications protocol, comprises data configuration module, IP layer data packet capturing module, IP bag letter sorting module, carrier signaling modification forwarding module and packet forwarding control module, wherein,
The data configuration module is used for carrying out data interaction with the user, fictionalizes corresponding soft switch or gateway according to user's configuration needs on network;
The pattern that IP layer data packet capturing module is used to adopt the network packet capturing to handle is carried out the network packet capturing at the IP layer;
Carrier signaling is revised forwarding module and is used in conjunction with user's configuration data analysis the IP that catches being guaranteed the repair free of charge and changes and pass-through mode, the signaling that directly or indirectly is carried on IP network is modified as satisfactory virtual soft switch or media gateway signaling, and is sent to destination address;
Packet is transmitted control module and is used for increasing at any time as required, deletes, starts, suspends, stops one or more packets forwardings.
Further, this networking simulation test instrument also comprises IP bag letter sorting module, this IP bag letter sorting module is used for the IP bag that the soft switch of will register and gateway send and sorts out from IP network, and carrier signaling modification forwarding module is only handled the IP that is sorted out and wrapped.
Further, this networking simulation test instrument is supported a subdata bag forwarding operation simultaneously of a plurality of different purposes, and separate between each subdata bag forwarding item, and the fault of a packet forwarding item can not influence the operation of other packet forwarding capabilitys.
A kind of networking simulation test system, this system comprises a cover Softswitch and a cover media gateway device, this system also comprises a computer that the networking simulation test instrument is housed, this networking simulation test instrument provides virtual soft switch and virtual gateway according to user's configuration data, by the simulation test of packet pass-through mode realization to complicated network environment.
Further, this networking simulation test instrument is supported IP layer network main flow communications protocol, comprises that data configuration module, IP layer data packet capturing module, carrier signaling are revised forwarding module and packet is transmitted control module, wherein,
The data configuration module is used for carrying out data interaction with the user, fictionalizes corresponding soft switch or gateway according to user's configuration needs on network;
The pattern that IP layer data packet capturing module is used to adopt the network packet capturing to handle is carried out the network packet capturing at the IP layer;
Carrier signaling is revised forwarding module and is used in conjunction with user's configuration data analysis the IP that catches being guaranteed the repair free of charge and changes and pass-through mode, the signaling that directly or indirectly is carried on IP network is modified as satisfactory virtual soft switch or media gateway signaling, and is sent to destination address;
Packet is transmitted control module and is used for increasing at any time as required, deletes, starts, suspends, stops one or more packets forwardings.
Further, this networking simulation test instrument also comprises IP bag letter sorting module, this IP bag letter sorting module is used for the IP bag that the soft switch of will register and gateway send and sorts out from IP network, and carrier signaling modification forwarding module is only handled the IP that is sorted out and wrapped.
A kind of networking simulation test method, this method based on system comprise a cover Softswitch and cover media gateway device and the computer that the networking simulation test instrument is housed, the at first combination of registration one or more " virtual soft switch-Virtual Media Gateways " on the networking simulation test instrument makes the networking simulation test instrument know the routing direction and the forwarding form of IP bag; The IP bag that soft switch or media gateway send is made amendment to the IP bag by the computer that the networking simulation test instrument is housed and is forwarded to corresponding virtual soft switch or Virtual Media Gateway.
Further, this simulation test instrument is supported IP layer network main flow communications protocol, and its workflow may further comprise the steps:
(a) the loading data bag is transmitted configuration data, and configuration item comprises packet forward mode and the critical data under concrete forward mode;
(b) user starts one or more packets forwarding items, and when carrying out networking simulation test, the user increases, deletes, starts, suspends, stops one or more packets at any time and transmits, with the various faults of IP network in the simulated field environment;
(c) the networking simulation test instrument carries out the network packet capturing at the IP layer;
(d) the IP bag is carried out signalling analysis, determine the protocol type of signaling,, then abandon this packet and change execution in step (c), proceed the network packet capturing if the networking testing tool does not dispose the corresponding protocol type, otherwise execution in step (e);
(e) transmit item number according to the processing mode of determining signaling according to the packet of user's registration, generate new packet;
(f) the forwarding type according to configuration is forwarded to destination address with packet.
Further, only the user is registered the IP bag in the step (d) and carry out signalling analysis.
Compared to prior art, networking simulation test instrument of the present invention, system and method, only need increase an IP address of PC, the soft switch side just is equivalent to increase in the network media gateway of overlapping complete function, just has been equivalent in network, increase the soft switch of a cover complete function for the media gateway side.So just can build the on-the-spot network environment of a complexity rapidly, thereby carry out site environment simulation or test to be almost 0 cost.Like this can the simulated field environment, field failure is gone out significant response rapidly, also can enlarge test specification, reduce fault to greatest extent and leak, save maintenance cost.
Embodiment
Networking simulation test instrument of the present invention provides virtual soft switch and virtual gateway according to user's configuration data, by the simulation test of packet pass-through mode realization to complicated network environment.
As shown in Figure 1, this networking simulation test instrument comprises data configuration module, IP layer data packet capturing module, IP bag letter sorting module, carrier signaling revises forwarding module and packet is transmitted control module, wherein:
Data configuration module: carry out data interaction with the user, on network, fictionalize corresponding soft switch or gateway according to user's configuration needs.The data configuration mould has determined the standard of IP bag letter sorting soon, promptly according to which kind of mode sorts.
The networking simulation test instrument supports the subdata bag of a plurality of different purposes to transmit item operation simultaneously.
IP layer data packet capturing module: the pattern that adopts the network packet capturing to handle is carried out the network packet capturing at the IP layer, but not the C/S model of employing legacy network instrument, so just need not any client-side program of operation on soft switch or media gateway, and the mode of this passive forwarding makes all packets transmit to be provided with all to carry out that it is rapid, convenient to realize that environment is set up on PC.
IP bag letter sorting module: the IP bag of soft switch and gateway transmission is sorted out from IP network.
Through the letter sorting of IP bag, the networking simulation test instrument is only handled the IP bag that was registered, and has alleviated the load of networking simulation test instrument like this, and has done preliminary preparation for signaling sorts.
Carrier signaling is revised forwarding module: in conjunction with user's configuration data analysis this IP is guaranteed the repair free of charge and change and pass-through mode, the signaling that directly or indirectly is carried on IP network is modified as satisfactory virtual soft switch (media gateway) signaling, and is sent to destination address.
Packet is transmitted control module: increase, delete, start, suspend, stop one or more packets as required at any time and transmit, by no longer needing physical equipment is operated during the IP network fault in this functional simulation site environment.Packet is transmitted control module and has been determined carrier signaling to revise the operating state of forwarding module, as suspending, continue, stopping.
Each subdata bag is transmitted between item separate, and the fault of a packet forwarding item can not influence the operation of other packet forwarding capabilitys.
Fig. 2 is the hierarchical diagram of networking simulation test instrument supported protocol, and this is consistent with the standard communications protocol.Wherein UDP layer and SCTP layer are the main agreements that this instrument is supported at present, three layer protocols on its basis: MGCP, SIP, M3UA, IUA, SUA, M2UA/M2PA etc. have comprised the most of agreement in the current communication apparatus, if other agreement bag data do not relate to yet can realizing via the secondary forwarding capability of this networking simulation test instrument of IP network or port.The networking simulation test instrument can process IP layer network main flow communications protocol.
Adopt test macro schematic diagram that networking simulation test instrument of the present invention tests test environment as shown in Figure 3, this networking simulation test system comprises a cover Softswitch, one cover media gateway device and networking simulation test PC, this networking simulation test PC (i.e. Xin Lingdaili PC among the figure) is equipped with networking simulation test instrument among the present invention, this networking simulation test instrument provides virtual soft switch and virtual gateway according to user's configuration data, realize complicated networking, physics soft switch among the figure, physical media gateway MG is in esse communication apparatus, virtual soft switch 1, virtual soft switch 2, virtual MG1, virtual MG2 is and uses behind the networking simulation test instrument communication apparatus of virtual presence on network.
Below be that example describes networking simulation test method of the present invention with virtual soft switch 1, Virtual Media Gateway MG1: the at first combination of registration " virtual soft switch-virtual MG1 " on the networking simulation test instrument makes the networking simulation test instrument know the routing direction of IP bag and transmits form.The IP bag that soft switch or media gateway send is made amendment to the IP bag by the computer that the networking simulation test instrument is housed and is forwarded to corresponding virtual soft switch or Virtual Media Gateway.What virtual soft switch and virtual MG end disposed all uses networking simulation test PC data to end data.Like this when MG when its soft switch sends signaling, the actual networking simulation test PC that has been sent to of signaling.Networking simulation test PC ability is not certainly handled this signaling, but the networking simulation test PC knows that how this signaling being carried out part revises, being sent to virtual soft switch then, for soft switch, just looks like to be that the networking simulation test PC is a MG who sends signaling like this.Soft switch processes signaling and return results also is according to arriving the networking simulation test PC earlier, arrive the order of virtual MG again, like this for virtual MG, the signaling of sending has been as having been handled by the networking simulation test PC, so just realized signalling correlated between virtual soft switch and the virtual MG.Can dispose a plurality of this combinations in the networking, and realize complicated networking.
Signaling by networking simulation test instrument control provided by the present invention, simulation, the transmission of modification network layer, coordinate the working method of soft switch and media gateway, especially to the modification and the forwarding of IP layer signaling, the signaling that makes soft switch (media gateway) be received can be determined by the networking simulation test instrument.For soft switch (media gateway), what carry out Signalling exchange with it is a media gateway (soft switch) by the control of networking simulation test instrument.The most important data of IP layer marking equipment are IP addresses, therefore the PC at networking simulation test instrument place increases an IP address, on the network just quite with many media gateway (soft switch) by the control of networking simulation test instrument, the processor of signaling remains soft switch or the media gateway that physics exists, can guarantee signaling by correct processing, so just reach the purpose that realizes complicated networking test with least cost.
Networking simulation test method of the present invention based on system comprise a cover Softswitch and cover media gateway device and the computer that the networking simulation test instrument is housed, the at first combination of registration one or more " virtual soft switch-Virtual Media Gateways " on the networking simulation test instrument makes the networking simulation test instrument know the routing direction and the forwarding form of IP bag; The IP bag that soft switch or media gateway send is made amendment to the IP bag by the computer that the networking simulation test instrument is housed and is forwarded to corresponding virtual soft switch or Virtual Media Gateway.
Fig. 4 is the workflow diagram of networking simulation test instrument of the present invention:
Step 401: the packet that loads historical configuration is transmitted configuration data, and configuration item comprises packet forward mode and the critical data (as IP, port etc.) under concrete forward mode, is configured in according to this and fictionalizes corresponding soft switch or gateway on network;
At first load the packet forwarding configuration data of historical configuration behind the program start, avoid starting the back program so at every turn and all will packet forwarding item commonly used be configured.
Step 402: the user starts one or more packets and transmits item, and the networking simulation test instrument begins to enter operating state.
When carrying out networking simulation test, the user can increase, delete, starts, suspends, stops one or more packets at any time and transmit, and with the various faults of IP network in the simulated field environment, carries out networking simulation test better.
Step 403: the networking simulation test instrument carries out the network packet capturing at the IP layer;
Step 404: judge the source IP packet format that certain packet that whether the IP bag catch meets user's registration is transmitted, if execution in step 405 then, otherwise abandon this packet and change execution in step 403;
Can reduce the operating load of networking simulation test instrument like this, guarantee that the networking simulation test instrument efficiently moves.
Step 405: the IP bag is carried out signalling analysis, determine the protocol type of signaling,, then abandon this packet and change execution in step 403, proceed the network packet capturing if the networking testing tool does not dispose the corresponding protocol type, otherwise execution in step 406;
Step 406: transmit item number according to the processing mode of determining signaling according to the packet of user's registration, generate new packet, that is: smash existing signaling, therefrom extract core data, according to packet forward mode and related protocol standard signaling is recombinated, generate new packet, this bag has carried the core data that extracts previously.
Particularly, networking Wireless Test Toolset of the present invention is supported UDP and this two kind of two layer signaling protocol of SCTP and MGCP, the SIP under this two layer signaling protocol, M3UA, IUA, SUA, M2UA/M2PA three layer signaling protocols respectively, can carry out two layers of signaling process or three layers of signaling process to signaling according to signaling type, as shown in Figure 5, wherein
Two layers of signaling process: signaling is analyzed definite signaling protocol be two layer signaling protocols of networking simulation test instrument support and do not have corresponding three layer signaling protocols, then transmit item number according to handling at UDP and these two kinds of basic signaling datas of SCTP in conjunction with the packet of user's registration, the packet that the networking simulation test instrument is received has just become UDP or SCTP bag that the networking simulation test instrument will send.
Three layers of signaling process: signaling is analyzed definite signaling protocol be two layer signaling protocols of networking simulation test instrument support and corresponding three layer signaling protocols are arranged, then transmit item number in conjunction with the packet of user's registration and handle according to carry out signaling data at three layer signaling protocols, the packet that the networking simulation test instrument is received has just become MGCP, SIP that the networking simulation test instrument will send, M3UA, IUA, SUA, M2UA/M2PA bag.
Step 407: the forwarding type according to configuration is forwarded to destination address with packet, changes execution in step 403, proceeds the network packet capturing.
Use networking simulation test instrument of the present invention, system and method, only need increase an IP address (cost is 0) of PC, the soft switch side just is equivalent to increase in the network media gateway of overlapping complete function, just has been equivalent in network, increase the soft switch of a cover complete function for the media gateway side.So just can build the on-the-spot network environment of a complexity rapidly, thereby carry out site environment simulation or test to be almost 0 cost.Like this can the simulated field environment, field failure is gone out significant response rapidly, also can enlarge test specification, reduce fault to greatest extent and leak, save maintenance cost.