CN111352778B - Network simulation processing method and device, electronic equipment and storage medium - Google Patents

Network simulation processing method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN111352778B
CN111352778B CN202010120704.8A CN202010120704A CN111352778B CN 111352778 B CN111352778 B CN 111352778B CN 202010120704 A CN202010120704 A CN 202010120704A CN 111352778 B CN111352778 B CN 111352778B
Authority
CN
China
Prior art keywords
simulation
data packet
network
loss rate
transmission delay
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
CN202010120704.8A
Other languages
Chinese (zh)
Other versions
CN111352778A (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.)
Nanjing Creatcomm Technology Co ltd
Original Assignee
Nanjing Creatcomm Technology Co ltd
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 Nanjing Creatcomm Technology Co ltd filed Critical Nanjing Creatcomm Technology Co ltd
Priority to CN202010120704.8A priority Critical patent/CN111352778B/en
Publication of CN111352778A publication Critical patent/CN111352778A/en
Application granted granted Critical
Publication of CN111352778B publication Critical patent/CN111352778B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/22Detection or location of defective computer hardware by testing during standby operation or during idle time, e.g. start-up testing
    • G06F11/2273Test methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/30Monitoring
    • G06F11/34Recording or statistical evaluation of computer activity, e.g. of down time, of input/output operation ; Recording or statistical evaluation of user activity, e.g. usability assessment
    • G06F11/3457Performance evaluation by simulation

Abstract

The embodiment of the invention discloses a simulation processing method, a simulation processing device, electronic equipment and a storage medium of a network, wherein the method comprises the following steps: the network simulator determines the simulation transmission delay of the network according to the preset delay time, and determines the simulation packet loss rate of the network according to the preset packet loss rate; receiving a service simulation instruction, generating a simulation data packet according to the service simulation instruction, and sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate; receiving simulation data returned by the test terminal, and calculating according to the simulation data to obtain a simulation result; according to the embodiment of the invention, after the network simulator is connected with the test terminal in a wired or wireless mode, the simulation test is carried out according to the preset simulation transmission delay and the simulation packet loss rate, so that the network simulator is low in price, convenient to carry and good in expansibility, and can be applied to wired and wireless networks.

Description

