CN105007198B - A kind of IP data packet disorders analog simulation circuit and method - Google Patents
A kind of IP data packet disorders analog simulation circuit and method Download PDFInfo
- Publication number
- CN105007198B CN105007198B CN201510455624.7A CN201510455624A CN105007198B CN 105007198 B CN105007198 B CN 105007198B CN 201510455624 A CN201510455624 A CN 201510455624A CN 105007198 B CN105007198 B CN 105007198B
- Authority
- CN
- China
- Prior art keywords
- packet
- order
- data packet
- module
- analog simulation
- 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
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L43/00—Arrangements for monitoring or testing data switching networks
- H04L43/50—Testing arrangements
Abstract
The present invention proposes a kind of IP data packet disorders analog simulation circuit, including:Out of order packet chooses module, burst number control module, out of order number control module, recurrent wrIting control module, the out of order statistical module of packet, extracts caching, data buffer storage, offset counter, packet multiplexing module, randomizer, deviation range computing module.The IP data packet disorder analog simulation circuits of the present invention, first from data flow the data packet for needing to damage is extracted according to certain distribution and probability, then the data packet subsequently reached is counted, the packet of extraction is inserted into transmit queue immediately when out of order position reaches.The present invention can simulate the out of order analog simulation scene of practical IP network packet, and good data packet disorder emulation platform is provided for scientific research or experiment.
Description
Technical field
The present invention relates to technical field of measurement and test, more particularly to a kind of IP data packet disorders analog simulation circuit further relates to one
Kind IP data packet disorder analog simulation methods.
Background technology
IP network communications applications are very extensive, small to one equipment, and the big strategic net to country has IP communication networks to exist
It uses.
It refers to the phenomenon that sequence wrapped in IP network data flow changes in the transmission to wrap out of order, wraps out of order damage simulation
It is exactly the variation of this packet sequence of analog network.
The IP network situation of laboratory environment is more satisfactory, seldom generation packet disorder phenomenon, and data in practical IP network
For packet in transmission process, packet disorder phenomenon is very common.
In existing laboratory environment or general LAN, it is difficult to practical IP network scenarios is simulated, therefore, how in reality
Room environmental Imitating real network situation is tested, is current urgent problem to be solved.
Invention content
A kind of IP data packet disorders analog simulation circuit of present invention proposition and method, solve and are difficult in laboratory environments
The problem of simulating real network.
The technical proposal of the invention is realized in this way:
A kind of IP data packet disorders analog simulation circuit, including:Out of order packet chooses module, burst number control module, unrest
Order number control module, the out of order statistical module of packet, extracts caching FIFO, data buffer storage FIFO, offset at recurrent wrIting control module
Counter, packet multiplexing module, randomizer, deviation range computing module;
Out of order packet chooses distributed constant of the module according to real-time update, and it is out of order that data packet progress is chosen from data flow;
The number control module that happens suddenly carries out burst-length operation when receiving each accident, generates out of order make that happen suddenly
It can signal;
Out of order number control module counts single or the out of order packet number of burst, to data packet carry out it is persistently out of order or
Stop damage after out of order specified packet number, until being again started up;
The caching FIFO packets out of order for storing selected participation is extracted, each caching FIFO that extracts respectively corresponds to one partially
Move counter;
Offset counter is according to deviation range computing module as a result, calculating the specific position for wrapping output in corresponding extraction caching
It sets, when deviation post reaches, what is stored in immediately caching extraction needs out of order packet to be output to packet multiplexing module;
The deviation range of each out of order packet is random, and random value is provided by deviation range computing module;
What data buffer storage FIFO was reached during being used to cache the extraction caching FIFO output data packets does not need out of order
Packet;
Randomizer generates random number;
Deviation range computing module utilizes the random number, calculates the random offset value of current out of order packet first, for
Machine number and out of order deviation range product it is 9 high;Then by result of calculation plus deviant is started, the reality of current out of order packet is obtained
Border needs the value deviated, the value to be used by each group offset counter.
Optionally, the distributed constant is calculated and stored in by program in RAM, different distributions and probability and every time brush
New capital will produce new random number, the interval that these random numbers are used for indicating to choose packet.
Optionally, the out of order parameter that happens suddenly is set as n/m, wherein n is burst-length, and 1/m is the average general of burst generation
Rate.
Optionally, several packets while the situation to be exported, are inquired by the way of order priority.
Optionally, the capacity of the data buffer storage FIFO is the sum of the capacity for extracting caching FIFO.
Optionally, the random number that the randomizer generates, which meets, to be uniformly distributed.
Optionally, the randomizer uses M sequence primitive polynomial Formula X25+X3+ 1 generates random number.
Based on above-mentioned artificial circuit, the invention also provides a kind of IP data packet disorders analog simulation methods, first from number
The data packet for needing to damage is extracted according to certain distribution and probability according in stream, then the data packet subsequently reached is counted
The packet of extraction is inserted into transmit queue by number immediately when out of order position reaches.
The beneficial effects of the invention are as follows:
(1) the out of order analog simulation scene of practical IP network packet can be simulated, for scientific research or experiment provide it is good
Data packet disorder emulation platform.
(2) 8 analog simulations continuously wrapped can be carried out, out of order range is wrapped up to 256.
Description of the drawings
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show below
There is attached drawing needed in technology description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only this
Some embodiments of invention for those of ordinary skill in the art without creative efforts, can be with
Obtain other attached drawings according to these attached drawings.
Fig. 1 is a kind of functional block diagram of IP data packet disorders analog simulation circuit of the present invention.
Specific implementation mode
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation describes, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based on
Embodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every other
Embodiment shall fall within the protection scope of the present invention.
In existing laboratory environment or general LAN, it is difficult to simulate practical IP network scenarios.The present invention proposes
A kind of IP data packet disorders analog simulation circuit and method, can carry out 8 analog simulations continuously wrapped, out of order range is reachable
256 packets.
The IP data packet disorder analog simulation circuits and method of the present invention, first from data flow according to certain distribution and
Probability extracts the data packet for needing to damage, and is then counted to the data packet subsequently reached, vertical when out of order position reaches
The packet that will be extracted is inserted into transmit queue.
The IP data packet disorder analog simulation circuits and method of the present invention are described in detail below in conjunction with the accompanying drawings.
As shown in Figure 1, the IP data packet disorder analog simulation circuits of the present invention include:Out of order packet chooses module, burst time
Number control module, out of order number control module, recurrent wrIting control module, the out of order statistical module of packet, extraction caching, data are slow
It deposits, offset counter, packet multiplexing module, randomizer, deviation range computing module.
Out of order packet chooses distributed constant of the module according to real-time update, and it is out of order that data packet progress is chosen from data flow.Point
Cloth parameter is calculated and stored in by program in RAM, and different distributions and probability and each refresh can all generate new random number,
The interval that these random numbers are used for indicating to choose packet.
It is out of order to wrap the out of order random single packet of not only support, but also supports burst out of order.The out of order parameter that happens suddenly is set as
N/m, n are burst-length, and 1/m is the average probability that burst occurs.Happen suddenly number control module when receiving each accident,
Burst-length operation is carried out, the out of order enable signal that happens suddenly is generated.
Wrap out of order damage can be carried out according to damage profile and probability it is persistently out of order, can also be according to damage profile and probability
Carry out the out of order of certain packet number.The out of order number control module packet number out of order to single or burst counts, can be with logarithm
The persistently out of order or stopping damage after out of order specified packet number is carried out according to packet, until being again started up.
It extracts caching FIFO1~8 and is used to store the out of order packet of selected participation, respectively there are one offset meters by this 8 FIFO
Number device.Offset counter is according to deviation range computing module as a result, the specific location for wrapping output in corresponding FIFO is calculated, when inclined
When pan position reaches, the out of order packet of the needs stored in FIFO is completely output to packet multiplexing module immediately.
Example in Fig. 1 of the present invention includes 8 and extracts caching FIFO, which should not be used as the limit of the scope of the present invention
System, those skilled in the art are in accordance with the teachings of the present invention, it is possible to expand the quantity for extracting caching FIFO, offset counter
Exhibition.
Since the deviation range of each out of order packet is random, random value offsetval is carried by deviation range computing module
For, it is thus possible to it will appear several packets while the situation to be exported, at this moment artificial circuit is pressed by the way of order priority
According to the sequential query of FIFO1, FIFO2...FIFO8.Because the capacity of FIFO is limited, it is difficult to support storage random length
Complete data packet, if the data packet of input has been more than the capacity of FIFO, the data packet is no longer out of order, but directly defeated
Go out.
What data buffer storage FIFO was reached during being used to cache the extraction caching output data packets of FIFO1~8 does not need out of order
Packet prevents data-bag lost, and the capacity of data buffer storage FIFO should be the sum of the capacity for extracting caching FIFO1~8.
Randomizer generates 9 bit random i lumbers (randomd), which, which meets, is uniformly distributed, it is preferable that random
Number generator uses M sequence primitive polynomial Formula X25+X3+ 1 generates random number.
Deviation range computing module utilizes above-mentioned random number (randomd), calculates the random offset of current out of order packet first
It is worth (randomoffset), is the 9 high of randomd and offsetscope products, wherein offsetscope is out of order inclined
Move range (9 bit);Then by result of calculation plus beginning deviant startval, i.e. offsetval=randomoffset+
Startval, obtains the value offsetval of the actual needs offset of current out of order packet, which is deviated by each group
Counter is used.
The present invention provides a kind of IP data packet disorders analog simulation circuit and methods, and it is random can to simulate practical IP network packet
The analog simulation scene of sequence provides good data packet disorder emulation platform for scientific research or experiment.
The foregoing is merely illustrative of the preferred embodiments of the present invention, is not intended to limit the invention, all essences in the present invention
With within principle, any modification, equivalent replacement, improvement and so on should all be included in the protection scope of the present invention god.
Claims (8)
1. a kind of IP data packet disorders analog simulation circuit, which is characterized in that including:Out of order packet chooses module, burst time numerical control
Molding block, recurrent wrIting control module, the out of order statistical module of packet, extracts caching FIFO, data buffer storage at out of order number control module
FIFO, offset counter, packet multiplexing module, randomizer, deviation range computing module;
Out of order packet chooses distributed constant of the module according to real-time update, and it is out of order that data packet progress is chosen from data flow;
The number control module that happens suddenly carries out burst-length operation when receiving each accident, generates the out of order enabled letter that happens suddenly
Number;
Out of order number control module counts single or the out of order packet number of burst, is carried out to data packet persistently out of order or in unrest
Stop damage after the specified packet number of sequence, until being again started up;
It extracts caching FIFO and is used to store the out of order packet of selected participation, it is each to extract caching FIFO respectively corresponding offset meters
Number device;
Offset counter extracts the specific location that output is wrapped in caching according to deviation range computing module as a result, calculating and corresponding to,
When deviation post reaches, what is stored in immediately caching extraction needs out of order packet to be output to packet multiplexing module;
The deviation range of each out of order packet is random, and random value is provided by deviation range computing module;
What data buffer storage FIFO was reached during being used to cache the extraction caching FIFO output data packets does not need out of order packet;
Randomizer generates random number;
Deviation range computing module utilizes the random number, calculates the random offset value of current out of order packet first, is random number
It is 9 high with out of order deviation range product;Then by result of calculation plus deviant is started, the practical need of current out of order packet are obtained
The value of the value to be deviated, actual needs offset is used by each group offset counter.
2. IP data packet disorders analog simulation circuit as described in claim 1, which is characterized in that the distributed constant is by program
It is calculated and stored in RAM, different distributions and probability and each refresh can all generate new random number, these random numbers are used
To indicate to choose the interval of packet.
3. IP data packet disorders analog simulation circuit as described in claim 1, which is characterized in that happen suddenly out of order parameter setting
For n/m, wherein n is burst-length, and 1/m is the average probability that burst occurs.
4. IP data packet disorders analog simulation circuit as described in claim 1, which is characterized in that several packets to be exported simultaneously
Situation is inquired by the way of order priority.
5. IP data packet disorders analog simulation circuit as described in claim 1, which is characterized in that the data buffer storage FIFO's
Capacity is the sum of the capacity for extracting caching FIFO.
6. IP data packet disorders analog simulation circuit as described in claim 1, which is characterized in that the randomizer production
Raw random number, which meets, to be uniformly distributed.
7. IP data packet disorders analog simulation circuit as claimed in claim 6, which is characterized in that the randomizer is adopted
With M sequence primitive polynomial Formula X25+X3+ 1 generates random number.
8. a kind of IP data packet disorder analog simulation methods based on any one of the claim 1-7 artificial circuits, feature
It is, extracts the data packet for needing to damage according to certain distribution and probability first from data flow, then to subsequently reaching
Data packet is counted, and the packet of extraction is inserted into transmit queue immediately when out of order position reaches.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510455624.7A CN105007198B (en) | 2015-07-23 | 2015-07-23 | A kind of IP data packet disorders analog simulation circuit and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510455624.7A CN105007198B (en) | 2015-07-23 | 2015-07-23 | A kind of IP data packet disorders analog simulation circuit and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105007198A CN105007198A (en) | 2015-10-28 |
CN105007198B true CN105007198B (en) | 2018-08-14 |
Family
ID=54379725
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510455624.7A Active CN105007198B (en) | 2015-07-23 | 2015-07-23 | A kind of IP data packet disorders analog simulation circuit and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105007198B (en) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111190689B (en) * | 2019-12-24 | 2022-01-11 | 腾讯科技(深圳)有限公司 | Digital twin system simulation method and device |
CN114826942B (en) * | 2022-06-27 | 2022-09-02 | 江苏信而泰智能装备有限公司 | Random damage method and system for network packet |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1842054A (en) * | 2005-03-31 | 2006-10-04 | 华为技术有限公司 | Stimulant data packet transmission out-of-order method and device |
CN101222298A (en) * | 2008-01-22 | 2008-07-16 | 中兴通讯股份有限公司 | Forward package out-of-order regulation method and base station used in HRPD system |
CN102215162A (en) * | 2011-03-24 | 2011-10-12 | 无锡众志和达存储技术有限公司 | Method for processing optical fiber I/O (input/ output) out-of-order frames based on field programmable gate array |
CN102904775A (en) * | 2012-09-29 | 2013-01-30 | 华为技术有限公司 | Method, apparatus and system for measuring network packet loss |
CN103632108A (en) * | 2013-09-13 | 2014-03-12 | 广东明创软件科技有限公司 | Method and mobile terminal for improving safety of contact person information |
CN104660460A (en) * | 2015-01-15 | 2015-05-27 | 北京奥普维尔科技有限公司 | System and method for testing performance of Ethernet |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR20150024710A (en) * | 2013-08-27 | 2015-03-09 | 한국전자통신연구원 | Method and apparatus on the basis of Automotive Open System Architecture |
-
2015
- 2015-07-23 CN CN201510455624.7A patent/CN105007198B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1842054A (en) * | 2005-03-31 | 2006-10-04 | 华为技术有限公司 | Stimulant data packet transmission out-of-order method and device |
CN101222298A (en) * | 2008-01-22 | 2008-07-16 | 中兴通讯股份有限公司 | Forward package out-of-order regulation method and base station used in HRPD system |
CN102215162A (en) * | 2011-03-24 | 2011-10-12 | 无锡众志和达存储技术有限公司 | Method for processing optical fiber I/O (input/ output) out-of-order frames based on field programmable gate array |
CN102904775A (en) * | 2012-09-29 | 2013-01-30 | 华为技术有限公司 | Method, apparatus and system for measuring network packet loss |
CN103632108A (en) * | 2013-09-13 | 2014-03-12 | 广东明创软件科技有限公司 | Method and mobile terminal for improving safety of contact person information |
CN104660460A (en) * | 2015-01-15 | 2015-05-27 | 北京奥普维尔科技有限公司 | System and method for testing performance of Ethernet |
Also Published As
Publication number | Publication date |
---|---|
CN105007198A (en) | 2015-10-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP6250054B2 (en) | Neural core circuit | |
RU2476930C1 (en) | Method of simulating communication network | |
CN105007198B (en) | A kind of IP data packet disorders analog simulation circuit and method | |
CN104767629A (en) | Method of distributing service nodes, device and system | |
CN105610641B (en) | A kind of switch test system and its test method based on HWIL simulation | |
CN106886616A (en) | A kind of automatic subnetting method of extensive electro-magnetic transient grid simulation | |
CN103700133A (en) | Three-dimensional scene distributed rendering synchronous refreshing method and system | |
CN110251942A (en) | Control the method and device of virtual role in scene of game | |
CN101539968A (en) | Go human-computer chess-playing system | |
CN110150711A (en) | Resurgence humidification humidity control method and system based on multiple regression | |
CN106452850A (en) | SDN controller performance testing method and system | |
CN107257311A (en) | A kind of time triggered communication blended data based on virtual link sends dispatching method | |
CN104580005A (en) | Method for sending random length message according to flow model accurately | |
CN110223375A (en) | A kind of method and system of computer room 3D visualized data processing | |
CN103746878B (en) | Simulation system for measuring transmission time of SpaceWire data packets | |
CN111111157A (en) | Motor tactile signal generation method and motor tactile signal generation interface | |
CN109617763B (en) | Pressure testing method and device for FC-AE bus | |
CN110399623A (en) | The non real-time HWIL simulation synchronous method of electric network information physics emerging system and device | |
CN105992280A (en) | Method and device for data processing | |
CN106535241A (en) | Dynamic network simulation method and device | |
Tadrous et al. | Interactive app traffic: An action-based model and data-driven analysis | |
CN107645425A (en) | The passive combining adaptive flow-measuring method of master and device based on SDN | |
CN104469805B (en) | Instant messaging service traffics generation method based on user behavior analysis | |
CN101873198B (en) | Method and device for constructing network data packet | |
CN106534981B (en) | A kind of generation method and generating means of the ASCII stream file ASCII of set top box testing |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |