CN114024652A - Speed regulation method for simulating constant stream and burst stream and network tester - Google Patents

Speed regulation method for simulating constant stream and burst stream and network tester Download PDF

Info

Publication number
CN114024652A
CN114024652A CN202111278298.9A CN202111278298A CN114024652A CN 114024652 A CN114024652 A CN 114024652A CN 202111278298 A CN202111278298 A CN 202111278298A CN 114024652 A CN114024652 A CN 114024652A
Authority
CN
China
Prior art keywords
data
data frame
stream
current position
current
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
CN202111278298.9A
Other languages
Chinese (zh)
Other versions
CN114024652B (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.)
Jiangsu Xinertai Intelligent Equipment Co ltd
Original Assignee
Jiangsu Xinertai Intelligent Equipment 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 Jiangsu Xinertai Intelligent Equipment Co ltd filed Critical Jiangsu Xinertai Intelligent Equipment Co ltd
Priority to CN202111278298.9A priority Critical patent/CN114024652B/en
Publication of CN114024652A publication Critical patent/CN114024652A/en
Application granted granted Critical
Publication of CN114024652B publication Critical patent/CN114024652B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0006Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format
    • H04L1/0007Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length
    • H04L1/0008Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission format by modifying the frame length by supplementing frame payload, e.g. with padding bits
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L1/00Arrangements for detecting or preventing errors in the information received
    • H04L1/0001Systems modifying transmission characteristics according to link quality, e.g. power backoff
    • H04L1/0002Systems modifying transmission characteristics according to link quality, e.g. power backoff by adapting the transmission rate