Network simulation processing method and device, electronic equipment and storage medium
Technical Field
The embodiment of the invention relates to the technical field of network simulation, in particular to a network simulation processing method, a network simulation processing device, electronic equipment and a storage medium.
Background
The network simulation is a high and new technology for simulating network behavior by using a mathematical modeling and statistical analysis method, and simulating the transmission of network traffic by establishing a statistical model of network equipment and network links, thereby obtaining network performance data required by network design and optimization. Conditions for network impairment simulation include the presence in a real wide area network: limited bandwidth, delay, packet loss, jitter, out of order, repeated packets, competing traffic, congestion, bit errors, etc. These conditions may reduce the performance of the application for network applications and are sometimes fatal.
The simulation method of the existing network mainly comprises the following three steps:
1) Simulation using a network simulator
At a basic level, the network simulator uses mathematical formulas to create network theory and a fully virtual network model. Simulators are software solutions, different types being available for different applications. Although they are mainly used for research and educational purposes, they can also be used as key test tools in network design and development. Testing a network in this manner may save time and money, but network simulators are not without limitation. These highly complex operations require a degree of experience and training to properly configure to obtain reliable results. In addition, network simulators are not practical because certain events cannot be expected independently of the physical network.
2) Simulation using a large network simulator
A network simulator (also called a WAN simulator) is used to test performance under a real network. These devices may also be used for quality assurance, concept verification or troubleshooting purposes. The network simulator is provided as a hardware or software solution that allows network architects, engineers and developers to accurately evaluate the application's responsiveness, throughput and end-user quality of experience before making changes or additions to the application system. By physically placing it between two LAN segments, the network emulator can accurately replicate the client-to-server WAN connection without the need for routers, modems, etc. Bandwidth constraints and impairments (e.g., packet loss, delay, and jitter) can then be applied to the mirrored network. Delays may be specified to simulate the remote transmission of data, the behavior and response of an application as if the client and server were physically separated in nature. Application performance and end user experience can then be observed, tested and verified in real time under such conditions. Such large network simulators are versatile and excellent in performance, but require high operating requirements, are expensive and are inconvenient to carry.
3) Simulation using network simulation software
Some network simulation software is installed on the PC to be converted into a network simulator. However, the PC has large volume and is inconvenient to carry; the network interface is less, the expansibility is poor, and the price of the network simulation software is more expensive.
In summary, in the prior art, simulation tests are only performed on a wired network, and a network simulation method for a wireless network is absent.
Disclosure of Invention
Because the existing method has the problems, the embodiment of the invention provides a network simulation processing method, a network simulation processing device, electronic equipment and a storage medium.
In a first aspect, an embodiment of the present invention provides a method for simulating a network, including:
the network simulator determines the simulation transmission delay of the network according to the preset delay time, and determines the simulation packet loss rate of the network according to the preset packet loss rate;
receiving a service simulation instruction, generating a simulation data packet according to the service simulation instruction, and sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate;
receiving simulation data returned by the test terminal, and calculating according to the simulation data to obtain a simulation result;
the network simulator is connected with the test terminal in a wired mode or a wireless mode.
Optionally, the network simulator determines the simulated transmission delay of the network according to the preset delay time, and specifically includes:
the network simulator determines the range of simulation transmission delay of the network according to the preset delay time and the delay fluctuation value;
correspondingly, the step of sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate specifically includes:
and generating target simulation transmission delay according to the range of the simulation transmission delay, and sending the simulation data packet to a test terminal according to the target simulation transmission delay and the simulation packet loss rate.
Optionally, the sending the simulated data packet to a test terminal according to the target simulated transmission delay and the simulated packet loss rate specifically includes:
according to the simulation packet loss rate, a first simulation data packet with a preset proportion in the simulation data packets is sent to a test terminal, and according to the target simulation transmission delay and the simulation packet loss rate, a second simulation data packet is sent to the test terminal;
wherein the emulation data package comprises the first emulation data package and the second emulation data package.
Optionally, the sending the simulated data packet to a test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate and a preset simulation packet loss success rate.
Optionally, the sending the simulated data packet to a test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the preset simulation data packet repetition rate and the preset simulation data packet damage rate.
Optionally, the sending the simulated data packet to a test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
immediately transmitting a third simulation data packet to a test terminal according to the simulation packet loss rate, and transmitting a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the simulation data packet includes the third simulation data packet and the fourth simulation data packet.
Optionally, the simulation processing method of the network further includes:
determining new simulation transmission delay of the network according to the modified delay time, and determining new simulation packet loss rate of the network according to the modified packet loss rate;
correspondingly, the step of sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate specifically includes:
and sending the simulation data packet to a test terminal according to the new simulation transmission delay and the new simulation packet loss rate.
In a second aspect, an embodiment of the present invention further provides a simulation processing apparatus for a network, including:
the parameter determining module is used for determining the simulation transmission delay of the network according to the preset delay time and determining the simulation packet loss rate of the network according to the preset packet loss rate;
the data packet sending module is used for receiving a service simulation instruction, generating a simulation data packet according to the service simulation instruction, and sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate;
the result calculation module is used for receiving simulation data returned by the test terminal and calculating to obtain a simulation result according to the simulation data;
the network simulator is connected with the test terminal in a wired or wireless mode.
Optionally, the parameter determining module is specifically configured to:
the network simulator determines the range of simulation transmission delay of the network according to the preset delay time and the delay fluctuation value;
correspondingly, the data packet sending module is specifically configured to:
and generating target simulation transmission delay according to the range of the simulation transmission delay, and sending the simulation data packet to a test terminal according to the target simulation transmission delay and the simulation packet loss rate.
Optionally, the data packet sending module is specifically configured to:
according to the simulation packet loss rate, a first simulation data packet with a preset proportion in the simulation data packets is sent to a test terminal, and according to the target simulation transmission delay and the simulation packet loss rate, a second simulation data packet is sent to the test terminal;
wherein the emulation data package comprises the first emulation data package and the second emulation data package.
Optionally, the data packet sending module is specifically configured to:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate and a preset simulation packet loss success rate.
Optionally, the data packet sending module is specifically configured to:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the preset simulation data packet repetition rate and the preset simulation data packet damage rate.
Optionally, the data packet sending module is specifically configured to:
immediately transmitting a third simulation data packet to a test terminal according to the simulation packet loss rate, and transmitting a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the simulation data packet includes the third simulation data packet and the fourth simulation data packet.
Optionally, the simulation processing device of the network further includes:
the parameter modification module is used for determining new simulation transmission delay of the network according to the modified delay time and determining new simulation packet loss rate of the network according to the modified packet loss rate;
correspondingly, the data packet sending module is specifically configured to:
and sending the simulation data packet to a test terminal according to the new simulation transmission delay and the new simulation packet loss rate.
In a third aspect, an embodiment of the present invention further provides an electronic device, including:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, which are called by the processor to perform the method described above.
In a fourth aspect, embodiments of the present invention also propose a non-transitory computer-readable storage medium storing a computer program, which causes the computer to carry out the above-mentioned method.
According to the technical scheme, after the network simulator is connected with the test terminal in a wired mode or a wireless mode, the simulation test is carried out according to the preset simulation transmission delay and the simulation packet loss rate, so that the network simulator is low in price, convenient to carry and good in expansibility, and can be applied to wired and wireless networks.
Drawings
In order to more clearly illustrate the embodiments of the invention or the technical solutions of the prior art, the drawings that are necessary for the description of the embodiments or the prior art will be briefly described, it being obvious that the drawings in the following description are only some embodiments of the invention and that other drawings can be obtained from these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a flow chart of a simulation processing method of a network according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a network connection according to the prior art;
fig. 3 is a schematic structural diagram of a network connection according to an embodiment of the present invention;
FIG. 4 is a schematic diagram of a network simulation result according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a simulation processing apparatus of a network according to an embodiment of the present invention;
fig. 6 is a logic block diagram of an electronic device according to an embodiment of the present invention.
Detailed Description
The following describes the embodiments of the present invention further with reference to the accompanying drawings. The following examples are only for more clearly illustrating the technical aspects of the present invention, and are not intended to limit the scope of the present invention.
Fig. 1 shows a flow chart of a simulation processing method of a network according to the present embodiment, including:
s101, the network simulator determines the simulation transmission delay of the network according to the preset delay time, and determines the simulation packet loss rate of the network according to the preset packet loss rate.
The network simulator is small equipment for network simulation.
The delay time is preset time for simulating network transmission delay.
The packet loss rate is a preset proportion for simulating the network packet loss condition.
The simulated transmission delay is the transmission delay of the current simulated network.
The simulated packet loss rate is the packet loss rate of the current simulated network.
S102, receiving a service simulation instruction, generating a simulation data packet according to the service simulation instruction, and sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate.
Wherein the service simulation instruction is an instruction for performing service simulation.
The simulation data packet is a simulation data packet generated according to the service simulation instruction.
The network simulator is connected with the test terminal in a wired mode or a wireless mode, and sends the simulation data packet to the test terminal and receives the simulation data returned by the test terminal.
S103, receiving simulation data returned by the test terminal, and calculating according to the simulation data to obtain a simulation result.
The simulation data are returned data after the test terminal receives and processes the simulation data packet.
The simulation result is a result calculated from simulation data, such as network reliability.
For example, the small-sized network simulator provided in this embodiment is divided into three parts:
1) Wire part
Comprises 2-3 RJ45 wired ports. For connecting two networks (PCs) by wire.
2) Wireless part
Including WIFI interfaces. For connecting the wireless terminal(s) with the small network simulator.
3) Network simulation software
And installing kernel versions (built-in NetEm functions) of more than Linux2.6 and TC function modules. The phenomena of delay, packet loss, repetition, damage, disorder and the like of the network are simulated through commands.
The WiFi is a wireless network composed of a wireless access point AP (Access Point) and a terminal with a wireless access function. The AP is a bridge between the wired local area network and the wireless local area network, and any test terminal with a wireless access function can access the wired local area network and the wide area network after being connected with the AP. The test terminal may be a PC with a wireless network card, a PC with CPE access, a mobile phone, etc.
Compared with the connection structure of the simulation network provided by the prior art as shown in fig. 2, the connection structure of the simulation network provided by the embodiment is shown in fig. 3, and after the network is erected, the connection structure enters a linux system operation page of the small network simulator. The network simulation was performed according to the following commands: when performing the simulation of the delay transmission, the transmission of the ath0 network card is set to be delayed for 100ms to be sent, and the command is as follows: tc qdisc add dev ath0 root netem delay100 ms. The results obtained are shown in FIG. 4.
According to the embodiment, after the network simulator is connected with the test terminal in a wired mode or a wireless mode, simulation test is carried out according to the preset simulation transmission delay and the simulation packet loss rate, and the network simulator is low in price, convenient to carry, good in expansibility and applicable to wired and wireless networks.
Further, on the basis of the above method embodiment, determining, by the network simulator in S101, a simulated transmission delay of the network according to a preset delay time, specifically includes:
the network simulator determines the range of simulation transmission delay of the network according to the preset delay time and the delay fluctuation value;
correspondingly, in S102, the sending the simulated data packet to the test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
and generating target simulation transmission delay according to the range of the simulation transmission delay, and sending the simulation data packet to a test terminal according to the target simulation transmission delay and the simulation packet loss rate.
Specifically, in a real situation, the delay value is not so accurate as shown in fig. 4, and there is some fluctuation.
For example, the transmission of ath0 is set to be delayed by 100 ms.+ -.10 ms (any value between 90 and 110 ms) and sent as follows: tc qdisc add dev ath0 root netem delay100ms 10ms.
By simulating the delay value with fluctuation, more real network conditions can be reflected.
Further, on the basis of the above method embodiment, in S102, the sending the simulated data packet to the test terminal according to the target simulated transmission delay and the simulated packet loss rate specifically includes:
and sending a first simulation data packet with a preset proportion in the simulation data packet to a test terminal according to the simulation packet loss rate, and sending a second simulation data packet to the test terminal according to the target simulation transmission delay and the simulation packet loss rate.
Wherein the emulation data package comprises the first emulation data package and the second emulation data package.
Specifically, to further enhance the randomness of the ripple delay value, the transmission of the ath0 network card is set to 100ms, and at the same time, about 30% of packets are transmitted with a delay of ±10ms:
tc qdisc add dev ath0 root netem delay 100ms 10ms 30%。
by simulating the delay value with random volatility, more realistic network conditions can be reflected.
Further, on the basis of the above method embodiment, in S102, the sending the simulated data packet to the test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate and a preset simulation packet loss success rate.
For example, when simulating network packet loss, the transmission of the ath0 network card is set to randomly drop 1% of data packets: tc qdisc add dev ath0 root netem loss 1%.
Further, setting the success rate of packet loss, setting the transmission of the ath0 network card to randomly drop 1% of data packets, wherein the success rate is 30%: tc qdisc add dev ath0 root netem loss1%30%.
By setting the success rate of randomly lost data packets and/or lost packets, more real network conditions can be reflected.
Further, on the basis of the above method embodiment, in S102, the sending the simulated data packet to the test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the preset simulation data packet repetition rate and the preset simulation data packet damage rate.
For example, when emulating packet duplication, the transmission of the ath0 network card is set to randomly generate 1% duplicate packets: tc qdisc add dev ath0 and root netem duplicate%.
In another embodiment, the packet corruption is simulated and the transmission of the ath0 network card is set to randomly generate 0.2% corrupted packets: tc qdisc add dev ath0, root netem corrupt, 0.2%.
By setting the repetition rate of the simulation data packet and/or the damage rate of the simulation data packet, more real network conditions can be reflected.
Further, on the basis of the above method embodiment, in S102, the sending the simulated data packet to the test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
immediately transmitting a third simulation data packet to a test terminal according to the simulation packet loss rate, and transmitting a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the simulation data packet includes the third simulation data packet and the fourth simulation data packet.
For example, to be able to simulate packet out-of-order, the transmission of the ath0 network card may be set to: 25% of the packets (50% correlation) would be sent immediately, with an additional delay of 10 seconds: tc qdisc add dev ath0 root netem delay 10ms reorder 25%50%.
By simulating the disorder of the data packets, the more real network condition can be reflected.
Further, on the basis of the above method embodiment, the simulation processing method of the network further includes:
determining new simulation transmission delay of the network according to the modified delay time, and determining new simulation packet loss rate of the network according to the modified packet loss rate;
correspondingly, in S102, the sending the simulated data packet to the test terminal according to the simulated transmission delay and the simulated packet loss rate specifically includes:
and sending the simulation data packet to a test terminal according to the new simulation transmission delay and the new simulation packet loss rate.
Specifically, the current emulation network can be restored or altered: if the simulation network is required to be recovered to be normal, only the monitoring needs to be deleted: tc qdisc del dev ath0 root netem delay 4s; if only the parameter values are changed: tc qdisc change dev ath0 root netem delay 4s.
Whether the network simulator sends the simulation data packet to the wired test terminal or the wired test terminal sends the simulation data packet to the network simulator, even the small network simulator communicates with the wireless test terminal, the network simulator is controlled by the commands.
The embodiment provides a network device with multiple network ports and WIFI function, which installs software with network simulation function, so that the network device becomes a small network simulator, the function of the network simulator is realized, the problems of high price, poor portability and poor expansibility of the simulation device in the prior art are solved, and the network device is also applicable to wired and WIFI networks.
Fig. 5 shows a schematic structural diagram of a simulation processing apparatus of a network according to the present embodiment, where the apparatus includes: a parameter determining module 501, a data packet transmitting module 502 and a result calculating module 503, wherein:
the parameter determining module 501 is configured to determine a simulated transmission delay of the network according to a preset delay time, and determine a simulated packet loss rate of the network according to a preset packet loss rate;
the data packet sending module 502 is configured to receive a service emulation instruction, generate an emulation data packet according to the service emulation instruction, and send the emulation data packet to a test terminal according to the emulation transmission delay and the emulation packet loss rate;
the result calculation module 503 is configured to receive simulation data returned by the test terminal, and calculate a simulation result according to the simulation data;
the network simulator is connected with the test terminal in a wired or wireless mode.
Specifically, the parameter determining module 501 determines a simulated transmission delay of the network according to a preset delay time, and determines a simulated packet loss rate of the network according to a preset packet loss rate; the data packet sending module 502 receives a service simulation instruction, generates a simulation data packet according to the service simulation instruction, and sends the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate; the result calculation module 503 receives the simulation data returned by the test terminal, and calculates a simulation result according to the simulation data.
According to the embodiment, after the network simulator is connected with the test terminal in a wired mode or a wireless mode, simulation test is carried out according to the preset simulation transmission delay and the simulation packet loss rate, and the network simulator is low in price, convenient to carry, good in expansibility and applicable to wired and wireless networks.
Further, on the basis of the above device embodiment, the parameter determining module 501 is specifically configured to:
the network simulator determines the range of simulation transmission delay of the network according to the preset delay time and the delay fluctuation value;
accordingly, the packet sending module 502 is specifically configured to:
and generating target simulation transmission delay according to the range of the simulation transmission delay, and sending the simulation data packet to a test terminal according to the target simulation transmission delay and the simulation packet loss rate.
Further, based on the above device embodiment, the data packet sending module 502 is specifically configured to:
according to the simulation packet loss rate, a first simulation data packet with a preset proportion in the simulation data packets is sent to a test terminal, and according to the target simulation transmission delay and the simulation packet loss rate, a second simulation data packet is sent to the test terminal;
wherein the emulation data package comprises the first emulation data package and the second emulation data package.
Further, based on the above device embodiment, the data packet sending module 502 is specifically configured to:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate and a preset simulation packet loss success rate.
Further, based on the above device embodiment, the data packet sending module 502 is specifically configured to:
and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the preset simulation data packet repetition rate and the preset simulation data packet damage rate.
Further, based on the above device embodiment, the data packet sending module 502 is specifically configured to:
immediately transmitting a third simulation data packet to a test terminal according to the simulation packet loss rate, and transmitting a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the simulation data packet includes the third simulation data packet and the fourth simulation data packet.
Further, on the basis of the above device embodiment, the simulation processing device of the network further includes:
the parameter modification module is used for determining new simulation transmission delay of the network according to the modified delay time and determining new simulation packet loss rate of the network according to the modified packet loss rate;
accordingly, the packet sending module 502 is specifically configured to:
and sending the simulation data packet to a test terminal according to the new simulation transmission delay and the new simulation packet loss rate.
The simulation processing device of the network in this embodiment may be used to execute the above method embodiment, and its principle and technical effects are similar, and are not described herein again.
Referring to fig. 6, the electronic device includes: a processor (processor) 601, a memory (memory) 602, and a bus 603;
wherein,
the processor 601 and the memory 602 perform communication with each other through the bus 603;
the processor 601 is configured to invoke program instructions in the memory 602 to perform the methods provided by the method embodiments described above.
The present embodiments disclose a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, are capable of performing the methods provided by the method embodiments described above.
The present embodiment provides a non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the methods provided by the above-described method embodiments.
The apparatus embodiments described above are merely illustrative, wherein the elements illustrated as separate elements may or may not be physically separate, and the elements shown as elements may or may not be physical elements, may be located in one place, or may be distributed over a plurality of network elements. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of this embodiment. Those of ordinary skill in the art will understand and implement the present invention without undue burden.
From the above description of the embodiments, it will be apparent to those skilled in the art that the embodiments may be implemented by means of software plus necessary general hardware platforms, or of course may be implemented by means of hardware. Based on this understanding, the foregoing technical solution may be embodied essentially or in a part contributing to the prior art in the form of a software product, which may be stored in a computer readable storage medium, such as ROM/RAM, a magnetic disk, an optical disk, etc., including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method described in the respective embodiments or some parts of the embodiments.
It should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention.

