CN102014072A - Playback method for random disorder of flow - Google Patents

Playback method for random disorder of flow Download PDF

Info

Publication number
CN102014072A
CN102014072A CN2010105980012A CN201010598001A CN102014072A CN 102014072 A CN102014072 A CN 102014072A CN 2010105980012 A CN2010105980012 A CN 2010105980012A CN 201010598001 A CN201010598001 A CN 201010598001A CN 102014072 A CN102014072 A CN 102014072A
Authority
CN
China
Prior art keywords
order
flow
zone
random
packet
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
CN2010105980012A
Other languages
Chinese (zh)
Other versions
CN102014072B (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.)
Dawning Network Technology Co ltd
Original Assignee
TIANJIN SUGON COMPUTER INDUSTRY 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 TIANJIN SUGON COMPUTER INDUSTRY Co Ltd filed Critical TIANJIN SUGON COMPUTER INDUSTRY Co Ltd
Priority to CN201010598001.2A priority Critical patent/CN102014072B/en
Publication of CN102014072A publication Critical patent/CN102014072A/en
Application granted granted Critical
Publication of CN102014072B publication Critical patent/CN102014072B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention provides a playback method for a random disorder of flow, comprising the following steps: obtaining the data of a certain flow from a real network and storing; reading the network data, storing position length information of a data packet, and counting the number N of the packets; appointing M disordering areas, appointing M disordering proportions; randomly generating a new packet sequence of the data packet according to the disordering area and the disordering proportion; reading the relative data packet to send out according to the stored information of the data packet according to the new packet sequence. The method is easy to implement; the disordering proportion and the disordering range are controllable for the whole flow; the method is capable of flexibly selecting a plurality of areas of the disorder and simulating the random feature of the network; and the disorder of the appointed area is random.

Description

The back method that a kind of flow is out of order at random
Technical field
The present invention relates to the network data processing field, be specifically related to the out of order at random back method of a kind of flow.
Background technology
Along with rapid development of Internet, the surge of network traffics, the needs of network data processing are asked also and are increased thereupon.In the various Related products of research and development network data processing, especially in the debug phase, a lot of application needs are upset sequence to the flow in the network and are carried out playback, and especially the stream to the TCP layer sorts.Inevitably need use flow playback in the network.Since the complexity of network environment, packet in transport process via route may be different, cause the sending order of packet and reception order inconsistent, just out of order.
Current have many software and hardwares can carry out playback to flow, as the patent of publication number CN101841441A, disclose hardware as the easy network test equipment of surveying, and software is as tcpreplay.Yet, these flow back methods generally adopt the sequential playback flow or or one the bag bag carry out out of order processing by prior setting.These methods implement more complicated, though and out of order scope difficult with control thus these methods to a certain extent network environment is simulated, upset the demand of packet sequence playback but can not satisfy the demand, can not satisfy out of order scope of control data bag and out of order degree demand, randomness that more can not analog network.
Summary of the invention
For addressing the above problem, the invention provides the out of order at random back method of a kind of flow.
The back method that a kind of flow is out of order at random may further comprise the steps:
A, obtain the data and the storage of certain flow from network;
B, read network data, the position and the length information of storage packet, statistical packages is counted N;
M out of order ratio specified in C, M out of order zone of appointment;
D, generate the New Development packet sequence of a packet at random according to out of order zone and out of order ratio;
E, according to the New Development packet sequence, send according to the packet information reading corresponding data bag of step B storage.
First kind of optimal technical scheme of the present invention is: can use tcpdump software to obtain network data.
Second kind of optimal technical scheme of the present invention is: the data that described out of order zone comprised are not overlapping, between zone and the zone packet can be arranged, and these packets do not participate in out of order outside out of order zone.
The third optimal technical scheme of the present invention is: the corresponding in order out of order zone of described out of order ratio, control the out of order degree in out of order zone.
Beneficial effect of the present invention is as follows:
1. this invention is easy to realize;
2. for whole flow, out of order ratio and out of order scope are controlled;
3. can select out of order a plurality of zones flexibly;
4. simulated the stochastic behaviour of network, the out of order of appointed area is at random.
Description of drawings
Fig. 1 is a flow chart of the present invention
Embodiment
(1) also stores from the data of live network acquisition certain flow;
Make to use tcpdump to grasp the data that need and deposit in the file.
(2) read network data, the storage packet information.
Open the file of storage data, the positional information and the length information of storage packet, and statistical data packet sum N;
(3) specify M out of order zone, specify M out of order ratio;
Specify M out of order zone, the data that each zone comprised are not overlapping, between zone and the zone packet can be arranged, and these packets do not participate in out of order outside out of order zone.Specify M out of order ratio, the out of order degree in out of order zone is controlled in the corresponding in order out of order zone of each ratio.
(4) according to upsetting the preface zone respectively generates a packet at random with out of order ratio New Development packet sequence;
Generate M random sequence at random according to out of order zone and out of order ratio, Nj1~Nj2 (1<=Nj1<Nj2<=N, Nj1, Nj2 is the position of packet in sequence, and it is 1<=j<=M), integrated data bag sum, obtain a new packet and send sequence 1,2,3, Nj1 ..., Nj2, ... N-2, N-1, N;
(5) according to the New Development packet sequence, the playback of data bag.
According to the New Development packet sequence, the packet information reading corresponding data bag of storing according to step (2) sends.

