CN114615151A - Message processing method and device - Google Patents

Message processing method and device Download PDF

Info

Publication number
CN114615151A
CN114615151A CN202011337827.3A CN202011337827A CN114615151A CN 114615151 A CN114615151 A CN 114615151A CN 202011337827 A CN202011337827 A CN 202011337827A CN 114615151 A CN114615151 A CN 114615151A
Authority
CN
China
Prior art keywords
identifier
packet
data stream
message
statistical information
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
CN202011337827.3A
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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN202011337827.3A priority Critical patent/CN114615151A/en
Priority to PCT/CN2021/130801 priority patent/WO2022111329A1/en
Publication of CN114615151A publication Critical patent/CN114615151A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/14Network analysis or design
    • H04L41/142Network analysis or design using statistical or mathematical methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/50Network service management, e.g. ensuring proper service fulfilment according to agreements
    • H04L41/5041Network service management, e.g. ensuring proper service fulfilment according to agreements characterised by the time relationship between creation and deployment of a service

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • Algebra (AREA)
  • General Physics & Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Mathematical Physics (AREA)
  • Probability & Statistics with Applications (AREA)
  • Pure & Applied Mathematics (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The application discloses a message processing method and device, wherein the method comprises the following steps: the first network equipment receives the first message, then determines the service corresponding to the first message according to the first identifier and the statistical information corresponding to the first identifier, and processes the first message through the service corresponding to the first message. The first packet includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data flow, and the first data flow includes the first packet. According to the technical scheme, the efficiency of providing the service by the first network equipment can be effectively improved.

Description

Message processing method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to a method and an apparatus for processing a packet.
Background
Following the fifth generation (5)thGeneration, 5G) mobile communicationsVarious services such as multi-access computing (MEC), internet of vehicles, Augmented Reality (AR), or Virtual Reality (VR) are increasing in number. With the emergence of a great number of services, users pay more attention to various service experiences.
Therefore, how to efficiently provide services by network equipment needs to be solved urgently.
Disclosure of Invention
The application provides a message processing method and device, which can effectively improve the efficiency of providing services by network equipment.
In a first aspect, an embodiment of the present application provides a method for processing a packet, where the method is applied to a first network device, and the method includes:
receiving a first message, wherein the first message comprises a first identifier and statistical information corresponding to the first identifier, the statistical information is statistical information of a first data stream, and the first data stream comprises the first message; determining a service corresponding to the first message according to the first identifier and statistical information corresponding to the first identifier; and processing the first message through the service corresponding to the first message.
The statistical information corresponding to the first identifier shown here indicates not only the statistical information of the first data stream but also information corresponding to the first identifier counted by the terminal device (which may also be an AP or the like). For example, the statistical information corresponding to the first identifier may be the same as or different from the statistical information corresponding to the second identifier. In other words, the statistical information corresponding to different identifiers may be different. Even if the statistical information is the statistical information within the preset time, the statistical information corresponding to different identifications can be different due to different types of parameters required by the different identifications. It can be understood that the statistical information corresponding to the first identifier may be counted by the terminal device, or may also be counted by a wireless Access Point (AP) corresponding to the terminal device, and the like, which is not limited in this embodiment of the present invention.
In the embodiment of the application, the first network device determines the service corresponding to the first packet according to the first identifier, so that the service is provided through the service corresponding to the first packet. On one hand, the first network device can determine the service corresponding to the first message according to the first identifier in the first message, so that the condition that the first network device determines the service corresponding to the first message according to the table entry and the five-tuple is improved, and the load condition of the first network device is improved. On the other hand, by counting the information of the first data stream, the first network device can determine the service corresponding to the first packet in time according to the change condition of the first data stream, so that the efficiency of providing the service by the first network device is improved, and the first network device can more efficiently provide the service for the terminal device and the like. It should be understood that the terminal device shown here is only an example, and the first network device may also provide services for other devices, such as an AP, and the like, which is not limited in this embodiment of the present application.
In a possible implementation manner, the determining, according to the first identifier and the statistical information corresponding to the first identifier, a service corresponding to the first packet includes: determining a first service according to the first identifier and a first condition when the statistical information corresponding to the first identifier meets the first condition, wherein the first service is a service corresponding to the first message; or, when the statistical information corresponding to the second identifier satisfies a second condition, determining a second service according to the first identifier and the second condition, where the second service is a service corresponding to the first packet.
In a possible implementation manner, the determining, according to the first identifier and the statistical information corresponding to the first identifier, a service corresponding to the first packet includes: and determining a third service according to the first identifier and a third condition under the condition that the statistical information corresponding to the first identifier meets the third condition, wherein the third service is a service corresponding to the first message.
In this embodiment, the first network device may provide different services for the first packet according to different conditions that are satisfied by the statistical information corresponding to the first identifier. For example, the first network device may provide different services for the terminal device according to the statistical information corresponding to the first identifier. Therefore, the efficiency of providing the service by the first network equipment can be further improved, so that the first network equipment can more efficiently provide the service for the terminal equipment.
In one possible implementation, the first service and the second service differ by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message.
In one possible implementation, the second service and the third service differ by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message.
In one possible implementation, the first service and the third service differ by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message.
In a possible implementation manner, the statistical information corresponding to the first identifier includes statistical information of the first data stream within a preset time duration.
In this embodiment of the application, the statistical information corresponding to the first identifier may include statistical information of the first data stream within a preset time duration, so that it can be ensured that the statistical information corresponding to the first identifier is the latest statistical information. The first network device can provide corresponding services for the first message according to the latest statistical information, and the accuracy of determining the services corresponding to the first message by the first network device is improved.
In a possible implementation manner, the preset duration includes a period duration and/or a creation duration.
In a possible implementation manner, the statistical information of the first data stream within the preset time duration includes: and the packet sending condition and/or the packet loss condition of the first data stream within the preset time length.
In a possible implementation manner, the packet sending condition of the first data stream within the preset time duration includes: and the packet sending quantity of the first data stream in the preset time length.
In a possible implementation manner, the number of packets sent by the first data stream within the preset time duration includes: the number of bytes of the first data stream sent in the preset time length and/or the number of the first data stream sent in the preset time length.
In one possible implementation, the first condition includes: the number of packet sending bytes of the first data stream in the preset time length is larger than a first threshold value; the second condition includes: the number of packet sending bytes of the first data stream in the preset time length is smaller than the first threshold value; alternatively, the first condition includes: the average packet sending byte number of the first data stream in the preset time length is larger than a second threshold value; the second condition includes: and the average packet sending byte number of the first data stream in the preset time length is smaller than the second threshold value.
In this embodiment of the application, the statistical information corresponding to the first identifier satisfies different conditions, and the first network device may determine different services.
In a possible implementation manner, in a case that statistical information corresponding to the first identifier satisfies a first condition, determining a first service according to the first identifier and the first condition includes: determining that the priority queue corresponding to the first message is a first queue according to the first identifier under the condition that the number of packet sending bytes of the first data stream in the preset duration is greater than the first threshold; and/or determining that the priority queue corresponding to the first message is the first queue according to the first identifier under the condition that the average packet sending byte number of the first data stream in the preset time length is greater than the second threshold value.
In the embodiment of the present application, the first queue may also be understood as a low priority queue. Illustratively, the total number of bytes of packets sent by the first data stream in a preset duration is greater than a first threshold, and meanwhile, when the average number of bytes of packets sent in the preset duration is greater than a second threshold, the first network device determines that the priority queue corresponding to the first packet is the first queue. Illustratively, the total number of bytes of packets sent by the first data stream in a preset duration is greater than a first threshold, or the average number of bytes of packets sent in the preset duration is greater than a second threshold, and the first network device determines that the priority queue corresponding to the first packet is the first queue.
In a possible implementation manner, in a case that the statistical information corresponding to the second identifier satisfies a second condition, determining a second service according to the first identifier and the second condition includes: determining that the priority queue corresponding to the first message is a second queue according to the first identifier under the condition that the number of packet sending bytes of the first data stream in the preset duration is smaller than the first threshold; and/or determining that the priority queue corresponding to the first message is the second queue according to the first identifier under the condition that the average packet sending byte number of the first data stream in the preset time length is smaller than the second threshold.
In the embodiment of the present application, the first queue may also be understood as a high priority queue.
In a possible implementation manner, the determining, according to the first identifier and the statistical information corresponding to the first identifier, a service corresponding to the first packet includes: determining a service policy corresponding to the first packet according to the first identifier and statistical information corresponding to the first identifier, where the service policy includes any one or more of a best effort policy, a packet loss policy, or a handover path policy.
In a possible implementation manner, the first packet further includes a second identifier, where the second identifier is an identifier corresponding to a second network device, and the second identifier is used to instruct the second network device to determine a service corresponding to the first packet.
In this embodiment, the first packet may include different identifiers of different network devices through which the first packet passes, so as to ensure that each network device can provide services for the terminal device according to its own requirements.
In a possible implementation manner, the first packet further includes statistical information corresponding to the second identifier.
In this embodiment of the application, the parameter type of the statistical information corresponding to the second identifier may be the same as or different from the parameter type of the statistical information corresponding to the first identifier, which is not limited in this embodiment of the application.
In a possible implementation manner, the first identifier is carried in a network layer header or an extension header of the first packet.
In one possible implementation, the first identifier is associated with an internet IP address in the first message.
In one possible implementation, the method further includes: and sending a fourth message, wherein the fourth message comprises the first identifier and the parameter type of the statistical information corresponding to the first identifier.
In this embodiment, the first network device may send the fourth packet to the terminal device, or may also send the fourth packet to the AP, and the like.
In a second aspect, an embodiment of the present application provides a message processing method, where the method is applied to a third network device, and the method includes:
generating a first message, where the first message includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data stream, and the first data stream includes the first message; and sending the first message.
In this embodiment of the present application, the third network device may include a terminal device or an AP, and the specific form of the third network device is not limited in this embodiment of the present application. In this embodiment, the device that performs statistics on the first data stream and the device that generates the first packet may be the same device, or may also be different devices, and the like.
In a possible implementation manner, before generating the first packet, the method further includes: receiving a fourth message from the first network device, where the fourth message includes the first identifier.
In a possible implementation manner, the fourth packet further includes a parameter type of statistical information corresponding to the first identifier.
In this embodiment, before the third network device generates the first packet, the first network device may send a fourth packet to the third network device, so as to send the first identifier and the parameter type corresponding to the first identifier to the third network device. Thus, the third network device may generate the first packet according to the fourth packet. For example, the fourth packet may further include any one or more of the following parameter categories: creating time length, period time length, average packet sending quantity and total packet sending quantity.
In a possible implementation manner, the statistical information corresponding to the first identifier includes statistical information of the first data stream within a preset time duration.
In a possible implementation manner, the statistical information of the first data stream within the preset time duration includes: and the packet sending condition and/or the packet loss condition of the first data stream within the preset time length.
In a possible implementation manner, the preset duration includes a period duration and/or a creation duration.
In a possible implementation manner, the packet sending condition of the first data stream within the preset time duration includes: the number of bytes of the first data stream sent in the preset time length and/or the number of the first data stream sent in the preset time length.
In a possible implementation manner, before generating the first packet, the method further includes: and receiving a fifth message from the second network equipment, wherein the fifth message comprises the second identifier.
In a possible implementation manner, the fifth packet further includes a parameter type of statistical information corresponding to the second identifier.
In a possible implementation manner, the first packet further includes a second identifier, where the second identifier is an identifier corresponding to a second network device, and the second identifier is used to instruct the second network device to determine a service corresponding to the first packet.
In a possible implementation manner, the first packet further includes statistical information corresponding to the second identifier.
In a possible implementation manner, the first identifier and/or the second identifier are/is carried in a network layer header or an extension header of the first packet.
In a possible implementation manner, the first identifier and/or the second identifier are/is associated with an internet IP address in the first message.
The beneficial effects of the second aspect can be seen in the beneficial effects of the first aspect, which are not described herein in detail.
In a third aspect, an embodiment of the present application provides a first network device, configured to execute the method in the first aspect or any possible implementation manner of the first aspect.
The first network device comprises corresponding means with instructions to perform the method of the first aspect or any possible implementation of the first aspect. For example, the first network device may include a transceiving unit and a processing unit.
In a fourth aspect, an embodiment of the present application provides a third network device, configured to execute the method in the second aspect or any possible implementation manner of the second aspect.
The third network device comprises corresponding means for performing the method of the second aspect or any possible implementation of the second aspect. For example, the third network device may comprise a transceiving unit and a processing unit.
In a fifth aspect, an embodiment of the present application provides a first network device, where the first network device includes a processor, and is configured to execute the method shown in the first aspect or any possible implementation manner of the first aspect.
In the process of executing the method, the process of sending a message (e.g. the fourth message) and/or receiving a message (e.g. the first message) in the method may be understood as a process of outputting a message by a processor and/or a process of receiving an input message by a processor. In outputting the message, the processor may output the message to the transceiver for transmission by the transceiver. The message may also need to undergo additional processing after being output by the processor before reaching the transceiver. Similarly, when the processor receives an incoming message, the transceiver receives the message and inputs it to the processor. Further, after the message is received by the transceiver, the message may need to be further processed before being input to the processor.
Based on the above principle, for example, the sending message mentioned in the foregoing method may be understood as a processor output message. As another example, receiving a message may be understood as a processor receiving an incoming message.
The operations relating to the processor, such as transmitting, sending and receiving, may be understood more generally as operations relating to the processor, such as outputting and receiving, inputting, etc., than those performed directly by the rf circuitry and antenna, unless specifically stated otherwise, or if not contradicted by their actual role or inherent logic in the associated description.
In implementation, the processor may be a processor dedicated to performing the methods, or may be a processor executing computer instructions in a memory to perform the methods, such as a general-purpose processor. The Memory may be a non-transitory (non-transitory) Memory, such as a Read Only Memory (ROM), which may be integrated on the same chip as the processor or may be separately disposed on different chips.
In one possible implementation, the memory is located outside the first network device.
In one possible implementation, the memory is located within the first network device.
In this application, it is also possible that the processor and the memory are integrated in one device, i.e. that the processor and the memory are integrated together.
In one possible implementation, the first network device further comprises a transceiver for receiving signals and/or transmitting signals. Illustratively, the transceiver may be configured to receive a first message, or to transmit a fourth message, etc.
In a sixth aspect, an embodiment of the present application provides a third network device, where the third network device includes a processor, configured to execute a program stored in a memory, and when the program is executed, the third network device is caused to perform a method as shown in the second aspect or any possible implementation manner of the second aspect.
It will be appreciated that reference to the description of the fifth aspect may be made to the description of the processor and will not be described in detail here.
In one possible implementation, the memory is located outside the third network device.
In one possible implementation, the memory is located within the third network device.
In one possible implementation, the third network device further comprises a transceiver for receiving signals and/or transmitting signals. Illustratively, the transceiver may be used to send a first message, or to receive a fourth message, etc.
In a seventh aspect, the present application provides a first network device comprising logic circuitry and an interface, the logic circuitry and the interface coupled; the interface is used for inputting a first message; the logic circuit is configured to determine a service corresponding to the first packet according to the first identifier and the statistical information corresponding to the first identifier, and process the first packet through the service corresponding to the first packet.
It is understood that reference may also be made to the device embodiments shown below for specific implementations of the logic circuits and interfaces, which will not be described in detail herein.
In an eighth aspect, the present application provides a third network device comprising logic circuitry and an interface, the logic circuitry and the interface being coupled; the logic circuit is used for generating a first message; and the interface is used for outputting the first message.
It is understood that reference may also be made to the device embodiments shown below for specific implementations of the logic circuits and interfaces, which will not be described in detail herein.
In a ninth aspect, the present application provides a computer readable storage medium for storing a computer program which, when run on a computer, causes the method illustrated in the first aspect or any possible implementation of the first aspect described above to be performed.
In a tenth aspect, the present application provides a computer-readable storage medium for storing a computer program which, when run on a computer, causes the method shown in the second aspect or any possible implementation of the second aspect described above to be performed.
In an eleventh aspect, the present application provides a computer program product comprising a computer program or computer code which, when run on a computer, causes the method illustrated in the first aspect or any possible implementation of the first aspect described above to be performed.
In a twelfth aspect, the present application provides a computer program product comprising a computer program or computer code which, when run on a computer, causes the method shown in the second aspect or any possible implementation of the second aspect described above to be performed.
In a thirteenth aspect, the present application provides a computer program which, when run on a computer, performs the method of the first aspect described above or any possible implementation of the first aspect.
In a fourteenth aspect, the present application provides a computer program which, when run on a computer, performs the method of the second aspect described above or any possible implementation of the second aspect.
In a fifteenth aspect, the present application provides a communication system, including a first network device and a third network device, where the first network device is configured to execute the method shown in the first aspect or any possible implementation manner of the first aspect, and the third network device is configured to execute the method shown in the second aspect or any possible implementation manner of the second aspect.
Drawings
Fig. 1 and fig. 2 are schematic diagrams of a network architecture provided by an embodiment of the present application;
fig. 3 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 4a to fig. 4d are schematic diagrams of formats of a first message according to an embodiment of the present application;
fig. 5 is a schematic flowchart of a message processing method according to an embodiment of the present application;
fig. 6 to fig. 8 are schematic structural diagrams of a communication device according to an embodiment of the present application.
Detailed Description
In order to make the objects, technical solutions and advantages of the present application more clear, the present application will be further described with reference to the accompanying drawings.
The terms "first" and "second," and the like in the description, claims, and drawings of the present application are used solely to distinguish between different objects and not to describe a particular order. Furthermore, the terms "comprising" and "having," as well as any variations thereof, are intended to cover non-exclusive inclusions. Such as a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. Those skilled in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
In this application, "at least one" means one or more, "a plurality" means two or more, "at least two" means two or three and three or more, "and/or" for describing an association relationship of associated objects, which means that there may be three relationships, for example, "a and/or B" may mean: only A, only B and both A and B are present, wherein A and B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one item(s) below" or similar expressions refer to any combination of these items. For example, at least one (one) of a, b, or c, may represent: a, b, c, "a and b," a and c, "" b and c, "or" a and b and c.
The terms referred to in the present application are described in detail below.
1. Data flow
A data flow may be understood as a collection of a set of packets having the same characteristics. Such as traffic data of an end-to-end (E2E) service, including source and destination devices of the traffic, quintuple information or a target Internet Protocol (IP), and so on. For example, a flow formed by packets having the same five-tuple may be referred to as a data flow.
It is to be understood that the embodiments shown below are illustrated by way of example of a data stream including the first data stream, but should not be construed as limiting the embodiments of the present application. Illustratively, the data stream may further include a second data stream, such as the terminal device may also count information of the second data stream.
2. Classification of data streams
The data stream may be classified according to different characteristics, such as different destination IP, quintuple information, service type, etc. Namely, the data flow can be classified and managed according to specific requirements. Illustratively, the data stream may be divided into a large stream or a small stream, or referred to as a elephant stream or a mouse stream, according to the size of the average number of bytes of the packet. For example, if the average number of bytes of packets sent by the data flow within the preset time period is greater than the second threshold, the data flow may be referred to as a elephant flow (or referred to as a big flow). Correspondingly, if the average number of bytes of the packet sent by the data flow within the preset time period is less than or equal to the second threshold, the data flow may be called a mouse flow (or called a streamlet). The above manner of distinguishing the rat flow and the elephant flow is only an example, and the data flow is divided into the elephant flow or the rat flow at all when the average packet sending byte number of the data flow within the preset time length is equal to the second threshold, which is not limited in the embodiment of the present application.
3. Statistics of data streams
The statistical information of the data stream may include statistical information of the data stream within a preset time period. The preset duration is explained first, and then the parameter type of the statistical information is explained.
The preset durations shown herein may include a creation duration and/or a cycle duration. The creation duration can be understood as the creation duration of the data stream. Illustratively, the creation duration of the data stream may be obtained according to the current time and the creation time of the data stream. It can be understood that the current time refers to a time for generating the first packet, or a time for counting statistical information of the first data stream, and the like.
The cycle duration shown in the present application can be understood as follows:
first, the cycle duration is a preset fixed duration.
For example, the terminal device may count information of the first data stream within a fixed time duration. For example, the fixed duration may be 11:00 to 12: 00. For another example, the fixed duration may be 0:00 to 08: 00. For another example, the fixed duration may also be 0:00 to 24: 00. For another example, the fixed time period may be the first 15 minutes, the second 15 minutes, the third 15 minutes, the fourth 15 minutes, etc. per hour. It is understood that the fixed time period shown above is not only set in advance, but the start time of the fixed time period may also be a fixed start time or the like set in advance. It is understood that the fixed time duration shown here is only an example, and the application is not limited to specific values of the fixed time duration.
Illustratively, the terminal device counts information of the first data stream within the fixed time duration, and then sends the statistical information within the fixed time duration to the first network device through the first message, so that the first network device determines a service corresponding to the first message according to the statistical information within the fixed time duration. The scheme for counting the information of the data stream within the fixed time length is simple to implement and high in feasibility.
Second, the period duration is a duration related to the generation time of the first packet, or alternatively, it can be understood that the start time (or end time) of the period duration is related to the generation time of the first packet. Alternatively, the cycle time shown in the present application may also be understood to relate to the time when the terminal device or the AP requests the service, and the like.
For example, the terminal device may count information of the data stream for a period of time before generating the first packet. For example, if the terminal device needs to generate the first packet at 09:00, the terminal device may count information of data streams in 08:00 to 09: 00. Optionally, the starting time of the period duration may be related to the generation time of the first packet, and the specific duration of the period duration may be preset, and the like. For example, the period of one hour of 08:00 to 09:00 shown above may be set in advance. It can be understood that the value of the specific duration of the period duration is not limited in the embodiment of the present application.
According to the method and the device, the information of the data flow in a period of time before the first message is generated is counted, so that the counting time of the statistical information of the first data flow is more flexible, and the terminal equipment (or AP and the like) can autonomously count the information of the first data flow according to the generation time of the first message. Therefore, the terminal device can count the latest information of the first data stream before generating the first message, so that the counted latest information of the first data stream is encapsulated in the first message.
The statistical information of the data stream comprises any one or more of:
A. creation time, or creation duration.
In the case that the statistical information of the data stream includes the creation time of the data stream, the network device may still obtain the creation time length of the data stream according to the current time and the creation time of the data stream. Therefore, the statistical information of the data stream may include one of the creation time or the creation time length of the data stream.
The creation time may be used to indicate a specific time of creation of the data stream, and the unit of the creation time may be any one of microseconds (us), seconds(s), milliseconds (ms), minutes (min), or time (h), and the like, which is not limited in this application.
B. Total number of bytes of packet.
The total number of packet bytes may be used to indicate the total number of packet bytes for the data stream within the creation time of the data stream. The unit of the total number of bytes of the packet can be Byte (B) or any one of bit, KB, MB, GB, etc.
C. Average number of bytes sent.
I.e. the average number of packetized bytes of the data stream within a preset time period. The number of bytes of the packet in the preset duration may include the number of bytes of the packet in the period duration, for example. Alternatively, the number of packet bytes in the preset duration may further include an average number of packet bytes in the created duration. The unit of the average number of bytes of the packet may be Bps (bit/s), KBps, MBps, GBps, or GBps. For example, the period duration may further include a unit duration, or the period duration may be a preset period of duration, and the specific value of the period duration is not limited in the present application.
For example, the network device may obtain that the data stream belongs to an elephant stream or a mouse stream according to the total packet byte number of the data stream and the creation time of the data stream. For another example, the network device may obtain that the data stream belongs to an elephant stream or a mouse stream according to the average number of bytes sent out.
D. The number of bytes of the packet sent in the period.
The number of packet bytes in this period shown here refers to the number of packet bytes corresponding to the first packet. That is, the number of packet bytes in this period may also be understood as the number of packet bytes in the last period, or may also be understood as the number of packet bytes in the last period before the first packet is sent.
E. The number of bytes of the packet sent in the last period.
The network device can obtain the transmission change condition of the data stream according to the number of the packet transmitting bytes in the period and the number of the packet transmitting bytes in the last period. For example, the number of the packet bytes in the present period and the number of the packet bytes in the previous period may indicate whether the number of the packet bytes of the data stream has a sudden change or not.
It is understood that the number of the packet bytes in the previous period is relative to the number of the packet bytes in the present period. That is, the number of bytes of the packet in the previous cycle is the number of bytes of the packet in the previous cycle relative to the present cycle. The unit of the number of the packet sending bytes in the period and the unit of the number of the packet sending bytes in the previous period can be any one of B, KB, MB and GB.
It can be understood that the present application does not limit how much the transmission period of the data stream is. Illustratively, the cycle duration may be in any one of microseconds (us), seconds(s), milliseconds (ms), minutes (min), or hours (h), etc.
In combination with the above-mentioned cycle duration, the number of packet bytes in this cycle can be understood as the number of packet bytes in the preset fixed duration, and the number of packet bytes in the previous cycle can be understood as the number of packet bytes in the previous fixed duration relative to this cycle. For example, the period duration is the first 15 minutes to the 4 th 15 minutes in each hour, and if the number of packet bytes in the present period is the number of packet bytes in the second 15 minutes, the number of packet bytes in the previous period can be understood as the number of packet bytes in the first 15 minutes in the same hour. Illustratively, the period duration is 00:00 to 08:00, the number of bytes of the packet sent in this period may be the last 00:00 to 08:00 before the first message is generated, and the number of bytes of the packet sent in the last period may be understood as the last 00:00 to 08: 00.
In combination with the cycle duration shown above, the number of packet bytes in this cycle can be understood as the number of packet bytes in the duration related to the time of generating the first packet, and the number of packet bytes in the previous cycle can be understood as the number of packet bytes in the duration related to the time of generating the previous first packet, and so on.
F. The peak bandwidth.
The peak bandwidth shown here can be understood as the maximum number of bytes of a packet of a data stream in a plurality of cycle durations. The peak bandwidth may be in any one of Bps, KBps, MBps, GBps, and the like.
G. The average bandwidth.
The average bandwidth may represent an average number of bytes of packets sent over a plurality of cycle durations. Illustratively, the plurality of cycle durations may include a creation duration. The unit of the average bandwidth may be any one of Bps, KBps, MBps, GBps, or GBps, etc. It is understood that the average bandwidth may also be understood as the average number of packetized bytes.
H. Average number of lost packets.
The average number of lost packets may represent the average number of lost packets in a plurality of period durations, or the number of bytes lost packets in a plurality of period durations, etc. It can be understood that, in the present application, the statistical information of the data stream may further include an average packet loss rate, that is, a ratio of the number of lost packets to the total number of transmitted packets in a plurality of period durations is represented.
I. The period duration.
The unit of the period duration may be any one of microseconds (us), seconds(s), milliseconds (ms), minutes (min), or time (h), and the like, which is not limited in the present application. It is understood that multiple cycle durations may be included within the creation duration.
The preset duration in the present application may include any one or more of a period duration and/or a creation duration. Alternatively, the cycle duration may comprise a unit duration. Further, the statistical information of the data stream in the period duration may include C, D, E, F, G, H, I described above, and the statistical information of the data stream in the creation duration may include A, B, C, F, G, H described above. Therefore, the statistical information of the data stream within the preset time period may include a packet sending condition and/or a packet loss condition of the data stream within the preset time period.
It can be understood that the packet sending condition of the data stream within the preset time period shown in the present application may include not only the various parameter types shown above, but also a packet sending rule of the data stream within the preset time period, and the like, which is not limited in the present application.
It is understood that a to I shown above may also be referred to as different parameter categories of statistical information.
4. Attribute information of data stream
The attribute information of the data stream may be used to indicate the traffic type of the data stream. Illustratively, the traffic type of the data stream may include video traffic, voice traffic, or text traffic, etc.
Since the data stream includes the first data stream, the statistical information of the data stream shown above may also be applied to the statistical information of the first data stream, and the attribute information of the data stream shown above may also be applied to the attribute information of the first data stream.
5. Service
A service may represent a forwarding behavior or capability provided for a packet by a network device, so that transmission of the packet has a certain guarantee. For example, the service may include a high-low priority queue of a packet, a sending rate of the packet, a packet loss policy of the packet, a forwarding path of the packet, and the like, and the specific type of the service is not limited in the embodiment of the present application.
For example, in the method provided by the present application, the first network device may provide any one or more of the first service, the second service, or the third service for the third network device.
Optionally, the first service and the second service are different by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message. For example, the first service may indicate that the priority queue corresponding to the first packet is the first queue, and the second service may indicate that the priority queue corresponding to the first packet is the second queue. For example, the first service may indicate that the path corresponding to the first packet is a first path, and the second service indicates that the path corresponding to the first packet is a second path. It is understood that the first queue, the second queue, the first path, the second path, and the like shown here are merely examples.
Optionally, the second service and the third service are different in at least any one of the following: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message. Optionally, the first service and the third service are different in at least any one of the following: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message. It is understood that for the relationship between the second service and the third service, and the relationship between the first service and the third service, reference may be made to the relationship between the first service and the second service shown above, and detailed description thereof is omitted here.
It can be understood that the specific contents of the first service, the second service, and the third service shown in this application are only examples, and in a specific implementation, the first network device or the second network device and the like may also provide more types of services and the like for the first packet, which is not limited in this application embodiment.
6. First network device
The first network device shown in the present application may include a switch (or referred to as a switching device, a switching chip, or the like), a router, a network card, or the like, and the present application is not limited to a specific form of the first network device. However, all devices that need to provide services for the first packet according to the identifier included in the first packet and the statistical information corresponding to the identifier fall within the protection range of the first network device shown in this application.
It is understood that reference may be made to the above description of the first network device for the specific form of the second network device, which is not described in detail here.
7. Third network device
In one possible implementation manner, the third network device shown in this application may include a terminal device, which may be a handheld device with a wireless connection function, an in-vehicle device, a mobile phone (mobile phone), a tablet computer (pad), a computer with a wireless transceiving function (e.g., a laptop computer, a palm computer, etc.), a Mobile Internet Device (MID), a Virtual Reality (VR) device, an Augmented Reality (AR) device, a wireless terminal in industrial control (industrial control), a wireless terminal in unmanned driving (self driving), a wireless terminal in remote medical (remote medical), a wireless terminal in smart grid (smart grid), a wireless terminal in transportation safety (transportation safety), a wireless terminal in smart city (smart city), a wireless terminal in smart home (home), or the like, and the terminal may be a handheld device with a wireless connection function, A terminal device in a 5G network or a terminal device in a Public Land Mobile Network (PLMN) for future evolution, and the like.
In addition, the terminal device may also be a terminal device in an internet of things (IoT) system. The IoT is an important component of future information technology development, and is mainly technically characterized in that articles are connected with a network through a communication technology, so that an intelligent network with man-machine interconnection and object interconnection is realized. The IoT technology can achieve massive connection, deep coverage, and power saving of the terminal through, for example, Narrowband (NB) technology. It is to be understood that the present application is not limited to the specific form of the terminal device.
In another possible implementation manner, the third network device shown in this application may include an AP or the like.
It is understood that the present application is not limited to the specific form of the third network device. However, when there is a service demand, the first packet is generated, so that all devices that the first network device provides services fall into the protection range of the third network device.
As shown in fig. 1, the terminal device sends a second packet to a network device (e.g., a first network device in fig. 1), where the second packet includes a five-tuple, and the five-tuple may include a source Internet Protocol (IP) (or internet protocol) address, a source port, a destination IP address, a destination port, and a transport layer protocol. And the network equipment receives the second message, searches the table entry matched with the quintuple according to the quintuple, and then determines the service corresponding to the second message according to the searched table entry matched with the quintuple. Typically, the entry is established and maintained by the network device.
Through the scheme, the network equipment needs to establish and maintain the table entry matched with the quintuple. Meanwhile, the quintuple is huge in quantity and high in requirement on the specification of the entry, so that the network equipment is high in load and the performance of the network equipment is influenced.
In view of this, the present application provides a method and an apparatus for processing a packet, which can perform management and maintenance of flow information by a terminal device or an AP, and a network device can provide services for the packet and forward the packet according to an identifier. Therefore, the method provided by the application can effectively reduce the management specification of the flow information table entry of the network equipment. In addition, because the network device can directly provide service for the message or forward the message and the like according to the identifier, the time delay of the network device for processing the message is effectively improved, and the service providing efficiency of the network device is improved.
The method provided by the application can be applied to data center networks, operator networks, park networking, campus networking and the like. The operator network may comprise one operator network, or a plurality of different operator networks, etc. In other words, the method provided by the present application can be applied to any form of network, that is, the method provided by the present application is applicable to any scenario that requires a network device to provide a service for a terminal device, an AP, or the like.
Meanwhile, the method provided by the present application may be applied to a network device, and the network device may be a computer, a server, a switch (or referred to as a switch device, a switch chip, etc.), a router, a network card, etc. in any form, and the present application does not limit the specific form of the network device. For example, the methods provided herein may be applied to at least one network device, including a first network device. Optionally, the at least one network device may further include a second network device. The method shown in fig. 3 may be referred to for a detailed description of the first network device and the second network device.
The method provided by the present application can be applied to a network architecture as shown in fig. 1 or fig. 2. The network architecture shown in fig. 1 and 2 includes three network domains, namely network domain 1, network domain 2, and network domain 3. Each of the three network domains may include a management device, which may be used to manage and/or control, etc., routers within the network domain. For example, the management device may be used to perform rule making of service policies, information synchronization with the router, and the like. It will be appreciated that figure 1 shows a network architecture in which the servers are within network domain 2 and network devices within network domain 1 need to interact with the servers across domains. Such as a message sent by the UE, may interact with a server within network domain 2 via the first network device. However, the network architecture shown in fig. 2 may allow the UE to send messages to interact with the server via three network devices (including the first network device) in the network domain 1 and via two network devices in the network domain 2. That is, the method provided by the present application may be applied to the network architecture of fig. 1 or the network architecture of fig. 2, which is not limited in the embodiments of the present application. It is understood that fig. 1 and 2 only exemplarily show the UE and the first network device, and the second network device and other UEs are not labeled in fig. 1 and 2, but should not be construed as limiting the embodiments of the present application.
The method for dividing different network domains in the present application can be as follows:
first, one operator corresponds to one network domain, and thus three network domains shown in fig. 1 or fig. 2 may be understood as three different operators.
Second, an area corresponds to a network domain, e.g., a province may correspond to a network domain. The three network domains shown in fig. 1 or fig. 2 can thus be understood as corresponding to three different provinces. The area division shown here is only an example, and if there is also one market corresponding to one network domain, the present application does not limit the size of the area.
Thirdly, networks of different services correspond to different network domains.
It is understood that the division of the network domain shown above is only an example, and in a specific implementation, more division methods are possible, and are not described in detail here. In general, there may be a plurality of network devices in a network domain, and the plurality of network devices may be uniformly managed or controlled by the management device, and the like. The above description mainly refers to the management device managing network devices in a network domain where the management device is located, however, in another possible implementation manner, the management device may also manage a plurality of different network domains at the same time, and the like, which is not limited in this application.
The following describes the message processing method provided in the present application in detail.
Fig. 3 is a schematic flowchart of a message processing method provided in an embodiment of the present application, and as shown in fig. 3, the method includes:
301. the third network device generates a first message and sends the first message, wherein the first message comprises a first identifier and statistical information corresponding to the first identifier, the statistical information is statistical information of a first data stream, and the first data stream comprises the first message.
In this embodiment of the present application, the first packet includes at least one identifier. Illustratively, the at least one identifier comprises a first identifier. Alternatively, the at least one identifier may further include a second identifier, and the like. The first identifier is an identifier corresponding to the first network device, and the second identifier is an identifier corresponding to the second network device. It is understood that reference may be made to fig. 4a and 4b for the specific format of the first packet, which will not be described in detail here.
In a possible implementation manner, the statistical information of the first data stream is used to represent information of the first data stream periodically counted by the terminal device. I.e. information related to the first data stream that the terminal device periodically counts. Alternatively, the statistical information of the first data flow may also be referred to as flow table information of the first data flow, and the flow table information may be used to control a transmission rate, a transmission queue, a transmission policy, or the like of the first data flow.
In another possible implementation manner, the statistical information of the first data flow may be used to represent information of the first data flow periodically counted by the AP. In other words, the statistical information of the first data flow may be counted by the AP to which the terminal device is accessed.
In this embodiment, the first packet may be generated by the terminal device, for example, after the terminal device counts information of the first data stream, the first packet is generated. Alternatively, after the AP counts the information of the first data stream, the AP may send the statistical information of the first data stream to the terminal device. Therefore, when the terminal device has the requirement of requesting service, the first message can be generated according to the statistical information of the first data stream. Alternatively, the first message may also be generated by the AP, and so on, and reference may be made to the above for the description of the specific form of the third network device in the embodiment of the present application, and details are not described here.
For convenience of description, the method provided by the embodiment of the present application will be described below by taking the example that the terminal device periodically counts the information related to the first data stream as an example, but the method should not be construed as limiting the embodiment of the present application.
The statistical information of the first data stream includes statistical information of the first data stream within a preset time length, and the preset time length includes a period time length and/or a creation time length.
For example, the statistical information in the period duration may include a packet sending condition and/or a packet loss condition in the period duration. For example, the packet sending condition within the period duration may include any one or more of the following: the period duration, the number of the packet sending bytes in the period, the number of the packet sending bytes in the previous period, the number of the packet sending in the previous period, the average number of the packet sending bytes in a plurality of period durations, the total number of the packet sending bytes or the peak bandwidth in the plurality of period durations and the like. The packet loss condition in the period duration may include: the period duration or the average packet loss byte number in a plurality of period durations and the like.
The understanding of the cycle duration may include: the period duration is a preset duration. Or the period duration is duration related to the generation time of the first message. I.e. the starting time of the period duration is related to the generation time of the first message. For the specific description of the period duration, reference may also be made to the above description, which is not detailed here.
For example, the statistical information in the creation time period may include a packet sending condition and/or a packet loss condition in the creation time period. The package sending condition in the creating time length comprises any one or more of the following items: creating time length, total number of bytes of sent packets in the creating time length, average number of bytes of sent packets in the creating time length, number of sent packets in the creating time length, peak bandwidth and the like. The packet loss condition in the creation time length may include: creating the time length or the average packet loss byte number in the creating time length, and the like.
It can be understood that the unit of each parameter in the statistical information in the cycle duration and the statistical information in the creation duration shown above is as shown above and will not be described here.
The terminal device can make the first network device obtain the statistical information of the first data stream by periodically counting the information. Further, the terminal device may update the statistical information each time the first packet is sent. Therefore, the first network equipment can provide services for the terminal equipment according to the latest statistical information, so that the services provided by the first network equipment for the terminal equipment are matched with the latest statistical information, and the first network equipment can provide services for the terminal equipment more flexibly.
It is understood that for other descriptions of the statistics of the first data stream, reference may also be made to the above introduction. The first data stream provided in the embodiment of the present application may include the first packet, and for example, the first data stream may be a stream formed by the same five tuples as the first packet.
In step 301, sending the first packet may include: and sending the first message to the first network equipment, or sending the first message to other network equipment, and the like. The embodiment of the present application does not limit an object for the third network device to send the first packet. And in step 302 below, the receiving, by the first network device, the first packet may include: the first network device receives a first message sent by a third network device, or the first network device receives first messages sent by other network devices, and the like. The other network device may receive the first packet from the third network device and then forward the first packet to the first network device. The other network devices shown here may be understood as network devices different from the first network device, and the embodiments of the present application are not limited as to whether they are in the same network domain.
For convenience of description, the method provided in the embodiment of the present application will be described below by taking the third network device as a terminal device as an example.
Typically, the first message will include a source IP address and a destination IP address. Thus, according to the destination IP address, the first packet may pass through the first network device and the second network device to reach the destination (e.g., a service provider or the like as shown below). It can be understood that, in the embodiment of the present application, how the first packet reaches the first network device and the second network device is not limited.
302. The first network equipment receives a first message.
The first identifier is an identifier corresponding to the first network device, and there may be three understanding modes as follows:
first, identifiers corresponding to different network devices in a network domain where a first network device is located are first identifiers. As shown in fig. 1 or fig. 2, the identifiers corresponding to the network devices in the network domain 1 are all first identifiers (only examples), and the identifiers corresponding to the network devices in the network domain 2 are all second identifiers (only examples), and so on. In this case, the first identifier included in the first packet may be understood as an identifier corresponding to all network devices in a network domain where the first network device is located. That is, the first packet includes a first identifier, which may correspond to identifiers of all network devices in a network domain where the first network device is located.
In a possible implementation manner, the first packet may further include a second identifier, where the second identifier is an identifier corresponding to the second network device. Therefore, according to the first understanding manner, the first message may correspond to the identifiers of all network devices in the network domain where the first network device is located and to the identifiers of all network devices in the network domain where the second network device is located by including a first identifier and a second identifier. I.e. the first network device and the second network device shown here may be in different network domains.
Through the implementation mode, the signaling overhead in the first message can be saved, and the management is simple. If the management device only needs to issue a first identifier, the network devices in the corresponding network domain can recognize the first identifier, so as to execute steps 303 and 304 shown below.
Second, different network devices in the network domain where the first network device is located all correspond to a first identifier. In this case, the first packet includes a plurality of first identifiers, and each first identifier corresponds to one network device. In a possible implementation manner, the first packet may further include a plurality of second identifiers, and each second identifier corresponds to one network device.
Through the implementation mode, each network device can clearly acquire the corresponding first identifier, and the management is simple.
Thirdly, different network devices in the network domain where the first network device is located correspond to one identifier, and the identifiers corresponding to the different network devices are different. For example, the first network device and the second network device are in the same network domain, and the first network device corresponds to the first identifier and the second network device corresponds to the second identifier.
Through the implementation mode, each network device can clearly acquire the corresponding identifier, and the management flexibility is improved.
In the embodiments described above, it is shown whether different network devices correspond to different identifiers, and in the embodiments of the present application, different identifiers may also correspond to different parameter types.
Illustratively, the statistical information corresponding to the first identifier includes a creation duration of the first data stream and a total number of packet bytes of the first data stream within the creation duration, and the statistical information corresponding to the second identifier includes the creation duration of the first data stream and a maximum number of packet bytes of the first data stream within the creation duration (i.e., a peak bandwidth). The statistical information of the first data stream may include the creation duration of the first data stream, the total number of packet bytes of the first data stream within the creation duration, and the maximum number of packet bytes of the first data stream within the creation duration. By the method, the signaling overhead of the first message can be reduced. Or, the statistical information of the first data stream may include the creation duration of the first data stream and the total number of packet bytes of the first data stream within the creation duration, and the creation duration of the first data stream and the maximum number of packet bytes of the first data stream within the creation duration. In this way, each network device can be made to know the information type corresponding to the identifier of the network device explicitly. It is understood that the statistical information of the first data stream shown above is only an example, and the specific content of the statistical information of the first data stream may be determined according to different identifications corresponding to different network devices. That is, the identifier (such as the first identifier or the second identifier) shown in this application may correspond to not only the network device (such as the first network device or the second network device), but also the parameter category. The kind of parameters shown here is the kind of parameters of the data stream.
It is understood that the first identifier and the second identifier may be understood as identifiers corresponding to different network devices in the same network domain, or may also be understood as identifiers corresponding to different network devices between different network domains. In other words, the second network device may be within the same network domain as the first network device, or the second network device may be within a different network domain than the first network device.
Alternatively, different identifiers may correspond to the same parameter class. For example, when the same identifier corresponds to different network domains, different identifiers may correspond to the same parameter type even though the identifiers corresponding to different network domains are different. This is because different network domains may correspond to different management devices, and the relationship between the identifier issued by the management device and the parameter type of the statistical information may be the same or different. Thus, different identifiers may correspond to the same parameter type or different parameter types.
303. And the first network equipment determines the service corresponding to the first message according to the first identifier and the statistical information corresponding to the first identifier.
In a possible implementation manner, the first identifier may correspond to attribute information of the first data stream, in addition to the service corresponding to the first packet. In other words, when the management device issues the first identifier for the first network device, the first identifier may be an identifier corresponding to the video service. For example, in the case that the statistical information of the first data stream is the same, different attribute information may correspond to different identifiers. If the attribute information of the first data stream is different, the management device may issue different identifiers for the first network device, for example, if the statistical information of the first data stream is the same (i.e., the parameter types are the same). In other words, when the relationship between the first identifier and the service corresponding to the first packet is determined by the management device, the management device needs to determine the first identifier according to the service requirement of the terminal device, and also needs to determine the first identifier according to the service type of the terminal device.
In another possible implementation manner, the first packet further includes attribute information corresponding to the first identifier, where the attribute information is attribute information of the first data stream. Therefore, the first network device may determine, according to the statistical information corresponding to the first identifier, the service corresponding to the first packet, and also determine, according to the first identifier, the statistical information corresponding to the first identifier, and the attribute information corresponding to the first identifier, the service corresponding to the first packet. For example, the first identifier is 1, the number of bytes of a packet sent in the period duration is 30Mb, the statistical information included in the two messages is both 1 and 30Mb, but the attribute information of the first data stream included in the two messages is different, and the first network device may determine the services corresponding to the two messages according to the difference of the attribute information. In other words, under the condition that the first identifiers are the same and the statistical information of the first data stream is the same, when the service types included in the two packets are different, the first network device may respectively determine different services for the two packets according to the difference of the service types.
It is understood that the attribute information of the first data stream can be used to indicate the service type of the first data stream, and reference may be made to the above for the description of the attribute information of the first data stream and the statistical information of the first data stream, which is not described in detail herein.
How the first network device knows the corresponding relationship between the first identifier and the service corresponding to the first packet is as follows:
the first method,
And the management equipment issues the corresponding relation between the identification and the service. For example, the management device may issue a correspondence between the identifier and the service for all network devices in the network domain corresponding to the management device.
For example, the management device may broadcast the correspondence between the identifier and the service (including the service corresponding to the first identifier and the first packet) in a broadcast manner, or the management device may further send the correspondence between the identifier and the service to the first network device in a unicast manner. When the corresponding relationship between the identifier and the service is updated, the management device may also issue the updated corresponding relationship between the identifier and the service.
According to the implementation mode, the corresponding relation between the identifier and the service can be issued to the first network equipment in real time, so that the first network equipment can provide service for the terminal equipment according to the latest corresponding relation in real time, and the service requirement of the terminal equipment can be met in time.
The second method,
The correspondence between the identity and the service is configured in the first network device. For example, the first network device may be shipped from a factory, and the correspondence between the identifier and the service may be configured in the first network device.
It can be understood that, in the embodiment of the present application, how the first network device learns the correspondence between the first identifier and the service corresponding to the first packet is not limited.
304. And the first network equipment processes the first message through the service corresponding to the first message.
Step 303 and step 304 will be described in detail below.
In this embodiment, the first network device may provide different services for the first packet according to different conditions that are satisfied by the statistical information corresponding to the first identifier. For example, the first network device may provide different services for the terminal device according to the statistical information corresponding to the first identifier. Therefore, the accuracy of the service provided by the first network equipment can be further improved.
In a possible implementation manner, the first network device may determine, according to the first identifier and the first condition, a service (e.g., a first service) corresponding to the first packet, when the statistical information corresponding to the first identifier satisfies the first condition.
In another possible implementation manner, in a case that the statistical information corresponding to the first identifier satisfies the second condition, the first network device may determine, according to the first identifier and the second condition, a service (e.g., a second service) corresponding to the first packet.
In another possible implementation manner, in a case that the statistical information corresponding to the first identifier satisfies the third condition, the first network device may determine, according to the first identifier and the third condition, a service (e.g., a third service) corresponding to the third packet.
In the embodiment of the present application, the first service, the second service, or the third service may be understood as different services. For example, the first service differs from the second service by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message. For another example, the first service differs from the third service by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message. For another example, the second service differs from the third service by at least any one of: the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message.
For example, the first condition may include that the number of bytes of the first data stream that are packetized within a preset time duration is greater than a first threshold. The number of bytes of the packet sent in the first data stream within the preset time duration shown here can be understood as: and the total packet transmitting byte number of the first data flow in the preset time length. For example, the total packet byte number of the first data stream within the preset time duration can be understood as: the number of packet bytes of the first data stream in the period duration, or the number of packet bytes of the first data stream in a plurality of period durations, or the number of packet bytes of the first data stream in the creation duration, etc. The embodiment of the present application is not limited to specific values of the preset duration.
For example, the first condition may include that an average number of bytes of packets sent by the first data stream within a preset time period is greater than a second threshold. For example, the average number of bytes of the packet sent by the first data stream within the preset time period may include: the average packet sending byte number of the first data flow in a plurality of period durations, or the average packet sending byte number of the first data flow in a creation duration, etc. The specific value of the preset duration is not limited in the embodiment of the present application.
For example, the second condition may include that the number of packetized bytes of the first data stream within the preset time duration is less than the first threshold, or the second condition may include that the average number of packetized bytes of the first data stream within the preset time duration is less than the second threshold. It is understood that the specific description regarding the second condition may refer to the above description regarding the first condition, which is not detailed herein. It is understood that the service corresponding to the second threshold may be a priority queue corresponding to the first packet, or may also be a sending rate corresponding to the first packet, and the like, which is not limited in this embodiment of the application.
For example, the third condition may include that the number of bytes of the first data stream that are packetized within the preset time period is equal to the first threshold. Alternatively, the third condition may include that the average number of packetized bytes of the first data stream within the preset time period is equal to the second threshold.
It is understood that the first condition, the second condition, and the third condition shown above are only examples, and in a specific implementation, the first condition, the second condition, or the third condition, etc. may further include other parameters of statistical information, and the embodiment of the present application does not limit this. For example, the first condition may further include attribute information of the first data stream, or the first condition may further include the number of bytes of packets of the first data stream in the present cycle or the number of bytes of packets in the previous cycle, and the like, which is not described in detail herein. For the description of the second condition or the third condition, reference may also be made to the first condition shown here.
A method for determining, by the first network device, a service corresponding to the first packet will be described below with reference to a specific example.
The first network device determines a service corresponding to the first packet according to the first identifier and the statistical information corresponding to the first identifier, and may have the following five implementation manners:
the first implementation mode,
And the first network equipment determines a priority queue corresponding to the first message according to the first identifier and the statistical information corresponding to the first identifier. The statistical information corresponding to the first identifier may include statistical information of the first data stream within a preset time period (or referred to as statistical information of the first data stream within the preset time period).
For example, the first identifier may correspond to a first threshold, and thus, the first network device may determine the priority queue corresponding to the first packet according to the first threshold and the number of bytes of packets sent within a preset time length. In other words, the first threshold may be used to measure a condition (such as the first condition, the second condition, or the third condition) satisfied by the statistical information corresponding to the first identifier, and the first threshold may also be used to measure a priority queue corresponding to the first packet. That is, if the statistical information (i.e., the parameter type) corresponding to the first packet is the same as the statistical information (i.e., the parameter type) corresponding to the first threshold, the first network device may determine the priority queue corresponding to the first packet according to the first identifier, the statistical information corresponding to the first identifier, and the first threshold. It can be understood that the priority queue corresponding to the first packet refers to a priority queue of packet transmission byte numbers in which the total packet transmission byte number in the preset time length exceeds the first threshold value. In other words, the priority queue corresponding to the first packet refers to a priority queue of a part of packet transmission byte number exceeding the first threshold value in the total packet transmission byte number of the first data stream in the preset duration.
For example, the first network device may determine the priority queue corresponding to the first packet according to the first threshold and the total number of bytes of packets sent within the creation duration. Or, the first network device may determine the priority queue corresponding to the first packet according to the first threshold and the total number of bytes of the packet sent in the period duration. Or, the first network device may determine the priority queue corresponding to the first packet according to the first threshold and a number of total packet transmission bytes in a plurality of cycle durations, where the plurality of cycle durations may be equal to or less than the creation duration.
It is understood that the first threshold shown here may be different according to different determination manners. For example, if the priority queue is determined by the total number of packet bytes in the cycle duration, the first threshold may be 20 Mb. If the priority queue is determined by creating a total number of packet bytes within the duration, the first threshold may be 80 Mb. The values 20 and 80 shown here are merely examples, and the specific value of the first threshold is not limited in the embodiments of the present application.
Illustratively, the statistical information corresponding to the first identifier satisfying the first condition includes: the number of packet bytes (i.e. the total number of packet bytes) of the first data stream in the preset time period is greater than the first threshold. In this case, the first network device may determine that the priority queue corresponding to the first packet is the first queue, and the first queue may also be referred to as a low priority queue. Illustratively, the statistical information corresponding to the first identifier satisfying the second condition includes: the number of bytes of the first data stream sent in packets within the preset time is smaller than a first threshold value. In this case, the first network device may determine that the priority queue corresponding to the first packet is the second queue, and the second queue may also be referred to as a high priority queue. In other words, if the number of bytes of packets sent in the period duration included in the statistical information corresponding to the first identifier is smaller than the first threshold, it indicates that the number of bytes of packets sent in the period duration of the first data stream has not reached the first threshold, the first network device may provide a high-priority service for the first packet, and if the priority queue corresponding to the first packet may be a high-priority queue, it is ensured that the first packet can be sent out in time. Conversely, if the number of bytes of packets sent in the period duration included in the statistical information corresponding to the first identifier is greater than the first threshold, the priority queue corresponding to the first packet may be a low-priority queue. Illustratively, the statistical information corresponding to the first identifier satisfying the third condition includes: the number of bytes of the first data stream sent in packets within the preset time length is equal to the first threshold value. In this case, the first network device may determine that the priority queue corresponding to the first packet is the third queue. The third queue may have a priority greater than the first queue and less than the second queue.
For example, the first network device receives two first messages from the terminal device in sequence, where the first message includes 1 (i.e., the first identifier) and 30MB (total number of bytes of a packet sent within a preset time length), and the second message includes 1 and 50 MB. It is understood that the first packet and the second first packet belong to the same first data flow. If the first threshold is 40MB, since 30MB is less than 40MB, the priority queue corresponding to the first packet may be the second queue, i.e. the high priority queue. Since 50MB is greater than 40MB, the priority queue of the excess portion (i.e. 10MB of packet bytes exceeding 40 MB) corresponding to the second first packet may be the second queue, i.e. the low priority queue. It can be understood that, when the first network device receives a third first packet again, and the third first packet includes 1 (first identifier) and 40MB, the priority queue corresponding to the third first packet may be the third queue.
With reference to the third implementation manner shown below, the first network device may further determine the service policy of the first packet according to a third threshold. It is understood that each of the first packets may further include other parameters, for example, a creation time of the first data stream, a cycle time of the first data stream, or a number of bytes of packets sent by the first data stream within the cycle time. Therefore, the first network device may also determine the service corresponding to the first packet according to other parameters included in the first packet. For example, the first network device may also determine whether to adjust the sending rate of the first data stream according to the creation duration of the first data stream and the total number of bytes of the packet sent within the creation duration. For another example, the first network device may further determine whether to adjust the sending rate of the first data stream according to the peak bandwidth of the first data stream, and the like, which is not limited in this embodiment of the application. In other words, the first service, the second service, the third service, or the like is not limited to include the priority queue corresponding to the first packet, and may also include a sending rate corresponding to the first packet, or the like. For example, the first service may be to determine a priority queue corresponding to the first packet, determine a sending rate corresponding to the first packet, and the like. For this explanation, the following respective implementations are equally applicable.
The second implementation mode,
And the first network equipment determines the sending rate of the first data stream according to the first identifier and the statistical information of the first identifier, or adjusts the sending rate of the first data stream according to the first identifier and the statistical information corresponding to the first identifier. For example, the first network device may determine the sending rate of the first data stream according to the first identifier and the average number of bytes of the first data stream sent in the preset time period. For another example, the first network device may determine the sending rate of the first data stream according to the first identifier and the average bandwidth of the first data stream.
Illustratively, the first identifier may correspond to a second threshold. Thus, for example, the first network device may determine the sending rate of the first data stream according to the second threshold and the average number of bytes sent packets within the preset time length. Illustratively, the statistical information corresponding to the first identifier satisfying the second condition includes: the average packet sending byte number of the first data flow in the preset time length is larger than a second threshold value. In this case, the first network device may determine to increase or decrease the transmission rate of the first data stream based on the first identification. Illustratively, the statistical information corresponding to the first identifier satisfying the first condition includes: the average packet sending byte number of the first data flow in the preset time length is smaller than a second threshold value. In this case, the first network device may determine to increase the transmission priority of the first data stream.
For example, the first network device receives two first messages from the terminal device in sequence, where the first message includes 2 (i.e., the first identifier), 1s (creation time), and 50MB (total number of bytes of packet transmission), and the second message includes 2 (i.e., the first identifier), 60s (creation time), and 50MB (total number of bytes of packet transmission). The second threshold is 40MBps, and since 50MB/1s is greater than 40MBps, the first data flow corresponding to the first packet is identified as the elephant flow. The first network device may increase or decrease the sending rate of the elephant flow based on the priority of the elephant flow. For example, if the priority of the elephant stream is low, the transmission rate of the elephant stream is reduced. As another example, the priority of the elephant stream is higher, increasing the sending rate of the elephant stream. The priority of the elephant flow may be determined by the first identifier, or may be determined by a five-tuple in the first message, which is not limited in this embodiment of the application. Since 50MB/60s is less than 40MBps, the first data flow corresponding to the second first message is identified as a mouse flow. The transmission priority of the flow of rats can be increased, thereby ensuring that the flow of rats can be normally transmitted. Alternatively, when the first data stream is moused over, the transmission priority of the moused over stream may not be increased.
In the embodiment of the present application, the second threshold may be used to determine not only the sending rate of the first data stream, but also to determine that the first data stream is an elephant stream or a rat stream. However, the second threshold shown here is for determining that the first data flow is elephant flow or rat flow only for example, and in a specific implementation, the threshold for determining the sending rate of the first data flow may also be different from the threshold for determining that the first data flow is elephant flow or rat flow.
The implementation modes are three,
And the first network equipment determines a service strategy of the first message according to the first identifier and the statistical information of the first identifier, wherein the service strategy comprises any one or more of a best effort strategy, a packet loss strategy or a switching path strategy. For example, the first network device may determine the service policy of the first packet according to the first identifier and the total number of bytes of the packet sent within the preset time length.
Illustratively, the statistical information corresponding to the first identifier satisfying the first condition includes: and the total packet transmitting byte number of the first data stream in the preset time length is greater than a third threshold value. In this case, the first network device may determine that the service policy of the first packet is any one or more of a packet loss policy, a best effort policy, or a handover path policy. That is, the number of the packet sending bytes of the part of the preset duration, in which the number of the packet sending bytes is greater than the third threshold, can be discarded according to the packet loss strategy; or, the number of bytes of the partial packets which are larger than the third threshold value can be ensured to be sent out as much as possible according to the best effort strategy; still alternatively, a new path may be switched for the first data stream according to a switch path policy. The statistical information corresponding to the first identifier meeting the second condition comprises: and the total packet transmitting byte number of the first data stream in the preset time length is smaller than a third threshold value. In this case, the first network device may not perform a packet loss policy or the like.
It can be understood that, in the embodiments of the present application, there is no limitation on whether the first threshold, the second threshold, or the third threshold is the same.
The implementation mode four,
The first network device may determine whether the first data flow has a sudden change according to the first identifier and statistical information corresponding to the first identifier, and determine that the service policy of the first packet is a handover path policy when the first data flow has a sudden change. Illustratively, the statistical information corresponding to the first identifier includes: the number of bytes of the packet in the period and the number of bytes of the packet in the last period. If the number of bytes of the packet in the period is far larger than the number of bytes of the packet in the previous period, it can be determined that the first data stream has a sudden change. For example, the first network device may determine that the service policy of the first packet is a handover path policy. In other words, if the number of bytes of packets in the present period and the number of bytes of packets in the previous period satisfy the first condition, the first network device may determine that the first data stream has a sudden change, thereby determining that the service policy of the first packet is the handover path policy. If the number of bytes of the packet in the present period is close to the number of bytes of the packet in the previous period, that is, the second condition is satisfied, the first network device may not execute the switch path policy or the like.
The implementation mode five,
And the first network equipment determines the packet loss condition of the network according to the first identifier and the statistical information of the first identifier. For example, the first network device may determine the packet loss condition of the network according to the first identifier and the number of bytes lost in the first data stream within the preset time duration. In this case, the first network device may determine the quality status of the network according to the number of bytes lost in the preset time period, so as to perform information synchronization with the management device, which is beneficial to subsequent network maintenance.
For example, the first network device may further determine the service policy of the first packet according to the first identifier and the number of bytes dropped in the first data stream within a preset time period, where the service policy of the first packet includes a packet dropping policy. If the number of bytes of packet loss of the first data stream in the preset time period is smaller than the fourth threshold, the first network device may determine that the service policy of the first packet is a packet loss policy. The fourth threshold is the number of bytes of packet loss that the terminal device can tolerate. In this case, the first network device may discard some bytes appropriately, that is, on the premise of not affecting the service requirement of the terminal device, the transmission rate of the first packet is effectively increased.
It can be understood that the number of lost packets and the number of bytes within the preset time period may be sent to the terminal device by other network devices, or the terminal device may automatically obtain the number of lost packets and the number of bytes within the preset time period from other network devices. The other network device shown here may be a receiving end of the first data stream, and the receiving end of the first data stream may determine a packet loss situation of the first data stream according to a sending situation and a receiving situation of the first data stream.
The realization mode is six,
And the first network equipment adjusts the sending time interval between the messages according to the first identifier and the statistical information of the first identifier. For example, the statistical information of the first identifier may include a transmission time interval between a message (e.g., a first message) and another message (e.g., another first message).
It can be understood that the above six implementation manners are only examples, and in a specific implementation, the statistical information of the first data stream may further include other parameters and the like, which are not limited in this embodiment of the application.
The format of the first message provided in the embodiment of the present application is described in detail below.
Illustratively, the first packet may be forwarded based on a source route forwarding manner of an IPv6 segment routing (IPv6 segment routing, SRv6) protocol. Fig. 4a is a format of a first message illustrated by IPv 6. The first message may include a version field, a traffic class (traffic class) field, a flow label (flow label) field, a payload length (payload length) field, a next header (next header) field, a hop limit (hop limit) field, a source address field, and a destination address field. It is to be understood that the various fields shown above may be understood as the IPv6 header of the first packet. And the first packet may further include an extended header (SRH), for example, the first packet further includes a next header (next header) field, a SRH header length (header next length) field, a header type (routing type) field, a segment offset (SL) field, a Last Entity (LE) field, a flags (flags) field, a tag (tag) field, a segment list (segment list) field, a payload (payload), and the like. It is understood that the fields included in the first message shown above are only examples, and the relevant standard or protocol and the like may also be referred to for the specific format of the first message.
For example, the network device through which the first message passes in going from the source address to the destination address may be determined by the segment list field. In other words, when the first packet is forwarded, a forwarding path, a forwarding manner, and the like of the first packet may be indicated by one or more segment list fields.
In general, a location identification (locator) field, a function (function) field, and a variable (args) field may be included in the segment routing header. For example, the segment list (segment list [0]) in fig. 4a may be used to carry the first identifier and the statistical information corresponding to the first identifier, the segment list [1] may be used to carry the second identifier and the statistical information corresponding to the second identifier, and so on, the segment list [ N ] may be used to carry the nth identifier and the statistical information corresponding to the nth identifier, where N is an integer greater than or equal to 1, and a specific value of N may be determined according to the destination address in the first message, and the like.
For example, as shown in fig. 4b, the first packet may include a first location identifier (first locator) field, a first function (first function) field, and a first variable (first args) field. The first location identity field may be used to carry an identity of the first network device, i.e., the first location identity field may be used to route and forward the first packet. The first functional field may be used to carry a first identifier, where the first identifier may be used to indicate an action that needs to be performed by the first network device (e.g., determining a service corresponding to the first packet, etc.). The first variable may be used to carry statistical information corresponding to the first identifier.
Since the segment list is in the form of IPv6 address, in the embodiment of the present application, by encapsulating the first identifier (and the second identifier) and the statistical information corresponding to the first identifier (and the statistical information corresponding to the second identifier) in the segment list, it is possible to implement association between the first identifier and/or the second identifier and the IP address.
For example, fig. 4c shows the statistics corresponding to the first identifier, for example, the statistics corresponding to the first identifier may include an aging period of the statistics corresponding to the first identifier (i.e., a flow table aging period in fig. 4 c) (period), a total number of packet bytes of the first data flow (i.e., a total number of packet bytes within the creation duration) (count), a number of packet bytes in the current period (period count), a flow creation time (start), and a number of packet bytes in the last period (lastPktTime). Meanwhile, fig. 4c also includes the service type of the first data stream, such as application identification (APP ID).
It is understood that the statistical information, the attribute information, and the like shown in fig. 4c are only examples, and the embodiment of the present application is not limited to the specific parameter types corresponding to the respective identifiers.
It can be understood that the segment list shown in the embodiment of the present application is shown by taking SRH as an example, however, the embodiment of the present application also provides a format of the first packet. As shown in fig. 4d, reference may be made to fig. 4a for the introduction of the IPv6 header of the first packet. The first message further includes an identification header, it is understood that the identification header shown here is only an example, and in a specific implementation, the identification header may also have other names, and the like, which is not limited in this embodiment of the application. As shown in fig. 4d, the first packet further includes a next header field, an identification header field, a header type, an SL field, a segment list field, and the like. The segment list field may be used to carry the first identifier and statistical information corresponding to the first identifier. And/or the segment list field may be used to carry the second identifier and statistical information corresponding to the second identifier. I.e. the specific format of the segment list field shown in fig. 4d, etc., and the embodiment of the present application is not limited.
In the embodiment of the application, the first network device determines the first service corresponding to the first packet according to the first identifier, so as to provide a service for the first packet according to the first service. On one hand, the first network device does not need to search the first service corresponding to the first message according to the table entry and the five-tuple, and the load condition of the first network device is improved. On the other hand, the flow table information of the first data flow is counted by the terminal device, so that the first network device can determine the first service in time according to the change condition of the first data flow, the efficiency of providing the service by the first network device is improved, and the first network device can provide the service for the terminal device more efficiently.
The message processing method provided in this embodiment will be further described below by taking, as an example, a network device in which a first network device and a second network device belong to different network domains.
Fig. 5 is a flowchart illustrating another message processing method according to an embodiment of the present application. It is understood that, in the method shown in fig. 5, only the first network device and the second network device are taken as examples, but the network domain in which the first network device is located may also include other network devices, and the network domain in which the second network device is located may also include other network devices, and the like, and for the methods shown by the other network devices, the method shown in fig. 5 is not shown, but should not be understood as a limitation to the embodiments of the present application. It will be appreciated that the service provider shown in figure 5 is used to provide services to subscribers. For example, the service provider may provide video service, voice service, etc. to the user, which is not illustrated here. Generally, the service provider interacts with the management device, so that information synchronization can be performed between the service provider and the management device. For example, the management device may configure the correspondence between the identifier and the service according to the requirements of the service provider, and thus, the management device issues the correspondence between the identifier and the service to the network device. It can be understood that fig. 5 shown below illustrates the message processing method provided in the embodiment of the present application by taking the third network device as the terminal device, but should not be construed as a limitation to the embodiment of the present application.
As shown in fig. 5, the message processing method includes:
501. and the terminal equipment sends a third message to the service provider.
In this embodiment, when the terminal device sends the third packet to the service provider, the third packet may pass through one or more network domains. In the embodiment of the present application, the first message passes through the first network device and the second network device as an example. Thus, step 501 may also be understood as: and the terminal equipment sends a third message to the service provider through the first network equipment and the second network equipment.
502. And the first network equipment receives the third message and sends a fourth message to the terminal equipment.
That is, the fourth message is a response message of the third message, and the fourth message includes the first identifier and the parameter type of the statistical information corresponding to the first identifier. In other words, before the terminal device generates the first packet, the first network device needs to indicate the first identifier and the parameter type of the statistical information corresponding to the first identifier to the terminal device through the fourth packet. The parameter type of the statistical information corresponding to the first identifier is a parameter type of a first data stream that needs to be counted by the terminal device. For example, the fourth packet may further include any one or more of the following parameter categories: creating time length, period time length, average packet sending quantity and total packet sending quantity. The fourth message indicates the above-mentioned types, so that the terminal device can count the first data flow according to the parameter types indicated by the fourth message, thereby obtaining the statistical information of the first data flow corresponding to the above-mentioned types.
503. And the second network equipment receives the third message and sends a fifth message to the terminal equipment.
The fifth message is a response message of the third message, and the fifth message includes the second identifier and the parameter type of the statistical information corresponding to the second identifier. In other words, before the terminal device generates the first packet, the second network device needs to indicate the second identifier and the parameter type of the statistical information corresponding to the second identifier to the terminal device through the fourth packet. The parameter type of the statistical information corresponding to the second identifier is a parameter type of the first data stream that needs to be counted by the terminal device. It is understood that for the description of the fifth message, reference may also be made to the fourth message shown above, and details are not described here.
In the embodiment of the present application, a message received by a first network device and a message forwarded to a second network device are referred to as a third message. Optionally, the message received by the first network device and the message forwarded to the second network device may not be the same message. If the first network device receives the third packet, the third packet may be re-encapsulated to obtain a sixth packet. And then, sending the sixth message to a second network device, and after receiving the sixth message, the second network device repackages the sixth message to obtain a seventh message. In the embodiment of the present application, there is no limitation on whether the packet received by the first network device and the forwarded packet are referred to as the same packet.
It can be understood that how the second network device feeds back the fifth packet to the terminal device is not limited in this embodiment of the application. For example, the fifth message may be sent to the terminal device through the first network device, or may be sent directly to the terminal device, and the like.
After receiving the third message, the service provider can obtain the user's requirement according to the third message.
In one possible implementation, the service provider may also interact with the management device. Therefore, the management device can determine the correspondence between the first identifier and the first service, the correspondence between the second identifier and the second service, and the like according to the service requirements provided by the service provider.
It can be understood that, in the embodiment of the present application, the sequence of step 502 and step 503 is not limited.
504. The terminal device establishes a flow table to obtain statistical information of the first data flow.
In this embodiment, the terminal device may establish the flow table according to the fourth message and/or the fifth message. For example, the fourth message includes a parameter type of the statistical information corresponding to the first identifier, and the fifth message includes a parameter type of the statistical information corresponding to the second identifier. Therefore, the terminal device may perform statistics on the first data flow according to the fourth packet and the fifth packet, and obtain statistical information of the first data flow corresponding to the fourth packet and statistical information of the first data flow corresponding to the fifth packet.
It is understood that the statistical information of the first data stream shown here is illustrated by taking terminal device statistics as an example, but the statistical information of the first data stream shown in the embodiment of the present application may also be taken as AP statistics, and the embodiment of the present application does not limit this.
The embodiment of the present application is not limited to a specific form of the flow table established by the terminal device. However, reference may be made to the above for specific contents of the flow table established by the terminal device, that is, the statistical information of the first data flow, and details thereof are not described here.
It can be understood that the terminal device establishes the flow table and obtains the statistical information of the first data flow, which is only an example, in a specific implementation, the flow table may also be established by another device, and the statistical information of the first data flow is obtained, so that the flow table is sent to the terminal device, and the like, which is not limited in this embodiment of the present application.
505. The terminal equipment generates a first message.
In this embodiment, the first packet may include the first identifier, the second identifier, statistical information corresponding to the first identifier, and statistical information corresponding to the second identifier.
For the specific form or content of the first message, etc., reference may be made to the method shown in fig. 3, and the first message shown in fig. 4a or fig. 4b, which will not be described in detail here.
506. The terminal device sends a first message, and correspondingly, the first network device receives the first message.
Illustratively, the terminal device may send the first packet to the service provider through the first network device and the second network device. The embodiment of the present application does not limit how the first packet reaches the service provider through the first network device and the second network device.
It can be understood that, for a specific implementation manner of the other network devices through which the first message passes, for example, the first message may also pass through the first network device, the second network device, and the fourth network device to reach the service provider. For a specific implementation manner of the fourth network device, reference may be made to the embodiment shown in fig. 3, and details of the embodiment of the present application are not described in detail.
It will be appreciated that although step 506 in fig. 5 represents the terminal device sending the first message to the service provider via the first network device and the second network device. However, when the first packet arrives at the first network device, the first network device can ensure that the first packet is sent out by performing step 507 and step 508. That is, the first network device may send the first message to the second network device through step 507 and step 508, and then the second network device sends the first message to the service provider through performing step 509 and step 510.
507. And the first network equipment determines the service corresponding to the first message according to the first identifier and the statistical information corresponding to the first identifier.
508. And the first network equipment processes the first message through the service corresponding to the first message.
It is understood that reference may be made to the method shown in fig. 3 for specific implementation of step 507 and step 508, which will not be described in detail herein.
509. And the second network equipment determines the service corresponding to the first message according to the second identifier and the statistical information corresponding to the second identifier.
510. And the second network equipment processes the first message through the service corresponding to the first message.
The specific implementation manner of step 508 and step 509 may correspond to the method for determining, by referring to the first network device shown in fig. 3, the service corresponding to the first packet, and will not be described in detail here.
It can be understood that the statistical information corresponding to the first identifier may be the same as or different from the statistical information corresponding to the second identifier, and the like, which is not limited in this embodiment of the application.
In this embodiment, the service corresponding to the first packet determined by the second network device may be the same as the service corresponding to the first packet determined by the first network device. For example, the priority queue corresponding to the first packet determined by the first network device is the first queue, and the priority queue corresponding to the first packet determined by the second network device is also the first queue. Or, the service corresponding to the first packet determined by the second network device may be different from the service corresponding to the first packet determined by the first network device. For example, the service corresponding to the first packet determined by the second network device is a priority queue corresponding to the first packet, and the service corresponding to the first packet determined by the first network device is a packet loss policy of the first packet. For another example, the priority queue corresponding to the first packet determined by the first network device is the first queue, and the priority queue corresponding to the first packet determined by the second network device is the second queue. Here, the service corresponding to the first packet determined by the first network device and the service corresponding to the first packet determined by the second network device are only examples.
511. And the terminal equipment performs service interaction with the service provider through the first message.
In the embodiment of the application, the first network device issues the first identifier for the terminal device, and the second network device issues the second identifier for the terminal device, so that the terminal device can encapsulate the first identifier and the second identifier in the first message. Therefore, the first network device can determine the service corresponding to the first message according to the first identifier identified by the first network device, and the second network device can determine the service corresponding to the first message according to the second identifier identified by the second network device. On one hand, the load conditions of the first network device and the second network device are improved, and the condition that the first network device and the second network device determine the service corresponding to the first message according to the table entry, the quintuple and the like is improved. In a second aspect, the first network device and the second network device may determine the service corresponding to the first packet according to the latest statistical information of the first data stream provided by the terminal device, so that the efficiency of determining the service is improved, and the determined service better conforms to the change condition of the current first data stream. It can be understood that the current change situation of the first data flow shown here refers to the information of the first data flow counted by the terminal device when the terminal device sends the first packet.
It is understood that the format of the first message shown in fig. 5 can refer to fig. 4a and/or fig. 4 b. And implementations not described in detail in the method shown in fig. 5 may refer to the method shown in fig. 3, and are not described in detail here.
The following will describe a communication apparatus provided in an embodiment of the present application.
Fig. 6 is a schematic configuration diagram of a communication device according to an embodiment of the present invention, which may be a switch (also referred to as a switching device, a switching chip, or the like), a router, a network card, or the like in any form, and the present invention is not limited to a specific form of the communication device. As shown in fig. 6, the communication apparatus includes: a processing unit 601 and a transceiving unit 602.
In some embodiments of the present application, the communication apparatus shown in fig. 6 may be used to perform the operations (functions or steps) performed by the first network device in the above-described embodiments, and the like.
Exemplarily, the transceiving unit 602 is configured to input a first packet, where the first packet includes a first identifier and statistical information corresponding to the first identifier, the statistical information is statistical information of a first data flow, and the first data flow includes the first packet;
the processing unit 601 is configured to determine a service corresponding to the first packet according to the first identifier and the statistical information corresponding to the first identifier, and process the first packet through the service corresponding to the first packet.
The transceiving unit 602 inputs the first message, including: the receiving and sending unit receives the first message.
Illustratively, the processing unit 601 is specifically configured to determine, when the statistical information corresponding to the first identifier meets a first condition, a first service according to the first identifier and the first condition, where the first service is a service corresponding to the first packet; alternatively, the first and second electrodes may be,
a processing unit 601, configured to determine, when the statistical information corresponding to the first identifier meets a second condition, a second service according to the first identifier and the second condition, where the second service is a service corresponding to the first packet; alternatively, the first and second electrodes may be,
the processing unit 601 is specifically configured to determine a third service according to the first identifier and a third condition when the statistical information corresponding to the first identifier meets the third condition, where the third service is a service corresponding to the first packet.
Illustratively, the processing unit 601 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the first queue, when the number of packet-sending bytes of the first data stream in a preset time duration is greater than a first threshold; and/or the presence of a gas in the gas,
the processing unit 601 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the first queue when the average packet sending byte number of the first data stream in the preset time duration is greater than the second threshold.
Illustratively, the processing unit 601 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is a second queue when the number of packet-sending bytes of the first data stream in a preset time period is smaller than a first threshold; and/or the presence of a gas in the gas,
the processing unit 601 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the second queue when the average packet sending byte number of the first data stream in the preset time duration is smaller than the second threshold.
Illustratively, the transceiving unit 602 is further configured to output a fourth packet (e.g., send the fourth packet to a third network device, etc.), where the fourth packet includes the first identifier and a parameter type of the statistical information corresponding to the first identifier.
In this embodiment, for specific descriptions of the transceiver unit and the processing unit, reference may also be made to the steps executed by the first network device in the foregoing embodiments, and details are not described here again. Illustratively, the processing unit 601 may be configured to perform step 303 and step 304 in fig. 3, and the transceiving unit 602 may be configured to perform the receiving operation in step 302 in fig. 3. For example, the processing unit 601 may be further configured to perform step 506 and step 507 in fig. 5, and the transceiving unit 602 may be further configured to perform operations of receiving a third message and sending a response message of the third message in fig. 5, and the like, which are not described in detail herein.
It is understood that reference may be made to the above description for the first identifier, the statistical information corresponding to the first identifier, the second identifier, the statistical information corresponding to the second identifier, the statistical information of the first service, the second service, the third service, the statistical information of the first data stream, and the like, and detailed description thereof is omitted here.
In other embodiments of the present application, the communication apparatus shown in fig. 6 may be used to perform the operations (functions or steps) performed by the third network device in the above-described embodiments, and the like.
Exemplarily, the processing unit 601 is configured to generate a first packet, where the first packet includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data flow, and the first data flow includes the first packet;
the transceiving unit 602 is configured to output a first message.
Illustratively, the transceiving unit 602 is further configured to input a fourth message and/or a fifth message, and the like.
In this embodiment, for specific descriptions of the transceiver unit and the processing unit, reference may also be made to the steps executed by the third network device in the foregoing embodiments, and details are not described here again. For the implementation of the processing unit and the transceiver unit, reference may also be made to the method shown in fig. 5, which is not described in detail here.
It is understood that reference may be made to the above description for the first identifier, the statistical information corresponding to the first identifier, the second identifier, the statistical information corresponding to the second identifier, the statistical information of the first service, the second service, the third service, the statistical information of the first data stream, and the like, and detailed description thereof is omitted here.
The division of the modules in the embodiments of the present application is schematic, and only one logical function division is provided, and in actual implementation, there may be another division manner, and in addition, each functional module or unit in each embodiment of the present application may be integrated in one processor, may also exist alone physically, and may also be integrated in one module or unit by two or more modules or units. The integrated modules or units may be implemented in the form of hardware, or may be implemented in the form of software functional modules.
The first network device and the third network device of the embodiment of the present application are introduced above, and possible product forms of the first network device and the third network device are introduced below. It should be understood that any product having the functionality of the first network device described above with reference to fig. 6, or any product having the functionality of the third network device described above with reference to fig. 6, falls within the scope of the embodiments of the present application. It should also be understood that the following description is only exemplary and does not limit the product form of the first network device and the third network device according to the embodiments of the present application.
In one possible implementation, the communication device shown in fig. 6 is a switch, a router, a network card, or the like in any form; or a device in any form of switch, router or network card, or a device matched with any form of switch, router or network card; alternatively, when the communication apparatus shown in fig. 6 is a terminal device or AP of any form; or a terminal device of any form or an AP or the like; or when the apparatus is used with any form of terminal device, AP, or the like, the processing unit 601 may be one or more processors, and the transceiving unit 602 may be a transceiver, or the transceiving unit 602 may also be a transmitting unit and a receiving unit, where the transmitting unit may be a transmitter, the receiving unit may be a receiver, and the transmitting unit and the receiving unit are integrated into one device, such as a transceiver. In the embodiment of the present application, the processor and the transceiver may be coupled, and the connection manner between the processor and the transceiver is not limited in the embodiment of the present application.
As shown in fig. 7, the communication device 70 includes one or more processors 720 and a transceiver 710.
In some embodiments of the present application, the processor and the transceiver may be configured to perform the functions or operations performed by the first network device, and the like.
In other embodiments of the present application, the processor and the transceiver may be configured to perform the functions or operations performed by the third network device, and the like.
It is understood that, for the functions or operations performed by the transceiver and/or the processor, etc., reference may be made to the various embodiments shown in fig. 6, or, alternatively, reference may also be made to the method embodiments shown in fig. 3 and/or fig. 5, which are not described in detail herein.
In various implementations of the communications apparatus shown in fig. 7, the transceiver may include a receiver for performing a receiving function (or operation) and a transmitter for performing a transmitting function (or operation). And transceivers for communicating with other devices/apparatuses over a transmission medium.
Optionally, communication device 70 may also include one or more memories 730 for storing program instructions and/or data. Memory 730 is coupled to processor 720. The coupling in the embodiments of the present application is an indirect coupling or a communication connection between devices, units or modules, and may be an electrical, mechanical or other form for information interaction between the devices, units or modules. Processor 720 may cooperate with memory 730. Processor 720 may execute program instructions stored in memory 730. Optionally, at least one of the one or more memories may be included in the processor.
The specific connection medium among the transceiver 710, the processor 720 and the memory 730 is not limited in the embodiments of the present application. In fig. 7, the memory 730, the processor 720 and the transceiver 710 are connected by a bus 740, the bus is represented by a thick line in fig. 7, and the connection manner between other components is merely illustrative and not limited. The bus may be divided into an address bus, a data bus, a control bus, etc. For ease of illustration, only one thick line is shown in FIG. 7, but this is not intended to represent only one bus or type of bus.
In the embodiments of the present application, the processor may be a general-purpose processor, a digital signal processor, an application specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, a discrete hardware component, or the like, which may implement or execute the methods, steps, and logic blocks disclosed in the embodiments of the present application. A general purpose processor may be a microprocessor or any conventional processor or the like. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or implemented by a combination of hardware and software modules in a processor.
In the embodiment of the present application, the memory may include, but is not limited to, a nonvolatile memory such as a hard disk (HDD) or a solid-state drive (SSD), an Erasable Programmable Read Only Memory (EPROM), a read-only memory (ROM), a portable read-only memory (CD-ROM), and the like. The memory is any storage medium that can be used to carry or store program code in the form of instructions or data structures and that can be read and/or written by a computer (e.g., communications devices, etc., as shown herein), but is not limited to such. The memory in the embodiments of the present application may also be circuitry or any other device capable of performing a storage function for storing program instructions and/or data.
It is understood that when the third network device is a terminal device, that is, when the communication apparatus shown in fig. 7 is used for executing steps or functions executed by the terminal device, the processor 720 is mainly used for processing communication protocols and communication data, controlling the whole communication apparatus, executing software programs, and processing data of the software programs. The memory 730 is used primarily for storing software programs and data. The transceiver 77 may include a control circuit and an antenna, the control circuit being mainly used for conversion of baseband signals and radio frequency signals and processing of radio frequency signals. The antenna is mainly used for receiving and transmitting radio frequency signals in the form of electromagnetic waves. Input and output devices, such as touch screens, display screens, keyboards, etc., are used primarily for receiving data input by a user and for outputting data to the user.
When the communication device is powered on, the processor 720 may read the software program stored in the memory 730, interpret and execute the instructions of the software program, and process the data of the software program. When data needs to be sent wirelessly, the processor 720 outputs a baseband signal to the radio frequency circuit after performing baseband processing on the data to be sent, and the radio frequency circuit sends the radio frequency signal to the outside in the form of electromagnetic waves through the antenna after performing radio frequency processing on the baseband signal. When data is transmitted to the communication device, the rf circuit receives an rf signal through the antenna, converts the rf signal into a baseband signal, and outputs the baseband signal to the processor 720, and the processor 720 converts the baseband signal into data and processes the data.
In another implementation, the rf circuitry and antenna may be provided independently of the processor performing the baseband processing, for example in a distributed scenario, the rf circuitry and antenna may be in a remote arrangement independent of the communication device.
It is understood that the communication device shown in the embodiment of the present application may have more components than those shown in fig. 7, and the embodiment of the present application is not limited thereto. The methods performed by the processors and transceivers shown above are only examples, and reference may be made to the methods described above for the steps specifically performed by the processors and transceivers.
It is understood that the communication device shown in the embodiment of the present application may also have more components than those shown in fig. 7, and the embodiment of the present application does not limit this.
It will be appreciated that the methods performed by the processor and transceiver shown above are merely examples, and reference may be made to the methods described above for the steps specifically performed by the processor and transceiver.
In another possible implementation manner, when the communication apparatus is a chip system, such as a chip system in a switch (or referred to as a switch device, a switch chip, etc.), a router, a network card, etc., or a chip system in a terminal device or an AP, etc., the processing unit 601 may be one or more logic circuits, and the transceiving unit 602 may be an input/output interface, also referred to as a communication interface, or an interface circuit, or an interface, etc. Or the transceiving unit 602 may also be a transmitting unit and a receiving unit, the transmitting unit may be an output interface, the receiving unit may be an input interface, and the transmitting unit and the receiving unit are integrated into one unit, such as an input-output interface. As shown in fig. 8, the communication apparatus shown in fig. 8 includes a logic circuit 801 and an interface 802. That is, the processing unit 601 may be implemented by the logic circuit 801, and the transceiver unit 602 may be implemented by the interface 802. The logic circuit 801 may be a chip, a processing circuit, an integrated circuit, or a system on chip (SoC) chip, and the interface 802 may be a communication interface, an input/output interface, or the like. In the embodiments of the present application, the logic circuit and the interface may also be coupled to each other. The embodiments of the present application are not limited to the specific connection manner of the logic circuit and the interface.
In some embodiments of the present application, the logic and interface may be used to perform the functions or operations, etc., performed by the first network device described above.
Exemplarily, the interface 802 is configured to input a first packet, where the first packet includes a first identifier and statistical information corresponding to the first identifier, the statistical information is statistical information of a first data flow, and the first data flow includes the first packet;
the logic circuit 801 is configured to determine a service corresponding to the first packet according to the first identifier and the statistical information corresponding to the first identifier, and process the first packet through the service corresponding to the first packet.
Illustratively, the logic circuit 801 is specifically configured to determine, when the statistical information corresponding to the first identifier satisfies a first condition, a first service according to the first identifier and the first condition, where the first service is a service corresponding to the first packet; alternatively, the first and second electrodes may be,
the logic circuit 801 is specifically configured to determine a second service according to the first identifier and a second condition when the statistical information corresponding to the first identifier satisfies the second condition, where the second service is a service corresponding to the first packet; alternatively, the first and second liquid crystal display panels may be,
the logic circuit 801 is specifically configured to, when the statistical information corresponding to the first identifier satisfies a third condition, determine a third service according to the first identifier and the third condition, where the third service is a service corresponding to the first packet.
Illustratively, the logic circuit 801 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the first queue, when the number of packet-sending bytes of the first data stream in a preset time duration is greater than a first threshold; and/or the presence of a gas in the gas,
the logic circuit 801 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the first queue when the average packet sending byte number of the first data stream in the preset time duration is greater than the second threshold.
Illustratively, the logic circuit 801 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the second queue when the number of packet-sending bytes of the first data stream in the preset time duration is smaller than the first threshold; and/or the presence of a gas in the gas,
the logic circuit 801 is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the second queue when the average packet sending byte number of the first data stream in the preset time duration is smaller than the second threshold.
Illustratively, the interface 802 is further configured to output a fourth message, and the like.
In some embodiments of the present application, the logic and interface may be used to perform the functions or operations performed by the third network device described above, and so on.
Illustratively, the logic circuit 801 is configured to generate a first packet, where the first packet includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data flow, and the first data flow includes the first packet; the interface 802 is configured to output a first message.
Illustratively, the interface 802 is further configured to input a fourth message and/or a fifth message, and the like.
It is understood that reference may be made to the above description for the first identifier, the statistical information corresponding to the first identifier, the second identifier, the statistical information corresponding to the second identifier, the statistical information of the first service, the second service, the third service, the statistical information of the first data stream, and the like, and detailed description thereof is omitted here.
The embodiment of the present application further provides a communication system, where the communication system includes a first network device and a third network device, and the first network device and the third network device may be configured to execute the method in any of the foregoing embodiments. Optionally, the communication system may further include a second network device, and the second network device may be configured to execute the method shown in fig. 5.
Furthermore, the present application also provides a computer program for implementing the operations and/or processes performed by the first network device in the methods provided by the present application.
The present application also provides a computer program for implementing the operations and/or processes performed by the third network device in the methods provided herein.
The present application also provides a computer-readable storage medium having stored therein computer code, which, when run on a computer, causes the computer to perform the operations and/or processes of the methods provided herein performed by the first network device.
The present application also provides a computer-readable storage medium having stored therein computer code, which, when run on a computer, causes the computer to perform the operations and/or processes of the methods provided herein performed by a third network device.
The present application also provides a computer program product comprising computer code or a computer program which, when run on a computer, causes the operations and/or processes performed by the first network device in the methods provided herein to be performed.
The present application also provides a computer program product comprising computer code or a computer program which, when run on a computer, causes the operations and/or processes performed by the third network device in the methods provided herein to be performed.
In the several embodiments provided in the present application, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and there may be other divisions when actually implementing, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may also be an electric, mechanical or other form of connection.
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 units can be selected according to actual needs to achieve the technical effects of the solutions provided by the embodiments of the present application.
In addition, functional units in the embodiments of the present application may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
The integrated unit, if implemented in the form of a software functional unit and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be substantially implemented or contributed to by the prior art, or all or part of the technical solution may be embodied in a software product, which is stored in a readable storage medium and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application. And the aforementioned readable storage medium includes: various media capable of storing program codes, such as a usb disk, a removable hard disk, a read-only memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (30)