Claims (8)

1. A simulation processing method using a network simulator is characterized by comprising the following steps:
determining a range of simulation transmission delay of a network according to a preset delay time and a delay fluctuation value, generating a target simulation transmission delay according to the range of the simulation transmission delay, and determining a simulation packet loss rate of the network according to a preset packet loss rate;
receiving a service simulation instruction, generating a simulation data packet according to the service simulation instruction, and transmitting the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the preset simulation data packet repetition rate and the preset simulation data packet damage rate;
receiving simulation data returned by the test terminal, and calculating according to the simulation data to obtain a simulation result;
the network simulator is connected with the test terminal in a wired mode or a wireless mode.
2. The simulation processing method using a network simulator according to claim 1, wherein the transmitting the simulation data packet to the test terminal according to the simulation transmission delay, the simulation packet loss rate, a preset simulation data packet repetition rate, and a preset simulation data packet damage rate comprises:
setting a simulation data packet repetition rate and/or a simulation data packet damage rate, and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the simulation data packet repetition rate and the simulation data packet damage rate.
3. The simulation processing method using a network simulator according to claim 2, wherein a first simulation data packet of a preset proportion of the simulation data packets is transmitted to a test terminal according to the simulation packet loss rate, and a second simulation data packet is transmitted to the test terminal according to the target simulation transmission delay and the simulation packet loss rate;
wherein the emulation data package comprises the first emulation data package and the second emulation data package.
4. The simulation processing method using a network simulator according to claim 2, wherein a third simulation data packet is immediately transmitted to a test terminal according to the simulation packet loss rate, and a fourth simulation data packet is transmitted to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the simulation data packet includes the third simulation data packet and the fourth simulation data packet.
5. The simulation processing method using a network simulator according to any one of claims 1 to 4, wherein the simulation processing method using a network simulator further comprises:
determining new simulation transmission delay of the network according to the modified delay time, and determining new simulation packet loss rate of the network according to the modified packet loss rate;
and sending the simulation data packet to a test terminal according to the new simulation transmission delay and the new simulation packet loss rate.
6. A simulation processing apparatus using a network simulator, comprising:
the parameter determining module is used for determining the range of the simulation transmission delay of the network according to the preset delay time and the delay fluctuation value, generating the target simulation transmission delay according to the range of the simulation transmission delay, and determining the simulation packet loss rate of the network according to the preset packet loss rate;
the data packet sending module is used for receiving a service simulation instruction, generating a simulation data packet according to the service simulation instruction, and sending the simulation data packet to a test terminal according to the simulation transmission delay, the simulation packet loss rate, the preset simulation data packet repetition rate and the preset simulation data packet damage rate;
the result calculation module is used for receiving simulation data returned by the test terminal and calculating to obtain a simulation result according to the simulation data;
the network simulator is connected with the test terminal in a wired mode or a wireless mode.
7. An electronic device, comprising:
at least one processor; and
at least one memory communicatively coupled to the processor, wherein:
the memory stores program instructions executable by the processor, and the processor calls the program instructions to execute the simulation processing method using the network simulator according to any one of claims 1 to 5.
8. A non-transitory computer-readable storage medium storing a computer program that causes the computer to execute the simulation processing method using the network simulator according to any one of claims 1 to 5.
CN202010120704.8A 2020-02-26 2020-02-26 Network simulation processing method and device, electronic equipment and storage medium Active CN111352778B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010120704.8A CN111352778B (en) 2020-02-26 2020-02-26 Network simulation processing method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010120704.8A CN111352778B (en) 2020-02-26 2020-02-26 Network simulation processing method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN111352778A CN111352778A (en) 2020-06-30
CN111352778B true CN111352778B (en) 2024-03-15

