WO2023241063A1 - Packet processing method, device and system, and storage medium - Google Patents

Packet processing method, device and system, and storage medium Download PDF

Info

Publication number
WO2023241063A1
WO2023241063A1 PCT/CN2023/074659 CN2023074659W WO2023241063A1 WO 2023241063 A1 WO2023241063 A1 WO 2023241063A1 CN 2023074659 W CN2023074659 W CN 2023074659W WO 2023241063 A1 WO2023241063 A1 WO 2023241063A1
Authority
WO
WIPO (PCT)
Prior art keywords
parameter
auxiliary information
network message
network
length
Prior art date
Application number
PCT/CN2023/074659
Other languages
French (fr)
Chinese (zh)
Inventor
吴海生
Original Assignee
中兴通讯股份有限公司
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 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2023241063A1 publication Critical patent/WO2023241063A1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/54Store-and-forward switching systems 
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]

Definitions

  • the present application relates to the field of network communication technology, and in particular to a message processing method, device, system and storage medium.
  • Deterministic Networking In addition to the deterministic network control word (D-CW) and service identification tag (S) defined by the Internet Engineering Task Force (IETF) -Label), some other auxiliary information is also needed for better delay jitter control during packet forwarding processing, such as Cyclic Queuing and Forwarding (CQF) and deadline (deadline)
  • CQF Cyclic Queuing and Forwarding
  • deadline Deadline
  • Embodiments of the present application provide a message processing method, device, system and storage medium.
  • embodiments of the present application provide a message processing method, which is applied to a network sending unit.
  • the method includes: obtaining auxiliary information used to reflect the forwarding status of network messages; determining the location parameters of the auxiliary information and The length parameter of the auxiliary information, encapsulating the position parameter and the length parameter into the network message; encapsulating the auxiliary information into the network message according to the position parameter and the length parameter; forwarding The network message.
  • embodiments of the present application provide a message processing method applied to a network receiving unit.
  • the method includes: receiving a network packet encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information.
  • message wherein the auxiliary information is used to reflect the forwarding status of the network message; decapsulate the network message to obtain the location parameter and the length parameter; according to the location parameter and the length parameter , to obtain the auxiliary information.
  • embodiments of the present application provide a message sending device, including: a sending module configured to obtain auxiliary information used to reflect the network message forwarding status; and obtain the location parameter of the auxiliary information and the location parameter of the auxiliary information. length parameter, and encapsulate the position parameter and the length parameter into the network message; encapsulate the auxiliary information into the network message according to the position parameter and the length parameter, and forward the network message message; a receiving module, configured to receive a network message encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information, wherein the auxiliary information is used to reflect the network message forwarding status; solution Encapsulate the network message and obtain the position parameter and the length parameter; The auxiliary information is obtained according to the position parameter and the length parameter.
  • embodiments of the present application provide a message receiving device, including: a receiving module configured to receive a network message encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information, wherein , the auxiliary information is used to reflect the network message forwarding status; the decapsulation module is used to decapsulate the network message and obtain the position parameter and the length parameter; the determination module is used to determine according to the position parameter and the length parameter. The length parameter is used to obtain the auxiliary information.
  • embodiments of the present application provide a message processing system, including a message sending device and a message receiving device as described above.
  • embodiments of the present application provide a computer-readable storage medium that stores a computer program.
  • the computer program is executed by a processor, the message processing method provided by the embodiment of the present application is implemented.
  • Figure 1 is a schematic flow chart of a message processing method provided by an embodiment of the present application.
  • FIG. 2 is a schematic diagram of the implementation process of another embodiment of step S2000 in Figure 1;
  • FIG. 3 is a schematic diagram of the implementation process of another embodiment of step S2300 in Figure 2;
  • Figure 4 is a schematic diagram of the implementation process of another embodiment of step S2330 in Figure 3;
  • Figure 5 is a schematic flowchart of a message processing method provided by another embodiment of the present application.
  • Figure 6 is a schematic diagram of the implementation process of another embodiment of step S6000 in Figure 5;
  • Figure 7 is a schematic diagram of the implementation process of another embodiment of step S7000 in Figure 5;
  • Figure 8 is an implementation process of a message processing method provided by an embodiment of the present application.
  • Figure 9 is an implementation process of a message processing method provided by another embodiment of the present application.
  • Figure 10 is a structural diagram of a message sending device provided by an embodiment of the present application.
  • Figure 11 is a structural diagram of a message receiving device provided by an embodiment of the present application.
  • Figure 12 is a schematic structural diagram of a message processing system provided by an embodiment of the present application.
  • At least one of the following and similar expressions refers to any combination of these items, including any combination of single or plural items.
  • at least one of a, b and c can mean: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, also Can be multiple.
  • the message processing method involved in the embodiment of this application is to receive and send auxiliary information based on the segment routing protocol (Segment Routing MPLS, SR MPLS) and SRv6 protocol of the MPLS forwarding plane, and encapsulate and decapsulate network packets with auxiliary information.
  • Segment Routing MPLS Segment Routing MPLS, SR MPLS
  • SRv6 Segment Routing MPLS
  • SRv6 Segment Routing MPLS
  • the existing message processing method is: under the SRv6 technical architecture, traverse part or the entire message structure to find the auxiliary information encapsulated in the network message. Since the location of the auxiliary information obtained in this way is not fixed, it is difficult to ensure that the required auxiliary information can be found in time; in addition, because the system processor needs to adapt to different location information, additional delay and jitter will be generated. Affects the delay and jitter values of communication services; and under the SR MPLS technology architecture, it is impossible to accurately locate and obtain auxiliary information, affecting the stability and reliability of network message transmission.
  • embodiments of the present application provide a message processing method, device, system and computer-readable storage medium, by obtaining auxiliary information used to reflect the forwarding status of network messages; obtaining the location parameters of the auxiliary information and the location parameters of the auxiliary information length parameter, and encapsulates the position parameter and length parameter into the network message; encapsulates auxiliary information into the network message according to the position parameter and length parameter, and forwards the network message to achieve rapid acquisition of the message
  • the purpose of the auxiliary information required in the forwarding process is to avoid traversing part or the entire message structure, improve the processing efficiency of auxiliary information, and thereby increase the speed of message flow.
  • Figure 1 shows the flow of a message processing method provided by an embodiment of the present application.
  • the message processing method in this embodiment of the present application includes the following steps:
  • the forwarding status of network packets is controlled through the D-CW control word and S-Label during the forwarding process, and auxiliary information is also needed to reflect the forwarding status of network packets.
  • auxiliary information is also needed to reflect the forwarding status of network packets.
  • Use It is used to control technical parameters such as delay and jitter of network packets during forwarding.
  • the two types of technical information, CQF and deadline can effectively reflect and control parameters such as periodic templates, periodic time slots, delay, jitter, queue length, and queue scheduling algorithms required in the forwarding process of network messages.
  • the auxiliary information is provided by the local network sending unit or the upstream network unit.
  • the network sending unit adjusts and modifies the auxiliary information according to the forwarding status of the network message, and performs relevant operations when necessary to forward the network message. Status is updated and monitored in real time.
  • the auxiliary information records that the committed rate of the port is 10000bps and compares it with the bandwidth of the output port. For example, the rate of the output port is 8000bps. At this time, the bandwidth rate of the network packet is greater than the rate of the output port, resulting in The output queue is congested.
  • the network sending unit notifies the network management customer through an alarm.
  • S2000 Determine the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulate the position parameter and length parameter into the network message.
  • the position parameter and length information are used to encapsulate the auxiliary information at a specific location in the network packet, so as to facilitate fast and accurate positioning of the auxiliary information.
  • the position parameter is used to represent the starting position of the auxiliary information in the network packet
  • the length information is used to represent the length of the auxiliary information. Therefore, the starting position of the auxiliary information can be accurately located through the position parameter and length information, and By extracting the bytes consistent with the length information, you can obtain the complete auxiliary information.
  • step S2000 at least includes the following steps:
  • S2100 Determine the position parameters of the auxiliary information according to the byte occupancy of the network message.
  • the occupancy of bytes in network packets varies, and the availability of bytes reserved for storing auxiliary information is also different. Therefore, it is necessary to determine the starting position of the auxiliary information based on the byte occupancy of the network message. For example, in MPLS-based application scenarios, when the 10th bit after the S-Label in the network packet is an idle byte, the starting position of the auxiliary information can be set to the 10th bit after the S-Label. At this time, the position parameter of the auxiliary information is 10.
  • the auxiliary information can record and collect statistics on the forwarding status of network packets in a variety of different formats.
  • the length parameter of auxiliary information in the same format will also change due to differences in content. Therefore, it is necessary to accurately calculate the length parameter of the auxiliary information in order to obtain the auxiliary information accurately and completely.
  • the acquisition tool of the network sending unit can directly calculate the length parameter of the auxiliary information, and transmit the length parameter to the network sending unit in real time. It can be understood that calculating the length parameter of the auxiliary information through the acquisition tool of the network sending unit is a known situation and will not be described again here.
  • S2300 Encapsulate the position parameter and length parameter into the network message according to the forwarding mode of the network message.
  • the position parameters and length parameters of the auxiliary information are represented by the existing fields in the network message, which can efficiently reuse the existing fields without modifying the existing protocol and reduce the hardware changes to the network sending unit. , and there is no need to adapt new hardware, ensuring the applicability of the message processing method.
  • step S2300 includes at least the following steps:
  • network packets have fields with different formats and names in different forwarding modes. In different application scenarios, the lengths and functions of these fields vary. Therefore, it is necessary to accurately confirm the forwarding mode of network packets in order to accurately and completely encapsulate the auxiliary information into the specified location in the network packet.
  • the acquisition tool of the network sending unit can directly obtain the forwarding mode of the network message, and transmit the forwarding mode of the network message to the network sending unit in real time. It can be understood that obtaining the forwarding mode of network messages through the acquisition tool of the network sending unit is a known situation and will not be described again here.
  • the non-label field in the network packet is used to carry location parameters and length parameters.
  • the positional parameters and length parameters are written into the EXP, S, and TTL fields in the S-Label structure so that the positional parameters and length parameters can be quickly encapsulated and searched, effectively avoiding the occurrence of positional parameters and length parameters.
  • the auxiliary information can be encapsulated according to a unified route.
  • the segment routing header (SRH) in the network packet is used to carry location parameters and length parameters.
  • the position parameters and length parameters are written into the TAG field in the SRH so that the position parameters and length parameters can be quickly encapsulated and searched, effectively avoiding the position parameters and length parameters.
  • the auxiliary information can be encapsulated according to a unified route.
  • step S2330 includes at least the following steps:
  • S2331. Modify the non-first bit of the reserved field in the segment routing header and set it to a predetermined value.
  • the predetermined value is used to indicate that the network message is encapsulated with location parameters and length parameters.
  • the non-first bit of the reserved field in the segment routing header is modified and set to a predetermined value to represent the network packet.
  • the position parameters and length parameters are encapsulated in the article to avoid searching for network messages when the SRH does not have position parameters and length parameters, and to improve the processing efficiency of network messages.
  • the first bit of the reserved field of SRH is an occupied field
  • the non-first bit of the reserved field of SRH can be used to indicate whether position parameters and length parameters are encapsulated in SRH.
  • the second bit of the FLAG field in the SRH is modified to a value of 1 to indicate that the segment routing header is encapsulated with location parameters and length parameters.
  • S2332 Encapsulate the location parameter and length parameter into the label field of the segment routing header.
  • the TAG field in SRH can effectively ensure the stability and positioning accuracy of the position parameters and length parameters to avoid data loss.
  • the position parameter and length parameter are written into the lower 12 bits of the TAG so that the position parameter and length parameter can be accurately encapsulated into the specified position in the network packet.
  • S3000 Encapsulate the auxiliary information into the network packet according to the position parameter and length parameter.
  • the storage location of the auxiliary information in the network message is determined. Therefore, the auxiliary information can be accurately and quickly stored according to the position parameters and length parameters.
  • Encapsulated into network packets For example, when the forwarding mode of network packets is based on MPLS, the network sending unit inserts auxiliary information with the same length as the length parameter in the field represented by the position parameter after S-Label in the network packet; in the network packet
  • the network sending unit inserts auxiliary information with the same length as the length parameter in the field represented by the position parameter after the TAG field of the SRH in the network message.
  • the location of the auxiliary information can be otherwise specified, which is not limited here.
  • the auxiliary information is encapsulated in the network message in the format of a type length value (Tag Length Value, TLV).
  • TLV protocol is a type of BER (Basic Encoding Rules) encoding. This protocol is simple and efficient, can be applied to various communication scenarios, and has good scalability.
  • the basic format of the TLV protocol is as follows: Type occupies 2 bytes, which is the unique identifier of the message; Length occupies 4 bytes, indicating the length of the Value field; the data in the Value field is the data that needs to be transmitted, and the length is determined by the Length field express.
  • the content of the Value field is represented by multiple fixed-length fields.
  • the first field occupies two bytes, and the second field occupies four bytes, both of which are fixed.
  • the length will not change during packet forwarding. Therefore, the Length field of the TLV structure is also fixed.
  • Different structures are distinguished by Type, and there is no limit to the number of fields, which is highly scalable.
  • the auxiliary information in the above TLV format can add multiple Type fields to identify different forwarding information types. Therefore, the auxiliary information in the TLV format is extensible and suitable for different network environments.
  • auxiliary information settings in the TLV format are as shown in Table 1.
  • the network packet includes auxiliary information used to reflect the forwarding status of the network packet, as well as the position parameter of the auxiliary information and the length parameter of the auxiliary information.
  • auxiliary information, location parameters, and length parameters can be forwarded at the same time to ensure that the peer device can completely receive network messages and obtain auxiliary information quickly and accurately based on the location parameters and length parameters. , effectively improving the processing efficiency of network messages.
  • Figure 5 shows the flow of a message processing method provided by another embodiment of the present application. As shown in Figure 5, the message processing method in this embodiment of the present application includes the following steps:
  • S5000 Receive a network message encapsulated with auxiliary information, a position parameter of the auxiliary information, and a length parameter of the auxiliary information, where the auxiliary information is used to reflect the forwarding status of the network message.
  • deterministic paths are calculated through centralized controllers or distributed nodes. Then, the forwarding and receiving process of network messages requires auxiliary information for further description and control. Therefore, after the network receiving unit receives the network message encapsulated with the auxiliary information, the position parameter of the auxiliary information, and the length parameter of the auxiliary information, it needs to process it quickly to meet the transmission requirements of network messages in the deterministic network.
  • deterministic path allocation and planning belong to Some known situations will not be repeated here.
  • the position parameter of the auxiliary information and the length parameter of the auxiliary information are encapsulated into the network message.
  • the position parameter is used to represent the starting position of the auxiliary information in the network packet
  • the length information is used to represent the length of the auxiliary information. Therefore, in order to quickly obtain auxiliary information, it is necessary to decapsulate the network message and obtain the position parameter and length parameter.
  • step S6000 includes at least the following steps:
  • step S2310 in order to obtain the position parameter and length parameter in the network message, a decapsulation operation needs to be performed according to the forwarding mode of the network message. Similarly, obtaining the forwarding mode of network messages through the acquisition tool of the network receiving unit is a known situation and will not be described again here.
  • the non-label field in the network packet is used to carry the location parameter and the length parameter. Therefore, by reading the non-tag field in the identification service tag of the network message, the length parameter can be obtained. For example, the length parameter is written into the EXP, S, and TTL fields in the S-Label structure. You only need to read these fields to quickly obtain the length parameter.
  • step S2321 when the forwarding mode of network packets is based on RSv6, in order to quickly determine whether there are position parameters and length parameters in the SRH, before encapsulating the position parameters and length parameters, modify the SRH
  • the non-first bit of the reserved field is set to a predetermined value to indicate that the network message is encapsulated with position parameters and length parameters. Therefore, by obtaining the tag field of the SRH, it can be determined whether there are position parameters and length parameters in the SRH.
  • the reserved field of SRH is the FALG field.
  • the non-first bit of the reserved field is consistent with the predetermined value
  • obtaining the label field of the SRH effectively avoids searching for network packets when the SRH does not have position parameters and length parameters, and improves network efficiency.
  • the predetermined value is 1.
  • the second bit of the FLAG field in the SRH is a value of 1, it indicates that the position parameter and the length parameter are encapsulated in the SRH. At this time, the position parameter and length parameter can be obtained by reading the TAG field in the SRH.
  • the TAG field in the SRH is used to carry the position parameter and the length parameter. Therefore, when it is determined that the position parameter and the length parameter are encapsulated in the SRH, the position parameter and the length parameter can be quickly obtained by reading the TAG field in the SRH of the network message. For example, the positional parameter and the length parameter are written into the lower 12 bits of the TAG field, where the upper 6 bits represent the positional parameter and the lower 6 bits represent the length parameter.
  • the position parameter is used to represent the starting position of the auxiliary information in the network packet
  • the length information is used to represent the length of the auxiliary information. Therefore, after obtaining the position parameter and length parameter, complete auxiliary information can be extracted at the corresponding position in the network message.
  • step S7000 includes at least the following steps:
  • S7100 Obtain the starting position of the auxiliary information according to the position parameter.
  • the position parameter is used to represent the starting position of the auxiliary information in the network message.
  • the auxiliary information represented by the position parameter there are also differences in the starting position in network packets.
  • the forwarding mode of network packets is based on MPLS
  • the auxiliary information is located in the field represented by the position parameter after the S-Label in the network packet.
  • the forwarding mode of the network message is based on RSv6
  • the auxiliary information is located in the field represented by the position parameter after the TAG field of the SRH in the network message.
  • the starting position of the auxiliary information can be otherwise specified, which is not limited here.
  • S7200 Obtain the auxiliary information according to the length parameter and the starting position of the auxiliary information.
  • the complete auxiliary information can be extracted according to the length parameter.
  • the network receiving unit extracts auxiliary information whose length is consistent with the length parameter in the field represented by the position parameter after the S-Label in the network packet.
  • the forwarding mode of the network message is based on RSv6
  • the network receiving unit extracts auxiliary information whose length is consistent with the length parameter in the field represented by the position parameter after the TAG field of the SRH in the network message.
  • the location of the auxiliary information can be otherwise specified, which is not limited here.
  • FIG. 8 shows an implementation process of a message processing method provided by an embodiment of the present application.
  • the forwarding mode of network packets is based on MPLS.
  • the network packets encapsulate the auxiliary information used in this application to represent the promised speed to guide the forwarding of network packets in the deterministic network.
  • the source node of the network packet is R1
  • the destination node is R3, and the network packet passes through the node R2.
  • auxiliary information is required to complete deterministic forwarding, such as the cir rate of the outgoing port of this node.
  • the auxiliary information is encapsulated into the network packet according to the forwarding requirements, and the forwarding action is performed according to the label instructions.
  • the S-Label will be re-encapsulated to carry the auxiliary information on the R2 node; after stripping off the 21 label in the F-Label, it will be processed according to the 22 label
  • the outbound information is forwarded.
  • the location information in the S-Label 3.
  • FIG. 9 shows an implementation process of a message processing method provided by another embodiment of the present application.
  • the forwarding mode of network packets is based on SRv6.
  • the network packets encapsulate the auxiliary information used to characterize the delay in this application to guide the forwarding of network packets in a deterministic network.
  • the source node of the network packet is R1
  • the destination node is 4, and the network packet passes through nodes R2 and R3.
  • the deterministic path is calculated through the centralized controller or distributed node R1, with (R1, R2, R3, R4) as the path, the adjacent address from R2 to R3 points to (END.x SID) as 2::3, and R3 to R4
  • the processing device on the R1 node encapsulates the message based on the above information, and sets the second bit of the FLAG field in the SRH to 1, indicating that its TAG field encapsulates location information and length information, which requires attention; set the lower 12 bits of the TAG, of which the upper 6 bits Represents location information, and the lower 6 bits represent length information, which is forwarded to node R2 according to the SID tag instructions.
  • the R2 node needs to adjust according to its own processing delay. If the processing delay of R2 has exceeded 20us at this time, an alarm needs to be reported to the network management user for adjustment. If According to your own judgment, the subsequent node processing is also close to 20us. For example, R2 processing requires 19us, and only 1us is left. Then the alarm can be reported to the network management user in advance for adjustment and processing. In some embodiments, whether to report an alarm can be determined through threshold configuration.
  • the network packet reaches R4. After stripping off the SRH and auxiliary information, it continues to forward according to other information in the packet.
  • Figure 10 is a schematic structural diagram of the message sending device 810 provided by the embodiment of the present application.
  • the entire process of the message processing method provided by the embodiment of the present application involves the following modules in the message sending device 810: acquisition module 811 , encapsulation module 812 and forwarding module 813.
  • the acquisition module 811 acquires auxiliary information used to reflect the forwarding status of the network message
  • the encapsulating module 812 is used to determine the position parameter of the auxiliary information and the length parameter of the auxiliary information, encapsulate the position parameter and the length parameter into the network message; encapsulate the auxiliary information into the network message according to the position parameter and the length parameter;
  • Forwarding module 813 forwards network messages.
  • FIG 11 is a schematic structural diagram of a message receiving device 820 provided by an embodiment of the present application.
  • the entire process of the message processing method provided by an embodiment of the present application involves the following modules in the message receiving device 820: receiving module 821 , decapsulation module 822 and determination module 823.
  • the receiving module 821 is used to receive network messages encapsulated with auxiliary information, location parameters of the auxiliary information, and length parameters of the auxiliary information, where the auxiliary information is used to reflect the network message forwarding status;
  • Decapsulation module 822 is used to decapsulate network messages and obtain location parameters and length parameters;
  • the determination module 823 is used to obtain auxiliary information according to the position parameter and the length parameter.
  • Figure 12 is a schematic structural diagram of the message processing system 800 provided by the embodiment of the present application.
  • the entire process of the message processing method provided by the embodiment of the present application involves the following parts of the message processing system 800: Message sending Device 810 and message receiving device 820.
  • Embodiments of the present application also provide a storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the above message processing method.
  • the storage medium stores computer-executable instructions that are executed by one or more control processors, for example, by a processor in the above-mentioned message processing system, so that the above-mentioned one Or multiple processors execute the message processing method provided by any embodiment of this application.
  • the embodiment of the present application obtains auxiliary information used to reflect the forwarding status of network messages; obtains the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulates the position parameter and length parameter into the network message; according to the position parameters and length parameters to encapsulate auxiliary information into the network message, and forward the network message.
  • the solution of the embodiment of the present application can quickly obtain the auxiliary information required for the message forwarding process, avoid traversing part or the entire message structure, improve the processing efficiency of the auxiliary information, and thereby increase the message flow speed.
  • the position parameters and length parameters of the auxiliary information are represented by existing fields in network messages, which can efficiently reuse existing fields without modifying existing protocols, reducing hardware changes to network units and eliminating the need for adaptation. New hardware ensures the applicability of message processing methods.
  • Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and can be accessed by a computer.
  • Computer storage media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Abstract