1. A message processing method is applied to a first network device, and the method comprises the following steps:
receiving a first message, wherein the first message comprises a first identifier and statistical information corresponding to the first identifier, the statistical information is statistical information of a first data stream, and the first data stream comprises the first message;
determining a service corresponding to the first message according to the first identifier and statistical information corresponding to the first identifier;
and processing the first message through the service corresponding to the first message.
2. The method of claim 1, wherein the determining the service corresponding to the first packet according to the first identifier and the statistical information corresponding to the first identifier comprises:
determining a first service according to the first identifier and a first condition when the statistical information corresponding to the first identifier meets the first condition, wherein the first service is a service corresponding to the first message; alternatively, the first and second electrodes may be,
and under the condition that the statistical information corresponding to the first identifier meets a second condition, determining a second service according to the first identifier and the second condition, wherein the second service is a service corresponding to the first message.
3. The method of claim 2, wherein the first service and the second service differ by at least any one of:
the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message.
4. The method according to any one of claims 1 to 3, wherein the statistical information corresponding to the first identifier includes statistical information of the first data stream within a preset time period.
5. The method according to claim 4, wherein the statistical information of the first data stream within the preset time period comprises: and sending a packet and/or losing a packet of the first data stream within the preset time length.
6. The method of claim 5, wherein the sending of the first data stream within the preset time period comprises: and the packet sending quantity of the first data stream in the preset time length.
7. The method of any of claims 2-6, wherein the first condition comprises: the number of packet sending bytes of the first data stream in the preset time length is larger than a first threshold value; the second condition includes: the number of packet sending bytes of the first data stream in the preset time length is smaller than the first threshold value; alternatively, the first and second electrodes may be,
the first condition includes: the average packet sending byte number of the first data stream in the preset time length is larger than a second threshold value; the second condition includes: and the average packet sending byte number of the first data stream in the preset time length is smaller than the second threshold value.
8. The method according to claim 7, wherein in a case that the statistical information corresponding to the first identifier satisfies a first condition, determining the first service according to the first identifier and the first condition includes:
determining that the priority queue corresponding to the first message is a first queue according to the first identifier under the condition that the number of packet sending bytes of the first data stream in the preset duration is greater than the first threshold; and/or the presence of a gas in the gas,
and determining that the priority queue corresponding to the first message is the first queue according to the first identifier under the condition that the average packet sending byte number of the first data stream in the preset time length is greater than the second threshold.
9. The method of claim 7, wherein in a case that the statistical information corresponding to the first identifier satisfies a second condition, determining a second service according to the first identifier and the second condition includes:
determining that the priority queue corresponding to the first message is a second queue according to the first identifier under the condition that the number of packet sending bytes of the first data stream in the preset duration is smaller than the first threshold; and/or the presence of a gas in the gas,
and determining the priority queue corresponding to the first message as the second queue according to the first identifier under the condition that the average packet sending byte number of the first data stream in the preset time length is smaller than the second threshold.
10. The method according to any one of claims 1 to 9, wherein the first packet further includes a second identifier and statistical information corresponding to the second identifier, where the second identifier is an identifier corresponding to a second network device, and the second identifier is used to instruct the second network device to determine a service corresponding to the first packet.
11. A message processing method is applied to a third network device, and is characterized in that the method comprises the following steps:
generating a first message, where the first message includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data stream, and the first data stream includes the first message;
and sending the first message.
12. The method of claim 11, wherein prior to generating the first packet, the method further comprises:
receiving a fourth message from the first network device, where the fourth message includes the first identifier.
13. The method according to claim 12, wherein the fourth packet further includes a parameter category of statistical information corresponding to the first identifier.
14. The method according to any one of claims 11-13, wherein the statistical information corresponding to the first identifier comprises statistical information of the first data stream within a preset time period.
15. The method of claim 14, wherein the statistical information of the first data stream within the preset time period comprises: and the packet sending condition and/or the packet loss condition of the first data stream within the preset time length.
16. A first network device, comprising:
a receiving and sending unit, configured to receive a first packet, where the first packet includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data stream, and the first data stream includes the first packet;
and the processing unit is used for determining the service corresponding to the first message according to the first identifier and the statistical information corresponding to the first identifier, and processing the first message through the service corresponding to the first message.
17. The apparatus of claim 16,
the processing unit is specifically configured to determine a first service according to the first identifier and a first condition when statistical information corresponding to the first identifier meets the first condition, where the first service is a service corresponding to the first packet; alternatively, the first and second electrodes may be,
the processing unit is specifically configured to determine a second service according to the first identifier and a second condition when the statistical information corresponding to the first identifier satisfies the second condition, where the second service is a service corresponding to the first packet.
18. The apparatus of claim 17, wherein the first service and the second service differ by at least any one of:
the priority queue corresponding to the first message, the sending rate corresponding to the first message, the path corresponding to the first message, and the packet loss strategy corresponding to the first message.
19. The apparatus according to any one of claims 16-18, wherein the statistical information corresponding to the first identifier comprises statistical information of the first data stream within a preset time period.
20. The apparatus of claim 19, wherein the statistical information of the first data stream within the preset duration comprises: and the packet sending condition and/or the packet loss condition of the first data stream within the preset time length.
21. The apparatus of claim 20, wherein the transmission of the first data stream within the preset duration comprises: and the packet sending quantity of the first data stream in the preset time length.
22. The apparatus of any of claims 17-21, wherein the first condition comprises: the number of packet sending bytes of the first data stream in the preset time length is larger than a first threshold value; the second condition includes: the number of packet sending bytes of the first data stream in the preset time length is smaller than the first threshold value; alternatively, the first and second electrodes may be,
the first condition includes: the average packet sending byte number of the first data stream in the preset time length is larger than a second threshold value; the second condition includes: and the average packet sending byte number of the first data stream in the preset time length is smaller than the second threshold value.
23. The apparatus of claim 22,
the processing unit is specifically configured to determine, according to the first identifier, that a priority queue corresponding to the first packet is a first queue when the number of packet sending bytes of the first data stream in the preset duration is greater than the first threshold; and/or the presence of a gas in the gas,
the processing unit is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the first queue when the average packet sending byte number of the first data stream in the preset duration is greater than the second threshold.
24. The apparatus of claim 22,
the processing unit is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is a second queue when the number of packet-sending bytes of the first data stream in the preset duration is smaller than the first threshold; and/or the presence of a gas in the gas,
the processing unit is specifically configured to determine, according to the first identifier, that the priority queue corresponding to the first packet is the second queue when the average packet sending byte number of the first data stream in the preset duration is smaller than the second threshold.
25. The device according to any one of claims 16 to 24, wherein the first packet further includes a second identifier and statistical information corresponding to the second identifier, where the second identifier is an identifier corresponding to a second network device, and the second identifier is used to instruct the second network device to determine a service corresponding to the first packet.
26. A third network device, comprising:
the processing unit is configured to generate a first packet, where the first packet includes a first identifier and statistical information corresponding to the first identifier, where the statistical information is statistical information of a first data stream, and the first data stream includes the first packet;
and the receiving and sending unit is used for sending the first message.
27. The apparatus of claim 26,
the transceiver unit is further configured to receive a fourth packet from the first network device, where the fourth packet includes the first identifier.
28. The apparatus according to claim 27, wherein the fourth packet further includes a parameter category of statistical information corresponding to the first identifier.
29. The apparatus according to any of claims 26-28, wherein the statistics corresponding to the first identifier comprise statistics of the first data stream over a preset time period.
30. The apparatus of claim 29, wherein the statistical information of the first data stream within the preset duration comprises: and the packet sending condition and/or the packet loss condition of the first data stream within the preset time length.
CN202011337827.3A 2020-11-25 2020-11-25 Message processing method and device Pending CN114615151A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202011337827.3A CN114615151A (en) 2020-11-25 2020-11-25 Message processing method and device
PCT/CN2021/130801 WO2022111329A1 (en) 2020-11-25 2021-11-16 Message processing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011337827.3A CN114615151A (en) 2020-11-25 2020-11-25 Message processing method and device