Landscapes

  • Engineering & Computer Science (AREA)
  • Quality & Reliability (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a speed regulation method for simulating constant stream and burst stream and a network tester, wherein priorities are set for different data streams, the data streams are arranged from high to low according to the priorities, data frames in each data stream are arranged according to respective frame intervals, and different data streams are combined to form a stream combination stream; inserting a current data frame into the combined stream, and when the length of the current position meets the condition or meets the condition after the length of the current position is adjusted, or searching the interval of the data frames meeting the condition, and inserting the current data frame; and determining whether to adjust the positions of the N data frames before the current position according to the priority of the N data frames before the current position and the priority of the current data frame so as to ensure that the frame spacing of each data stream and the burst interval between each data frame in the combined stream are constant, wherein the network tester adopts a speed regulation method of simulating constant stream and burst stream to combine multiple data streams, so that the ports of the tester are reduced, and the cost is reduced.

Description

Speed regulation method for simulating constant stream and burst stream and network tester
Technical Field
The invention relates to the technical field of data flow, in particular to a speed regulation method for simulating constant flow and burst flow and a network tester.
Background
The network device is the core of the network, the performance of the network device directly affects the network scale, the network stability and the network expandability, and the network tester is used for applying different loads to the tested device, verifying the performance of the tested device and testing the network device.
The network device transmits data in a data stream mode, wherein various data streams comprise data frames, data frame intervals are arranged among the data frames, various data streams are transmitted according to the data frame intervals of the various data streams, the data frame intervals are different, and the transmission rates are different. When the data frame interval is constant, the data streams all belong to a constant stream.
In the existing test, data streams of various data intervals are transmitted by different ports and then uploaded to a transmission line in a parallel or serial mode, so that test equipment is required to be provided with a plurality of ports, and the cost of the test equipment is increased.
When various data streams are transmitted in a combined mode, intervals of the data streams are not in equal proportion, data frames of different data streams collide at a certain position, the intervals of the data frames are changed, and therefore the transmission rate of the combined data stream is not uniform. During network transmission, various normal and abnormal data frames are also distributed in the network, and in such a case, the conventional test method cannot truly reflect the situation that the IP network equipment is applied to the network.
Therefore, it is an urgent problem to perform a higher-level test on the network device to solve the combination of data streams during the test.
Disclosure of Invention
The invention aims to provide a speed regulation method for simulating constant stream and burst stream and a network tester, which are used for obtaining the combined stream of the data stream with constant data frame interval and constant burst interval by setting priorities for different data streams and inserting a current data frame into the combined data stream when the current position length is met or is met after adjustment.
In a first aspect, the above object of the present invention is achieved by the following technical solutions:
a speed regulation method for simulating constant stream plus burst stream sets priority for different data streams, the data streams are arranged from high to low according to the priority, the data frames in each data stream are arranged according to respective frame interval, and different data streams are combined to form a stream combination stream; inserting a current data frame into the combined stream, and when the length of the current position meets the condition or meets the condition after the length of the current position is adjusted, or searching the interval of the data frames meeting the condition, and inserting the current data frame; and determining whether to adjust the positions of the N data frames before the current position according to the priority of the N data frames before the current position and the priority of the current data frame so as to ensure that the frame interval of each data stream and the burst interval between each data frame in the combined stream are constant, wherein N is a positive integer greater than or equal to 1.
The invention is further configured to: inserting the current data frame into the combined stream, and inserting the current data frame when the length of the inserted current position is enough; when the length of the current position is not enough, comparing the priority of a first data stream to which a first data frame belongs before the current position with the priority of a second data stream to which the current data frame belongs, if the first data stream and the second data stream belong to the same data stream or have the same priority, adjusting the position of the first data frame before the current position, and inserting the current data frame when the length of the current position is enough; if the priority of the first data stream is higher than that of the second data stream, searching a first data frame interval meeting the length requirement before a first data frame before the current position, and inserting the current data frame at the position of the first data frame interval; the length of the current position is enough, which means the length between the previous data frame and the next data frame of the current position, and meets the requirements of the length of the current data frame and the distance between the current data frames.
The invention is further configured to: and after the first data stream and the second data stream belong to the same data stream or have the same priority, and the position of the first data frame before the current position is adjusted, if the length of the current position after adjustment is not enough, determining to adjust the position of the second data frame or search the distance between the second data frames before the second data frame and meeting the length requirement according to the priority of the second data frame before the first data frame.
The invention is further configured to: if the priority of the first data post and the priority of the second data frame belong to the same data stream or the priority of the first data post and the priority of the second data frame are the same, the position of the second data frame is adjusted, then the position of the first data frame is adjusted, and the like, the positions of N data frames before the current position are adjusted until the length of the current position is enough.
The invention is further configured to: and searching the first data frame interval, and discarding the current data frame if the combination stream starting position is not found.
The invention is further configured to: the method comprises the following steps:
s1, starting;
s2, judging whether the length of the current position is enough, if not, entering the next step, and if so, turning to S8;
S3、i=1;
s4, judging whether the ith data frame before the current position and the data frame to be inserted are in the same priority or belong to the same data stream, if so, entering the next step, and if not, turning to S9;
s5, adjusting the position of the ith data frame;
s6, judging whether the length of the adjusted current position is enough, if not, entering the next step, and if so, turning to S8;
s7, i = i +1, go to S4;
s8, inserting the current data frame into the current position, and turning to S13;
s9, searching a first data frame interval meeting the length requirement before the current position;
s10, whether the first data frame interval is found or not is judged, if yes, the next step is carried out, and if not, S12 is carried out;
s11, inserting the current data frame into the first data frame interval position, and turning to S13;
s12, discarding the current data frame;
and S13, ending.
In a second aspect, the above object of the present invention is achieved by the following technical solutions:
a speed regulation method for simulating constant flow and burst flow by a network tester includes setting a global schedule table and a data frame information list for all data flows, determining cycle number, sequencing data flows according to priority, carrying out multi-data flow combination from the data flow with the highest priority, inserting current data frame into current position or first data frame interval when the length of current position of combined flow is enough or the position of data frame before current position is adjusted to make the length of current position of combined flow be enough or first data frame interval with enough length is existed in combined flow, updating global schedule table, traversing all data frames in data frame information list and all data flows in global schedule table to obtain combined flow with constant frame interval of each data flow and constant burst interval of combined flow.
The invention is further configured to: and adjusting the position of the data frame before the current position or searching the first data frame interval by adopting the method according to the priority of the current data frame and the priority of the data stream of the data frame before the current position.
In a third aspect, the above object of the present invention is achieved by the following technical solutions:
a network tester comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, the processor implementing the method when executing the computer program.
In a fourth aspect, the above object of the present invention is achieved by the following technical solutions:
a computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to the present application.
Compared with the prior art, the beneficial technical effects of this application do:
1. the method and the device determine whether the positions of the data frames with different priorities in the combined stream can be adjusted by setting the priorities of different data streams, so that the space between the data frames with high priorities is kept constant;
2. furthermore, the method and the device ensure constant burst intervals by adjusting the data frame intervals of the same level of priority or the same data stream;
3. further, under the condition that the current position is not adjustable, the current position is searched forward, and the current data frame is inserted at the position where the data frame interval meets the requirement, so that the data frame interval of the combined stream is ensured to be constant.
Drawings
FIG. 1 is a schematic flow chart of a throttling method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of data frame insertion according to an embodiment of the present application;
fig. 3 is a flowchart illustrating a method for throttling a network tester according to an embodiment of the present application.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings.
Detailed description of the preferred embodiment
The speed regulation method for simulating the constant stream and the burst stream is a static method for combining different data streams, each data stream has the own minimum data frame interval, the data streams with different data frame intervals are combined together to form a combined stream, and the combined stream is uploaded through one port, so that the number of the ports is reduced.
The priority is set for different data streams, and when different data streams are combined, the priority is reduced in sequence from the highest priority for arrangement.
For convenience of description, two data streams are illustrated in this application, and so on.
The minimum data inter-frame distance includes a data frame length and an effective length between data frames.
Currently, a current data frame is to be inserted into a current position of a combined stream, one data frame is respectively located before and after the current position of the combined stream, the length between two data frames is the length of the current position, and the two data frames belong to the same data stream or different data streams.
Firstly, whether the length of the current position meets the requirement of the current data frame on the interval is detected, whether the length of the current position is more than or equal to 2 times of the interval of the current data frame and the length of the current data frame is detected, and if the length of the current position meets the requirement, the current data frame is inserted into the current position.
If the current position does not meet the requirement, judging a first priority of a data stream where a first data frame is located before the current position and a second priority of the data stream where the current data frame is located, if the first priority and the second priority belong to the same priority level or the first data frame and the current data frame belong to the same data stream, adjusting the position of the first data frame, expanding the length of the current position, continuously judging whether the expanded length of the current position meets the requirement of inserting the current data frame, and if so, inserting the current data frame at the expanded current position; if the length requirement is not met, continuously judging the third priority of the data stream of the second data frame before the current position and the second priority of the data stream of the current data frame, if the third priority and the second priority belong to the same priority level, or the second data frame and the current data frame belong to the same data stream, adjusting the position of the second data frame, expanding the length of the current position, and so on, adjusting the positions of N data frames before the current position until the length of the current position meets the requirement.
If the first priority is higher than the second priority, the position of the first data frame cannot be adjusted, the data frame interval meeting the length requirement before the current position is searched, and if the data frame interval is searched, the current data frame is inserted into the position of the first data frame interval; if not found, the current data frame is discarded.
Similarly, if the third priority is higher than the second priority, the position of the second data frame is not adjustable, a second data frame interval meeting the length requirement before the current position is searched, and if the second data frame interval is searched, the current data frame is inserted into the position of the second data frame interval; if not found, the current data frame is discarded.
Here, when the current data frame is inserted, the priority of the data stream in the combined stream must be higher than or equal to the priority of the data stream where the current data frame is located, and the data stream with low priority has not yet entered the combined stream.
A speed regulation method for simulating constant stream plus burst stream, as shown in fig. 1, includes the following steps:
s1, starting;
s2, judging whether the length of the current position is enough, if not, entering the next step, and if so, turning to S8;
S3、i=1;
s4, judging whether the ith data frame before the current position and the data frame to be inserted are in the same priority or belong to the same data stream, if so, entering the next step, and if not, turning to S9;
s5, adjusting the position of the ith data frame;
s6, judging whether the length of the adjusted current position is enough, if not, entering the next step, and if so, turning to S8;
s7, i = i +1, go to S4;
s8, inserting the current data frame into the current position, and turning to S13;
s9, searching a first data frame interval meeting the length requirement before the current position;
s10, whether the first data frame interval is found or not is judged, if yes, the next step is carried out, and if not, S12 is carried out;
s11, inserting the current data frame into the first data frame interval position, and turning to S13;
s12, discarding the current data frame;
and S13, ending.
Specifically, as shown in fig. 2, two data streams 1 and 2 form a combined stream, the priority of the data stream 1 is higher than that of the data stream 2, and the data frame of the data stream 2 is inserted between the data frames of the data stream 1.
The data stream 1 comprises data frames 11, 12, 13, and has a data interval 1 therebetween, the data stream 2 comprises data frames 21, 22, 23, 24, 25, 26, wherein the interval between the data frames 21, 22 is the same as the interval between the data frames 22, 23, and is a data interval 2, and the interval between the data frames 21, 24 is a data interval 3, the data frame 21 is inserted between the data frames 11, 12, it is determined whether the length of the data interval 1 satisfies the length requirement of the data frame 21, and the data frame 21 is inserted between the data frames 11, 12 after it is determined that the length satisfies the requirement.
And then inserting the data frame 22 between the data frames 21 and 12, judging whether the interval between the data frames 21 and 12 does not meet the length requirement or not if the priority of the data frame 21 is the same as that of the data frame 22 or belongs to the same data stream, moving the data frame 21 in the direction of the data frame 11 to increase the interval between the data frame 21 and the data frame 12 if the interval between the data frame 21 and the data frame 12 does not meet the requirement, and inserting the data frame 22 between the data frame 21 and the data frame 12 if the interval between the data frame 21 and the data frame 12 meets the requirement.
Thirdly, inserting the data frame 23 between the data frames 22 and 12, judging whether the interval between the data frames 22 and 12 does not meet the length requirement after judgment, judging whether the priority of the data frame 22 is the same as the priority of the data frame 23 or belongs to the same data stream, moving the data frame 22 towards the data frame 11 after judgment that the data frame 22 and the data frame 12 belong to the same data stream, increasing the interval between the data frame 22 and the data frame 12, judging whether the data frame 21 and the data frame 23 belong to the same data stream or the same priority if the interval between the data frame 22 and the data frame 12 does not meet the condition, moving the data frame 21 towards the data frame 11 again after judgment that the data frame 21 and the data frame 23 belong to the same data stream 2, and inserting the data frame 23 between the data frame 22 and the data frame 12 when the interval between the data frame 22 and the data frame 12 meets the condition.
This completes the insertion of the data frames 21, 22, 23 between the data frames 11 and 12.
And by analogy, completing the insertion of the data stream 2 into the data stream 1 to form a combined stream.
Detailed description of the invention
According to the speed regulation method for simulating the constant flow and the burst flow by the network tester, a global scheduling table and a data frame information list are set for all data flows, the cycle number is calculated according to the data frame information, and the data flows are sequenced according to the priority of the data flows.
And combining multiple data streams from the data stream with the highest priority, and inserting data frames with the same priority or the lower priority among the data frames with the higher priority to form a combined stream.
Inserting a current data frame at the current position of the combined stream, judging whether the length of the current position meets the requirement of the current data frame on the length, and if the length of the current position is enough, inserting the current data frame;
if the length of the current position is not enough, judging whether the priority of the data stream of the previous data frame at the current position is the same as the priority of the current data frame or whether the priority of the data stream of the current data frame and the priority of the data stream of the current data frame belong to the same data stream; and if the expanded current position does not meet the requirement, continuously judging whether the priority of the second data frame before the current position is the same as the priority of the current data frame or whether the priority of the second data frame before the current position and the priority of the current data frame belong to the same data stream, if the priorities are the same or the same data stream is located, adjusting the position of the second data frame before the current position, and repeating the steps until the current position meets the requirement, and inserting the current data frame.
If the priority of the previous data frame or the previous second data frame is higher than that of the current data frame, searching forward to see whether the data frame interval meeting the requirement exists, if the data frame interval meeting the requirement can be found, inserting the current data, and if the data frame interval meeting the requirement cannot be found, discarding the current data frame.
And traversing all the data frames in the data frame information list and all the data streams in the global scheduling table to form a combined stream comprising all the data streams, wherein each data stream in the combined stream maintains a relatively constant frame interval, and the data frames of each data stream maintain a relatively constant data frame interval.
Data frame 11 and data frames 21, 22, 23 contain data frame information, each object of which holds current position information and position information of the next frame; the global schedule is a collection of all data frames; the number of times that the data frame information list appears in the final scheduling table is the cycle number.
Specifically, as shown in fig. 3, the method includes the following steps:
a1, start;
a2, initializing a global schedule table and a data frame information list, and determining the cycle number;
a3, sorting according to the priority of the data stream;
a4, selecting a data stream;
a5, starting a cycle;
a6, processing a data frame information list;
a7, when the current position is long enough, or the adjusted length is long enough, or there is a data interframe space of sufficient length in the combined stream,
a8, inserting the current data frame in the data frame interval with enough current position or length, and updating the front and back node data;
a9, updating the global schedule;
a10, judging whether the data frame information list is empty, if yes, entering the next step, and if not, turning to A6;
a11, judging whether the cycle times are finished, if so, entering the next step, and if not, turning to A5;
a12, judging whether all data streams are traversed, if so, entering the next step, and if not, turning to A4;
a13, adjusting the final position of the global schedule;
and A14, ending.
In step a7, a speed-adjusting method for simulating constant stream plus burst stream in the first embodiment is used to determine and adjust the length of the current position, or to search for a data frame interval with sufficient length in the combined stream, and when one of the above three conditions is met, the current data frame is inserted into the current position or the data frame interval, and when none of the above three conditions is met, the current data frame is discarded.
Detailed description of the preferred embodiment
An embodiment of the present invention provides a network tester terminal device, where the terminal device includes: a processor, a memory and a computer program, such as a pacing method program simulating constant stream plus burst, stored in the memory and executable on the processor, the processor implementing the method of embodiment 1 when executing the computer program.
Illustratively, the computer program may be partitioned into one or more modules/units that are stored in the memory and executed by the processor to implement the invention. The one or more modules/units may be a series of computer program instruction segments capable of performing specific functions, which are used to describe the execution process of the computer program in the network tester terminal equipment. For example, the computer program may be divided into a plurality of modules, each module having the following specific functions:
1. the data frame interval length detection module is used for detecting the data frame interval;
2. the data frame interval adjusting module is used for adjusting the data frame interval according to the priority of the data frame;
3. and the searching module is used for searching the data frame interval meeting the conditions.
The network tester terminal equipment can be computing equipment such as a desktop computer, a notebook computer, a palm computer and a cloud server. The network tester terminal equipment can comprise a processor and a memory. It will be appreciated by those skilled in the art that the above examples are merely illustrative of one type of network tester termination device and do not constitute a limitation of one type of network tester termination device, and may include more or fewer components than those shown, or some components in combination, or different components, for example, the one type of network tester termination device may also include input output devices, network access devices, buses, etc.
The Processor may be a Central Processing Unit (CPU), other general purpose Processor, a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field-Programmable Gate Array (FPGA) or other Programmable logic device, discrete Gate or transistor logic device, discrete hardware component, etc. The general purpose processor may be a microprocessor or the processor may be any conventional processor or the like, the processor being the control center of the one type of network tester terminal device, with various interfaces and lines connecting the various parts of the entire one type of network tester terminal device.
The memory may be used to store the computer programs and/or modules, and the processor may implement the various functions of the network tester terminal device by running or executing the computer programs and/or modules stored in the memory and invoking data stored in the memory. The memory may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. In addition, the memory may include high speed random access memory, and may also include non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) Card, a Flash memory Card (Flash Card), at least one magnetic disk storage device, a Flash memory device, or other volatile solid state storage device.
Detailed description of the invention
The integrated module/unit of the network tester terminal device can be stored in a computer readable storage medium if the integrated module/unit is realized in the form of a software functional unit and sold or used as an independent product. Based on such understanding, all or part of the flow of the method according to the embodiments of the present invention may also be implemented by a computer program, which may be stored in a computer-readable storage medium, and when the computer program is executed by a processor, the steps of the method embodiments may be implemented. Wherein the computer program comprises computer program code, which may be in the form of source code, object code, an executable file or some intermediate form, etc. The computer-readable medium may include: any entity or device capable of carrying the computer program code, recording medium, usb disk, removable hard disk, magnetic disk, optical disk, computer Memory, Read-only Memory (ROM), Random Access Memory (RAM), electrical carrier wave signals, telecommunications signals, software distribution medium, etc. It should be noted that the computer readable medium may contain content that is subject to appropriate increase or decrease as required by legislation and patent practice in jurisdictions, for example, in some jurisdictions, computer readable media does not include electrical carrier signals and telecommunications signals as is required by legislation and patent practice.
The embodiments of the present invention are preferred embodiments of the present invention, and the scope of the present invention is not limited by these embodiments, so: all equivalent changes made according to the structure, shape and principle of the invention are covered by the protection scope of the invention.