Disclosed in embodiments of the present application are a packet processing method, device and system, and a storage medium. The method comprises: obtaining auxiliary information used for reflecting a forwarding state of a network packet; determining a position parameter of the auxiliary information and a length parameter of the auxiliary information, and encapsulating the position parameter and the length parameter into the network packet; encapsulating the auxiliary information into the network packet according to the position parameter and the length parameter; and forwarding the network packet.

Description

报文处理方法、装置、系统及存储介质Message processing method, device, system and storage medium
相关申请的交叉引用Cross-references to related applications
本申请基于申请号为202210669219.5、申请日为2022年06月14日的中国专利申请提出,并要求该中国专利申请的优先权,该中国专利申请的全部内容在此引入本申请作为参考。This application is filed based on a Chinese patent application with application number 202210669219.5 and a filing date of June 14, 2022, and claims the priority of the Chinese patent application. The entire content of the Chinese patent application is hereby incorporated into this application as a reference.
技术领域Technical field
本申请涉及网络通信技术领域,特别是涉及一种报文处理方法、装置、系统及存储介质。The present application relates to the field of network communication technology, and in particular to a message processing method, device, system and storage medium.
背景技术Background technique
在确定性网络(Deterministic Networking,DetNet)的报文转发过程中,除了国际互联网工程任务组(The Internet Engineering Task Force,IETF)定义的确定性网络控制字(D-CW)和服务识别标签(S-Label)之外,还需要一些其他的辅助信息,用于报文在转发处理时能更好的时延抖动控制,比如循环排队和转发(Cyclic Queuing and Forwarding,CQF)和截止时间(deadline)这两类技术所需要的周期模板、周期时隙、时延、抖动、队列长度、队列调度算法等参数。目前,在多协议标签交换(Multi-Protocol Label Switching,MPLS)架构下,缺失获取辅助信息的手段;而在第六版分段路由(Segment Routing IPv6,SRv6)技术架构下,由于辅助信息的位置不固定,无法快速地找到所需的辅助信息,在对时延要求很高的确定性场景下,获取辅助信息的时间增加会导致时延累加和抖动增加。这些时延和抖动会造成流量的拥堵,进而影响整个端到端业务的时延、抖动数值,最终导致通信业务的不稳定和不可靠,影响客户的体验。In the packet forwarding process of Deterministic Networking (DetNet), in addition to the deterministic network control word (D-CW) and service identification tag (S) defined by the Internet Engineering Task Force (IETF) -Label), some other auxiliary information is also needed for better delay jitter control during packet forwarding processing, such as Cyclic Queuing and Forwarding (CQF) and deadline (deadline) These two types of technologies require parameters such as periodic templates, periodic time slots, delay, jitter, queue length, and queue scheduling algorithms. Currently, under the Multi-Protocol Label Switching (MPLS) architecture, there is a lack of means to obtain auxiliary information; and under the sixth version of Segment Routing (IPv6, SRv6) technology architecture, due to the location of the auxiliary information It is not fixed and the required auxiliary information cannot be found quickly. In deterministic scenarios with high latency requirements, the increase in time to obtain auxiliary information will lead to increased delay accumulation and jitter. These delays and jitters will cause traffic congestion, which will then affect the delay and jitter values of the entire end-to-end service, ultimately leading to unstable and unreliable communication services and affecting customer experience.
发明内容Contents of the invention
本申请实施例提供一种报文处理方法、装置、系统及存储介质。Embodiments of the present application provide a message processing method, device, system and storage medium.
第一方面,本申请实施例提供一种报文处理方法,应用于网络发送单元,所述方法包括:获取用于反映网络报文的转发状态的辅助信息;确定所述辅助信息的位置参数和所述辅助信息的长度参数,封装所述位置参数和所述长度参数到所述网络报文中;根据所述位置参数和所述长度参数封装所述辅助信息到所述网络报文中;转发所述网络报文。In the first aspect, embodiments of the present application provide a message processing method, which is applied to a network sending unit. The method includes: obtaining auxiliary information used to reflect the forwarding status of network messages; determining the location parameters of the auxiliary information and The length parameter of the auxiliary information, encapsulating the position parameter and the length parameter into the network message; encapsulating the auxiliary information into the network message according to the position parameter and the length parameter; forwarding The network message.
第二方面,本申请实施例提供一种报文处理方法,应用于网络接收单元,所述方法包括:接收封装有辅助信息、所述辅助信息的位置参数和所述辅助信息的长度参数的网络报文,其中,所述辅助信息用于反映所述网络报文的转发状态;解封装所述网络报文,获取所述位置参数和所述长度参数;根据所述位置参数和所述长度参数,获取所述辅助信息。In the second aspect, embodiments of the present application provide a message processing method applied to a network receiving unit. The method includes: receiving a network packet encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information. message, wherein the auxiliary information is used to reflect the forwarding status of the network message; decapsulate the network message to obtain the location parameter and the length parameter; according to the location parameter and the length parameter , to obtain the auxiliary information.
第三方面,本申请实施例提供一种报文发送装置,包括:发送模块,用于获取用于反映网络报文转发状态的辅助信息;获取所述辅助信息的位置参数和所述辅助信息的长度参数,并封装所述位置参数和所述长度参数到所述网络报文中;根据所述位置参数和所述长度参数封装所述辅助信息到所述网络报文中,并转发所述网络报文;接收模块,用于接收封装有辅助信息、所述辅助信息的位置参数和所述辅助信息的长度参数的网络报文,其中,所述辅助信息用于反映网络报文转发状态;解封装所述网络报文,获取所述位置参数和所述长度参数; 根据所述位置参数和所述长度参数,获取所述辅助信息。In a third aspect, embodiments of the present application provide a message sending device, including: a sending module configured to obtain auxiliary information used to reflect the network message forwarding status; and obtain the location parameter of the auxiliary information and the location parameter of the auxiliary information. length parameter, and encapsulate the position parameter and the length parameter into the network message; encapsulate the auxiliary information into the network message according to the position parameter and the length parameter, and forward the network message message; a receiving module, configured to receive a network message encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information, wherein the auxiliary information is used to reflect the network message forwarding status; solution Encapsulate the network message and obtain the position parameter and the length parameter; The auxiliary information is obtained according to the position parameter and the length parameter.
第四方面,本申请实施例提供一种报文接收装置,包括:接收模块,用于接收封装有辅助信息、所述辅助信息的位置参数和所述辅助信息的长度参数的网络报文,其中,所述辅助信息用于反映网络报文转发状态;解封装模块,用于解封装所述网络报文,获取所述位置参数和所述长度参数;确定模块,用于根据所述位置参数和所述长度参数,获取所述辅助信息。In a fourth aspect, embodiments of the present application provide a message receiving device, including: a receiving module configured to receive a network message encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information, wherein , the auxiliary information is used to reflect the network message forwarding status; the decapsulation module is used to decapsulate the network message and obtain the position parameter and the length parameter; the determination module is used to determine according to the position parameter and the length parameter. The length parameter is used to obtain the auxiliary information.
第五方面,本申请实施例提供一种报文处理系统,包括如上所述的报文发送装置和报文接收装置。In a fifth aspect, embodiments of the present application provide a message processing system, including a message sending device and a message receiving device as described above.
第六方面,本申请实施例提供一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,实现本申请实施例提供的报文处理方法。In a sixth aspect, embodiments of the present application provide a computer-readable storage medium that stores a computer program. When the computer program is executed by a processor, the message processing method provided by the embodiment of the present application is implemented.
附图说明Description of the drawings
图1是本申请实施例提供的一种报文处理方法的流程示意图;Figure 1 is a schematic flow chart of a message processing method provided by an embodiment of the present application;
图2是图1中步骤S2000的另一实施例的实现过程示意图;Figure 2 is a schematic diagram of the implementation process of another embodiment of step S2000 in Figure 1;
图3是图2中步骤S2300的另一实施例的实现过程示意图;Figure 3 is a schematic diagram of the implementation process of another embodiment of step S2300 in Figure 2;
图4是图3中步骤S2330的另一实施例的实现过程示意图;Figure 4 is a schematic diagram of the implementation process of another embodiment of step S2330 in Figure 3;
图5是本申请另一实施例提供的一种报文处理方法的流程示意图;Figure 5 is a schematic flowchart of a message processing method provided by another embodiment of the present application;
图6是图5中步骤S6000的另一实施例的实现过程示意图;Figure 6 is a schematic diagram of the implementation process of another embodiment of step S6000 in Figure 5;
图7是图5中步骤S7000的另一实施例的实现过程示意图;Figure 7 is a schematic diagram of the implementation process of another embodiment of step S7000 in Figure 5;
图8是本申请实施例提供的一种报文处理方法的实施过程;Figure 8 is an implementation process of a message processing method provided by an embodiment of the present application;
图9是本申请另一实施例提供的一种报文处理方法的实施过程;Figure 9 is an implementation process of a message processing method provided by another embodiment of the present application;
图10是本申请实施例提供的一种报文发送装置的结构图;Figure 10 is a structural diagram of a message sending device provided by an embodiment of the present application;
图11是本申请实施例提供的一种报文接收装置的结构图;Figure 11 is a structural diagram of a message receiving device provided by an embodiment of the present application;
图12是本申请实施例提供的一种报文处理系统的结构示意图。Figure 12 is a schematic structural diagram of a message processing system provided by an embodiment of the present application.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的实施例仅用以解释本申请,并不用于限定本申请。In order to make the purpose, technical solutions and advantages of the present application more clear, the present application will be further described in detail below with reference to the drawings and embodiments. It should be understood that the embodiments described here are only used to explain the present application and are not used to limit the present application.
应了解,在本申请实施例的描述中,如果有描述到“第一”、“第二”等只是用于区分技术特征为目的,而不能理解为指示或暗示相对重要性或者隐含指明所指示的技术特征的数量或者隐含指明所指示的技术特征的先后关系。“至少一个”是指一个或者多个,“多个”是指两个或两个以上。“和/或”,描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B,可以表示单独存在A、同时存在A和B、单独存在B的情况。其中A,B可以是单数或者复数。字符“/”一般表示前后关联对象是一种“或”的关系。“以下至少一项”及其类似表达,是指的这些项中的任意组合,包括单项或复数项的任意组合。例如,a,b和c中的至少一项可以表示:a,b,c,a和b,a和c,b和c或a和b和c,其中a,b,c可以是单个,也可以是多个。It should be understood that in the description of the embodiments of the present application, if “first”, “second”, etc. are described, they are only used for the purpose of distinguishing technical features, and cannot be understood as indicating or implying relative importance or implicitly indicating the intended purpose. The number of technical features indicated or the sequence relationship of the technical features indicated may be implicitly indicated. "At least one" means one or more, and "plurality" means two or more. "And/or" describes the relationship between associated objects, indicating that there can be three relationships. For example, A and/or B can represent the existence of A alone, the existence of A and B at the same time, or the existence of B alone. Where A and B can be singular or plural. The character "/" generally indicates that the related objects are in an "or" relationship. "At least one of the following" and similar expressions refers to any combination of these items, including any combination of single or plural items. For example, at least one of a, b and c can mean: a, b, c, a and b, a and c, b and c or a and b and c, where a, b, c can be single, also Can be multiple.
此外,下面所描述的本申请各个实施方式中所涉及到的技术特征只要彼此之间未构成冲突就可以相互组合。 In addition, the technical features involved in the various embodiments of the present application described below can be combined with each other as long as they do not conflict with each other.
本申请实施例涉及的报文处理方法,是基于MPLS转发平面的段路由协议(Segment Routing MPLS,SR MPLS)和SRv6协议对辅助信息进行接收和发送,通过封装和解封装带有辅助信息的网络报文,以便于快速地获取报文转发过程所需要的辅助信息,避免遍历部分或整个报文结构,提高辅助信息的处理效率,进而提升报文的流转速度。The message processing method involved in the embodiment of this application is to receive and send auxiliary information based on the segment routing protocol (Segment Routing MPLS, SR MPLS) and SRv6 protocol of the MPLS forwarding plane, and encapsulate and decapsulate network packets with auxiliary information. In order to quickly obtain the auxiliary information required for the message forwarding process, avoid traversing part or the entire message structure, improve the processing efficiency of auxiliary information, and thereby increase the speed of message flow.
为了保证能准确地获取辅助信息,现有的报文处理方法为:在SRv6技术架构下,遍历部分或整个报文结构,查找封装在网络报文内的辅助信息。由于这种方式所获取的辅助信息的位置并不固定,难以保证能及时地找到所需的辅助信息;此外,由于系统处理器需要适配不同的位置信息,会产生额外的时延和抖动,影响通信业务的时延和抖动数值;而且在SR MPLS技术架构下,无法对辅助信息进行精准的定位和获取,影响了网络报文传送的稳定性和可靠性。In order to ensure that the auxiliary information can be accurately obtained, the existing message processing method is: under the SRv6 technical architecture, traverse part or the entire message structure to find the auxiliary information encapsulated in the network message. Since the location of the auxiliary information obtained in this way is not fixed, it is difficult to ensure that the required auxiliary information can be found in time; in addition, because the system processor needs to adapt to different location information, additional delay and jitter will be generated. Affects the delay and jitter values of communication services; and under the SR MPLS technology architecture, it is impossible to accurately locate and obtain auxiliary information, affecting the stability and reliability of network message transmission.
基于以上,本申请实施例提供一种报文处理方法、装置、系统及计算机可读存储介质,通过获取用于反映网络报文的转发状态的辅助信息;获取辅助信息的位置参数和辅助信息的长度参数,并封装位置参数和长度参数到所述网络报文中;根据位置参数和长度参数封装辅助信息到所述网络报文中,并转发所述网络报文,以达到快速地获取报文转发过程所需要的辅助信息的目的,避免遍历部分或整个报文结构,提高辅助信息的处理效率,进而提升报文的流转速度。Based on the above, embodiments of the present application provide a message processing method, device, system and computer-readable storage medium, by obtaining auxiliary information used to reflect the forwarding status of network messages; obtaining the location parameters of the auxiliary information and the location parameters of the auxiliary information length parameter, and encapsulates the position parameter and length parameter into the network message; encapsulates auxiliary information into the network message according to the position parameter and length parameter, and forwards the network message to achieve rapid acquisition of the message The purpose of the auxiliary information required in the forwarding process is to avoid traversing part or the entire message structure, improve the processing efficiency of auxiliary information, and thereby increase the speed of message flow.
请参见图1,图1示出了本申请实施例提供的一种报文处理方法的流程。如图1所示,本申请实施例的报文处理方法包括以下步骤:Please refer to Figure 1, which shows the flow of a message processing method provided by an embodiment of the present application. As shown in Figure 1, the message processing method in this embodiment of the present application includes the following steps:
S1000,获取用于反映网络报文的转发状态的辅助信息。S1000: Obtain auxiliary information used to reflect the forwarding status of network packets.
可以理解的是,在确定性网络中,网络报文在转发过程中通过D-CW控制字和S-Label进行转发状态的控制,还需要用于反映网络报文的转发状态的辅助信息,用于控制网络报文在转发中延时、抖动等技术参数。示例性的,CQF和deadline这两类技术信息能有效地反映和控制网络报文在转发过程中所需要的周期模板、周期时隙、时延、抖动、队列长度、队列调度算法等参数。It can be understood that in a deterministic network, the forwarding status of network packets is controlled through the D-CW control word and S-Label during the forwarding process, and auxiliary information is also needed to reflect the forwarding status of network packets. Use It is used to control technical parameters such as delay and jitter of network packets during forwarding. For example, the two types of technical information, CQF and deadline, can effectively reflect and control parameters such as periodic templates, periodic time slots, delay, jitter, queue length, and queue scheduling algorithms required in the forwarding process of network messages.
可以理解的是,辅助信息由本端的网络发送单元或者上游网络单元提供,网络发送单元根据网络报文的转发状态,对辅助信息进行调整和修改,必要时执行相关操作,以对网络报文的转发状态进行实时的更新和监控。示例性的,辅助信息中记录了端口的承诺速率为10000bps,并与输出端口的带宽进行比较,比如此时输出端口的速率为8000bps,此时网络报文的带宽速率大于输出端口的速率,导致输出队列拥堵,为了保证确定性网络的时延,网络发送单元通过告警方式向网管客户进行通知。It can be understood that the auxiliary information is provided by the local network sending unit or the upstream network unit. The network sending unit adjusts and modifies the auxiliary information according to the forwarding status of the network message, and performs relevant operations when necessary to forward the network message. Status is updated and monitored in real time. For example, the auxiliary information records that the committed rate of the port is 10000bps and compares it with the bandwidth of the output port. For example, the rate of the output port is 8000bps. At this time, the bandwidth rate of the network packet is greater than the rate of the output port, resulting in The output queue is congested. In order to ensure the deterministic network delay, the network sending unit notifies the network management customer through an alarm.
S2000,确定辅助信息的位置参数和辅助信息的长度参数,封装位置参数和长度参数到网络报文中。S2000: Determine the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulate the position parameter and length parameter into the network message.
可以理解的是,位置参数和长度信息用于把辅助信息封装在网络报文中的特定位置,以便于对辅助信息进行快速、精准的定位。其中,位置参数用于表征辅助信息在网络报文中起始位置,长度信息用于表征辅助信息的长度,因此,通过位置参数和长度信息就能精确地定位出辅助信息的起始位置,并提取与长度信息一致的字节,就能获取到完整的辅助信息。It can be understood that the position parameter and length information are used to encapsulate the auxiliary information at a specific location in the network packet, so as to facilitate fast and accurate positioning of the auxiliary information. Among them, the position parameter is used to represent the starting position of the auxiliary information in the network packet, and the length information is used to represent the length of the auxiliary information. Therefore, the starting position of the auxiliary information can be accurately located through the position parameter and length information, and By extracting the bytes consistent with the length information, you can obtain the complete auxiliary information.
请参见图2,图2示出了上述步骤S2000的另一实施例的实现过程示意图。如图2所示,步骤S2000至少包括以下步骤:Please refer to Figure 2. Figure 2 shows a schematic diagram of the implementation process of another embodiment of the above step S2000. As shown in Figure 2, step S2000 at least includes the following steps:
S2100,根据网络报文的字节占用情况,确定辅助信息的位置参数。 S2100: Determine the position parameters of the auxiliary information according to the byte occupancy of the network message.
可以理解的是,在实际的网络通信场景中,网络报文中的字节占用情况各不相同,预留的用于保存辅助信息的字节的空闲情况也不一样。因此,需要根据网络报文的字节占用情况,确定辅助信息的起始位置。示例性的,在基于MPLS的应用场景中,当网络报文中的S-Label后面第10位起为空闲字节,则可以把辅助信息的起始位置设置为S-Label后面第10位,此时辅助信息的位置参数为10。It is understandable that in actual network communication scenarios, the occupancy of bytes in network packets varies, and the availability of bytes reserved for storing auxiliary information is also different. Therefore, it is necessary to determine the starting position of the auxiliary information based on the byte occupancy of the network message. For example, in MPLS-based application scenarios, when the 10th bit after the S-Label in the network packet is an idle byte, the starting position of the auxiliary information can be set to the 10th bit after the S-Label. At this time, the position parameter of the auxiliary information is 10.
S2200,计算辅助信息的长度参数。S2200: Calculate the length parameter of the auxiliary information.
可以理解的是,辅助信息能以多种不同的格式对网络报文的转发状态进行记录和统计。此外,同一个格式下的辅助信息也会因内容上的差异而导致其长度参数发生变化,因此,需要精准地计算出辅助信息的长度参数,才能准确、完整地获取辅助信息。示例性的,通过网络发送单元的获取工具能直接计算辅助信息的长度参数,并实时地把长度参数传送到网络发送单元。可以理解的是通过网络发送单元的获取工具计算辅助信息的长度参数,属于已知的一些情形,此处不再赘述。It can be understood that the auxiliary information can record and collect statistics on the forwarding status of network packets in a variety of different formats. In addition, the length parameter of auxiliary information in the same format will also change due to differences in content. Therefore, it is necessary to accurately calculate the length parameter of the auxiliary information in order to obtain the auxiliary information accurately and completely. For example, the acquisition tool of the network sending unit can directly calculate the length parameter of the auxiliary information, and transmit the length parameter to the network sending unit in real time. It can be understood that calculating the length parameter of the auxiliary information through the acquisition tool of the network sending unit is a known situation and will not be described again here.
S2300,根据网络报文的转发模式,封装位置参数和长度参数到网络报文中。S2300: Encapsulate the position parameter and length parameter into the network message according to the forwarding mode of the network message.
可以理解的是,目前确定性网络主要的应用场景基于SR MPLS和SRv6两种协议,而在不同的协议下,网络报文的结构存在明显的区别。因此针对网络报文不同的转发模式,需要对其进行分类处理,以保证位置参数和长度参数能准确、完整地封装在不同格式的网络报文内。It is understandable that the current main application scenarios of deterministic networks are based on SR MPLS and SRv6 protocols, and under different protocols, there are obvious differences in the structure of network packets. Therefore, according to different forwarding modes of network packets, they need to be classified and processed to ensure that the position parameters and length parameters can be accurately and completely encapsulated in network packets of different formats.
可以理解的是,辅助信息的位置参数和长度参数通过网络报文中已有的字段来表征,能高效地复用已有的字段,不需要修改现有协议,减少对于网络发送单元的硬件改动,也无需适配新的硬件,保证了报文处理方法的适用性。It can be understood that the position parameters and length parameters of the auxiliary information are represented by the existing fields in the network message, which can efficiently reuse the existing fields without modifying the existing protocol and reduce the hardware changes to the network sending unit. , and there is no need to adapt new hardware, ensuring the applicability of the message processing method.
请参见图3,图3示出了上述步骤S2300的另一实施例的实现过程示意图。如图3所示,步骤S2300至少包括以下步骤:Please refer to Figure 3, which shows a schematic diagram of the implementation process of another embodiment of the above step S2300. As shown in Figure 3, step S2300 includes at least the following steps:
S2310,获取网络报文的转发模式。S2310: Obtain the forwarding mode of network packets.
可以理解的是,网络报文在不同的转发模式下存在不同格式和名称的字段,在不同的应用场景中,这些字段的长度和作用均存在差异。因此,需要准确地确认网络报文的转发模式,才能准确、完整地把辅助信息封装到网络报文中指定的位置。示例性的,通过网络发送单元的获取工具能直接获取网络报文的转发模式,并实时地把网络报文的转发模式传送到网络发送单元。可以理解的是,通过网络发送单元的获取工具来获取网络报文的转发模式,属于已知的一些情形,此处不再赘述。It is understandable that network packets have fields with different formats and names in different forwarding modes. In different application scenarios, the lengths and functions of these fields vary. Therefore, it is necessary to accurately confirm the forwarding mode of network packets in order to accurately and completely encapsulate the auxiliary information into the specified location in the network packet. For example, the acquisition tool of the network sending unit can directly obtain the forwarding mode of the network message, and transmit the forwarding mode of the network message to the network sending unit in real time. It can be understood that obtaining the forwarding mode of network messages through the acquisition tool of the network sending unit is a known situation and will not be described again here.
S2320,在网络报文的转发模式基于多协议标签交换协议的情况下,封装位置参数和长度参数到网络报文中识别服务标签的非标签字段。S2320: When the forwarding mode of the network message is based on the multi-protocol label switching protocol, encapsulate the position parameter and the length parameter into the non-label field identifying the service label in the network message.
可以理解的是,在网络报文的转发模式基于MPLS的情况下,网络报文中的非标签字段用于携带位置参数和长度参数。示例性的,把位置参数和长度参数写进S-Label结构体中的EXP、S、TTL字段中,以便于位置参数和长度参数能进行快速的封装和查找,有效避免位置参数和长度参数发生丢失的情况,保证辅助信息能进行按统一的路线进行封装。It can be understood that when the forwarding mode of network packets is based on MPLS, the non-label field in the network packet is used to carry location parameters and length parameters. For example, the positional parameters and length parameters are written into the EXP, S, and TTL fields in the S-Label structure so that the positional parameters and length parameters can be quickly encapsulated and searched, effectively avoiding the occurrence of positional parameters and length parameters. In the event of loss, it is ensured that the auxiliary information can be encapsulated according to a unified route.
S2330,在网络报文的转发模式基于第六版分段路由协议的情况下,封装位置参数和长度参数到网络报文的分段路由头部。S2330: When the forwarding mode of the network message is based on the sixth version of the segment routing protocol, encapsulate the location parameter and the length parameter into the segment routing header of the network message.
可以理解的是,在网络报文的转发模式基于SRv6的情况下,网络报文中的分段路由头部(SRH)用于携带位置参数和长度参数。示例性的,把位置参数和长度参数写进SRH中的TAG字段,以便于位置参数和长度参数能进行快速的封装和查找,有效避免位置参数和长度参数 发生丢失的情况,保证辅助信息能进行按统一的路线进行封装。It can be understood that when the forwarding mode of network packets is based on SRv6, the segment routing header (SRH) in the network packet is used to carry location parameters and length parameters. For example, the position parameters and length parameters are written into the TAG field in the SRH so that the position parameters and length parameters can be quickly encapsulated and searched, effectively avoiding the position parameters and length parameters. In the event of loss, ensure that the auxiliary information can be encapsulated according to a unified route.
请参见图4,图4示出了上述步骤S2330的另一实施例的实现过程示意图。如图4所示,步骤S2330至少包括以下步骤:Please refer to FIG. 4 , which shows a schematic diagram of the implementation process of another embodiment of the above step S2330. As shown in Figure 4, step S2330 includes at least the following steps:
S2331,修改分段路由头部的预留字段的非首位设置为预定值,预定值用于表征网络报文中封装有位置参数和长度参数。S2331. Modify the non-first bit of the reserved field in the segment routing header and set it to a predetermined value. The predetermined value is used to indicate that the network message is encapsulated with location parameters and length parameters.
可以理解的是,为了能快速判断SRH中是否存在位置参数和长度参数,在封装位置参数和长度参数前,修改分段路由头部的预留字段的非首位设置为预定值,以表征网络报文中封装有位置参数和长度参数,避免在SRH不存在位置参数和长度参数的情况下对网络报文进行查找操作,提高网络报文的处理效率。由于SRH的预留字段的首位为占用字段,因此SRH的预留字段的非首位能用于表征SRH中是否封装有位置参数和长度参数。示例性的,将SRH中的FLAG字段第二位修改为数值1,以表示分段路由头部封装有位置参数和长度参数。It can be understood that in order to quickly determine whether the location parameters and length parameters exist in the SRH, before encapsulating the location parameters and length parameters, the non-first bit of the reserved field in the segment routing header is modified and set to a predetermined value to represent the network packet. The position parameters and length parameters are encapsulated in the article to avoid searching for network messages when the SRH does not have position parameters and length parameters, and to improve the processing efficiency of network messages. Since the first bit of the reserved field of SRH is an occupied field, the non-first bit of the reserved field of SRH can be used to indicate whether position parameters and length parameters are encapsulated in SRH. For example, the second bit of the FLAG field in the SRH is modified to a value of 1 to indicate that the segment routing header is encapsulated with location parameters and length parameters.
S2332,封装位置参数和长度参数到分段路由头部的标签字段。S2332: Encapsulate the location parameter and length parameter into the label field of the segment routing header.
可以理解的是,使用SRH中的TAG字段携带位置参数和长度参数,能有效保证位置参数和长度参数的稳定性和定位精准性,以免发生数据丢失的情况。示例性的,把位置参数和长度参数写入TAG中低12位,以便于位置参数和长度参数精准地封装到网络报文中指定的位置。It can be understood that using the TAG field in SRH to carry position parameters and length parameters can effectively ensure the stability and positioning accuracy of the position parameters and length parameters to avoid data loss. For example, the position parameter and length parameter are written into the lower 12 bits of the TAG so that the position parameter and length parameter can be accurately encapsulated into the specified position in the network packet.
S3000,根据位置参数和长度参数封装辅助信息到网络报文中。S3000: Encapsulate the auxiliary information into the network packet according to the position parameter and length parameter.
可以理解的是,在确定并封装了辅助信息的位置参数和长度参数后,即确定了辅助信息在网络报文中的存放位置,因此,根据位置参数和长度参数能精准、快速地把辅助信息封装到网络报文中。示例性的,在网络报文的转发模式基于MPLS的情况下,网络发送单元在网络报文中S-Label之后的位置参数所表征的字段处插入长度与长度参数一致的辅助信息;在网络报文的转发模式基于SRv6的情况下,网络发送单元在网络报文中SRH的TAG字段之后的位置参数所表征的字段处插入长度与长度参数一致的辅助信息。当然,在其他实施例中,辅助信息的位置可以进行另外的指定,此处不作限定。It can be understood that after the position parameters and length parameters of the auxiliary information are determined and encapsulated, the storage location of the auxiliary information in the network message is determined. Therefore, the auxiliary information can be accurately and quickly stored according to the position parameters and length parameters. Encapsulated into network packets. For example, when the forwarding mode of network packets is based on MPLS, the network sending unit inserts auxiliary information with the same length as the length parameter in the field represented by the position parameter after S-Label in the network packet; in the network packet When the message forwarding mode is based on SRv6, the network sending unit inserts auxiliary information with the same length as the length parameter in the field represented by the position parameter after the TAG field of the SRH in the network message. Of course, in other embodiments, the location of the auxiliary information can be otherwise specified, which is not limited here.
可以理解的是,把辅助信息以类型长度值(Tag Length Value,TLV)的格式封装在网络报文中。其中,TLV协议是BER(Basic Encoding Rules)编码的一种,该协议简单高效,能适用于各种通信场景,且具有良好的可扩展性。其中,TLV协议的基本格式如下:Type占2个字节,是报文的唯一标识;Length占4个字节,表示Value字段的长度;Value字段的数据是需要传输的数据,长度由Length字段表示。It is understandable that the auxiliary information is encapsulated in the network message in the format of a type length value (Tag Length Value, TLV). Among them, the TLV protocol is a type of BER (Basic Encoding Rules) encoding. This protocol is simple and efficient, can be applied to various communication scenarios, and has good scalability. Among them, the basic format of the TLV protocol is as follows: Type occupies 2 bytes, which is the unique identifier of the message; Length occupies 4 bytes, indicating the length of the Value field; the data in the Value field is the data that needs to be transmitted, and the length is determined by the Length field express.
可以理解的是,在TLV结构中,Value字段的内容由多个定长的字段表示,示例性的,第一个字段占两个字节,第二个字段占四个字节,都是固定长度,在报文转发过程中不会改变。因此,TLV结构的Length字段也是固定的,不同的结构通过Type进行区分,且字段个数的多少没有限制,具有很强的扩展性。上述TLV格式的辅助信息能新增多个Type字段,用于标识不同的转发信息类型,因此该TLV格式的辅助信息是可扩展的,适用于不同的网络环境中。It can be understood that in the TLV structure, the content of the Value field is represented by multiple fixed-length fields. For example, the first field occupies two bytes, and the second field occupies four bytes, both of which are fixed. The length will not change during packet forwarding. Therefore, the Length field of the TLV structure is also fixed. Different structures are distinguished by Type, and there is no limit to the number of fields, which is highly scalable. The auxiliary information in the above TLV format can add multiple Type fields to identify different forwarding information types. Therefore, the auxiliary information in the TLV format is extensible and suitable for different network environments.
示例性的,在本申请实施例中,TLV格式的辅助信息设置如表1所示。