Publications (1)

Publication Number Publication Date
CN114615151A true CN114615151A (en) 2022-06-10

Family

ID=81753986

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011337827.3A Pending CN114615151A (en) 2020-11-25 2020-11-25 Message processing method and device

Country Status (2)

Country Link
CN (1) CN114615151A (en)
WO (1) WO2022111329A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115333675B (en) * 2022-08-12 2023-06-16 广州爱浦路网络技术有限公司 Message sending method and device, electronic equipment and storage medium
CN115988574B (en) * 2023-03-15 2023-08-04 阿里巴巴(中国)有限公司 Data processing method, system, equipment and storage medium based on flow table
CN116760744B (en) * 2023-08-17 2023-11-07 新华三技术有限公司 Packet loss statistical method and device and electronic equipment

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101321088A (en) * 2008-07-18 2008-12-10 北京星网锐捷网络技术有限公司 Method and device for IP data flow information statistics
US10263919B1 (en) * 2017-11-06 2019-04-16 Innovium, Inc. Buffer assignment balancing in a network device
CN110138678B (en) * 2018-02-08 2023-02-24 华为技术有限公司 Data transmission control method and device, network transmission equipment and storage medium

Also Published As

Publication number Publication date
WO2022111329A1 (en) 2022-06-02

Similar Documents

