CN114338554A - Stream-based random packet loss method and device - Google Patents

Stream-based random packet loss method and device Download PDF

Info

Publication number
CN114338554A
CN114338554A CN202111672406.0A CN202111672406A CN114338554A CN 114338554 A CN114338554 A CN 114338554A CN 202111672406 A CN202111672406 A CN 202111672406A CN 114338554 A CN114338554 A CN 114338554A
Authority
CN
China
Prior art keywords
message
packet loss
random packet
dyeing
speed limit
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.)
Pending
Application number
CN202111672406.0A
Other languages
Chinese (zh)
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.)
Ruijie Networks Co Ltd
Original Assignee
Ruijie Networks 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 Ruijie Networks Co Ltd filed Critical Ruijie Networks Co Ltd
Priority to CN202111672406.0A priority Critical patent/CN114338554A/en
Publication of CN114338554A publication Critical patent/CN114338554A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention discloses a random packet loss method and a device based on flow, wherein the method is applied to network equipment and comprises the following steps: performing message feature matching on the received message according to the configured random packet loss message features; when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule; and discarding the message with the dyeing mark as a preset color, wherein the preset color is the color corresponding to the message within the random packet loss limit value. The embodiment of the invention can solve the problem of low randomness of message packet loss in the application scene needing random packet loss in the prior art.

Description