For example, in this embodiment of the present application, the auxiliary information settings in the TLV format are as shown in Table 1.

表1Table 1
可以理解的是,如表1所示,各个类型辅助信息的描述如下:Type=1,Length=1(字节),代表cycle,即周期模板,即服务质量(Quality of Service,qos)队列调度时一次调度所使用的时间,单位是us;Type=2,Length=1(字节),代表cycle_slot,即周期时隙,即网络单元接收到报文时所落在周期中的某一个时隙值,比如时隙一般可以分为8个时隙,那么cycle_slot的取值是0~7;Type=3,Length=4(字节),代表cir值,即承诺速率,单位Kbps,用于下游设备收到报文后进行带宽的校验,看是否目前接口上的带宽满足要求,如果不满足,则通过告警上报网管控制器,最终由用户根据策略来决定如何处理;Type=4,Length=4(字节),代表pir值,即最大突发速率,单位Kbps,用于网络接收单元收到报文后进行带宽的校验,看是否目前接口上的带宽满足要求,如果不满足,则通过告警上报网管控制器,最终由用户根据策略来决定如何处理;Type=5,Length=4(字节),代表left_delay,即剩余时延,用于表征经过本节点的处理,端到端时延还剩余多少;Type=6,Length=1(字节),代表queue_algo,即队列调度算法,Value=0代表默认调度算法,Value=1代表循环队列调度算法(CQF),Value=2代表到期时间调度算法(Deadline);Type=7,Length=4(字节),代表S-Label,即确定性服务层标签,可以理解为流标识,用于唯一标识一条确定性流;Type=8,Length=4(字节),代表D-CW,即确定性控制字,用于确定性流的复制与消除。It can be understood that, as shown in Table 1, the description of each type of auxiliary information is as follows: Type = 1, Length = 1 (byte), which represents cycle, that is, cycle template, that is, Quality of Service (Qos) queue scheduling The time used for one scheduling, the unit is us; Type=2, Length=1 (byte), represents cycle_slot, which is the periodic time slot, that is, a certain time slot in the cycle when the network unit receives the message Value, for example, time slots can generally be divided into 8 time slots, then the value of cycle_slot is 0~7; Type=3, Length=4 (bytes), which represents the cir value, that is, the committed rate, in Kbps, used for downstream After receiving the message, the device checks the bandwidth to see if the bandwidth on the current interface meets the requirements. If not, it reports the alarm to the network management controller, and the user ultimately decides how to handle it based on the policy; Type=4, Length= 4 (bytes), represents the pir value, that is, the maximum burst rate, in Kbps, which is used by the network receiving unit to verify the bandwidth after receiving the message to see if the bandwidth on the current interface meets the requirements. If not, then The alarm is reported to the network management controller, and the user ultimately decides how to handle it according to the policy; Type=5, Length=4 (bytes), represents left_delay, which is the remaining delay, used to represent the end-to-end time after processing by this node. How much is left in the delay; Type=6, Length=1 (byte), represents queue_algo, which is the queue scheduling algorithm, Value=0 represents the default scheduling algorithm, Value=1 represents the circular queue scheduling algorithm (CQF), Value=2 represents the arrival Period time scheduling algorithm (Deadline); Type=7, Length=4 (bytes), represents S-Label, which is a deterministic service layer label, which can be understood as a flow identifier, used to uniquely identify a deterministic flow; Type=8 , Length=4 (bytes), represents D-CW, that is, deterministic control word, used for copying and eliminating deterministic streams.
S4000,转发网络报文。S4000, forward network packets.
可以理解的是,网络报文完成上述步骤的封装后,网络报文中包括有用于反映网络报文的转发状态的辅助信息,以及辅助信息的位置参数和辅助信息的长度参数。转发网络报文的过程中,就能同时转发辅助信息、位置参数和长度参数,以保证对端设备能完整地接收网络报文,并能根据位置参数和长度参数,快速、精准地获取辅助信息,有效提高网络报文的处理效率。It can be understood that after the network packet is encapsulated in the above steps, the network packet includes auxiliary information used to reflect the forwarding status of the network packet, as well as the position parameter of the auxiliary information and the length parameter of the auxiliary information. During the process of forwarding network messages, auxiliary information, location parameters, and length parameters can be forwarded at the same time to ensure that the peer device can completely receive network messages and obtain auxiliary information quickly and accurately based on the location parameters and length parameters. , effectively improving the processing efficiency of network messages.
请参见图5,图5示出了本申请另一实施例提供的一种报文处理方法的流程。如图5所示,本申请实施例的报文处理方法包括以下步骤:Please refer to Figure 5. Figure 5 shows the flow of a message processing method provided by another embodiment of the present application. As shown in Figure 5, the message processing method in this embodiment of the present application includes the following steps:
S5000,接收封装有辅助信息、辅助信息的位置参数和辅助信息的长度参数的网络报文,其中,辅助信息用于反映网络报文的转发状态。S5000: Receive a network message encapsulated with auxiliary information, a position parameter of the auxiliary information, and a length parameter of the auxiliary information, where the auxiliary information is used to reflect the forwarding status of the network message.
可以理解的是,在确定性网络中,网络报文的传送需要根据确定性路径进行分配。其中,确定性路径通过集中式控制器或者分布式节点进行计算。然后,网络报文的转发和接收过程需要辅助信息进行进一步的描述和控制。因此,网络接收单元接收到封装有辅助信息、辅助信息的位置参数和辅助信息的长度参数的网络报文后,需要对其进行快速处理,以满足确定性网络中网络报文的传送需求。其中,在不同的应用场景中,确定性路径的分配和规划属于 已知的一些情形,此处不再赘述。It can be understood that in a deterministic network, the transmission of network packets needs to be allocated according to deterministic paths. Among them, deterministic paths are calculated through centralized controllers or distributed nodes. Then, the forwarding and receiving process of network messages requires auxiliary information for further description and control. Therefore, after the network receiving unit receives the network message encapsulated with the auxiliary information, the position parameter of the auxiliary information, and the length parameter of the auxiliary information, it needs to process it quickly to meet the transmission requirements of network messages in the deterministic network. Among them, in different application scenarios, deterministic path allocation and planning belong to Some known situations will not be repeated here.
S6000,解封装网络报文,获取位置参数和长度参数。S6000, decapsulate the network message and obtain the location parameter and length parameter.
可以理解的是,由上述步骤S2300可知,根据网络报文的转发模式,辅助信息的位置参数和辅助信息的长度参数被封装到网络报文中。位置参数用于表征辅助信息在网络报文中起始位置,长度信息用于表征辅助信息的长度。因此,为了能快速获取辅助信息,需要解封装网络报文,获取位置参数和长度参数。It can be understood that, from the above step S2300, according to the forwarding mode of the network message, the position parameter of the auxiliary information and the length parameter of the auxiliary information are encapsulated into the network message. The position parameter is used to represent the starting position of the auxiliary information in the network packet, and the length information is used to represent the length of the auxiliary information. Therefore, in order to quickly obtain auxiliary information, it is necessary to decapsulate the network message and obtain the position parameter and length parameter.
请参见图6,图6示出了上述步骤S6000的另一实施例的实现过程示意图。如图6所示,步骤S6000至少包括以下步骤:Please refer to FIG. 6 , which shows a schematic diagram of the implementation process of another embodiment of the above step S6000. As shown in Figure 6, step S6000 includes at least the following steps:
S6100,获取网络报文的转发模式。S6100: Obtain the forwarding mode of network packets.
可以理解的是,与上述步骤S2310一致,为了获取网络报文中的位置参数和长度参数,需要根据网络报文的转发模式进行解封装操作。同样的,通过网络接收单元的获取工具来获取网络报文的转发模式,属于已知的一些情形,此处不再赘述。It can be understood that, consistent with the above step S2310, in order to obtain the position parameter and length parameter in the network message, a decapsulation operation needs to be performed according to the forwarding mode of the network message. Similarly, obtaining the forwarding mode of network messages through the acquisition tool of the network receiving unit is a known situation and will not be described again here.
S6200,在网络报文的转发模式基于多协议标签交换协议的情况下,根据网络报文的识别服务标签,得到长度参数。S6200: When the forwarding mode of the network message is based on the multi-protocol label switching protocol, the length parameter is obtained according to the identification service label of the network message.
可以理解的是,由上述步骤S2320可知,在网络报文的转发模式基于MPLS的情况下,网络报文中的非标签字段用于携带位置参数和长度参数。因此,通过读取网络报文的识别服务标签中的非标签字段,就能获取长度参数。示例性的,长度参数被写进S-Label结构体中的EXP、S、TTL字段中,只需要读取这些字段,就能快速获取长度参数。It can be understood that, from the above step S2320, when the forwarding mode of the network packet is based on MPLS, the non-label field in the network packet is used to carry the location parameter and the length parameter. Therefore, by reading the non-tag field in the identification service tag of the network message, the length parameter can be obtained. For example, the length parameter is written into the EXP, S, and TTL fields in the S-Label structure. You only need to read these fields to quickly obtain the length parameter.
S6300,在长度参数不为零的情况下,获取位置参数。S6300, when the length parameter is not zero, obtain the position parameter.
可以理解的是,在获取长度参数后,通过对长度参数的判断,能有效判断网络报文中是否存在辅助信息。因此,在长度参数为零的情况下,可以快速判断出网络报文中并不存在辅助信息,此时按照网络报文中的其他信息继续进行转发。相反,在长度参数不为零的情况下,通过读取网络报文的识别服务标签中的非标签字段,获取位置参数。这样有效避免了在不存在辅助信息的情况下,对网络报文进行遍历操作以查找位置参数和辅助信息,进一步提高网络报文的处理速度。It can be understood that after obtaining the length parameter, by judging the length parameter, it can be effectively judged whether there is auxiliary information in the network message. Therefore, when the length parameter is zero, it can be quickly determined that there is no auxiliary information in the network message, and the forwarding is continued according to other information in the network message. On the contrary, when the length parameter is not zero, the position parameter is obtained by reading the non-label field in the identification service label of the network message. This effectively avoids traversing network packets to find location parameters and auxiliary information when there is no auxiliary information, further improving the processing speed of network packets.
S6400,在网络报文的转发模式基于第六版分段路由协议的情况下,获取网络报文的分段路由头部的预留字段。S6400: When the forwarding mode of the network packet is based on the sixth version of the segment routing protocol, obtain the reserved field of the segment routing header of the network packet.
可以理解的是,由上述步骤S2321可知,在网络报文的转发模式基于RSv6的情况下,为了能快速判断SRH中是否存在位置参数和长度参数,在封装位置参数和长度参数前,修改SRH的预留字段的非首位设置为预定值,以表征网络报文中封装有位置参数和长度参数。因此,通过获取SRH的标签字段,能提起判断出SRH中的是否存在位置参数和长度参数。示例性的,SRH的预留字段为FALG字段。It can be understood that from the above step S2321, when the forwarding mode of network packets is based on RSv6, in order to quickly determine whether there are position parameters and length parameters in the SRH, before encapsulating the position parameters and length parameters, modify the SRH The non-first bit of the reserved field is set to a predetermined value to indicate that the network message is encapsulated with position parameters and length parameters. Therefore, by obtaining the tag field of the SRH, it can be determined whether there are position parameters and length parameters in the SRH. For example, the reserved field of SRH is the FALG field.
S6500,在预留字段的非首位与预定值一致的情况下,获取分段路由头部的标签字段。S6500: When the non-first bit of the reserved field is consistent with the predetermined value, obtain the label field of the segment routing header.
可以理解的是,在预留字段的非首位与预定值一致的情况下,获取SRH的标签字段,有效避免在SRH不存在位置参数和长度参数的情况下对网络报文进行查找操作,提高网络报文的处理效率。示例性的,预定值为1,在SRH中的FLAG字段第二位为数值1的情况下,表示SRH内封装有位置参数和长度参数。此时,可以通过读取SRH中的TAG字段获取位置参数和长度参数。It can be understood that when the non-first bit of the reserved field is consistent with the predetermined value, obtaining the label field of the SRH effectively avoids searching for network packets when the SRH does not have position parameters and length parameters, and improves network efficiency. Message processing efficiency. For example, the predetermined value is 1. When the second bit of the FLAG field in the SRH is a value of 1, it indicates that the position parameter and the length parameter are encapsulated in the SRH. At this time, the position parameter and length parameter can be obtained by reading the TAG field in the SRH.
S6600,根据标签字段,获取位置参数和长度参数。 S6600, obtain the position parameter and length parameter according to the label field.
可以理解的是,由上述步骤S2322可知,使用SRH中的TAG字段携带位置参数和长度参数。因此,在确定SRH内封装有位置参数和长度参数的情况下,通过读取网络报文的SRH中的TAG字段,就能快速地获取位置参数和长度参数。示例性的,位置参数和长度参数被写进TAG字段的低12位,其中高6位代表位置参数,低6位代表长度参数。It can be understood that, from the above step S2322, the TAG field in the SRH is used to carry the position parameter and the length parameter. Therefore, when it is determined that the position parameter and the length parameter are encapsulated in the SRH, the position parameter and the length parameter can be quickly obtained by reading the TAG field in the SRH of the network message. For example, the positional parameter and the length parameter are written into the lower 12 bits of the TAG field, where the upper 6 bits represent the positional parameter and the lower 6 bits represent the length parameter.
S7000,根据位置参数和长度参数,获取辅助信息。S7000, obtain auxiliary information based on the position parameter and length parameter.
可以理解的是,由上述步骤S3000可知,位置参数用于表征辅助信息在网络报文中起始位置,长度信息用于表征辅助信息的长度。因此,在获取位置参数和长度参数,就能在网络报文中对应的位置提取出完整的辅助信息。It can be understood that, from the above step S3000, the position parameter is used to represent the starting position of the auxiliary information in the network packet, and the length information is used to represent the length of the auxiliary information. Therefore, after obtaining the position parameter and length parameter, complete auxiliary information can be extracted at the corresponding position in the network message.
请参见图7,图7示出了上述步骤S7000的另一实施例的实现过程示意图。如图7所示,步骤S7000至少包括以下步骤:Please refer to Figure 7, which shows a schematic diagram of the implementation process of another embodiment of the above step S7000. As shown in Figure 7, step S7000 includes at least the following steps:
S7100,根据位置参数,获取辅助信息的起始位置。S7100: Obtain the starting position of the auxiliary information according to the position parameter.
可以理解的是,位置参数用于表征辅助信息在网络报文中起始位置,而在不同的转发模式下,由于网络报文的格式和字段名称存在差异,因此,位置参数所表征的辅助信息在网络报文中起始位置也存在区别。示例性的,在网络报文的转发模式基于MPLS的情况下,辅助信息位于网络报文中S-Label之后的位置参数所表征的字段。另外,在网络报文的转发模式基于RSv6的情况下,辅助信息位于网络报文中SRH的TAG字段之后的位置参数所表征的字段处。当然,在其他实施例中,辅助信息的起始位置可以进行另外的指定,此处不作限定。It can be understood that the position parameter is used to represent the starting position of the auxiliary information in the network message. In different forwarding modes, due to differences in the format and field names of the network message, the auxiliary information represented by the position parameter There are also differences in the starting position in network packets. For example, when the forwarding mode of network packets is based on MPLS, the auxiliary information is located in the field represented by the position parameter after the S-Label in the network packet. In addition, when the forwarding mode of the network message is based on RSv6, the auxiliary information is located in the field represented by the position parameter after the TAG field of the SRH in the network message. Of course, in other embodiments, the starting position of the auxiliary information can be otherwise specified, which is not limited here.
S7200,根据长度参数和辅助信息的起始位置,获取辅助信息。S7200: Obtain the auxiliary information according to the length parameter and the starting position of the auxiliary information.
可以理解的是,在确定了辅助信息的起始位置后,就能根据长度参数,提取出完整的辅助信息。示例性的,在网络报文的转发模式基于MPLS的情况下,网络接收单元在网络报文中S-Label之后的位置参数所表征的字段处提取出长度与长度参数一致的辅助信息。另外,在网络报文的转发模式基于RSv6的情况下,网络接收单元在网络报文中SRH的TAG字段之后的位置参数所表征的字段处提取出长度与长度参数一致的辅助信息。当然,在其他实施例中,辅助信息的位置可以进行另外的指定,此处不作限定。It can be understood that after the starting position of the auxiliary information is determined, the complete auxiliary information can be extracted according to the length parameter. For example, when the forwarding mode of network packets is based on MPLS, the network receiving unit extracts auxiliary information whose length is consistent with the length parameter in the field represented by the position parameter after the S-Label in the network packet. In addition, when the forwarding mode of the network message is based on RSv6, the network receiving unit extracts auxiliary information whose length is consistent with the length parameter in the field represented by the position parameter after the TAG field of the SRH in the network message. Of course, in other embodiments, the location of the auxiliary information can be otherwise specified, which is not limited here.
请参见图8,图8示出了本申请实施例提供的一种报文处理方法的实施过程。如图8所示,网络报文的转发模式基于MPLS,网络报文封装了本申请中用于表征承诺速度的辅助信息,指导网络报文在确定性网络中的转发。示例性的,网络报文的源节点是R1,目的节点是R3,中间经过节点R2。Please refer to FIG. 8 , which shows an implementation process of a message processing method provided by an embodiment of the present application. As shown in Figure 8, the forwarding mode of network packets is based on MPLS. The network packets encapsulate the auxiliary information used in this application to represent the promised speed to guide the forwarding of network packets in the deterministic network. For example, the source node of the network packet is R1, the destination node is R3, and the network packet passes through the node R2.
首先,确定性路径通过集中式控制器或者分布式节点R1计算好,以(R1,R2,R3)为路径,R1的出标签为21,R2的出标签为22;即F-Labels=(21,22);S-Label由控制器或者R1节点分配好,比如为100,d-CW控制字为999。First, the deterministic path is calculated through the centralized controller or distributed node R1, taking (R1, R2, R3) as the path, the outgoing label of R1 is 21, and the outgoing label of R2 is 22; that is, F-Labels=(21 ,22); S-Label is allocated by the controller or R1 node, for example, it is 100, and the d-CW control word is 999.
在确定性路径分配好了之后,完成确定性转发还需要辅助信息,比如本节点出端口的cir速率。在R1节点上根据转发需求把辅助信息封装到网络报文中,根据标签指示进行转发动作。After the deterministic paths are allocated, auxiliary information is required to complete deterministic forwarding, such as the cir rate of the outgoing port of this node. On the R1 node, the auxiliary information is encapsulated into the network packet according to the forwarding requirements, and the forwarding action is performed according to the label instructions.
R2节点收到R1节点发送过来的网络报文,首先解析S-Label 100,识别出是确定性报文,然后根据S-Label中的位置信息=4,长度信息=4,得到TLV格式的辅助信息,识别出其中Type=3,cir=10000Kbps;根据剩余的F-Label中的标签栈(21,22),弹出21标签,得到22标签,查询本地标签表,得到出向信息,比如出端口等。The R2 node receives the network message sent by the R1 node. It first parses the S-Label 100 and identifies it as a deterministic message. Then it obtains the assistance of the TLV format based on the location information = 4 and length information = 4 in the S-Label. Information, identify Type=3, cir=10000Kbps; according to the label stack (21,22) in the remaining F-Label, pop up the 21 label, get the 22 label, query the local label table, and get the outbound information, such as the outbound port, etc. .
根据辅助信息中的cir=10000bps,和输出端口的确定性带宽进行比较,比如此时输出端口的cir值只有8000bps,那么由于上游确定性报文的带宽速率大于出向端口的速率,导致 出向队列拥堵,如果持续拥堵,会加大确定性时延,使得确定性时延得不到保障,因此R2节点需要通过告警方式向网管客户进行通知,客户根据告警信息进行处理,可以把确定性路径进行降级处理、带宽自动调整、上游头节点进行限速等操作。According to cir=10000bps in the auxiliary information, compare it with the deterministic bandwidth of the output port. For example, the cir value of the output port is only 8000bps at this time. Then, because the bandwidth rate of the upstream deterministic packet is greater than the rate of the outgoing port, resulting in The outbound queue is congested. If the congestion continues, the deterministic delay will be increased and the deterministic delay cannot be guaranteed. Therefore, the R2 node needs to notify the network management customer through an alarm. The customer can process the deterministic delay based on the alarm information. The path is degraded, the bandwidth is automatically adjusted, and the upstream head node performs speed limiting and other operations.
可以理解的是,如果R2出向端口cir值满足上游的cir值,则进行下一步处理;重新封装S-Label,携带R2节点上的辅助信息;剥离F-Label中的21标签后,根据22标签的出向信息进行转发,此时,S-Label中的位置信息=3。It can be understood that if the cir value of the R2 outgoing port meets the cir value of the upstream, the next step will be processed; the S-Label will be re-encapsulated to carry the auxiliary information on the R2 node; after stripping off the 21 label in the F-Label, it will be processed according to the 22 label The outbound information is forwarded. At this time, the location information in the S-Label = 3.
当网络报文到达R3,剥离S-Label100,F-Label的22标签和辅助信息之后,按照网络报文中的其他信息继续转发。When the network packet reaches R3, after stripping off the S-Label100, F-Label 22 labels and auxiliary information, it continues forwarding according to other information in the network packet.
请参见图9,图9示出了本申请另一实施例提供的一种报文处理方法的实施过程。如图9所示,网络报文的转发模式基于SRv6,网络报文封装了本申请中用于表征时延的辅助信息,指导网络报文在确定性网络中的转发。示例性的,网络报文的源节点是R1,目的节点是4,中间经过节点R2和R3。Please refer to FIG. 9 , which shows an implementation process of a message processing method provided by another embodiment of the present application. As shown in Figure 9, the forwarding mode of network packets is based on SRv6. The network packets encapsulate the auxiliary information used to characterize the delay in this application to guide the forwarding of network packets in a deterministic network. For example, the source node of the network packet is R1, the destination node is 4, and the network packet passes through nodes R2 and R3.
确定性路径通过集中式控制器或者分布式节点R1计算,以(R1,R2,R3,R4)为路径,R2到R3的邻接地址指向(END.x SID)为2::3,R3到R4的END.x SID为3::4,R4的END.DT4 SID为4::4,即F-labels=(4::4,3::4,2::3)。The deterministic path is calculated through the centralized controller or distributed node R1, with (R1, R2, R3, R4) as the path, the adjacent address from R2 to R3 points to (END.x SID) as 2::3, and R3 to R4 The SID of END.x is 3::4, and the SID of R4's END.DT4 is 4::4, that is, F-labels=(4::4, 3::4, 2::3).
在确定性路径分配好了之后,完成确定性转发还需要辅助信息,比如剩余时延,假设经过R1节点处理完之后,还有20us剩余,则在网络报文中封装如下的辅助信息Type=5,Length=4,Value=20(us)。After the deterministic path is allocated, auxiliary information is required to complete deterministic forwarding, such as the remaining delay. Assuming that after processing by the R1 node, there is still 20us remaining, the following auxiliary information Type=5 is encapsulated in the network message. , Length=4, Value=20(us).
R1节点上处理装置根据以上信息封装报文,设置SRH中的FLAG字段第二位为1,表征其TAG字段封装有位置信息和长度信息,需要关注;设置TAG的低12位,其中高6位代表位置信息,低6位代表长度信息,根据SID标签指示进行转发至节点R2。The processing device on the R1 node encapsulates the message based on the above information, and sets the second bit of the FLAG field in the SRH to 1, indicating that its TAG field encapsulates location information and length information, which requires attention; set the lower 12 bits of the TAG, of which the upper 6 bits Represents location information, and the lower 6 bits represent length information, which is forwarded to node R2 according to the SID tag instructions.
R2节点处理装置收到R1节点发送过来的网络报文,首先读取SRH中的FLAG第二位为1,代表TAG字段中有位置信息和长度信息,因此从TAG中的低12位上解析出位置信息和长度信息,根据位置信息得到TLV格式的辅助信息,识别出其中Type=5,Value是left_delay=20(us)。The R2 node processing device receives the network message sent by the R1 node. It first reads the second bit of FLAG in the SRH as 1, which means that there is position information and length information in the TAG field, so it parses out the lower 12 bits of the TAG. Position information and length information, according to the position information, the auxiliary information in TLV format is obtained, and it is identified that Type=5 and Value is left_delay=20 (us).
根据辅助信息中的left_delay=20(us),R2节点需要根据自身的处理时延来进行调整,如果此时R2的处理时延已经超过20us,则需要上报告警给网管用户进行调整处理,如果根据自身的判断后续节点处理也接近20us,示例性的,R2处理需要19us,只剩余1us,则可以提前上报告警给网管用户进行调整处理。在一些实施例中,可以通过阈值配置判断是否进行上报告警。R2处理装置继续封装辅助信息,根据R2的处理时延,示例性的,如图9所示,封装Type=5,Length=4,Value=15(us)的辅助信息。R3的对网络报文的处理同R2,封装Type=5,Length=4,Value=8(us)的辅助信息。According to left_delay=20(us) in the auxiliary information, the R2 node needs to adjust according to its own processing delay. If the processing delay of R2 has exceeded 20us at this time, an alarm needs to be reported to the network management user for adjustment. If According to your own judgment, the subsequent node processing is also close to 20us. For example, R2 processing requires 19us, and only 1us is left. Then the alarm can be reported to the network management user in advance for adjustment and processing. In some embodiments, whether to report an alarm can be determined through threshold configuration. The R2 processing device continues to encapsulate the auxiliary information. According to the processing delay of R2, for example, as shown in Figure 9, the auxiliary information of Type=5, Length=4, and Value=15 (us) is encapsulated. R3 processes network packets the same as R2, encapsulating the auxiliary information of Type=5, Length=4, Value=8 (us).
最后,网络报文到达R4,剥离SRH和辅助信息之后,按照报文中的其他信息继续转发。Finally, the network packet reaches R4. After stripping off the SRH and auxiliary information, it continues to forward according to other information in the packet.
参见图10,图10是本申请实施例提供的报文发送装置810的结构示意图,本申请实施例提供的报文处理方法的整个流程中涉及报文发送装置810中的以下模块:获取模块811、封装模块812和转发模块813。Referring to Figure 10, Figure 10 is a schematic structural diagram of the message sending device 810 provided by the embodiment of the present application. The entire process of the message processing method provided by the embodiment of the present application involves the following modules in the message sending device 810: acquisition module 811 , encapsulation module 812 and forwarding module 813.
其中,获取模块811,获取用于反映网络报文的转发状态的辅助信息;Among them, the acquisition module 811 acquires auxiliary information used to reflect the forwarding status of the network message;
封装模块812,用于确定辅助信息的位置参数和辅助信息的长度参数,封装位置参数和长度参数到网络报文中;根据位置参数和长度参数封装辅助信息到网络报文中;The encapsulating module 812 is used to determine the position parameter of the auxiliary information and the length parameter of the auxiliary information, encapsulate the position parameter and the length parameter into the network message; encapsulate the auxiliary information into the network message according to the position parameter and the length parameter;
转发模块813,转发网络报文。 Forwarding module 813 forwards network messages.
需要说明的是,上述装置的模块之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其功能及带来的技术效果,可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the modules of the above-mentioned device are based on the same concept as the method embodiments of the present application, and their functions and technical effects can be found in the method embodiments section, which will not be discussed here. Again.
参见图11,图11是本申请实施例提供的报文接收装置820的结构示意图,本申请实施例提供的报文处理方法的整个流程中涉及报文接收装置820中的以下模块:接收模块821、解封装模块822和确定模块823。Referring to Figure 11, Figure 11 is a schematic structural diagram of a message receiving device 820 provided by an embodiment of the present application. The entire process of the message processing method provided by an embodiment of the present application involves the following modules in the message receiving device 820: receiving module 821 , decapsulation module 822 and determination module 823.
其中,接收模块821,用于接收封装有辅助信息、辅助信息的位置参数和辅助信息的长度参数的网络报文,其中,辅助信息用于反映网络报文转发状态;Among them, the receiving module 821 is used to receive network messages encapsulated with auxiliary information, location parameters of the auxiliary information, and length parameters of the auxiliary information, where the auxiliary information is used to reflect the network message forwarding status;
解封装模块822,用于解封装网络报文,获取位置参数和长度参数;Decapsulation module 822 is used to decapsulate network messages and obtain location parameters and length parameters;
确定模块823,用于根据位置参数和长度参数,获取辅助信息。The determination module 823 is used to obtain auxiliary information according to the position parameter and the length parameter.
需要说明的是,上述装置的模块之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其功能及带来的技术效果,可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the modules of the above-mentioned device are based on the same concept as the method embodiments of the present application, and their functions and technical effects can be found in the method embodiments section, which will not be discussed here. Again.
参见图12,图12是本申请实施例提供的报文处理系统800的结构示意图,本申请实施例提供的报文处理方法的整个流程中涉及报文处理系统800中的以下部分:报文发送装置810和报文接收装置820。Referring to Figure 12, Figure 12 is a schematic structural diagram of the message processing system 800 provided by the embodiment of the present application. The entire process of the message processing method provided by the embodiment of the present application involves the following parts of the message processing system 800: Message sending Device 810 and message receiving device 820.
需要说明的是,上述装置之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其功能及带来的技术效果,可参见方法实施例部分,此处不再赘述。It should be noted that the information interaction, execution process, etc. between the above devices are based on the same concept as the method embodiments of the present application, and their functions and technical effects can be found in the method embodiments section, and will not be described again here. .
本申请实施例还提供了一种存储介质,存储有计算机可执行指令,计算机可执行指令用于执行上述的报文处理方法。Embodiments of the present application also provide a storage medium that stores computer-executable instructions, and the computer-executable instructions are used to execute the above message processing method.
在一实施例中,该存储介质存储有计算机可执行指令,该计算机可执行指令被一个或多个控制处理器执行,比如,被上述报文处理系统中的一个处理器执行,可使得上述一个或多个处理器执行本申请任意实施例提供的报文处理方法。In one embodiment, the storage medium stores computer-executable instructions that are executed by one or more control processors, for example, by a processor in the above-mentioned message processing system, so that the above-mentioned one Or multiple processors execute the message processing method provided by any embodiment of this application.
以上所描述的实施例仅仅是示意性的,其中作为分离部件说明的单元可以是或者也可以不是物理上分开的,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部模块来实现本实施例方案的目的。The embodiments described above are only illustrative, and the units described as separate components may or may not be physically separate, that is, they may be located in one place, or they may be distributed to multiple network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
本申请实施例,获取用于反映网络报文的转发状态的辅助信息;获取辅助信息的位置参数和辅助信息的长度参数,并封装位置参数和长度参数到所述网络报文中;根据位置参数和长度参数封装辅助信息到所述网络报文中,并转发所述网络报文。本申请实施例的方案能够快速地获取报文转发过程所需要的辅助信息,避免遍历部分或整个报文结构,提高辅助信息的处理效率,进而提升报文的流转速度。此外,辅助信息的位置参数和长度参数通过网络报文中已有的字段来表征,能高效地复用已有字段,不需要修改现有协议,减少对于网络单元的硬件改动,也无需适配新的硬件,保证了报文处理方法的适用性。The embodiment of the present application obtains auxiliary information used to reflect the forwarding status of network messages; obtains the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulates the position parameter and length parameter into the network message; according to the position parameters and length parameters to encapsulate auxiliary information into the network message, and forward the network message. The solution of the embodiment of the present application can quickly obtain the auxiliary information required for the message forwarding process, avoid traversing part or the entire message structure, improve the processing efficiency of the auxiliary information, and thereby increase the message flow speed. In addition, the position parameters and length parameters of the auxiliary information are represented by existing fields in network messages, which can efficiently reuse existing fields without modifying existing protocols, reducing hardware changes to network units and eliminating the need for adaptation. New hardware ensures the applicability of message processing methods.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统可以被实施为软件、固件、硬件及其适当的组合。某些物理组件或所有物理组件可以被实施为由处理器,如中央处理器、数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于RAM、ROM、EEPROM、闪存或其他存储器技术、CD-ROM、 数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包括计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。 Those of ordinary skill in the art can understand that all or some steps and systems in the methods disclosed above can be implemented as software, firmware, hardware, and appropriate combinations thereof. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor, or a microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit . Such software may be distributed on computer-readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is known to those of ordinary skill in the art, the term computer storage media includes volatile and nonvolatile media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data. removable, removable and non-removable media. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, Digital Versatile Disk (DVD) or other optical disk storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or any other medium that can be used to store the desired information and can be accessed by a computer. Furthermore, it is known to those of ordinary skill in the art that communication media typically includes computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media .