Publication Publication Date Title
KR102139712B1 (en) Packet processing method and device
de Carvalho Silva et al. LoRaWAN—A low power WAN protocol for Internet of Things: A review and opportunities
CN107872876B (en) Message sending method and device
CN114615151A (en) Message processing method and device
CN110831075A (en) Data transmission method and device and service switching method and device
US10231163B2 (en) Efficient centralized resource and schedule management in time slotted channel hopping networks
CN110474854B (en) Resource allocation method and device
CN107079524B (en) Data forwarding method and controller
CN107251634B (en) Method and device for controlling scheduling message
CN110708763B (en) Scheduling method, device and computer storage medium
CN109842570B (en) Aggregation rate control method, equipment and system
CN113938904A (en) Data transmission method and device
CN114007204B (en) Communication selection method and device based on relay communication and direct communication
CN113228717A (en) Communication method and device
US20170331749A1 (en) Processing method for service flow packet, and device
CN113676905A (en) Application identifier determining method, application data transmission method and related product
WO2018170877A1 (en) Information sending method and apparatus, terminal, access network device and system
CN112514490A (en) Method and apparatus for wireless communication
CN111757275B (en) Device connection method and device, storage medium and electronic device
KR20230139683A (en) Method and appratus to process application data in wireless communication system
CN116155875A (en) Data transmission method and communication device
CN105874755B (en) Data packet forwarding processing method and device
CN117793841B (en) Deep coverage communication method, device and system based on power equipment body area network
CN115426280B (en) Network analysis method and related device
WO2023056852A1 (en) Communication method, apparatus and system

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