Claims (10)

1. A speed regulation method for simulating constant stream and burst stream is characterized in that: setting priorities for different data streams, arranging the data streams from high to low according to the priorities, arranging data frames in each data stream according to respective frame intervals, and combining different data streams to form a stream combination stream; inserting a current data frame into the combined stream, and when the length of the current position meets the condition or meets the condition after the length of the current position is adjusted, or searching the interval of the data frames meeting the condition, and inserting the current data frame; and determining whether to adjust the positions of the N data frames before the current position according to the priority of the N data frames before the current position and the priority of the current data frame so as to ensure that the frame interval of each data stream and the burst interval between each data frame in the combined stream are constant, wherein N is a positive integer greater than or equal to 1.
2. The method for simulating the speed regulation of the constant stream plus the burst stream according to claim 1, wherein: inserting the current data frame into the combined stream, and inserting the current data frame when the length of the inserted current position is enough; when the length of the current position is not enough, comparing the priority of a first data stream to which a first data frame belongs before the current position with the priority of a second data stream to which the current data frame belongs, if the first data stream and the second data stream belong to the same data stream or have the same priority, adjusting the position of the first data frame before the current position, and inserting the current data frame when the length of the current position is enough; if the priority of the first data stream is higher than that of the second data stream, searching a first data frame interval meeting the length requirement before a first data frame before the current position, and inserting the current data frame at the position of the first data frame interval; the length of the current position is enough, which means the length between the previous data frame and the next data frame of the current position, and meets the requirements of the length of the current data frame and the distance between the current data frames.
3. The method for simulating the speed regulation of the constant stream plus the burst stream according to claim 2, wherein: and after the first data stream and the second data stream belong to the same data stream or have the same priority, and the position of the first data frame before the current position is adjusted, if the length of the current position after adjustment is not enough, determining to adjust the position of the second data frame or search the distance between the second data frames before the second data frame and meeting the length requirement according to the priority of the second data frame before the first data frame.
4. The method for simulating the speed regulation of the constant stream plus the burst stream according to claim 3, wherein: if the priority of the first data post and the priority of the second data frame belong to the same data stream or the priority of the first data post and the priority of the second data frame are the same, the position of the second data frame is adjusted, then the position of the first data frame is adjusted, and the like, the positions of N data frames before the current position are adjusted until the length of the current position is enough.
5. The method for simulating the speed regulation of the constant stream plus the burst stream according to claim 2, wherein: and searching the first data frame interval, and discarding the current data frame if the combination stream starting position is not found.
6. The method for simulating the speed regulation of the constant stream plus the burst stream according to claim 1, wherein: the method comprises the following steps:
s1, starting;
s2, judging whether the length of the current position is enough, if not, entering the next step, and if so, turning to S8;
S3、i=1;
s4, judging whether the ith data frame before the current position and the data frame to be inserted are in the same priority or belong to the same data stream, if so, entering the next step, and if not, turning to S9;
s5, adjusting the position of the ith data frame;
s6, judging whether the length of the adjusted current position is enough, if not, entering the next step, and if so, turning to S8;
s7, i = i +1, go to S4;
s8, inserting the current data frame into the current position, and turning to S13;
s9, searching a first data frame interval meeting the length requirement before the current position;
s10, whether the first data frame interval is found or not is judged, if yes, the next step is carried out, and if not, S12 is carried out;
s11, inserting the current data frame into the first data frame interval position, and turning to S13;
s12, discarding the current data frame;
and S13, ending.
7. A speed regulation method for simulating constant stream and burst stream by a network tester is characterized in that: setting a global scheduling table and a data frame information list for all data streams, determining the number of cycles, sequencing the data streams according to the priority, combining the data streams from the data stream with the highest priority, inserting the current data frame into the current position or the first data frame interval when the length of the current position of the combined stream is enough, or adjusting the position of the data frame before the current position to ensure that the length of the current position of the combined stream is enough, or when the combined stream has the first data frame interval with enough length, updating the global scheduling table, traversing all data frames in the data frame information list and all data streams in the global scheduling table to obtain the combined stream with constant frame interval of each data stream and constant burst interval of the combined stream.
8. The speed regulation method for simulating constant stream and burst stream by the network tester according to claim 7, characterized in that: adjusting the position of the data frame before the current position or finding the first data frame interval by the method of any of claims 1-6 according to the priority of the current data frame and the priority of the data stream to which the data frame before the current position belongs.
9. A network tester comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: the processor, when executing the computer program, implements the method of any of claims 1-8.
10. A computer-readable storage medium, in which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 8.
CN202111278298.9A 2021-10-30 2021-10-30 Speed regulation method for simulating constant flow and burst flow and network tester Active CN114024652B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111278298.9A CN114024652B (en) 2021-10-30 2021-10-30 Speed regulation method for simulating constant flow and burst flow and network tester

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111278298.9A CN114024652B (en) 2021-10-30 2021-10-30 Speed regulation method for simulating constant flow and burst flow and network tester