Claims (14)

  1. 一种报文处理方法,应用于网络发送单元,所述方法包括:A message processing method, applied to a network sending unit, the method includes:
    获取用于反映网络报文的转发状态的辅助信息;Obtain auxiliary information used to reflect the forwarding status of network packets;
    确定所述辅助信息的位置参数和所述辅助信息的长度参数,封装所述位置参数和所述长度参数到所述网络报文中;Determine the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulate the position parameter and the length parameter into the network message;
    根据所述位置参数和所述长度参数封装所述辅助信息到所述网络报文中;Encapsulate the auxiliary information into the network message according to the position parameter and the length parameter;
    转发所述网络报文。Forward the network message.
  2. 根据权利要求1所述的方法,其中,所述确定所述辅助信息的位置参数和所述辅助信息的长度参数,封装所述位置参数和所述长度参数到所述网络报文中,包括:The method according to claim 1, wherein determining the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulating the position parameter and the length parameter into the network message includes:
    根据所述网络报文的字节占用情况,确定所述辅助信息的位置参数;Determine the position parameter of the auxiliary information according to the byte occupancy of the network message;
    计算所述辅助信息的长度参数;Calculate the length parameter of the auxiliary information;
    根据所述网络报文的转发模式,封装所述位置参数和所述长度参数到所述网络报文中。According to the forwarding mode of the network message, the location parameter and the length parameter are encapsulated into the network message.
  3. 根据权利要求2所述的方法,其中,所述根据所述网络报文的转发模式,封装所述位置参数和所述长度参数到所述网络报文中,包括:The method according to claim 2, wherein encapsulating the location parameter and the length parameter into the network message according to the forwarding mode of the network message includes:
    在所述网络报文的转发模式基于多协议标签交换协议的情况下,封装所述位置参数和所述长度参数到所述网络报文中识别服务标签的非标签字段。When the forwarding mode of the network message is based on a multi-protocol label switching protocol, the position parameter and the length parameter are encapsulated into a non-label field identifying a service label in the network message.
  4. 根据权利要求2所述的方法,其中,所述根据所述网络报文的转发模式,封装所述位置参数和所述长度参数到所述网络报文中,还包括:The method according to claim 2, wherein encapsulating the location parameter and the length parameter into the network message according to the forwarding mode of the network message further includes:
    在所述网络报文的转发模式基于第六版分段路由协议的情况下,封装所述位置参数和所述长度参数到所述网络报文的分段路由头部。When the forwarding mode of the network message is based on the sixth version of the segment routing protocol, the location parameter and the length parameter are encapsulated into the segment routing header of the network message.
  5. 根据权利要求4所述的方法,其中,所述封装所述位置参数和所述长度参数到所述网络报文的分段路由头部,包括:The method according to claim 4, wherein the encapsulating the location parameter and the length parameter into a segment routing header of the network message includes:
    修改所述分段路由头部的预留字段的非首位设置为预定值,所述预定值用于表征所述网络报文中封装有所述位置参数和所述长度参数;Modify the non-first bit of the reserved field in the segment routing header to be set to a predetermined value, the predetermined value being used to indicate that the location parameter and the length parameter are encapsulated in the network message;
    封装所述位置参数和所述长度参数到所述分段路由头部的标签字段。The location parameter and the length parameter are encapsulated into a label field of the segment routing header.
  6. 根据权利要求1所述的方法,其中,所述根据所述位置参数和所述长度参数封装所述辅助信息到所述网络报文中,并转发所述网络报文,包括:The method according to claim 1, wherein encapsulating the auxiliary information into the network message according to the location parameter and the length parameter, and forwarding the network message includes:
    把所述辅助信息以类型长度值的格式封装在所述网络报文中。The auxiliary information is encapsulated in the network message in the format of a type length value.
  7. 一种报文处理方法,应用于网络接收单元,所述方法包括:A message processing method, applied to a network receiving unit, the method includes:
    接收封装有辅助信息、所述辅助信息的位置参数和所述辅助信息的长度参数的网络报文,其中,所述辅助信息用于反映所述网络报文的转发状态;Receive a network message encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information, wherein the auxiliary information is used to reflect the forwarding status of the network message;
    解封装所述网络报文,获取所述位置参数和所述长度参数;Decapsulate the network message and obtain the position parameter and the length parameter;
    根据所述位置参数和所述长度参数,获取所述辅助信息。The auxiliary information is obtained according to the position parameter and the length parameter.
  8. 根据权利要求7所述的方法,其中,所述解封装所述网络报文,获取所述位置参数和所述长度参数,包括:The method according to claim 7, wherein the decapsulating the network message and obtaining the location parameter and the length parameter includes:
    在所述网络报文的转发模式基于多协议标签交换协议的情况下,根据所述网络报文的识别服务标签,得到所述长度参数;When the forwarding mode of the network message is based on the multi-protocol label switching protocol, the length parameter is obtained according to the identification service label of the network message;
    在所述长度参数不为零的情况下,获取所述位置参数。 If the length parameter is not zero, the position parameter is obtained.
  9. 根据权利要求8所述的方法,其中,所述解封装所述网络报文,获取所述位置参数和所述长度参数,还包括:The method according to claim 8, wherein the decapsulating the network message and obtaining the location parameter and the length parameter further includes:
    在所述网络报文的转发模式基于第六版分段路由协议的情况下,获取所述网络报文的分段路由头部的预留字段;When the forwarding mode of the network message is based on the sixth version of the segment routing protocol, obtain the reserved field of the segment routing header of the network message;
    在所述预留字段的非首位与预定值一致的情况下,获取所述分段路由头部的标签字段,所述预定值用于表征所述网络报文中封装有所述位置参数和所述长度参数;When the non-first position of the reserved field is consistent with a predetermined value, the label field of the segment routing header is obtained. The predetermined value is used to represent that the location parameter and the location parameter are encapsulated in the network message. The length parameter;
    根据所述标签字段,获取所述位置参数和所述长度参数。According to the tag field, the position parameter and the length parameter are obtained.
  10. 根据权利要求7所述的方法,其中,所述根据所述位置参数和所述长度参数,获取所述辅助信息,包括:The method according to claim 7, wherein said obtaining the auxiliary information according to the position parameter and the length parameter includes:
    根据所述位置参数,获取所述辅助信息的起始位置;According to the position parameter, obtain the starting position of the auxiliary information;
    根据所述长度参数和所述辅助信息的起始位置,获取所述辅助信息。The auxiliary information is obtained according to the length parameter and the starting position of the auxiliary information.
  11. 一种报文发送装置,包括:A message sending device, including:
    获取模块,获取用于反映网络报文的转发状态的辅助信息;The acquisition module obtains auxiliary information used to reflect the forwarding status of network messages;
    封装模块,用于确定所述辅助信息的位置参数和所述辅助信息的长度参数,封装所述位置参数和所述长度参数到所述网络报文中;根据所述位置参数和所述长度参数封装所述辅助信息到所述网络报文中;An encapsulation module, configured to determine the position parameter of the auxiliary information and the length parameter of the auxiliary information, and encapsulate the position parameter and the length parameter into the network message; according to the position parameter and the length parameter Encapsulate the auxiliary information into the network message;
    转发模块,转发所述网络报文。A forwarding module forwards the network message.
  12. 一种报文接收装置,包括:A message receiving device, including:
    接收模块,用于接收封装有辅助信息、所述辅助信息的位置参数和所述辅助信息的长度参数的网络报文,其中,所述辅助信息用于反映网络报文转发状态;A receiving module configured to receive a network message encapsulated with auxiliary information, a location parameter of the auxiliary information, and a length parameter of the auxiliary information, wherein the auxiliary information is used to reflect the forwarding status of the network message;
    解封装模块,用于解封装所述网络报文,获取所述位置参数和所述长度参数;A decapsulation module, used to decapsulate the network message and obtain the position parameter and the length parameter;
    确定模块,用于根据所述位置参数和所述长度参数,获取所述辅助信息。Determining module, configured to obtain the auxiliary information according to the position parameter and the length parameter.
  13. 一种报文处理系统,包括如权利要求11所述的报文发送装置和如权利要求12所述的报文接收装置。A message processing system, including the message sending device according to claim 11 and the message receiving device according to claim 12.
  14. 一种计算机可读存储介质,存储有计算机程序,所述计算机程序被处理器执行时,实现如权利要求1至6或7至10中任意一项所述的报文处理方法。 A computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the message processing method as described in any one of claims 1 to 6 or 7 to 10 is implemented.