Stream-based random packet loss method and device
Technical Field
The present invention relates to the field of data communication technologies, and in particular, to a method and an apparatus for random packet loss based on a stream.
Background
Random packet loss refers to an operation in which a network device uncertainties to discard a certain number of packets. As networks are developed, random packet loss is generally used by more and more test scenarios or network scenarios to verify or control performance of some application problems.
However, currently, the discarding of the packet is mainly performed by two modes, namely, rate limiting and filtering, where the rate limiting generally refers to the discarding of the traffic exceeding a certain rate limit by identifying the corresponding packet characteristics of the packet, and further by port rate limiting, queue rate limiting, stream-based (such as matching source internet protocol address IP, destination IP, source four-layer port number, destination four-layer port number) rate limiting, and the like of the chip; filtering generally refers to filtering and discarding the identified packets through port filtering, queue filtering, flow-based filtering (e.g., Access Control Lists (ACL) filtering), and the like.
However, the rate-limiting packet loss can only be performed for the packets exceeding a certain flow rate, and the discarding behavior has a certain randomness, but only the packet loss of the packets exceeding the rate limit occurs. And filtering packet loss to carry out packet loss on the message with a certain characteristic in the matching, wherein the behavior is not random, and the message with the characteristic in the matching is completely discarded. Therefore, the existing speed limit and filtering schemes cannot realize the random packet loss characteristic.
Disclosure of Invention
The embodiment of the invention provides a stream-based random packet loss method and device, which are used for solving the problem of low randomness of packet loss in an application scene needing random packet loss in the prior art.
According to an embodiment of the present invention, a stream-based random packet loss method is provided, where the method is applied to a network device, and includes:
performing message feature matching on the received message according to the configured random packet loss message features;
when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule;
and discarding the message with the dyeing mark as a preset color, wherein the preset color is the color corresponding to the message within the random packet loss limit value.
Optionally, the method further comprises:
counting the number of the messages with the discarded dyeing marks as the preset colors in real time;
and when the number is not less than the configured total packet loss number, stopping executing the step of performing message feature matching on the received message according to the configured random packet loss message features.
Optionally, the method further comprises:
configuring the random packet loss message characteristics to include one or more of message quintuple information, a Differential Service Code Point (DSCP), a transmission control protocol FLAG bit (TCP FLAG), a port, a source media access control address (MAC), a destination MAC and an Ethernet type EtherType; and
and configuring the random packet loss speed limit value and the total packet loss number.
Further, the dyeing and marking the message according to the configured speed limit dyeing rule specifically includes:
when the message is within the configured random packet loss speed limit value, the message is dyed and marked as green;
when the message is beyond the random packet loss speed limit value, dyeing and marking the message as red;
and the random packet loss speed limit value is the number of messages flowing through each second.
Optionally, the discarding the message marked with the dyeing mark as the preset color specifically includes:
and discarding the message with the dyeing mark as green.
According to an embodiment of the present invention, there is also provided a stream-based random packet loss device, where the device is applied to a network device, and the device includes: the device comprises a matching module, a dyeing marking module and a discarding module; wherein the content of the first and second substances,
the matching module is used for matching message characteristics of the received message according to the configured random packet loss message characteristics;
the dyeing marking module is used for dyeing and marking the message according to the configured speed limit dyeing rule when the message accords with the random packet loss message characteristic;
and the discarding module is used for discarding the message with the dyeing mark as the preset color.
Optionally, the apparatus further comprises: the counting module is used for counting the number of the discarded messages marked as the preset colors in real time; and when the number is not less than the configured total packet loss number, triggering the matching module to stop performing message feature matching on the received message according to the configured random packet loss message features.
Optionally, the apparatus further comprises: a configuration module to:
configuring the random packet loss message characteristics to include one or more of message quintuple information, a Differential Service Code Point (DSCP), a transmission control protocol FLAG bit (TCP FLAG), a port, a source media access control address (MAC), a destination MAC and an Ethernet type EtherType; and
and configuring a random packet loss speed limit value and a total packet loss number.
Further, the dyeing marking module is configured to dye and mark the message according to the configured speed-limiting dyeing rule, and specifically is configured to:
when the message is within the configured random packet loss speed limit value, the message is dyed and marked as green;
when the message is beyond the random packet loss speed limit value, dyeing and marking the message as red;
and the random packet loss speed limit value is the number of messages flowing through each second.
Further, the discarding module is configured to discard the message marked as the preset color by the dyeing marker, and specifically configured to:
and discarding the message with the dyeing mark as green.
According to the embodiment of the invention, the electronic equipment comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory complete mutual communication through the communication bus;
a memory for storing a computer program;
a processor for implementing the above method steps when executing the program stored in the memory.
According to an embodiment of the present invention, there is also provided a computer-readable storage medium having stored therein a computer program, which when executed by a processor, performs the above-mentioned method steps.
The invention has the following beneficial effects:
according to the stream-based random packet loss method and device provided by the embodiment of the invention, message feature matching is carried out on the received message according to the configured random packet loss message feature; when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule; and discarding the message with the dyeing mark as the preset color. The embodiment of the invention can realize the discarding of the messages in the speed limit value by identifying the messages which accord with the characteristics of the random packet loss messages, carrying out speed limit dyeing on the messages, then discarding the messages marked as the preset colors, and combining the speed limit packet loss with the color-based message discarding, and controlling the closing of the random packet loss through the configured total packet loss number.
Drawings
Fig. 1 is a flowchart of a random packet loss method based on a stream according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a random packet loss device based on a flow according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram of an electronic device shown in the present application.
Detailed Description
Aiming at the problem that the randomness of message packet loss in an application scene needing random packet loss is not high in the prior art, the stream-based random packet loss method provided by the embodiment of the invention firstly dyes and marks the messages which accord with the random packet loss characteristic according to a speed-limiting dyeing rule, and performs different processing on the messages with different colors marked by dyeing, so that the randomness of the message packet loss is improved. The method of the invention is applied to network equipment, the flow is shown as figure 1, and the execution steps are as follows:
step 101, performing message feature matching on a received message according to configured random packet loss message features;
specifically, in this step, a data processing (Field Process, FP) module of the network device may perform packet feature identification on the received packet.
102, when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule;
when the message hits the pre-configured random packet loss message characteristics, the message is determined to accord with the random packet loss message characteristics, and the message can be subjected to dyeing marking according to the speed limit dyeing rule. Here, when the random packet loss message characteristics include a plurality of random packet loss message characteristics, it may be set that one or a preset number of random packet loss message characteristics are hit, and it may be determined that the message conforms to the random packet loss message characteristics.
And 103, discarding the message with the dyeing mark as a preset color, wherein the preset color is the color corresponding to the message within the random packet loss limit value.
Generally speaking, when the existing message discarding is implemented by speed limit, only the message exceeding the speed limit value is discarded, and therefore, in order to be compatible with the existing message discarding, in the embodiment of the present invention, the message marked with the preset color is discarded by combining the speed limit dyeing of the message, and the preset color is the color corresponding to the message within the random packet discarding speed limit value, so as to implement the discarding of the message not exceeding the speed limit value.
Preferably, the method further comprises:
counting the number of the messages with the discarded dyeing marks as the preset colors in real time;
and when the number is not less than the configured total packet loss number, stopping executing the step 101 to perform message feature matching on the received message according to the configured random packet loss message features. Thus, the purpose of random packet loss based on the flow with total packet loss number control can be realized.
Preferably, the method further comprises:
configuring the random packet loss message characteristics to include one or more of message quintuple information, a Differential Service Coding Point (DSCP), a transmission Control Protocol FLAG bit (TCP) FLAG), a port, a source Media Access Control Address (MAC), a destination MAC, an ethernet type (EtherType), and the like; and
the random packet loss speed limit value and the total packet loss number are configured, where the random packet loss speed limit value may be a number of messages Per Second (PPS), and the random packet loss speed limit value and the total packet loss number may be flexibly set according to needs, which is not limited in the embodiment of the present invention.
The dyeing and marking of the message according to the configured speed limit dyeing rule specifically comprises the following steps:
when the message is within the configured random packet loss speed limit value, the message is dyed and marked as green;
when the message is beyond the random packet loss speed limit value, dyeing and marking the message as red;
and the random packet loss speed limit value is the number of messages flowing through each second. For example, when the random packet loss speed limit value is 50 messages flowing through each second, the first 50 messages received each second belong to messages within the random packet loss speed limit value, and the first 50 messages can be dyed and marked as green; and then, if the messages are received again, the 51 st and later messages are dyed and marked to be red.
The discarding of the message with the dyeing mark as the preset color specifically includes:
and discarding the message with the dyeing mark as green. It should be understood that, because the messages within the random packet loss limit value are usually dyed and marked as green, in order to implement the random packet loss of the messages within the random packet loss limit value, the messages dyed and marked as green need to be discarded here. Those skilled in the art should understand that if the message in the random packet loss speed limit value is dyed and marked as yellow, the message with the dyed and marked as yellow is discarded in this step, and the implementation scheme of the embodiment of the present invention for this variation is also included.
The stream-based random packet loss method provided by the embodiment of the invention performs message feature matching on a received message according to configured random packet loss message features; when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule; and discarding the message with the dyeing mark as the preset color. The embodiment of the invention can realize the discarding of the messages in the speed limit value by identifying the messages which accord with the characteristics of the random packet loss messages, carrying out speed limit dyeing on the messages, then discarding the messages marked as the preset colors, and combining the speed limit packet loss with the color-based message discarding, and controlling the closing of the random packet loss through the configured total packet loss number.
Based on the same inventive concept, an embodiment of the present invention provides a stream-based random packet loss apparatus, which may be disposed in a network device, and has a structure shown in fig. 2, where the apparatus includes: a matching module 21, a dyeing marking module 22, a discarding module 23; wherein the content of the first and second substances,
the matching module 21 is configured to perform packet feature matching on the received packet according to the configured random packet loss packet feature;
the dyeing marking module 22 is configured to dye and mark the packet according to a configured speed limit dyeing rule when the packet conforms to the random packet loss packet characteristic; when the message hits the pre-configured random packet loss message characteristics, the message is determined to accord with the random packet loss message characteristics, and the message can be subjected to dyeing marking according to the speed limit dyeing rule. Here, when the random packet loss message characteristics include a plurality of random packet loss message characteristics, it may be set that one or a preset number of random packet loss message characteristics are hit, and it may be determined that the message conforms to the random packet loss message characteristics.
The discarding module 23 is configured to discard the message marked with the preset color by the dyeing marker. Generally speaking, when the existing message discarding is implemented by speed limit, only the message exceeding the speed limit value is discarded, and therefore, in order to be compatible with the existing message discarding, in the embodiment of the present invention, the message marked with the preset color is discarded by combining the speed limit dyeing of the message, and the preset color is the color corresponding to the message within the random packet discarding speed limit value, so as to implement the discarding of the message not exceeding the speed limit value.
Optionally, the apparatus further comprises: the counting module is used for counting the number of the discarded messages marked as the preset colors in real time; and when the number is not less than the configured total packet loss number, triggering the matching module to stop performing message feature matching on the received message according to the configured random packet loss message features.
Optionally, the apparatus further comprises: a configuration module to:
configuring the random packet loss message characteristics to include one or more of message quintuple information, a Differential Service Code Point (DSCP), a transmission control protocol FLAG bit (TCP FLAG), a port, a source media access control address (MAC), a destination MAC and an Ethernet type EtherType; and
configuring a random packet loss speed limit value and a total packet loss number, where the random packet loss speed limit value may be a number of messages Per Second (PPS), and the random packet loss speed limit value and the total packet loss number may be flexibly set according to needs, which is not limited in the embodiment of the present invention.
Optionally, the dyeing and marking module 22 is configured to dye and mark the message according to the configured speed limit dyeing rule, and specifically is configured to:
when the message is within the configured random packet loss speed limit value, the message is dyed and marked as green;
when the message is beyond the random packet loss speed limit value, dyeing and marking the message as red;
and the random packet loss speed limit value is the number of messages flowing through each second.
Optionally, the discarding module 23 is configured to discard the message marked as the preset color by the dyeing marker, and specifically configured to:
and discarding the message with the dyeing mark as green. It should be understood that, because the messages within the random packet loss limit value are usually dyed and marked as green, in order to implement the random packet loss of the messages within the random packet loss limit value, the messages dyed and marked as green need to be discarded here. Those skilled in the art should understand that if the message in the random packet loss speed limit value is dyed and marked as yellow, the message with the dyed and marked as yellow is discarded in this step, and the implementation scheme of the embodiment of the present invention for this variation is also included.
It should be understood that the principle and process for implementing the stream-based random packet loss device according to the embodiment of the present invention are similar to those in fig. 1 and the embodiment shown above, and are not described herein again.
According to the stream-based random packet loss method and device provided by the embodiment of the invention, message feature matching is carried out on the received message according to the configured random packet loss message feature; when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule; and discarding the message with the dyeing mark as the preset color. The embodiment of the invention can realize the discarding of the messages in the speed limit value by identifying the messages which accord with the characteristics of the random packet loss messages, carrying out speed limit dyeing on the messages, then discarding the messages marked as the preset colors, and combining the speed limit packet loss with the color-based message discarding, and controlling the closing of the random packet loss through the configured total packet loss number.
An electronic device is further provided in the embodiment of the present application, please refer to fig. 3, which includes a processor 510, a communication interface 520, a memory 530 and a communication bus 540, wherein the processor 510, the communication interface 520 and the memory 530 complete communication with each other through the communication bus 540.
A memory 530 for storing a computer program;
the processor 510 is configured to implement the stream-based random packet loss method according to any of the above embodiments when executing the program stored in the memory 530.
The communication interface 520 is used for communication between the electronic apparatus and other apparatuses.
The Memory may include a Random Access Memory (RAM) or a Non-Volatile Memory (NVM), such as at least one disk Memory. Optionally, the memory may also be at least one memory device located remotely from the processor.
The Processor may be a general-purpose Processor, including a Central Processing Unit (CPU), a Network Processor (NP), and the like; but also Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
According to the scheme, the messages which accord with the characteristics of the random packet loss messages are identified, the messages are subjected to speed-limiting dyeing, the dyeing marks are discarded as the messages with preset colors, the discarding of the messages in a speed-limiting value can be realized by combining the speed-limiting packet loss with the color-based message discarding, the closing of the random packet loss is controlled through the configured total packet loss number, and compared with the existing method that the messages which only exceed a certain speed limit are discarded, the randomness of the packet loss is improved, and the requirement of an application scene needing the random packet loss is better met.
Accordingly, an embodiment of the present application further provides a computer-readable storage medium, where instructions are stored in the computer-readable storage medium, and when the instructions are executed on a computer, the computer is caused to execute the stream-based random packet loss method described in any of the foregoing embodiments.
According to the scheme, the messages which accord with the characteristics of the random packet loss messages are identified, the messages are subjected to speed-limiting dyeing, the dyeing marks are discarded as the messages with preset colors, the discarding of the messages in a speed-limiting value can be realized by combining the speed-limiting packet loss with the color-based message discarding, the closing of the random packet loss is controlled through the configured total packet loss number, and compared with the existing method that the messages which only exceed a certain speed limit are discarded, the randomness of the packet loss is improved, and the requirement of an application scene needing the random packet loss is better met.
Those of ordinary skill in the art will understand that: the figures are merely schematic representations of one embodiment, and the blocks or flow diagrams in the figures are not necessarily required to practice the present invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The embodiments in the present specification are described in a progressive manner, and the same and similar parts among the embodiments are referred to each other, and each embodiment focuses on the differences from the other embodiments. In particular, for apparatus or system embodiments, since they are substantially similar to method embodiments, they are described in relative terms, as long as they are described in partial descriptions of method embodiments. The above-described embodiments of the apparatus and system are merely illustrative, and the units described as separate parts may or may not be physically separate, and the parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
In addition, in some of the flows described in the above embodiments and the drawings, a plurality of operations are included in a specific order, but it should be clearly understood that the operations may be executed out of the order presented herein or in parallel, and the sequence numbers of the operations, such as 201, 202, 203, etc., are merely used for distinguishing different operations, and the sequence numbers themselves do not represent any execution order. Additionally, the flows may include more or fewer operations, and the operations may be performed sequentially or in parallel. It should be noted that, the descriptions of "first", "second", etc. in this document are used for distinguishing different messages, devices, modules, etc., and do not represent a sequential order, nor limit the types of "first" and "second" to be different.
The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While alternative embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following appended claims be interpreted as including alternative embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made in the embodiments of the present invention without departing from the spirit or scope of the embodiments of the invention. Thus, if such modifications and variations of the embodiments of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to encompass such modifications and variations.

