Clock synchronization method for network simulation environment of discrete event

A discrete event, network simulation technology, applied in the direction of program synchronization, multi-channel program installation, generation/distribution of signals, etc., can solve the problems of TCP connection connection failure, distortion of test results, slow clock advancement of discrete event simulators, etc. Avoid distorted effects

Active Publication Date: 2012-09-12
INST OF COMPUTING TECH CHINESE ACAD OF SCI
View PDF5 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

Compared with other simulation methods, the discrete event network simulator has obvious advantages in speed and efficiency, and has strong scalability. However, due to the use of discrete events for time-driven, the simulation time is inconsistent with the actual time. In some cases The test results in the simulated environment will deviate from the results in the real environment
For example, when a real software requests a server in the network simulator to establish a TCP connection, if the clock of the discrete event simulator advances very slowly (when there are many events to be processed), the server in the network simulator will The TCP connection of the real software failed due to timeout before the TCP connection was answered
However, when the real software judges that the connection fails, in fact, the clock of the network simulator may only advance a small part, and it has not reached the moment when the real software times out.
Obviously, in this case, the test results in the simulated environment are distorted

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Clock synchronization method for network simulation environment of discrete event
  • Clock synchronization method for network simulation environment of discrete event
  • Clock synchronization method for network simulation environment of discrete event

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0034] The present invention will be further described below in conjunction with the accompanying drawings and specific embodiments.

[0035] According to an embodiment of the present invention, a clock synchronization method for a discrete event network simulation environment is provided. For ease of understanding, this embodiment is described in three parts below. The first part is the virtual clock ticking, the second part is using the virtual clock ticking to realize the clock synchronization between the discrete event network simulation environment and the real software, and the third part is the process Marking and identification.

[0036] 1. Virtual clock ticking

[0037] 1.1 Discrete event simulation

[0038] The discrete-event network simulator's clock is driven by discrete events, which are not continuous. When a certain event occurs, the clock of the network simulator jumps to this point in time, until the next event occurs, the time of the analog clock remains u...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention provides a clock synchronization method for network simulation environment of discrete event. The method comprises the steps of: 1) determining a virtual clock tick count value corresponding to occurrence time of a discrete event when the discrete event occurs, and sending the tick count value as a target count value to a kernel-state program; controlling operation of all timers of real software accessing to a network simulation environment of discrete event by using the virtual clock tick count value; 2) summating the virtual clock tick count value gradually by using 1 as step length to reach the target count value by the kernel-state program; for a real software accessing to a network simulation environment of discrete event, determining whether the timer of the real software overtimes or not each time when the virtual clock tick count value is added by 1. The method of the invention assists in avoiding distortion caused by time inconsistence between simulation environment and real environment. In the invention, the real software can be applied in network simulation environment of discrete event directly without modification.

Description

technical field [0001] The invention relates to the technical field of network simulation and simulation, in particular, the invention relates to a clock synchronization method of a discrete event network simulation environment. Background technique [0002] With the rapid expansion of the network today, network researchers must constantly think about new network protocols and algorithms, and do forward-looking basic research for network development; on the other hand, they must also study how to utilize and integrate existing network resources to make the network reach For maximum performance, both require validation and analysis of new network solutions. The cost of traditional experimental methods is very high, it is difficult to reconfigure or share resources, and it is not flexible enough to use. It is difficult to make the scale of the test bed large, and it cannot realize the integration of various communication flows and topologies in the network. to great limitatio...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F1/12G06F9/52
Inventor 林思明王景飞程学旗张冬周洲仪李金明王元卓
Owner INST OF COMPUTING TECH CHINESE ACAD OF SCI
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products