PCT/CN2023/074659 2022-06-14 2023-02-06 Packet processing method, device and system, and storage medium WO2023241063A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202210669219.5 2022-06-14
CN202210669219.5A CN117278646A (en) 2022-06-14 2022-06-14 Message processing method, device, system and storage medium

Publications (1)

Publication Number Publication Date
WO2023241063A1 true WO2023241063A1 (en) 2023-12-21

Family

ID=89193095

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2023/074659 WO2023241063A1 (en) 2022-06-14 2023-02-06 Packet processing method, device and system, and storage medium

Country Status (2)

Country Link
CN (1) CN117278646A (en)
WO (1) WO2023241063A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191421A1 (en) * 2013-08-20 2016-06-30 Nec Corporation Communication system, switch, controller, ancillary data management apparatus, data forwarding method, and program
CN108737269A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 A kind of packaging method, device and node
CN110120985A (en) * 2018-02-05 2019-08-13 华为技术有限公司 The method and apparatus of communication
US20200358698A1 (en) * 2018-09-05 2020-11-12 Huawei Technologies Co., Ltd. Segment routing in mpls network
US20210119914A1 (en) * 2018-06-28 2021-04-22 Huawei Technologies Co., Ltd. Device, method and system for sending or receiving packets including control information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160191421A1 (en) * 2013-08-20 2016-06-30 Nec Corporation Communication system, switch, controller, ancillary data management apparatus, data forwarding method, and program
CN108737269A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 A kind of packaging method, device and node
CN110120985A (en) * 2018-02-05 2019-08-13 华为技术有限公司 The method and apparatus of communication
US20210119914A1 (en) * 2018-06-28 2021-04-22 Huawei Technologies Co., Ltd. Device, method and system for sending or receiving packets including control information
US20200358698A1 (en) * 2018-09-05 2020-11-12 Huawei Technologies Co., Ltd. Segment routing in mpls network

