CN111352778A - 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
CN111352778A
CN111352778A CN202010120704.8A CN202010120704A CN111352778A CN 111352778 A CN111352778 A CN 111352778A CN 202010120704 A CN202010120704 A CN 202010120704A CN 111352778 A CN111352778 A CN 111352778A
Authority
CN
China
Prior art keywords
simulation
data packet
network
test terminal
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.)
Granted
Application number
CN202010120704.8A
Other languages
Chinese (zh)
Other versions
CN111352778B (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

Images

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

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Hardware Design (AREA)
  • Quality & Reliability (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

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; the embodiment of the invention connects the network simulator with the test terminal in a wired or wireless way, and then carries out simulation test according to the preset simulation transmission delay and the simulation packet loss rate, so that the cost is low, the carrying is convenient, the expansibility is good, and the method is also suitable for 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 simulation processing method and device of a network, electronic equipment and a storage medium.
Background
Network simulation is a high and new technology which simulates network behavior by using a mathematical modeling and statistical analysis method, and simulates the transmission of network traffic by establishing a statistical model of network equipment and network links, thereby acquiring network performance data required by network design and optimization. The conditions of the network impairment simulation include those present in a real wide area network: limited bandwidth, delay, packet loss, jitter, misordering, duplicate packets, competing traffic, congestion, bit errors, and the like. These conditions can degrade the performance of the application for network applications and can even be fatal at times.
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, and different types can be used for different applications. Although they are used primarily for research and educational purposes, they can also serve as key test tools in network design and development. Testing the network in this manner saves time and money, but the network simulator is not without limitation. These highly complex operations require a degree of experience and training to properly configure to achieve reliable results. In addition, network simulators are not practical because certain events cannot be expected independently of the physical network.
2) Simulation using large-scale network simulator
Network simulators (also known as WAN simulators) are used to test performance under real networks. These devices may also be used for quality assurance, concept verification or troubleshooting purposes. Network emulators are provided as hardware or software solutions that allow network architects, engineers and developers to accurately assess the responsiveness, throughput and end-user quality of experience of an application before making changes or additions to the application. By placing it physically between the 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 can be specified to simulate transmitting data over long distances, the behavior and response of the application as if the client and server were physically separated. Application performance and end-user experience can then be observed, tested and verified in real-time under such conditions. The large-scale network simulator has multiple functions and excellent performance, but has high operation requirement, high price and inconvenient carrying.
3) Simulation using network simulation software
Some network simulation software is installed on the PC, so that the PC is converted into a network simulator. But the PC is large in volume and inconvenient to carry; the network interface is few, the expansibility is poor, and the price of the network simulation software is expensive.
In summary, the prior art only performs simulation tests on wired networks, and lacks a network simulation method for wireless networks.
Disclosure of Invention
Because the existing method has the above problems, embodiments of the present invention provide a method and an apparatus for processing simulation of a network, an electronic device, and a storage medium.
In a first aspect, an embodiment of the present invention provides a method for simulation processing of 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 determining, by the network simulator, the simulated transmission delay of the network according to the preset delay time specifically includes:
the network simulator determines the simulation transmission delay range of the network according to the preset delay time and the delay fluctuation value;
correspondingly, the sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate specifically includes:
generating a 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 simulation data packet to a test terminal according to the target simulation transmission delay and the simulation packet loss rate specifically includes:
sending a first simulation data packet with a preset proportion in the simulation data packets 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 packet comprises the first emulation data packet and the second emulation data packet.
Optionally, the 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 simulation transmission delay, the simulation packet loss rate and a preset simulation packet loss success rate.
Optionally, the 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 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 simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate specifically includes:
immediately sending a third simulation data packet to a test terminal according to the simulation packet loss rate, and sending a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the emulation data packet includes the third emulation data packet and the fourth emulation 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 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 the 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 or wireless mode.
Optionally, the parameter determining module is specifically configured to:
the network simulator determines the simulation transmission delay range of the network according to the preset delay time and the delay fluctuation value;
correspondingly, the data packet sending module is specifically configured to:
generating a 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:
sending a first simulation data packet with a preset proportion in the simulation data packets 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 packet comprises the first emulation data packet and the second emulation data packet.
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 sending a third simulation data packet to a test terminal according to the simulation packet loss rate, and sending a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the emulation data packet includes the third emulation data packet and the fourth emulation data packet.
Optionally, the simulation processing apparatus of the network further includes:
the parameter modification module is used for determining the new simulated transmission delay of the network according to the modified delay time and determining the new simulated 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 when called by the processor are capable of performing the above-described methods.
In a fourth aspect, an embodiment of the present invention further provides a non-transitory computer-readable storage medium storing a computer program, which causes the computer to execute the above 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 preset simulation packet loss rate, the price is low, the carrying is convenient, the expansibility is good, and the network simulator is suitable for wired and wireless networks.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic flowchart 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 provided in 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 diagram illustrating results of a network simulation according to an embodiment of the present invention;
fig. 5 is a schematic structural 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 further describes embodiments of the present invention with reference to the accompanying drawings. The following examples are only for illustrating the technical solutions of the present invention more clearly, and the protection scope of the present invention is not limited thereby.
Fig. 1 shows a schematic flow chart of a simulation processing method of a network provided in this 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 a small device 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 simulation transmission delay is the transmission delay of the current simulation network.
And the simulation packet loss rate is the packet loss rate of the current simulation 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.
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 the simulation data returned by the test terminal, and calculating according to the simulation data to obtain a simulation result.
And the simulation data is returned after the test terminal receives and processes the simulation data packet.
The simulation result is a result calculated from the simulation data, such as network reliability.
For example, the small network simulator provided by the embodiment is divided into three parts:
1) wired part
Includes 2-3 RJ45 cable ports. For connecting two networks (PCs) by wire.
2) Wireless part
Including the WIFI interface. For connecting the wireless terminal(s) (1 or more) with the small network simulator.
3) Network simulation software
And installing a kernel version (built-in NetEm function) of Linux2.6 or more and a TC function module. 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 can be a PC with a wireless network card, a PC with access to CPE, a mobile phone and the like.
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 as shown in fig. 3, and after the network is set up, the network enters the linux system operation page of the small network simulator. Network simulation is carried out according to the following commands: when the simulation of delayed transmission is performed, the transmission of the ath0 network card is set to be transmitted with a delay of 100 milliseconds, and the commands are as follows: tc qdisc add dev ath0 root netem delay100 ms. The results obtained are shown in FIG. 4.
In the embodiment, after the network simulator is connected with the test terminal in a wired or wireless mode, the simulation test is performed according to the preset simulation transmission delay and the simulation packet loss rate, so that the price is low, the carrying is convenient, the expansibility is good, and the network simulator is also suitable for wired and wireless networks.
Further, on the basis of the above method embodiment, the determining, by the network simulator, the simulated transmission delay of the network according to the preset delay time in S101 specifically includes:
the network simulator determines the simulation transmission delay range of the network according to the preset delay time and the delay fluctuation value;
correspondingly, in S102, the sending the simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate specifically includes:
generating a 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.
In particular, in a real situation, the delay value is not as precise as shown in fig. 4, with some fluctuation.
For example, the transmission of ath0 is set to be sent with a delay of 100ms ± 10ms (any value between 90 ms and 110 ms), and the following commands are ordered: tc qdisc add dev ath0 root netem delay100ms 10 ms.
By simulating a delay value with volatility, a more real network situation can be reflected.
Further, on the basis of the above method embodiment, the sending the simulation data packet to the test terminal according to the target simulation transmission delay and the simulation packet loss rate in S102 specifically includes:
and sending a first simulation data packet with a preset proportion in the simulation data packets 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 packet comprises the first emulation data packet and the second emulation data packet.
Specifically, to further enhance the randomness of the fluctuating delay values, the transmission of the ath0 network card is set to 100ms, while approximately 30% of the packets are transmitted with a delay of ± 10 ms:
tc qdisc add dev ath0 root netem delay 100ms 10ms 30%。
by simulating a fluctuating delay value with randomness, a more realistic network situation can be reflected.
Further, on the basis of the above method embodiment, the sending the simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate in S102 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 the simulation network loses packets, the transmission of the ath0 network card is set to randomly lose 1% of the packets: tc qdisc add dev ath0 root netem loss 1%.
Further, the success rate of packet loss is set, the transmission of the ath0 network card is set to randomly drop 1% of data packets, and the success rate is 30%: tc qdisc add dev ath0 root netem loss 1% 30%.
By setting the success rate of the data packets which are lost randomly and/or the packet loss, the more real network condition can be reflected.
Further, on the basis of the above method embodiment, the sending the simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate in S102 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, in the case of duplicate simulation packets, the transmission of ath0 network cards is set to randomly generate 1% duplicate packets: tc qdisc add dev ath0 root netem duplicate 1%.
In another embodiment, simulating packet corruption, 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, a more real network situation can be reflected.
Further, on the basis of the above method embodiment, the sending the simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate in S102 specifically includes:
immediately sending a third simulation data packet to a test terminal according to the simulation packet loss rate, and sending a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the emulation data packet includes the third emulation data packet and the fourth emulation data packet.
For example, to be able to emulate packet misordering, the transmission of the ath0 network card may be set to: 25% of the packets (50% correlated) will be sent immediately, the other delays 10 seconds: tc qdisc add dev ath0 root netemdelay 10ms reorder 25% 50%.
By simulating the disorder of the data packets, a more real network situation can be reflected.
Further, on the basis of the above method embodiment, the simulation processing method for a 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 simulation data packet to the 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 particular, the current simulation network can be restored or modified: if the simulation network is required to be recovered to normal, only monitoring needs to be deleted: tc qdisc del dev ath0 root netem delay 4 s; if only the parameter values are changed: tc qdiscchange dev ath0 root netem delay 4 s.
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 simulation data packet is controlled by the commands.
The embodiment provides a multi-network-port network device with a WIFI function, software with a network simulation function is installed on the network device, the network device becomes a small network simulator, the functions of the network simulator are realized, the problems of high price, poor portability and poor expansibility of simulation equipment in the prior art are solved, and the multi-network-port network device is also suitable for wired and WIFI networks.
Fig. 5 is a schematic structural diagram illustrating a simulation processing apparatus of a network according to this embodiment, where the apparatus includes: a parameter determining module 501, a data packet sending 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 simulation instruction, generate a simulation data packet according to the service simulation instruction, and send 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 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 the simulated transmission delay of the network according to the preset delay time, and determines the simulated packet loss rate of the network according to the 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.
In the embodiment, after the network simulator is connected with the test terminal in a wired or wireless mode, the simulation test is performed according to the preset simulation transmission delay and the simulation packet loss rate, so that the price is low, the carrying is convenient, the expansibility is good, and the network simulator is also suitable for 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 simulation transmission delay range of the network according to the preset delay time and the delay fluctuation value;
accordingly, the data packet sending module 502 is specifically configured to:
generating a 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, on the basis of the above device embodiment, the data packet sending module 502 is specifically configured to:
sending a first simulation data packet with a preset proportion in the simulation data packets 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 packet comprises the first emulation data packet and the second emulation data packet.
Further, on the basis of 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, on the basis of 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, on the basis of the above device embodiment, the data packet sending module 502 is specifically configured to:
immediately sending a third simulation data packet to a test terminal according to the simulation packet loss rate, and sending a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the emulation data packet includes the third emulation data packet and the fourth emulation 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 the new simulated transmission delay of the network according to the modified delay time and determining the new simulated packet loss rate of the network according to the modified packet loss rate;
accordingly, the data 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 apparatus of the network described in this embodiment may be used to execute the above method embodiments, and the principle and technical effect are similar, which 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 content of the first and second substances,
the processor 601 and the memory 602 communicate with each other through the bus 603;
the processor 601 is used for calling the program instructions in the memory 602 to execute the methods provided by the above-mentioned method embodiments.
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, enable the computer to perform the methods provided by the above-described method embodiments.
The present embodiments provide a non-transitory computer-readable storage medium storing computer instructions that cause the computer to perform the methods provided by the method embodiments described above.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above-described technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the methods described in the embodiments or some parts of the embodiments.
It should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present 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 solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A simulation processing method of a network is characterized by comprising 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;
the network simulator is connected with the test terminal in a wired mode or a wireless mode.
2. The method according to claim 1, wherein the network simulator determines the simulated transmission delay of the network according to a preset delay time, and specifically comprises:
the network simulator determines the simulation transmission delay range of the network according to the preset delay time and the delay fluctuation value;
correspondingly, the sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss rate specifically includes:
generating a 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.
3. The method according to claim 2, wherein the sending the simulation data packet to a test terminal according to the target simulation transmission delay and the simulation packet loss rate specifically includes:
sending a first simulation data packet with a preset proportion in the simulation data packets 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 packet comprises the first emulation data packet and the second emulation data packet.
4. The method according to claim 1, wherein the sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss ratio 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.
5. The method according to claim 1, wherein the sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss ratio 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.
6. The method according to claim 1, wherein the sending the simulation data packet to a test terminal according to the simulation transmission delay and the simulation packet loss ratio specifically includes:
immediately sending a third simulation data packet to a test terminal according to the simulation packet loss rate, and sending a fourth simulation data packet to the test terminal according to the simulation transmission delay and the simulation packet loss rate;
wherein the emulation data packet includes the third emulation data packet and the fourth emulation data packet.
7. The method of simulation processing of a network of any of claims 1-6, further comprising:
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 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.
8. A simulation processing apparatus of a network, comprising:
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 the 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 or wireless mode.
9. 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, the processor invoking the program instructions to perform a method of emulation processing of a network according to any of claims 1 to 7.
10. A non-transitory computer-readable storage medium characterized by storing a computer program that causes a computer to execute the simulation processing method of the network according to any one of claims 1 to 7.
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 true CN111352778A (en) 2020-06-30
CN111352778B 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)