Family

ID=71192461

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010120704.8A Active CN111352778B (en) 2020-02-26 2020-02-26 Network simulation processing method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111352778B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112020090A (en) * 2020-08-25 2020-12-01 江苏创通电子股份有限公司 System and method for testing wired and wireless throughput under flow control condition
CN113645653A (en) * 2021-08-06 2021-11-12 腾讯数码(深圳)有限公司 Network simulation test method and device, electronic equipment and storage medium
CN114338474A (en) * 2021-12-27 2022-04-12 南京创通微新通信有限公司 Instrument-free testing system, method and storage medium for air interface link

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581980A (en) * 2012-07-20 2014-02-12 腾讯科技(深圳)有限公司 Network impairment simulation system and method
CN109889374A (en) * 2019-01-22 2019-06-14 中国联合网络通信集团有限公司 Carry appraisal procedure and device
CN110138617A (en) * 2019-05-22 2019-08-16 北京字节跳动网络技术有限公司 Data transmission quality test method, system, electronic equipment and storage medium

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI236252B (en) * 2002-12-27 2005-07-11 Hon Hai Prec Ind Co Ltd Apparatus and method for a network testing system

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103581980A (en) * 2012-07-20 2014-02-12 腾讯科技(深圳)有限公司 Network impairment simulation system and method
CN109889374A (en) * 2019-01-22 2019-06-14 中国联合网络通信集团有限公司 Carry appraisal procedure and device
CN110138617A (en) * 2019-05-22 2019-08-16 北京字节跳动网络技术有限公司 Data transmission quality test method, system, electronic equipment and storage medium