Publications (2)

Publication Number Publication Date
CN114024652A true CN114024652A (en) 2022-02-08
CN114024652B CN114024652B (en) 2023-11-28

Family

ID=80059095

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111278298.9A Active CN114024652B (en) 2021-10-30 2021-10-30 Speed regulation method for simulating constant flow and burst flow and network tester

Country Status (1)

Country Link
CN (1) CN114024652B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010000750A1 (en) * 1999-01-15 2001-05-03 Esteves Eduardo A.S. Method and apparatus for variable and fixed forward link rate control in a mobile radio communication system
EP1078485B1 (en) * 1998-05-14 2004-03-03 Telefonaktiebolaget L M Ericsson (Publ) Data transmission over a communications link with variable transmission rates
WO2017063457A1 (en) * 2015-10-12 2017-04-20 深圳市中兴微电子技术有限公司 Rate adaptation method and apparatus, and computer storage medium
CN107547171A (en) * 2016-06-29 2018-01-05 华为技术有限公司 The method and apparatus of transmission frame

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1078485B1 (en) * 1998-05-14 2004-03-03 Telefonaktiebolaget L M Ericsson (Publ) Data transmission over a communications link with variable transmission rates
US20010000750A1 (en) * 1999-01-15 2001-05-03 Esteves Eduardo A.S. Method and apparatus for variable and fixed forward link rate control in a mobile radio communication system
WO2017063457A1 (en) * 2015-10-12 2017-04-20 深圳市中兴微电子技术有限公司 Rate adaptation method and apparatus, and computer storage medium
CN107547171A (en) * 2016-06-29 2018-01-05 华为技术有限公司 The method and apparatus of transmission frame