Claims (12)

1. A random packet loss method based on flow is characterized in that the method is applied to network equipment and comprises the following steps:
performing message feature matching on the received message according to the configured random packet loss message features;
when the message accords with the random packet loss message characteristic, dyeing and marking the message according to a configured speed limit dyeing rule;
and discarding the message with the dyeing mark as a preset color, wherein the preset color is the color corresponding to the message within the random packet loss limit value.
2. The method of claim 1, further comprising:
counting the number of the messages with the discarded dyeing marks as the preset colors in real time;
and when the number is not less than the configured total packet loss number, stopping executing the step of performing message feature matching on the received message according to the configured random packet loss message features.
3. The method of claim 1, further comprising:
configuring the random packet loss message characteristics to include one or more of message quintuple information, a Differential Service Code Point (DSCP), a transmission control protocol FLAG bit (TCP FLAG), a port, a source media access control address (MAC), a destination MAC and an Ethernet type EtherType; and
and configuring the random packet loss speed limit value and the total packet loss number.
4. The method according to any one of claims 1 to 3, wherein the dyeing and marking the message according to the configured speed limit dyeing rule specifically comprises:
when the message is within the configured random packet loss speed limit value, the message is dyed and marked as green;
when the message is beyond the random packet loss speed limit value, dyeing and marking the message as red;
and the random packet loss speed limit value is the number of messages flowing through each second.
5. The method according to claim 4, wherein the discarding the message with the color marked as the preset color specifically comprises:
and discarding the message with the dyeing mark as green.
6. A random packet loss device based on flow, which is applied to a network device, includes: the device comprises a matching module, a dyeing marking module and a discarding module; wherein the content of the first and second substances,
the matching module is used for matching message characteristics of the received message according to the configured random packet loss message characteristics;
the dyeing marking module is used for dyeing and marking the message according to the configured speed limit dyeing rule when the message accords with the random packet loss message characteristic;
and the discarding module is used for discarding the message with the dyeing mark as the preset color.
7. The apparatus of claim 6, further comprising: the counting module is used for counting the number of the discarded messages marked as the preset colors in real time; and when the number is not less than the configured total packet loss number, triggering the matching module to stop performing message feature matching on the received message according to the configured random packet loss message features.
8. The apparatus of claim 6, further comprising: a configuration module to:
configuring the random packet loss message characteristics to include one or more of message quintuple information, a Differential Service Code Point (DSCP), a transmission control protocol FLAG bit (TCP FLAG), a port, a source media access control address (MAC), a destination MAC and an Ethernet type EtherType; and
and configuring a random packet loss speed limit value and a total packet loss number.
9. The apparatus according to any one of claims 6 to 8, wherein the dyeing marking module is configured to dye and mark the message according to a configured speed limit dyeing rule, and is specifically configured to:
when the message is within the configured random packet loss speed limit value, the message is dyed and marked as green;
when the message is beyond the random packet loss speed limit value, dyeing and marking the message as red;
and the random packet loss speed limit value is the number of messages flowing through each second.
10. The apparatus according to claim 9, wherein the discarding module is configured to discard the message marked with the dyeing color as the preset color, and is specifically configured to:
and discarding the message with the dyeing mark as green.
11. An electronic device, characterized in that the electronic device comprises a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any of claims 1-5 when executing a program stored on a memory.
12. A computer-readable storage medium, characterized in that a computer program is stored in the computer-readable storage medium, which computer program, when being executed by a processor, carries out the method steps of any one of the claims 1-5.
CN202111672406.0A 2021-12-31 2021-12-31 Stream-based random packet loss method and device Pending CN114338554A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111672406.0A CN114338554A (en) 2021-12-31 2021-12-31 Stream-based random packet loss method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111672406.0A CN114338554A (en) 2021-12-31 2021-12-31 Stream-based random packet loss method and device