Also Published As

Publication number Publication date
CN117278646A (en) 2023-12-22

Similar Documents

Publication Publication Date Title
CN109412964B (en) Message control method and network device
WO2021180073A1 (en) Packet transmission method and device, network node, and storage medium
US7636781B2 (en) System and method for realizing the resource distribution in the communication network
WO2023283902A1 (en) Message transmission method and apparatus
WO2021098807A1 (en) Method and device for updating mapping
US11265228B2 (en) Scalable service level agreement (SLA) verification and action using a data plane
US20210083970A1 (en) Packet Processing Method and Apparatus
CN111431822A (en) Deterministic time delay service intelligent scheduling and control implementation method
CN113328902B (en) Network performance detection method and device and network equipment
CN109547343B (en) Traffic scheduling method and system
WO2012065477A1 (en) Method and system for avoiding message congestion
WO2022028456A1 (en) Congestion control method and apparatus, network node device and computer-readable storage medium
WO2021017930A1 (en) Message forwarding
WO2022111724A1 (en) Network congestion detection method and apparatus
WO2021227947A1 (en) Network control method and device
WO2018036173A1 (en) Network load balancing method, device and system
WO2016150020A1 (en) Scheduling flow identifier-based packet scheduling method and device
WO2023241063A1 (en) Packet processing method, device and system, and storage medium
WO2020114083A1 (en) Method and apparatus for processing ioam information
WO2022183879A1 (en) Packet forwarding method, electronic device, and storage medium
WO2022063126A1 (en) Packet transmission control method, packet generation method, packet transmission method, configuration method, device, and medium
CN110830373B (en) Method and device for realizing QOS service quality differentiation of service in SDN network
CN112787953A (en) Deterministic traffic flow transmission method and device, electronic equipment and storage medium
WO2024001733A1 (en) Packet transmission method, apparatus, and system
WO2023185662A1 (en) Deterministic service method for realizing network underlying resource awareness, and electronic device and computer-readable storage medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 23822635

Country of ref document: EP

Kind code of ref document: A1