Also Published As

Publication number Publication date
CN111352778A (en) 2020-06-30

Similar Documents

Publication Publication Date Title
CN111352778B (en) Network simulation processing method and device, electronic equipment and storage medium
US20110282642A1 (en) Network emulation in manual and automated testing tools
US6549882B1 (en) Mechanisms for providing and using a scripting language for flexibly simulationg a plurality of different network protocols
US7315807B1 (en) System and methods for storage area network simulation
CN110138617B (en) Data transmission quality testing method, system, electronic device and storage medium
Beuran Introduction to network emulation
US20060072466A1 (en) Method and system for network emulation
Tüxen et al. Interface connecting the INET simulation framework with the real world
Camara et al. DCE: Test the real code of your protocols and applications over simulated networks
Herrnleben et al. An iot network emulator for analyzing the influence of varying network quality
Berger et al. Does my bft protocol implementation scale?
US9329960B2 (en) Methods, systems, and computer readable media for utilizing abstracted user-defined data to conduct network protocol testing
WO2014075471A1 (en) Integrated application generating system and method for internet of things terminal
KR102067772B1 (en) Testing method for Radar processor
Beshay et al. On the fidelity of single-machine network emulation in linux
CN105323109B (en) Interconnection network simulator and method for simulating interconnection network
CN111431739B (en) QualNet-oriented dynamic fault setting method for simulation communication network
US20110255430A1 (en) Communication device, communication method, and program
KR101125365B1 (en) Integrated design method of communication protocols with sdl-opnet co-simmulation technique
CN113973060A (en) Internet of things simulation method, device and system and storage medium
CN111082984A (en) Method and device for simulating login of network equipment to carry out command line interaction
CN113064816B (en) Testing device and testing method for programmable logic device software
KR102067771B1 (en) Testing apparatus for Radar processor
CN108628683A (en) Data transmission method and device
CN110365550B (en) Method for testing access system and related device

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