CN102013941A - Random frame spacing control method - Google Patents
Random frame spacing control method Download PDFInfo
- Publication number
- CN102013941A CN102013941A CN2010100026751A CN201010002675A CN102013941A CN 102013941 A CN102013941 A CN 102013941A CN 2010100026751 A CN2010100026751 A CN 2010100026751A CN 201010002675 A CN201010002675 A CN 201010002675A CN 102013941 A CN102013941 A CN 102013941A
- Authority
- CN
- China
- Prior art keywords
- message
- byte
- control method
- random
- control
- 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
Links
Images
Abstract
The invention discloses a random frame spacing control method. The random frame message control method comprises four steps, wherein the operation can be cycled from the second step to the fourth step, with the invention, not only a lower logic can be controlled to stop generating a message, but also the lower logic can be controlled to generate the message. The method effectively solves the problem that each flow is subjected to scheduling transmission in proportion during the simulation of multiple stay situation, at the same time, can achieve high control precision.
Description
Technical field
The present invention relates to a kind of control method in the network communications technology field, particularly relate to a kind of random frame interval control method.
Background technology
In the network test process, for the requirement of testing, need to send message with random interval, require in certain time interval, to have constant speed simultaneously, and the control of message is to need the problem that solves in the analog message process of transmitting at random.
Summary of the invention
The present invention aims to provide that a kind of CPU of employing calculates and the FPGA hardware logic is controlled the mode that combines message is at random controlled at interval, reaches the random frame interval control method of constant rate of speed simultaneously.
The technical scheme of a kind of random frame interval control method of the present invention is as follows:
A kind of random frame interval control method of the present invention may further comprise the steps:
The first step: calculate the frame period G between message, under the situation that does not comprise standard frame interval 12 bytes, computing formula is:
Wherein:
The speed of the message that R-need send,
The L-message length,
A byte between the 12-standard frame,
8-lead code byte,
R
1-port linear velocity, and R
1<R;
Second step: be sent completely the message of L byte when transmit control device after, latency counter loading scope from the M sequence generator is the random value m of 0~2G, and m ≠ 0, and begin to carry out the calculating of byte number time corresponding value, it is 0 that output simultaneously sends control request signal Req signal, and control subordinate logic stops message and produces;
The 3rd step: when latency counter counting reaches random value m, and m ≠ 0 o'clock, the notice transmit control device sends next data message, and it is 1 that output sends control request signal Req signal, and control subordinate logic produces message;
The 4th step: carry out the operation of second step.
The beneficial effect of a kind of random frame interval control method of the present invention is: in a kind of random frame interval control method of the present invention, because m is a random value, so sending the time of its wait of control also is random value, thereby sending message also is random value at interval, described control method has solved the problem of dispatching transmission at each stream of simulating the condition of showing mercy in proportion effectively, can reach very high control precision simultaneously.
Description of drawings
Fig. 1 is the control flow chart of a kind of random frame interval control method of the present invention.
Embodiment
When using a kind of random frame interval control method of the present invention, at first, calculate the frame period G between message, do not comprising standard frame at interval under the situation of 12 bytes, computing formula is:
Wherein:
The speed of the message that R-need send,
The L-message length,
A byte between the 12-standard frame,
8-lead code byte,
R
1-port linear velocity, and R
1<R;
Referring to accompanying drawing 1, be sent completely the message of L byte when transmit control device after, latency counter loading scope from the M sequence generator is the random value m of 0~2G, and m ≠ 0, and begin to carry out the calculating of byte number time corresponding value, it is 0 that output simultaneously sends control request signal Req signal, and control subordinate logic stops message and produces; When latency counter counting reaches random value m, and m ≠ 0 o'clock, the notice transmit control device sends next data message, and it is 1 that output sends control request signal Req signal, and control subordinate logic produces message; So circulation.Because m is a random value, also be random value so send the time of its wait of control, also be random value at interval thereby send message.
Claims (1)
1. a kind of random frame interval control method of the present invention is characterized in that: may further comprise the steps:
The first step: calculate the frame period G between message, under the situation that does not comprise standard frame interval 12 bytes, computing formula is:
Wherein:
The speed of the message that R-need send,
The L-message length,
A byte between the 12-standard frame,
8-lead code byte,
R
1-port linear velocity, and R
1<R;
Second step: be sent completely the message of L byte when transmit control device after, latency counter loading scope from the M sequence generator is the random value m of 0~2G, and m ≠ 0, and begin to carry out the calculating of byte number time corresponding value, it is 0 that output simultaneously sends control request signal Req signal, and control subordinate logic stops message and produces;
The 3rd step: when latency counter counting reaches random value m, and m ≠ 0 o'clock, the notice transmit control device sends next data message, and it is 1 that output sends control request signal Req signal, and control subordinate logic produces message;
The 4th step: carry out the operation of second step.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010100026751A CN102013941B (en) | 2010-01-21 | 2010-01-21 | Random frame spacing control method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN2010100026751A CN102013941B (en) | 2010-01-21 | 2010-01-21 | Random frame spacing control method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102013941A true CN102013941A (en) | 2011-04-13 |
CN102013941B CN102013941B (en) | 2013-09-25 |
Family
ID=43843976
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN2010100026751A Active CN102013941B (en) | 2010-01-21 | 2010-01-21 | Random frame spacing control method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102013941B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514134A (en) * | 2013-10-22 | 2014-01-15 | 浪潮电子信息产业股份有限公司 | Random transmission method for chip prototype verification messages |
CN104580005A (en) * | 2015-01-13 | 2015-04-29 | 天津市德力电子仪器有限公司 | Method for sending random length message according to flow model accurately |
CN110290020A (en) * | 2019-06-17 | 2019-09-27 | 北京挚友科技有限公司 | A kind of ethernet test instrument high-precision flow percentage production method and device |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6665266B1 (en) * | 1999-11-23 | 2003-12-16 | International Business Machines Corporation | Method and apparatus for multiplexing a multitude of separate data streams into one shared data channel, while maintaining CBR requirements |
CN1798099A (en) * | 2004-12-29 | 2006-07-05 | 华为技术有限公司 | Method for implementing dynamic speed adjustment for data packets based on logic |
CN1980227A (en) * | 2005-11-29 | 2007-06-13 | 华为技术有限公司 | Real-time protocol text transmission method in wineless communication system |
US20080316936A1 (en) * | 2007-06-19 | 2008-12-25 | Tadashi Enomoto | Data transfer rate variance measurement method, apparatus, system, and storage medium for storing program |
CN101447932A (en) * | 2008-12-31 | 2009-06-03 | 华为技术有限公司 | Method for transmitting and receiving voice message and device and system thereof |
-
2010
- 2010-01-21 CN CN2010100026751A patent/CN102013941B/en active Active
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US6665266B1 (en) * | 1999-11-23 | 2003-12-16 | International Business Machines Corporation | Method and apparatus for multiplexing a multitude of separate data streams into one shared data channel, while maintaining CBR requirements |
CN1798099A (en) * | 2004-12-29 | 2006-07-05 | 华为技术有限公司 | Method for implementing dynamic speed adjustment for data packets based on logic |
CN1980227A (en) * | 2005-11-29 | 2007-06-13 | 华为技术有限公司 | Real-time protocol text transmission method in wineless communication system |
US20080316936A1 (en) * | 2007-06-19 | 2008-12-25 | Tadashi Enomoto | Data transfer rate variance measurement method, apparatus, system, and storage medium for storing program |
CN101447932A (en) * | 2008-12-31 | 2009-06-03 | 华为技术有限公司 | Method for transmitting and receiving voice message and device and system thereof |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103514134A (en) * | 2013-10-22 | 2014-01-15 | 浪潮电子信息产业股份有限公司 | Random transmission method for chip prototype verification messages |
CN103514134B (en) * | 2013-10-22 | 2017-02-15 | 郑州云海信息技术有限公司 | Random transmission method for chip prototype verification messages |
CN104580005A (en) * | 2015-01-13 | 2015-04-29 | 天津市德力电子仪器有限公司 | Method for sending random length message according to flow model accurately |
CN110290020A (en) * | 2019-06-17 | 2019-09-27 | 北京挚友科技有限公司 | A kind of ethernet test instrument high-precision flow percentage production method and device |
Also Published As
Publication number | Publication date |
---|---|
CN102013941B (en) | 2013-09-25 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111026016B (en) | Programmable controller based on double FPGA (field programmable Gate array) framework and industrial control system | |
CN207281544U (en) | Universal real time kinematics control system based on EtherCAT buses | |
CN102013941B (en) | Random frame spacing control method | |
CN106292409B (en) | Real-time simulation system based on FPGA multi-rate optical fiber communication and simulation method thereof | |
CN104850170A (en) | Crystal-metering-free SoC (system-on-chip) and clock acquiring method thereof | |
CN110149259B (en) | GJB289A bus scheduling method and device based on hybrid triggering | |
CN103178987A (en) | Digital transformer substation distribution testing method based on ZigBee wireless technology | |
CN104580005A (en) | Method for sending random length message according to flow model accurately | |
CN106209209B (en) | A kind of method and system of satellite Star Service and observing and controlling telemetry data transmission | |
CN103763063B (en) | Gearbox circuit for reducing data bit width under condition of not changing Baud rate of data transmission and working method | |
CN105955398B (en) | A kind of system timing device and time synchronization method based on FPGA | |
CN104734900A (en) | Sending control method for communication protocol testing | |
CN102013939A (en) | Error code generating method and device and system for realizing error code insertion | |
CN106788924A (en) | A kind of sampling value message loses the message generation system and method for controlled output function | |
CN101340357A (en) | Debugging simulation system and method for remote monitoring terminal of subway safe door system | |
CN102141574B (en) | Portable turbine dynamic rotating speed measuring device and method | |
CN104486144A (en) | Deterministic simulation method of digitized end system of AFDX (Avionics Full Duplex Switched Ethernet) network | |
Ding et al. | The research of optimization parameter based on Lorenz chaotic masking secure communication | |
CN104333428B (en) | Time slot calibration method and time slot calibrating installation based on radio communication | |
CN100589094C (en) | Universal serial bus (USB) interface apparatus and method | |
KR20170094699A (en) | Digital Data Communication Module and its Data Simulator | |
CN101826011A (en) | Automatic Verilog HDL code generator of parallel CRC (Cyclic Redundancy Check) algorithm and method thereof | |
CN106230536B (en) | A kind of real-time Communication for Power for power electronics distributed AC servo system and synchronous transmission system | |
RU209397U1 (en) | Device for modeling the process of information exchange | |
CN109005089A (en) | A kind of network node response Time delay measurement method of non-intervention type |
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 | ||
C56 | Change in the name or address of the patentee | ||
CP03 | Change of name, title or address |
Address after: 545006 the Guangxi Zhuang Autonomous Region Avenue in the City District of Liuzhou city in Guangxi, No. 17, science and Technology Park Patentee after: Liuzhou Dadi telecommunication technology Limited by Share Ltd Address before: 100083 Beijing city Haidian District Wudaokou Dongsheng Park Huaqingjiayuan No. 7 Building 1601 room Patentee before: Liuzhou Dadi Telecommunication Equipment Co., Ltd. |