Publications (1)

Publication Number Publication Date
CN114338554A true CN114338554A (en) 2022-04-12

Family

ID=81020443

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111672406.0A Pending CN114338554A (en) 2021-12-31 2021-12-31 Stream-based random packet loss method and device

Country Status (1)

Country Link
CN (1) CN114338554A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766591A (en) * 2022-10-28 2023-03-07 中科驭数(北京)科技有限公司 Fragmentation message flow rate limiting method, DPU fragmentation message forwarding method and device

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083611A (en) * 2006-05-30 2007-12-05 中兴通讯股份有限公司 Apparatus for using color identification L-LSP tunnel packet forwarding priority
CN101741739A (en) * 2009-12-01 2010-06-16 中兴通讯股份有限公司 Method and device for counting messages of output/input port of exchange equipment
CN101834785A (en) * 2010-04-07 2010-09-15 中兴通讯股份有限公司 Method and device for realizing stream filtration
CN106034088A (en) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 Packet loss control method and apparatus thereof
CN106973022A (en) * 2016-01-13 2017-07-21 中兴通讯股份有限公司 File transmitting method and device
CN107547567A (en) * 2017-09-29 2018-01-05 新华三技术有限公司 A kind of anti-attack method and device
CN108965038A (en) * 2018-10-17 2018-12-07 盛科网络(苏州)有限公司 The method and device that specific stream packet abandons reason is quickly positioned by ACL
CN110661716A (en) * 2019-09-16 2020-01-07 锐捷网络股份有限公司 Network packet loss notification method, monitoring device, switch and storage medium
CN110932997A (en) * 2019-12-09 2020-03-27 苏州浪潮智能科技有限公司 Method, device and medium for reducing network traffic packet loss

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101083611A (en) * 2006-05-30 2007-12-05 中兴通讯股份有限公司 Apparatus for using color identification L-LSP tunnel packet forwarding priority
CN101741739A (en) * 2009-12-01 2010-06-16 中兴通讯股份有限公司 Method and device for counting messages of output/input port of exchange equipment
CN101834785A (en) * 2010-04-07 2010-09-15 中兴通讯股份有限公司 Method and device for realizing stream filtration
CN106034088A (en) * 2015-03-18 2016-10-19 中兴通讯股份有限公司 Packet loss control method and apparatus thereof
CN106973022A (en) * 2016-01-13 2017-07-21 中兴通讯股份有限公司 File transmitting method and device
CN107547567A (en) * 2017-09-29 2018-01-05 新华三技术有限公司 A kind of anti-attack method and device
CN108965038A (en) * 2018-10-17 2018-12-07 盛科网络(苏州)有限公司 The method and device that specific stream packet abandons reason is quickly positioned by ACL
CN110661716A (en) * 2019-09-16 2020-01-07 锐捷网络股份有限公司 Network packet loss notification method, monitoring device, switch and storage medium
CN110932997A (en) * 2019-12-09 2020-03-27 苏州浪潮智能科技有限公司 Method, device and medium for reducing network traffic packet loss

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115766591A (en) * 2022-10-28 2023-03-07 中科驭数(北京)科技有限公司 Fragmentation message flow rate limiting method, DPU fragmentation message forwarding method and device
CN115766591B (en) * 2022-10-28 2023-12-12 中科驭数(北京)科技有限公司 Method for limiting flow rate of fragmented messages and method and device for forwarding DPU fragmented messages