Also Published As

Publication number Publication date
CN114024652B (en) 2023-11-28

Similar Documents

Publication Publication Date Title
CN107967357B (en) Friend pushing method and system and terminal equipment
CN108984389B (en) Application program testing method and terminal equipment
CN108363788B (en) Post intelligent ranking method and device and computer readable storage medium
CN110765354B (en) Information pushing method and device, electronic equipment and storage medium
US20210176174A1 (en) Load balancing device and method for an edge computing network
WO2019232926A1 (en) Method and apparatus for data consistency checking and flow control, electronic device and storage medium
CN110061930B (en) Method and device for determining data flow limitation and flow limiting values
CN112996020B (en) Bluetooth-based automatic test method and device and Bluetooth test terminal
CN114676040A (en) Test coverage verification method and device and storage medium
US11688215B2 (en) Vehicle performance evaluation method, device and terminal
CN109766282B (en) Stuck detection method, stuck detection device and terminal equipment
CN105681199A (en) Method and device for processing message data in vehicular bus
CN108920601B (en) Data matching method and device
CN114024652A (en) Speed regulation method for simulating constant stream and burst stream and network tester
CN116150067A (en) Bandwidth adjustment method, device, electronic equipment and storage medium
CN116009889A (en) Deep learning model deployment method and device, electronic equipment and storage medium
CN111309475B (en) Detection task execution method and equipment
CN114338386A (en) Network configuration method and device, electronic equipment and storage medium
CN110347683B (en) Data table merging processing method and device
CN111679791B (en) Storage position selection method and device, terminal equipment and storage medium
CN109614246B (en) Message processing method and device and message processing server
CN106411564A (en) Apparatus and method for detecting ethernet frame
CN111027196A (en) Simulation analysis task processing method and device for power equipment and storage medium
WO2018113182A1 (en) Method and device for generating test vector, and storage medium
TWI755176B (en) Method and device for calculating cell distribution density, electronic device, and storage unit

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