Cited By (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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040127212A1 (en) * 2002-12-27 2004-07-01 Wang Jian Chung Apparatus, system and method for network testing
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040127212A1 (en) * 2002-12-27 2004-07-01 Wang Jian Chung Apparatus, system and method for network testing
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
佚名: "Linux下的网络仿真器", pages 1 - 5, Retrieved from the Internet <URL:https://www.cnblogs.com/shipfi/archive/2008/01/04/1025593.html> *

Cited By (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

Also Published As

Publication number Publication date
CN111352778B (en) 2024-03-15

Similar Documents

Publication Publication Date Title
US20110282642A1 (en) Network emulation in manual and automated testing tools
CN111352778B (en) Network simulation processing method and device, electronic equipment and storage medium
CN110351156B (en) Test method and device
Ahrenholz Comparison of CORE network emulation platforms
Kalitay et al. Designing wanem: A wide area network emulator tool
CN110138617B (en) Data transmission quality testing method, system, electronic device and storage medium
US7555420B2 (en) Method and system for network emulation
Beuran Introduction to network emulation
CN107707986B (en) A kind of method and device for simulating barrage message in the exploitation of live streaming software
CN114880977A (en) Software and hardware joint simulation system, method, device, equipment and storage medium
CN107819611B (en) Client test method based on IEC61850 multi-server simulation
CN113852413A (en) Low-orbit constellation networking protocol test system construction method
Ogilvie et al. Modeling communication networks in a real-time simulation environment for evaluating controls of shipboard power systems
Berger et al. Does my bft protocol implementation scale?
Herrnleben et al. An iot network emulator for analyzing the influence of varying network quality
Petija et al. Convergence of routing protocols in real and simulated environments
US7433814B2 (en) Network emulator architecture
KR102067772B1 (en) Testing method for Radar processor
CN105323109B (en) Interconnection network simulator and method for simulating interconnection network
Dayanand et al. A survey on the use of GNS3 for virtualizing computer networks
CN114064371A (en) Electronic interlocking simulation test method, system, equipment and storage medium
CN111431739B (en) QualNet-oriented dynamic fault setting method for simulation communication network
KR100336495B1 (en) System and method for simulating the packet transmission performance of Internet
CN109639528A (en) A kind of test method and device of log receptivity
CN108628683B (en) Data transmission method and 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