Similar Documents

Publication Publication Date Title
US9686181B2 (en) Selective service bypass in service function chaining
US11729300B2 (en) Generating programmatically defined fields of metadata for network packets
US7860009B2 (en) Providing backpressure flow control to specific traffic flows
CN110071878B (en) Message flow statistical method and device and electronic equipment
CN108667747A (en) The method, apparatus and computer readable storage medium of network flow application type identification
CN106789652B (en) Service shunting method and device
CN103428094A (en) Method and device for packet transmitting in Open Flow system
CN106416171A (en) Method and device for feature information analysis
CN113271266B (en) Message forwarding method and device of heterogeneous switching chip
US8295177B1 (en) Flow classes
CN105359472B (en) A kind of data processing method and device for OpenFlow networks
CN105939285A (en) Message forwarding method and device
CN107547300A (en) A kind of network quality detection method and device
CN114338554A (en) Stream-based random packet loss method and device
CN108173780B (en) Data processing method, data processing device, computer and storage medium
CN106375206A (en) Message forwarding method and device
CN111064676B (en) Flow monitoring method, equipment, device and computer storage medium
CN106921534A (en) Data traffic monitoring and managing method and device
CN110808924A (en) Chip loopback message processing method, device and storage medium
US10778593B2 (en) Virtual cable
US20100138893A1 (en) Processing method for accelerating packet filtering
CN110099011B (en) Method and system for accessing entity gateway to virtual home gateway
CN106572085A (en) Chip from perspective of UDF application and matching method
CN111143088B (en) Message disorder problem processing method, device, equipment and storage medium
CN107579875B (en) Network message statistical method and device

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20220412

WD01 Invention patent application deemed withdrawn after publication