Claims (4)

1. back method that flow is out of order at random is characterized in that: may further comprise the steps:
A, obtain the data and the storage of certain flow from network;
B, read network data, the position and the length information of storage packet, statistical packages is counted N;
M out of order ratio specified in C, M out of order zone of appointment;
D, generate the New Development packet sequence of a packet at random according to out of order zone and out of order ratio;
E, according to the New Development packet sequence, send according to the packet information reading corresponding data bag of step B storage.
2. the out of order at random back method of a kind of according to claim 1 flow is characterized in that: can use tcpdump software to obtain network data.
3. the out of order at random back method of a kind of according to claim 1 flow, it is characterized in that: the data that described out of order zone comprised are not overlapping, between zone and the zone packet can be arranged, and these packets do not participate in out of order outside out of order zone.
4. the out of order at random back method of a kind of according to claim 1 flow is characterized in that: the corresponding in order out of order zone of described out of order ratio, control the out of order degree in out of order zone.
CN201010598001.2A 2010-12-17 2010-12-17 Playback method for random disorder of flow Active CN102014072B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010598001.2A CN102014072B (en) 2010-12-17 2010-12-17 Playback method for random disorder of flow

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010598001.2A CN102014072B (en) 2010-12-17 2010-12-17 Playback method for random disorder of flow

Publications (2)

Publication Number Publication Date
CN102014072A true CN102014072A (en) 2011-04-13
CN102014072B CN102014072B (en) 2014-07-23

Family

ID=43844093

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010598001.2A Active CN102014072B (en) 2010-12-17 2010-12-17 Playback method for random disorder of flow

Country Status (1)

Country Link
CN (1) CN102014072B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375118A (en) * 2016-08-31 2017-02-01 哈尔滨工业大学(威海) Multi-view-angle traffic mixed playback method and device
CN109120545A (en) * 2017-06-23 2019-01-01 华为技术有限公司 Data pack transmission method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464685A (en) * 2002-06-13 2003-12-31 优创科技(深圳)有限公司 Method for processing acoustic frequency flow playback in network terminal buffer
CN1842054A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Stimulant data packet transmission out-of-order method and device

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1464685A (en) * 2002-06-13 2003-12-31 优创科技(深圳)有限公司 Method for processing acoustic frequency flow playback in network terminal buffer
CN1842054A (en) * 2005-03-31 2006-10-04 华为技术有限公司 Stimulant data packet transmission out-of-order method and device

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106375118A (en) * 2016-08-31 2017-02-01 哈尔滨工业大学(威海) Multi-view-angle traffic mixed playback method and device
CN109120545A (en) * 2017-06-23 2019-01-01 华为技术有限公司 Data pack transmission method and device
CN109120545B (en) * 2017-06-23 2021-05-04 华为技术有限公司 Data packet transmission method and device

Also Published As

Publication number Publication date
CN102014072B (en) 2014-07-23

Similar Documents

Publication Publication Date Title
Einolghozati et al. Capacity of discrete molecular diffusion channels
CN103246597B (en) A kind of method of testing of parameter and equipment
CN106502554A (en) A kind of display control method and device
CN107689968A (en) Processing system, the method and device of task
US20140126387A1 (en) Endpoint selection in a network test system
CN107786440A (en) A kind of method and device of data message forwarding
CN108322890A (en) A kind of fence range generation method and device
CN106708671A (en) Method and device for detecting bus behavior of system on chip
CN109529353A (en) The more plots of the task of based role game for play execute method and device
CN107562809A (en) Business datum statistical method, device, system and readable storage medium storing program for executing
CN102014072A (en) Playback method for random disorder of flow
CN106021470A (en) List ranking method and apparatus
CN107547432A (en) A kind of flow control methods and device
CN100466562C (en) Method and system for transmitting test route
CN110337062A (en) Localization method and device in a kind of exhibition
CN106599725A (en) Randomized privacy protection method for graph data release
Carlo et al. Teleportation in a noisy environment: a quantum trajectories approach
CN106294825A (en) A kind of excel data managing method and system, client, service end
CN106708417A (en) Cache data management method and apparatus
CN108093047A (en) Data transmission method for uplink, device, electronic equipment and middleware system
Dewanta et al. Message scheduling approach on dedicated time slot of ISA100. 11a
CN105335747B (en) A kind of data processing method and electronic equipment
CN104412246B (en) System and method for providing replicate data to treatment client from memory
CN110138892A (en) Determine the method and device of equipment regional information
CN108664550A (en) It is a kind of that funnel analysis method and device are carried out to user behavior data

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20221215

Address after: 430040 NO.666, Wuhuan Avenue, linkonggang economic and Technological Development Zone, Wuhan City, Hubei Province (10)

Patentee after: Dawning Network Technology Co.,Ltd.

Address before: 300384 Xiqing District, Tianjin Huayuan Industrial Zone (outside the ring) 15 1-3, hahihuayu street.

Patentee before: DAWNING INFORMATION INDUSTRY Co.,Ltd.