WO2022206050A1 - Packet processing method and related device - Google Patents

Packet processing method and related device Download PDF

Info

Publication number
WO2022206050A1
WO2022206050A1 PCT/CN2021/139564 CN2021139564W WO2022206050A1 WO 2022206050 A1 WO2022206050 A1 WO 2022206050A1 CN 2021139564 W CN2021139564 W CN 2021139564W WO 2022206050 A1 WO2022206050 A1 WO 2022206050A1
Authority
WO
WIPO (PCT)
Prior art keywords
packet
protocol
coloring
forwarding layer
layer protocol
Prior art date
Application number
PCT/CN2021/139564
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 WO2022206050A1 publication Critical patent/WO2022206050A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/50Testing arrangements
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L61/00Network arrangements, protocols or services for addressing or naming
    • H04L61/09Mapping addresses
    • H04L61/25Mapping addresses of the same type
    • H04L61/2503Translation of Internet protocol [IP] addresses
    • H04L61/2592Translation of Internet protocol [IP] addresses using tunnelling or encapsulation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L63/00Network architectures or network communication protocols for network security
    • H04L63/02Network architectures or network communication protocols for network security for separating internal from external traffic, e.g. firewalls
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/04Protocols specially adapted for terminals or networks with limited capabilities; specially adapted for terminal portability
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L9/00Cryptographic mechanisms or cryptographic arrangements for secret or secure communications; Network security protocols
    • H04L9/40Network security protocols

Definitions

  • the embodiments of the present application relate to the field of communications, and in particular, to a packet processing method and related devices.
  • network devices will send messages to each other to complete data transmission.
  • the data in the packet may change due to various reasons, such as network instability or network failure.
  • the packet needs to be detected. , so that faults in the transmission link can be determined, so as to repair the problem in time. Therefore, how to implement packet detection has become a problem that needs to be solved.
  • packet loss, delay and jitter detection can be implemented by adding dyed bits in the packet.
  • the same traffic will use different coloring protocols in different forwarding layer protocols, so that the coloring bits of multiple packets corresponding to the same traffic are different.
  • the embodiments of the present application provide a packet processing method and related equipment.
  • the coloring information can be transmitted end-to-end, so that end-to-end transmission can be realized.
  • Hop quality diagnosis improves the accuracy of packet detection.
  • a first aspect of the embodiments of the present application provides a message processing method, including:
  • the network device may receive the first packet corresponding to the first forwarding layer protocol sent by the previous hop device, and acquire the coloring information carried in the first packet. Then, the first packet is converted into a second packet, so that the coloring information is included in the second packet, and the second packet is sent to the next-hop device.
  • the first packet and the second packet correspond to the same flow, and the first forwarding layer protocol is different from the second forwarding layer protocol.
  • the network device when it encapsulates packets of different forwarding layer protocols, it can obtain the coloring information in the first packet sent by the previous hop device, and convert the first packet into the second packet.
  • the coloring information is mapped to the second message, so that the coloring information can be transmitted end-to-end, so that end-to-end hop-by-hop quality diagnosis can be realized, and the accuracy of the message detection is improved.
  • the network device when receiving the first packet, may obtain the first forwarding layer protocol corresponding to the first packet. Then, according to the first coloring protocol corresponding to the first forwarding layer protocol, the coloring bit of the first packet is determined, so as to obtain the coloring information of the first packet. Afterwards, the network device may determine the second coloring protocol corresponding to the second forwarding layer protocol according to the second forwarding layer protocol corresponding to the second packet, so as to obtain the coloring bit of the second packet, and map the coloring information to the second forwarding layer protocol. in the dyed bits of the message.
  • the network device can determine the coloring bits of the packets of the same traffic in different coloring protocols according to the coloring protocol corresponding to the forwarding layer protocol, so as to realize the mapping of the coloring information and improve the implementability of the technical solution.
  • first forwarding layer protocols including a multiprotocol label switching protocol (multiprotocol label switching protocol).
  • MPLS Generic Routing Encapsulation
  • GRE Generic Routing Encapsulation
  • VxLAN Virtual Extensible Local Area Network
  • IPv4 Internet Protocol Version 4
  • IPv6 Internet Protocol Version 6
  • SRv6 segment routing over IPv6
  • the selection of the first coloring protocol is related to the first forwarding layer protocol. Specifically, if the first forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the network device may determine that the first coloring protocol is in-situ flow information telemetry (iFIT) , any of in-band operation administration and maintenance (iOAM) and in-band network telemetry (INT). If the first forwarding layer protocol is IPv4, the network device may determine that the first coloring protocol is a network packet conservation algorithm (packet conservation algorithm for internet, IPCA) or IP flow performance measurement (IP flow performance measurement, IPFPM).
  • iFIT in-situ flow information telemetry
  • iOAM in-band operation administration and maintenance
  • INT in-band network telemetry
  • the network device may determine that the first coloring protocol is a network packet conservation algorithm (packet conservation algorithm for internet, IPCA) or IP flow performance measurement (IP flow performance measurement, IPFPM).
  • any one of the first to third implementation manners of the first aspect, and in the fourth implementation manner of the first aspect of the embodiments of the present application there are multiple second forwarding layer protocols, including MPLS , GRE, VxLAN, IPv4, IPv6 or SRv6.
  • the selection of the second coloring protocol is related to the second forwarding layer protocol. Specifically, if the second forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the network device may determine that the second coloring protocol is any one of iFIT, iOAM, and INT. If the first forwarding layer protocol is IPv4, the network device may determine that the second coloring protocol is IPCA or IPFPM.
  • first forwarding layer protocols and second forwarding layer protocols which can be selected according to actual application needs, as long as the first forwarding layer protocol is different from the second forwarding layer protocol, which improves the Flexibility and achievability of applying for technical solutions.
  • the network device may also obtain the traffic identifier corresponding to the first packet, and report the traffic ID to the analyzer.
  • the network device may perform a packet counting operation and a time stamping operation on the first packet based on the first coloring protocol to obtain a first operation result.
  • the network device may further perform a packet counting operation and a time stamping operation on the second packet based on the second coloring protocol to obtain a second operation result.
  • the network device may report the first operation result or the second operation result to the analyzer.
  • the network device can report the operation result to the analyzer, so that the analyzer can perform packet loss, delay and jitter detection according to the operation result.
  • the network device can also report the traffic identifier, so that the analyzer can restore the forwarding path of the packet according to the traffic identifiers reported by the multiple network devices.
  • the network device can select the coloring protocol based on which packet statistics and time stamping operations are performed on the message, which improves the flexibility of the technical solution of the present application.
  • the network device is a device with an IP packet forwarding capability , which may be a router or a switch. In addition, it may also be other devices capable of forwarding IP packets, such as a firewall, which is not specifically limited here.
  • a second aspect of the embodiments of the present application provides a message processing device, including:
  • Processing unit for:
  • the second packet includes coloring information, the second packet corresponds to the second forwarding layer protocol, the first packet and the second packet correspond to the same traffic, the first forwarding layer protocol and the second forwarding layer protocol Layer protocols are different.
  • the sending unit is used for sending the second message.
  • the message processing apparatus is configured to execute the method of the foregoing first aspect.
  • a third aspect of the embodiments of the present application provides a computer device, including:
  • processor memory, input and output interface, and bus. Among them, the processor, memory, input and output interface are connected with the bus.
  • the processor is used to perform the following steps:
  • the coloring information is used to detect the packet. Then, a second packet containing the dyeing information is acquired. and send the second packet to the next hop device.
  • the second packet corresponds to the second forwarding layer protocol, the first packet and the second packet correspond to the same traffic, and the first forwarding layer protocol is different from the second forwarding layer protocol.
  • the computer is arranged to carry out the method of the aforementioned first aspect.
  • a fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and when a computer executes the program, the method of the foregoing first aspect is performed.
  • a fifth aspect of the embodiments of the present application provides a computer program product.
  • the computer program product When the computer program product is executed on a computer, the computer executes the method of the foregoing first aspect.
  • Fig. 1 is a schematic diagram of an application scenario of packet detection
  • FIG. 2 is a schematic diagram of an application scenario of a message processing method
  • FIG. 3 is a schematic diagram of an application scenario of another message processing method
  • 4a is a schematic diagram of a system architecture of a message processing method provided by an embodiment of the present application.
  • FIG. 4b is another schematic diagram of the system architecture of the message processing method provided by the embodiment of the present application.
  • FIG. 5 is a schematic flowchart of a message processing method provided by an embodiment of the present application.
  • FIG. 6 is a schematic diagram of an application scenario of the message processing method provided by the embodiment of the present application.
  • Figure 7 is a schematic diagram of a packet header of IPv4
  • FIG. 8 is a schematic diagram of a message of MPLS
  • FIG. 9 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
  • the embodiments of the present application provide a packet processing method and related equipment.
  • the coloring information can be transmitted end-to-end, so that end-to-end transmission can be realized.
  • Hop quality diagnosis improves the accuracy of packet detection.
  • FIG. 1 is a schematic diagram of an application scenario of packet detection.
  • the dyeing technology specifies a dyeing cycle for the device. The number of packets included in each dyeing cycle is the same.
  • Device 1 (the head node) alternately dyes the packets according to the cycle change. Affected by the network environment, the order in which the packets leave device 1 and the order in which they arrive at device 2 may be different during packet transmission.
  • the packets are detected, and the number of packets included in the statistics period can be more than the number of packets in the dyeing period.
  • Device 2 can count the number of packets included in the same dyeing cycle in a statistical period, that is, perform packet statistics operation, and report the statistical results to the analyzer, so that the analyzer can determine the packet loss situation. As shown in FIG. 1 , device 2 detects three No. 1 packets in Rx[i+1]. The analyzer can know that packet loss occurs according to the fact that Tx[i+1] contains 4 No. 1 packets and Rx[i+1] contains 3 No. 1 packets.
  • the device 1 When the device 1 dyes a certain message in a dyeing cycle, it can also record the time stamp of the message, that is, perform a time stamping operation, and report the operation result to the analyzer.
  • Device 2 can also perform a time stamping operation on the packet when receiving the packet, and report the operation result to the analyzer.
  • the analyzer can determine the delay of the packet according to the time corresponding to the two timestamps.
  • the analyzer can also combine the time stamp information of multiple packets on different devices to analyze the jitter situation.
  • FIG. 2 is a schematic diagram of an application layer scenario of a packet processing method.
  • the WAN side uses SR tunnel encapsulation.
  • the forwarding layer protocol used by device 1 to device 3 is IPv4
  • the coloring protocol corresponding to IPv4 is used.
  • the forwarding layer protocol used by device 4 and device 5 is SRv6, and the iFIT coloring method is adopted.
  • the device 4 needs to report the operation results to the analyzer twice according to the two dyeing methods. Based on this, the analyzer can only detect this traffic in the stage of transmission from device 1 to device 4 according to the information reported by device 1 and device 4 based on the coloring protocol corresponding to IPv4.
  • the traffic is detected during the transmission stage of the device 4 and the device 5 .
  • the analyzer can only perform segment detection on this traffic, and cannot implement end-to-end hop-by-hop quality diagnosis from device 1 to device 5.
  • FIG. 4a is a schematic diagram of a system architecture of a packet processing method provided by an embodiment of the present application.
  • the message processing system may include one analyzer and multiple network devices (device 1 to device 5).
  • the forwarding layer protocol used by the network devices (device 1 to device 3) in the campus is IPv4, and the packets are dyed based on the dyeing protocol corresponding to IPv4.
  • the forwarding layer protocol used by the network devices (device 4 and device 5) in the WAN is SRv6, and the iFIT-based coloring protocol is used to color packets.
  • device 4 and device 5 may serve as network-side edge devices (provider edge, PE).
  • the device 4 can map the IPv4 coloring information corresponding to the selected traffic to the coloring bits defined by the iFIT protocol according to the policy. Similarly, corresponding to the traffic transmitted from device 5 to device 1, device 4 can map the SRv6 coloring information corresponding to the selected traffic to the coloring bits defined by the coloring protocol corresponding to IPv4 according to the policy.
  • Device 1 to Device 5 can also perform packet statistics operations and/or time stamping operations on the packets according to their respective dyeing protocols, and then report the operation results to the analyzer according to the unified data format, so that the analyzer can perform operations according to the operation results. Packet loss, delay and/or jitter detection of packets.
  • device 1 to device 5 may also report traffic identifiers to the analyzer, so that the analyzer can perform path restoration according to the traffic identifiers.
  • the park can be an office building or a factory.
  • it can also be other scenarios, such as an orchard, a campus, etc., which are not limited here.
  • Device 1 to Device 5 are devices capable of forwarding IP packets, which can be routers or switches. In addition, they can also be other devices capable of forwarding IP packets, such as firewalls, which are not described here. limited. Each device may be the same device or different devices, which are not specifically limited here.
  • devices 4 to 8 can map dyeing information.
  • FIG. 5 is a schematic flowchart of the packet processing method provided by the embodiment of the present application, including:
  • the packet processing method provided in the embodiment of the present application is applied to a network device connecting two different forwarding layer protocols, that is, the device 2 shown in FIG. 6 . Taking the traffic transmitted from the device 1 to the device 3, and the device 1 is the start node and the device 3 is the end node as an example, the packet processing method provided by the embodiment of the present application will be described.
  • the device 1 can color the first packet according to the first coloring protocol corresponding to the first forwarding layer protocol for the specified traffic. Specifically, according to the first coloring protocol, color bit coloring of packet loss and delay is performed on the first packet.
  • the device 1 may also perform packet statistics and/or time stamping operations according to the dyeing information, and report the obtained operation results to the analyzer.
  • the first forwarding layer protocol which can be MPLS or GRE, or VxLAN or IPv4.
  • it can also be other forwarding protocols that can define packet formats, such as IPv6 or SRv6. , which is determined according to actual application requirements, which is not specifically limited here.
  • the first coloring protocol is related to the first forwarding layer protocol, and there are many possibilities.
  • the first forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the first coloring protocol It may be iFIT or iOAM. Besides, it may also be other dyeing protocols applicable to the first forwarding layer protocol, such as INT, which is not specifically limited here.
  • the first forwarding layer protocol is IPv4, the first coloring protocol may be IPCA, or may be other coloring protocols applicable to IPv4, such as IPFPM, which is not specifically limited here.
  • first forwarding layer protocols which can be selected according to the needs of practical applications.
  • first forwarding layer protocol is determined, there are various options for the first coloring protocol, which improves the technical solution of the present application. flexibility and achievability.
  • a coloring protocol based on IPv4 can be used for bit 0 (Bit0) in the Flag field, or No. 6 or No. 7 in the ToS field. Bits (Bit6/7) are colored. Figure 7 shows the packet header of the colored IPv4 packet.
  • the IPFPM dyeing protocol may also dye other positions in the IPv4 packet header, for example, any of bits 4 to 6 in the ToS field, which is not specifically limited here.
  • the newly added packet header can be colored based on the iFIT coloring protocol.
  • a packet header IFIT may be added to the MPLS packet, and the fields in the packet header can be colored. After coloring, the bold L field is used for packet loss coloring marking; the bold D field is used for delay coloring and jitter analysis.
  • the network device may determine the first coloring protocol corresponding to the first forwarding layer protocol based on the first forwarding layer protocol corresponding to the first packet, so as to obtain coloring information of the first packet.
  • the network device may receive multiple packets corresponding to different traffic flows, and the network device may select the first packet corresponding to the traffic to be detected according to the traffic selection policy configured by the network device. Since the traffic selection strategy is not the focus of the present invention, it will not be described here.
  • the network device may convert the first packet into the second packet, and map the coloring information to the second packet.
  • the second coloring protocol corresponding to the second forwarding layer protocol may be determined according to the second forwarding layer protocol.
  • the second packet is constructed according to the second forwarding layer protocol, the coloring bit of the second packet is determined based on the second coloring protocol, and the coloring information of the first packet is mapped to the coloring bit of the second packet.
  • the second packet and the first packet correspond to the same traffic, but the forwarding layer protocol and the coloring protocol used are different. That is to say, the first packet and the second packet are a traffic Packets in different formats corresponding to different forwarding layer protocols.
  • the second forwarding layer protocol can be MPLS or GRE, or VxLAN or IPv4.
  • it can also be other forwarding protocols that can define packet formats, such as IPv6 or SRv6. , which is determined according to actual application requirements, which is not specifically limited here.
  • the second coloring protocol is related to the second forwarding layer protocol, and there are multiple possibilities.
  • the second forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the second coloring protocol It can be iFIT or iOAM, and other dyeing protocols that can be applied to the second forwarding layer protocol, such as INT, are not limited here.
  • the second forwarding layer protocol is IPv4, the second coloring protocol may be IPCA, or may be other coloring protocols applicable to IPv4, such as IPFPM, which is not specifically limited here.
  • the strategy for mapping the coloring information by the network device may be preset.
  • the common forwarding layer protocol interaction may be IPv4 and SRv6, or IPv4 and VxLAN, and other situations, such as IPv4 and IPv6, are not limited here.
  • the network device may send the second packet to the next-hop device.
  • the network device when it encapsulates packets of different forwarding layer protocols, it can obtain the coloring information in the first packet sent by the previous hop device, and convert the first packet into the second packet.
  • the coloring information is mapped to the second message, so that the coloring information can be transmitted end-to-end, so that end-to-end hop-by-hop quality diagnosis can be realized, and the accuracy of the message detection is improved.
  • the packet uses a coloring protocol corresponding to the forwarding layer protocol, so that the network device can obtain the coloring information without parsing the packet memory, which improves the forwarding efficiency.
  • the network device may also acquire the traffic identifier corresponding to the first packet.
  • network devices acquire traffic identifiers in different ways. Exemplarily, if the first packet is an IPv4 packet, the network device may determine the traffic identifier according to the quintuple information carried in the first packet. In addition, the network device may also determine the traffic identifier corresponding to the first packet based on other methods, for example, according to triplet information corresponding to the first packet. There is no specific limitation here. If the packet header of the first packet is an MPLS packet, the "Flow ID" field in the packet header can represent the flow identifier.
  • the network device may also determine the traffic identifier of the first device according to other information carried in the MPLS packet, such as quintuple or triplet information carried in the MPLS packet, which is not specifically limited here.
  • the manner in which the network device obtains the traffic identifier is related to the forwarding layer protocol, and can be selected according to the needs of the actual application, which is not specifically limited here.
  • the network device may perform a packet counting operation and/or a time stamping operation on the first packet according to the first coloring protocol to obtain the first operation result.
  • the network device may perform a packet counting operation and/or a time stamping operation on the second packet according to the second coloring protocol to obtain a second operation result.
  • the network device chooses to perform the packet statistics operation and/or the time stamping operation is related to the processing complexity of the dyeing protocol.
  • network devices often choose a dyeing protocol with simpler operations as the basis for packet statistics operations and/or time stamping operations.
  • a dyeing protocol with simpler operations as the basis for packet statistics operations and/or time stamping operations.
  • the iFIT dyeing protocol i.e. iFIT for SRv6
  • the VxLAN forwarding layer protocol select the iFIT dyeing protocol, i.e. iFIT for VxLAN
  • the network device may also report at least one of the first operation result and the traffic identifier, or at least one of the second operation result and the traffic identifier to the analyzer, so that the analysis performs packet loss. At least one of detection, delay detection, jitter detection, and path restoration.
  • the detection information includes at least one of an operation result and a traffic identifier, and the operation result includes a first operation result or a second operation result.
  • the network device can report the operation result to the analyzer, so that the analyzer can perform packet loss, delay and jitter detection according to the operation result.
  • the network device can also report the traffic identifier, so that the analyzer can restore the forwarding path of the packet according to the traffic identifiers reported by the multiple network devices.
  • the network device can select the coloring protocol based on which packet statistics and time stamping operations are performed on the packets, which improves the flexibility of the technical solution of the present application.
  • FIG. 9 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the present application.
  • the message processing apparatus 900 includes:
  • the processing unit 902 is used for:
  • the first packet corresponds to the first forwarding layer protocol, and the coloring information is used to detect the packet.
  • the first message is converted into a second message, and the second message includes coloring information.
  • the second packet corresponds to the second forwarding layer protocol, the first packet and the second packet correspond to the same traffic, and the first forwarding layer protocol is different from the second forwarding layer protocol.
  • the sending unit 903 is configured to send the second message.
  • the processing unit 902 is specifically configured to determine the coloring information of the first packet according to the first coloring protocol corresponding to the first forwarding layer protocol.
  • the coloring bit of the second packet is determined according to the second coloring protocol corresponding to the second forwarding layer protocol.
  • the dyeing information is mapped to the dyeing bits to obtain a second message.
  • the first forwarding layer protocol includes MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
  • the first forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the first coloring protocol is any one of iFIT, iOAM, and INT; if The first forwarding layer protocol is IPv4, and the first coloring protocol is IPCA or IPFPM.
  • the second forwarding layer protocol includes MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
  • the second forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the second coloring protocol is any one of iFIT, iOAM, and INT; if The second forwarding layer protocol is IPv4, and the second coloring protocol is IPCA or IPFPM.
  • the processing unit 902 is further configured to obtain a traffic identifier corresponding to the first packet, and perform a packet statistics operation and/or a time stamp operation on the first packet according to the first coloring protocol, Get the first operation result.
  • the sending unit 903 is further configured to report at least one of the first operation result and the traffic identifier;
  • the processing unit 902 is further configured to acquire a traffic identifier corresponding to the first packet, and perform a packet statistics operation and/or a time stamping operation on the second packet according to the second coloring protocol, Obtain the second operation result.
  • the sending unit 903 is further configured to report at least one of the second operation result and the traffic identifier.
  • the packet processing apparatus 900 further includes a receiving unit 901, configured to receive the first packet.
  • the packet processing apparatus 900 may perform the operations performed by the network device in the embodiments shown in FIG. 4a to FIG. 6 , and details are not described herein again.
  • the computer device 1000 may include one or more processors 1001 and a memory 1005, and the memory 1005 stores one or more application programs or data.
  • the processor 1001 has many possibilities, which may be a central processing unit (CPU), a microprocessor (microprocessor unit, MPU), or other processors.
  • CPU central processing unit
  • MPU microprocessor unit
  • an embedded processor, a single-core processor or a multi-core processor can be selected according to actual application needs, which is not specifically limited here.
  • the memory 1005 may be volatile storage or persistent storage.
  • a program stored in memory 1005 may include one or more modules, each of which may be used to perform a series of operations performed by the server.
  • the processor 1001 may be arranged to communicate with the memory 1005 to execute a series of instruction operations in the memory 1005 on the computer device 1000.
  • Computer device 1000 may also include one or more power supplies 1002, one or more wired or wireless network interfaces 1003, one or more input and output interfaces 1004, and/or, one or more operating systems, such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • one or more operating systems such as Windows ServerTM, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
  • the processor 1001 may perform the operations performed by the network device in the embodiments shown in FIG. 4a to FIG. 6 , which will not be repeated here.
  • the disclosed system, apparatus and method may be implemented in other manners.
  • the apparatus embodiments described above are only illustrative.
  • the division of the units is only a logical function division. In actual implementation, there may be other division methods.
  • multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented.
  • the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
  • each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit.
  • the above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium.
  • the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application.
  • the aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Abstract

Disclosed in embodiments of the present application are a packet processing method and a related device, used for improving the accuracy of packet detection. The method according to the embodiments of the present application comprises: acquiring dyeing information of a first packet, and then converting the first packet into a second packet, such that the second packet contains the dyeing information; and sending the second packet to a next-hop device. The first packet and the second packet correspond to a same traffic, the first packet corresponds to a first forwarding layer protocol, the second packet corresponds to a second forwarding layer protocol, and the first forwarding layer protocol and the second forwarding layer protocol are different.

Description

一种报文处理方法以及相关设备A message processing method and related equipment
本申请要求于2021年03月29日提交国家知识产权局、申请号为202110333960.X、发明名称为“一种报文处理方法以及相关设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application with the application number 202110333960.X and the invention title "A message processing method and related equipment" filed with the State Intellectual Property Office on March 29, 2021, the entire contents of which are by reference Incorporated in this application.
技术领域technical field
本申请实施例涉及通信领域,尤其涉及一种报文处理方法以及相关设备。The embodiments of the present application relate to the field of communications, and in particular, to a packet processing method and related devices.
背景技术Background technique
网络设备在通信过程中,会互相发送报文,从而完成数据的传输。但是在实际的通信过程中,可能会因为各种各样的原因,例如网络不稳定或者网络故障等问题,使得报文中的数据发生变化,在这种情况下,便需要对报文进行检测,从而可以确定出传输链路中的故障等,便于及时修复问题。因此,如何实现报文检测成为了需要解决的问题。During the communication process, network devices will send messages to each other to complete data transmission. However, in the actual communication process, the data in the packet may change due to various reasons, such as network instability or network failure. In this case, the packet needs to be detected. , so that faults in the transmission link can be determined, so as to repair the problem in time. Therefore, how to implement packet detection has become a problem that needs to be solved.
在一种报文处理方法中,通过在报文中增加染色位,可以实现丢包、时延和抖动检测。但是同一流量在不同的转发层协议中,会使用不同的染色协议,使得对应于同一流量的多个报文的染色位有所不同。In a packet processing method, packet loss, delay and jitter detection can be implemented by adding dyed bits in the packet. However, the same traffic will use different coloring protocols in different forwarding layer protocols, so that the coloring bits of multiple packets corresponding to the same traffic are different.
在这种报文处理方法中,由于不同转发层协议使用了不同的染色协议,因此在进行报文检测时,只能把这条流量上承载的业务分段进行检测,无法实现端到端的逐跳质量诊断,降低了检测的准确度。In this packet processing method, since different forwarding layer protocols use different coloring protocols, when packet detection is performed, only the service segments carried on this traffic can be detected, and end-to-end, end-to-end cannot be implemented. Skip quality diagnosis, reducing the accuracy of detection.
发明内容SUMMARY OF THE INVENTION
本申请实施例提供了一种报文处理方法以及相关设备,通过将不同转发层协议对应的报文中的染色信息进行映射,使得染色信息可以实现端到端的传输,从而可以实现端到端逐跳质量诊断,提升了报文检测的准确度。The embodiments of the present application provide a packet processing method and related equipment. By mapping coloring information in packets corresponding to different forwarding layer protocols, the coloring information can be transmitted end-to-end, so that end-to-end transmission can be realized. Hop quality diagnosis improves the accuracy of packet detection.
本申请实施例第一方面提供了一种报文处理方法,包括:A first aspect of the embodiments of the present application provides a message processing method, including:
网络设备可以接收到上一跳设备发送的对应于第一转发层协议的第一报文,并获取到第一报文中携带的染色信息。然后将第一报文转换为第二报文,使得第二报文中包括该染色信息,并将第二报文发送给下一跳设备。其中,第一报文和第二报文对应于同一条流量,第一转发层协议与第二转发层协议不同。The network device may receive the first packet corresponding to the first forwarding layer protocol sent by the previous hop device, and acquire the coloring information carried in the first packet. Then, the first packet is converted into a second packet, so that the coloring information is included in the second packet, and the second packet is sent to the next-hop device. The first packet and the second packet correspond to the same flow, and the first forwarding layer protocol is different from the second forwarding layer protocol.
本申请实施例中,网络设备在对不同转发层协议的报文进行封装时,可以获取到上一跳设备发送的第一报文中的染色信息,并在将第一报文转换成第二报文的过程中,将该染色信息映射到第二报文中,使得染色信息可以实现端到端的传输,从而可以实现端到端逐跳质量诊断,提升了报文检测的准确度。In this embodiment of the present application, when the network device encapsulates packets of different forwarding layer protocols, it can obtain the coloring information in the first packet sent by the previous hop device, and convert the first packet into the second packet. During the message process, the coloring information is mapped to the second message, so that the coloring information can be transmitted end-to-end, so that end-to-end hop-by-hop quality diagnosis can be realized, and the accuracy of the message detection is improved.
结合第一方面,本申请实施例第一方面的第一种实现方式中,网络设备在收到第一报文时,可以获取到第一报文所对应的第一转发层协议。然后根据该第一转发层协议对应的第一染色协议,确定出第一报文的染色位,从而得到第一报文的染色信息。之后,网络设备可以根据第二报文对应的第二转发层协议,确定出第二转发层协议对应的第二染色协议,从而得到第二报文的染色位,并将染色信息映射到第二报文的染色位中。With reference to the first aspect, in the first implementation manner of the first aspect of the embodiments of the present application, when receiving the first packet, the network device may obtain the first forwarding layer protocol corresponding to the first packet. Then, according to the first coloring protocol corresponding to the first forwarding layer protocol, the coloring bit of the first packet is determined, so as to obtain the coloring information of the first packet. Afterwards, the network device may determine the second coloring protocol corresponding to the second forwarding layer protocol according to the second forwarding layer protocol corresponding to the second packet, so as to obtain the coloring bit of the second packet, and map the coloring information to the second forwarding layer protocol. in the dyed bits of the message.
本申请实施例中,网络设备可以根据转发层协议对应的染色协议,确定出同一流量的报文在不同的染色协议中的染色位,从而实现染色信息的映射,提升了技术方案的可实现 性。In the embodiment of the present application, the network device can determine the coloring bits of the packets of the same traffic in different coloring protocols according to the coloring protocol corresponding to the forwarding layer protocol, so as to realize the mapping of the coloring information and improve the implementability of the technical solution. .
结合第一方面,或者第一方面的第一种实现方式,本申请实施例第一方面的第二种实现方式中,第一转发层协议有多种,包括多协议标记交换协议(multiprotocol label switching,MPLS),通用路由封装协议(generic routing encapsulation,GRE),虚拟扩展局域网(virtual extensible local area network,VxLAN),第四版网际协议(internet protocol version 4,IPv4),第六版网际协议(internet protocol version 6,IPv6),或者基于第六版网际协议的段路由(segment routing over IPv6,SRv6)。In conjunction with the first aspect, or the first implementation manner of the first aspect, in the second implementation manner of the first aspect of the embodiments of the present application, there are multiple first forwarding layer protocols, including a multiprotocol label switching protocol (multiprotocol label switching protocol). , MPLS), Generic Routing Encapsulation (GRE), Virtual Extensible Local Area Network (VxLAN), Internet Protocol Version 4 (IPv4), Internet Protocol Version 6 (Internet Protocol Version 4) protocol version 6, IPv6), or segment routing over IPv6 (SRv6) based on Internet Protocol version 6.
结合第一方面的第二种实现方式,本申请实施例第一方面的第三种实现方式中,第一染色协议的选择与第一转发层协议有关。具体来说,若第一转发层协议是MPLS,GRE,VxLAN,IPv6,和SRv6中的任一项,则网络设备可以确定第一染色协议为随路检测(in-situ flow information telemetry,iFIT),带内操作管理维护(in-band operation administration and maintenance,iOAM)和带内网络遥测(in-band network telemetry,INT)中的任一项。若第一转发层协议为IPv4,则网络设备可以确定第一染色协议为网络包守恒算法(packet conservation algorithm for internet,IPCA)或者IP流性能测量(IP flow performance measurement,IPFPM)。In combination with the second implementation manner of the first aspect, in the third implementation manner of the first aspect of the embodiments of the present application, the selection of the first coloring protocol is related to the first forwarding layer protocol. Specifically, if the first forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the network device may determine that the first coloring protocol is in-situ flow information telemetry (iFIT) , any of in-band operation administration and maintenance (iOAM) and in-band network telemetry (INT). If the first forwarding layer protocol is IPv4, the network device may determine that the first coloring protocol is a network packet conservation algorithm (packet conservation algorithm for internet, IPCA) or IP flow performance measurement (IP flow performance measurement, IPFPM).
结合第一方面,第一方面的第一种至第三种实现方式中的任一种,本申请实施例第一方面的第四种实现方式中,第二转发层协议有多种,包括MPLS,GRE,VxLAN,IPv4,IPv6或者SRv6。In combination with the first aspect, any one of the first to third implementation manners of the first aspect, and in the fourth implementation manner of the first aspect of the embodiments of the present application, there are multiple second forwarding layer protocols, including MPLS , GRE, VxLAN, IPv4, IPv6 or SRv6.
结合第一方面的第四种实现方式,本申请实施例第一方面的第五种实现方式中,第二染色协议的选择与第二转发层协议有关。具体来说,若第二转发层协议是MPLS,GRE,VxLAN,IPv6,和SRv6中的任一项,则网络设备可以确定第二染色协议为iFIT,iOAM和INT中的任一项。若第一转发层协议为IPv4,则网络设备可以确定第二染色协议为IPCA或者IPFPM。With reference to the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect of the embodiments of the present application, the selection of the second coloring protocol is related to the second forwarding layer protocol. Specifically, if the second forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the network device may determine that the second coloring protocol is any one of iFIT, iOAM, and INT. If the first forwarding layer protocol is IPv4, the network device may determine that the second coloring protocol is IPCA or IPFPM.
本申请实施例中,第一转发层协议和第二转发层协议有多种,可以根据实际应用的需要进行选择,只要使得第一转发层协议与第二转发层协议不同即可,提升了本申请技术方案的灵活性和可实现性。In the embodiment of the present application, there are many kinds of first forwarding layer protocols and second forwarding layer protocols, which can be selected according to actual application needs, as long as the first forwarding layer protocol is different from the second forwarding layer protocol, which improves the Flexibility and achievability of applying for technical solutions.
本申请实施例中,在第一转发层协议确定的情况下,第一染色协议有多种选择,在第二转发层协议确定的情况下,第二染色协议有多种选择,提升了本申请技术方案的灵活性和可实现性。In the embodiment of the present application, when the first forwarding layer protocol is determined, there are multiple options for the first coloring protocol, and when the second forwarding layer protocol is determined, there are multiple options for the second coloring protocol, which improves the present application Flexibility and realizability of technical solutions.
结合第一方面的第一种至第五种实现方式中的任一种,本申请实施例第一方面的第六种实现方式中,网络设备还可以获取到第一报文对应的流量标识,并将该流量标识上报给分析器。网络设备可以基于第一染色协议对第一报文进行包统计操作和打时戳操作,得到第一操作结果。网络设备还可以基于第二染色协议对第二报文进行包统计操作和打时戳操作,得到第二操作结果。网络设备在得到第一操作结果和第二操作结果后,可以将第一操作结果或者第二操作结果上报给分析器。With reference to any one of the first to fifth implementation manners of the first aspect, in the sixth implementation manner of the first aspect of the embodiments of the present application, the network device may also obtain the traffic identifier corresponding to the first packet, and report the traffic ID to the analyzer. The network device may perform a packet counting operation and a time stamping operation on the first packet based on the first coloring protocol to obtain a first operation result. The network device may further perform a packet counting operation and a time stamping operation on the second packet based on the second coloring protocol to obtain a second operation result. After obtaining the first operation result and the second operation result, the network device may report the first operation result or the second operation result to the analyzer.
本申请实施例中,网络设备可以将操作结果上报给分析器,使得分析器可以根据操作结果进行丢包、时延和抖动检测。同时,网络设备还可以上报流量标识,使得分析器可以根据多个网络设备上报的流量标识还原出报文的转发路径。此外,网络设备可以选择基于 何种染色协议,对报文进行包统计和打时戳操作,提升了本申请技术方案的灵活性。In this embodiment of the present application, the network device can report the operation result to the analyzer, so that the analyzer can perform packet loss, delay and jitter detection according to the operation result. At the same time, the network device can also report the traffic identifier, so that the analyzer can restore the forwarding path of the packet according to the traffic identifiers reported by the multiple network devices. In addition, the network device can select the coloring protocol based on which packet statistics and time stamping operations are performed on the message, which improves the flexibility of the technical solution of the present application.
结合第一方面、第一方面的第一种至第六种实现方式中的任一种,本申请实施例第一方面的第七种实现方式中,网络设备是具有IP报文转发能力的设备,可以是路由器,也可以是交换机,除此之外,还可以是其他具有IP报文转发能力的设备,例如防火墙,具体此处不做限定。With reference to the first aspect and any one of the first to sixth implementation manners of the first aspect, in the seventh implementation manner of the first aspect of the embodiments of the present application, the network device is a device with an IP packet forwarding capability , which may be a router or a switch. In addition, it may also be other devices capable of forwarding IP packets, such as a firewall, which is not specifically limited here.
本申请实施例第二方面提供了一种报文处理装置,包括:A second aspect of the embodiments of the present application provides a message processing device, including:
处理单元,用于:Processing unit for:
获取第一报文的染色信息,第一报文对应于第一转发层协议,染色信息用于检测报文。并将第一报文转换为第二报文。其中,第二报文中包括染色信息,第二报文对应于第二转发层协议,第一报文和所述第二报文对应于同一流量,第一转发层协议与所述第二转发层协议不同。Obtaining coloring information of the first packet, where the first packet corresponds to the first forwarding layer protocol, and the coloring information is used to detect the packet. And convert the first message into the second message. The second packet includes coloring information, the second packet corresponds to the second forwarding layer protocol, the first packet and the second packet correspond to the same traffic, the first forwarding layer protocol and the second forwarding layer protocol Layer protocols are different.
发送单元,用于发送第二报文。The sending unit is used for sending the second message.
该报文处理装置用于执行前述第一方面的方法。The message processing apparatus is configured to execute the method of the foregoing first aspect.
本方面所示的有益效果,与第一方面的有益效果相似,详见第一方面所示,此处不再赘述。The beneficial effects shown in this aspect are similar to the beneficial effects of the first aspect, which are shown in the first aspect for details, and will not be repeated here.
本申请实施例第三方面提供了一种计算机设备,包括:A third aspect of the embodiments of the present application provides a computer device, including:
处理器、存储器、输入输出接口以及总线。其中,处理器、存储器、输入输出接口与总线相连。处理器用于执行如下步骤:Processor, memory, input and output interface, and bus. Among them, the processor, memory, input and output interface are connected with the bus. The processor is used to perform the following steps:
获取第一报文的染色信息,第一报文对应于第一转发层协议,染色信息用于检测报文。然后获取包含有该染色信息的第二报文。并向下一跳设备发送该第二报文。其中,第二报文对应于第二转发层协议,第一报文和第二报文对应于同一流量,第一转发层协议与第二转发层协议不同。Obtaining coloring information of the first packet, where the first packet corresponds to the first forwarding layer protocol, and the coloring information is used to detect the packet. Then, a second packet containing the dyeing information is acquired. and send the second packet to the next hop device. The second packet corresponds to the second forwarding layer protocol, the first packet and the second packet correspond to the same traffic, and the first forwarding layer protocol is different from the second forwarding layer protocol.
该计算机设用于执行前述第一方面的方法。The computer is arranged to carry out the method of the aforementioned first aspect.
本申请实施例第四方面提供了一种计算机可读存储介质,该计算机可读存储介质中保存有程序,当计算机执行程序时,执行前述第一方面的方法。A fourth aspect of the embodiments of the present application provides a computer-readable storage medium, where a program is stored in the computer-readable storage medium, and when a computer executes the program, the method of the foregoing first aspect is performed.
本申请实施例第五方面提供了一种计算机程序产品,当计算机程序产品在计算机上执行时,计算机执行前述第一方面的方法。A fifth aspect of the embodiments of the present application provides a computer program product. When the computer program product is executed on a computer, the computer executes the method of the foregoing first aspect.
附图说明Description of drawings
图1为报文检测的一个应用场景示意图;Fig. 1 is a schematic diagram of an application scenario of packet detection;
图2为一种报文处理方法的应用场景示意图;2 is a schematic diagram of an application scenario of a message processing method;
图3为另一种报文处理方法的应用场景示意图;3 is a schematic diagram of an application scenario of another message processing method;
图4a为本申请实施例提供的报文处理方法的一个系统架构示意图;4a is a schematic diagram of a system architecture of a message processing method provided by an embodiment of the present application;
图4b为本申请实施例提供的报文处理方法的另一个系统架构示意图;FIG. 4b is another schematic diagram of the system architecture of the message processing method provided by the embodiment of the present application;
图5为本申请实施例提供的报文处理方法的一个流程示意图;5 is a schematic flowchart of a message processing method provided by an embodiment of the present application;
图6为本申请实施例提供的报文处理方法的一个应用场景示意图;FIG. 6 is a schematic diagram of an application scenario of the message processing method provided by the embodiment of the present application;
图7为IPv4的一个报文头示意图;Figure 7 is a schematic diagram of a packet header of IPv4;
图8为MPLS的一个报文示意图;FIG. 8 is a schematic diagram of a message of MPLS;
图9为本申请实施例提供的报文处理装置的一个结构示意图;FIG. 9 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the present application;
图10为本申请实施例提供的计算机设备的一个结构示意图。FIG. 10 is a schematic structural diagram of a computer device provided by an embodiment of the present application.
具体实施方式Detailed ways
本申请实施例提供了一种报文处理方法以及相关设备,通过将不同转发层协议对应的报文中的染色信息进行映射,使得染色信息可以实现端到端的传输,从而可以实现端到端逐跳质量诊断,提升了报文检测的准确度。The embodiments of the present application provide a packet processing method and related equipment. By mapping coloring information in packets corresponding to different forwarding layer protocols, the coloring information can be transmitted end-to-end, so that end-to-end transmission can be realized. Hop quality diagnosis improves the accuracy of packet detection.
首先,对本申请实施例涉及的报文染色的原理进行简单说明。在标准RFC8321中,提供了一种通过在报文中增加染色位来实现随流检测时延、丢包和抖动的技术。请参阅图1,图1为报文检测的一个应用场景示意图。如图1所示,染色技术为设备指定了染色周期,每个染色周期内包括的报文数量是相同的,设备1(首节点)根据周期变化对报文进行交替染色。受到网络环境的影响,使得报文在传输过程中,报文离开设备1的顺序和到达设备2的顺序可能会有所不同,为了保证设备2尽可能在一个统计周期内对一个染色周期中的报文进行检测,统计周期中包括的报文数量可以多于染色周期内的报文数量。First, the principle of packet coloring involved in the embodiments of the present application is briefly described. In the standard RFC8321, a technology is provided to detect delay, packet loss and jitter along the flow by adding color bits in the packet. Please refer to FIG. 1 , which is a schematic diagram of an application scenario of packet detection. As shown in Figure 1, the dyeing technology specifies a dyeing cycle for the device. The number of packets included in each dyeing cycle is the same. Device 1 (the head node) alternately dyes the packets according to the cycle change. Affected by the network environment, the order in which the packets leave device 1 and the order in which they arrive at device 2 may be different during packet transmission. The packets are detected, and the number of packets included in the statistics period can be more than the number of packets in the dyeing period.
设备2可以统计一个统计周期内的,包含于同一个染色周期的报文个数,也即进行包统计操作,并将统计结果上报给分析器,使得分析器确定出丢包的情况。如图1所示,设备2在Rx[i+1]中,检测到3个1号报文。分析器根据Tx[i+1]中包括有4个1号报文,以及Rx[i+1]中包含有3个1号报文可知,发生了丢包的情况。 Device 2 can count the number of packets included in the same dyeing cycle in a statistical period, that is, perform packet statistics operation, and report the statistical results to the analyzer, so that the analyzer can determine the packet loss situation. As shown in FIG. 1 , device 2 detects three No. 1 packets in Rx[i+1]. The analyzer can know that packet loss occurs according to the fact that Tx[i+1] contains 4 No. 1 packets and Rx[i+1] contains 3 No. 1 packets.
设备1在对一个染色周期内的某个报文进行染色时,还可以记录该报文的时戳,也即进行打时戳操作,并将操作结果上报给分析器。设备2同样可以在收到该报文时,对该报文进行打时戳操作,并将操作结果上报给分析器。分析器可以根据这两个时戳对应的时间,确定出该报文的时延情况。分析器还可以结合多个报文在不同设备的时戳信息,分析得到抖动情况。When the device 1 dyes a certain message in a dyeing cycle, it can also record the time stamp of the message, that is, perform a time stamping operation, and report the operation result to the analyzer. Device 2 can also perform a time stamping operation on the packet when receiving the packet, and report the operation result to the analyzer. The analyzer can determine the delay of the packet according to the time corresponding to the two timestamps. The analyzer can also combine the time stamp information of multiple packets on different devices to analyze the jitter situation.
根据不同转发层报文结构,当前有多种染色协议对不同的报文进行染色。下面对已有的报文处理方法进行简单的说明。According to the packet structure of different forwarding layers, there are currently multiple coloring protocols to color different packets. The following briefly describes the existing packet processing methods.
请参阅图2,图2为一种报文处理方法的应用层场景示意图。如图2所示,有一条经园区流入广域网(wide area network,WAN)的流量(flow),其中WAN侧采用SR隧道封装。由于设备1至设备3使用的转发层协议为IPv4,采用的是IPv4对应的染色协议。设备4和设备5使用的转发层协议为SRv6,采用的是iFIT的染色方式。设备4需要按照这两种染色方式,分别向分析器上报两次操作结果。基于此,分析器只能根据设备1和设备4基于IPv4对应的染色协议上报的信息,对这条流量在设备1至设备4传输的阶段进行检测。和/或根据设备4和设备5基于iFIT染色协议上报的信息,对这条流量在设备4和设备5传输的阶段进行检测。简单来说,就是分析器只能对这条流量进行分段检测,无法实现从设备1至设备5的端到端的逐跳质量诊断。Please refer to FIG. 2 , which is a schematic diagram of an application layer scenario of a packet processing method. As shown in Figure 2, there is a flow that flows into the wide area network (WAN) through the campus, and the WAN side uses SR tunnel encapsulation. Since the forwarding layer protocol used by device 1 to device 3 is IPv4, the coloring protocol corresponding to IPv4 is used. The forwarding layer protocol used by device 4 and device 5 is SRv6, and the iFIT coloring method is adopted. The device 4 needs to report the operation results to the analyzer twice according to the two dyeing methods. Based on this, the analyzer can only detect this traffic in the stage of transmission from device 1 to device 4 according to the information reported by device 1 and device 4 based on the coloring protocol corresponding to IPv4. And/or according to the information reported by the device 4 and the device 5 based on the iFIT dyeing protocol, the traffic is detected during the transmission stage of the device 4 and the device 5 . To put it simply, the analyzer can only perform segment detection on this traffic, and cannot implement end-to-end hop-by-hop quality diagnosis from device 1 to device 5.
在图3所示的报文处理方法中,虽然可以实现端到端的逐跳质量检测,但是会引入新的问题。如图3所示,在这种报文处理方法中,不论是使用IPv4,还是使用SRv6作为转发层协议,都使用IPv4对应的染色协议对报文进行染色。由于IPv4的报文在进入广域网中,会给报文再封装一个外层,这样就使得染色信息位于报文的内层中,设备4和设备5 在获取染色信息时,就需要解析报文内层,降低了转发效率。In the packet processing method shown in Figure 3, although end-to-end hop-by-hop quality detection can be implemented, new problems will be introduced. As shown in FIG. 3 , in this packet processing method, whether IPv4 or SRv6 is used as the forwarding layer protocol, the packet is dyed by using a coloring protocol corresponding to IPv4. Since IPv4 packets enter the WAN, the packet will be encapsulated with an outer layer, so that the coloring information is located in the inner layer of the packet. When device 4 and device 5 obtain the coloring information, they need to parse the inner layer of the packet. layer, which reduces the forwarding efficiency.
本申请实施例提供的报文处理方法,能够解决上述问题。下面,对本申请实施例提供的报文处理方法的系统架构进行简单说明。请参阅图4a,图4a为本申请实施例提供的报文处理方法的一个系统架构示意图。如图4a所示,报文处理系统可以包括一个分析器,多个网络设备(设备1至设备5)。园区内的网络设备(设备1至设备3)使用的转发层协议为IPv4,基于IPv4对应的染色协议对报文进行染色。广域网中的网络设备(设备4和设备5)使用的转发层协议为SRv6,基于iFIT的染色协议对报文进行染色。可选的,设备4和设备5可以作为网络侧边缘设备(provider edge,PE)。The packet processing method provided by the embodiment of the present application can solve the above problem. The following briefly describes the system architecture of the packet processing method provided by the embodiments of the present application. Please refer to FIG. 4a. FIG. 4a is a schematic diagram of a system architecture of a packet processing method provided by an embodiment of the present application. As shown in Fig. 4a, the message processing system may include one analyzer and multiple network devices (device 1 to device 5). The forwarding layer protocol used by the network devices (device 1 to device 3) in the campus is IPv4, and the packets are dyed based on the dyeing protocol corresponding to IPv4. The forwarding layer protocol used by the network devices (device 4 and device 5) in the WAN is SRv6, and the iFIT-based coloring protocol is used to color packets. Optionally, device 4 and device 5 may serve as network-side edge devices (provider edge, PE).
对于从设备1传输到设备5的流量,设备4可以根据策略,将选定的流量对应的IPv4染色信息映射到iFIT协议所定义的染色位中。类似的,对应从设备5传输到设备1的流量,设备4可以根据策略,将选定的流量对应的SRv6染色信息映射到IPv4对应的染色协议所定义的染色位中。For the traffic transmitted from the device 1 to the device 5, the device 4 can map the IPv4 coloring information corresponding to the selected traffic to the coloring bits defined by the iFIT protocol according to the policy. Similarly, corresponding to the traffic transmitted from device 5 to device 1, device 4 can map the SRv6 coloring information corresponding to the selected traffic to the coloring bits defined by the coloring protocol corresponding to IPv4 according to the policy.
设备1至设备5还可以根据各自的染色协议,对报文进行包统计操作和/或打时戳操作,然后按照统一的数据格式,向分析器上报操作结果,使得分析器根据操作结果,进行报文的丢包、时延和/或抖动检测。 Device 1 to Device 5 can also perform packet statistics operations and/or time stamping operations on the packets according to their respective dyeing protocols, and then report the operation results to the analyzer according to the unified data format, so that the analyzer can perform operations according to the operation results. Packet loss, delay and/or jitter detection of packets.
可选的,设备1至设备5还可以向分析器上报流量标识,使得分析器可以根据流量标识进行路径还原。Optionally, device 1 to device 5 may also report traffic identifiers to the analyzer, so that the analyzer can perform path restoration according to the traffic identifiers.
可选的,园区有多种情况,可以是办公楼,也可以是工厂,除此之外,还可以是其他的场景,例如果园,校园等,具体此处不做限定。Optionally, there are various situations in the park. It can be an office building or a factory. In addition, it can also be other scenarios, such as an orchard, a campus, etc., which are not limited here.
设备1至设备5是具有IP报文转发能力的设备,可以是路由器,也可以是交换机,除此之外,还可以是其他具有IP报文转发能力的设备,例如防火墙,具体此处不做限定。各个设备可以是相同的设备,也可以是不同的设备,具体此处不做限定。 Device 1 to Device 5 are devices capable of forwarding IP packets, which can be routers or switches. In addition, they can also be other devices capable of forwarding IP packets, such as firewalls, which are not described here. limited. Each device may be the same device or different devices, which are not specifically limited here.
可选的,本申请实施例中,在报文处理系统中能够进行染色信息映射的设备还可以有多个,如图4b所示,设备4至设备8均可以进行染色信息的映射。Optionally, in this embodiment of the present application, there may be multiple devices capable of mapping dyeing information in the message processing system. As shown in FIG. 4b , devices 4 to 8 can map dyeing information.
本申请实施例提供的报文处理方法可以应用于图4a或图4b所示的系统架构中。接下来,对本申请实施例提供的报文处理方法进行说明,请参阅图5,图5为本申请实施例提供的报文处理方法的一个流程示意图,包括:The packet processing method provided in this embodiment of the present application may be applied to the system architecture shown in FIG. 4a or 4b. Next, the packet processing method provided by the embodiment of the present application will be described. Please refer to FIG. 5 . FIG. 5 is a schematic flowchart of the packet processing method provided by the embodiment of the present application, including:
501.获取第一报文的染色信息,第一报文对应于第一转发层协议。501. Obtain coloring information of a first packet, where the first packet corresponds to a first forwarding layer protocol.
本申请实施例提供的报文处理方法应用于衔接两个不同的转发层协议的网络设备上,也即图6所示的设备2。以从设备1传输到设备3的流量,且设备1为起始节点,设备3为尾节点为例,对本申请实施例提供的报文处理方法进行说明。The packet processing method provided in the embodiment of the present application is applied to a network device connecting two different forwarding layer protocols, that is, the device 2 shown in FIG. 6 . Taking the traffic transmitted from the device 1 to the device 3, and the device 1 is the start node and the device 3 is the end node as an example, the packet processing method provided by the embodiment of the present application will be described.
设备1作为起始节点,可以对指定的流量,按照第一转发层协议对应的第一染色协议,对第一报文进行染色。具体来说可以是根据第一染色协议,对第一报文进行丢包和时延的染色位染色。设备1还可以根据染色信息,进行包统计和/或打时戳操作,并将得到的操作结果上报给分析器。As the starting node, the device 1 can color the first packet according to the first coloring protocol corresponding to the first forwarding layer protocol for the specified traffic. Specifically, according to the first coloring protocol, color bit coloring of packet loss and delay is performed on the first packet. The device 1 may also perform packet statistics and/or time stamping operations according to the dyeing information, and report the obtained operation results to the analyzer.
可选的,第一转发层协议有多种可能,可以是MPLS或者GRE,还可以是VxLAN或者IPv4,除此之外,还可以是其他能够定义报文格式的转发协议,例如IPv6,或者SRv6,根据实际 应用的需要进行确定,具体此处不做限定。Optionally, there are multiple possibilities for the first forwarding layer protocol, which can be MPLS or GRE, or VxLAN or IPv4. In addition, it can also be other forwarding protocols that can define packet formats, such as IPv6 or SRv6. , which is determined according to actual application requirements, which is not specifically limited here.
可选的,第一染色协议与第一转发层协议有关,也存在多种可能,若第一转发层协议为MPLS,GRE,VxLAN,IPv6,和SRv6中的任一项,则第一染色协议可以是iFIT,也可以是iOAM,除此之外,还可以是其他可以适用于第一转发层协议的染色协议,例如INT,具体此处不做限定。若第一转发层协议为IPv4,则第一染色协议可以是IPCA,还可以是其他可以适用于IPv4的染色协议,例如IPFPM,具体此处不做限定。Optionally, the first coloring protocol is related to the first forwarding layer protocol, and there are many possibilities. If the first forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the first coloring protocol It may be iFIT or iOAM. Besides, it may also be other dyeing protocols applicable to the first forwarding layer protocol, such as INT, which is not specifically limited here. If the first forwarding layer protocol is IPv4, the first coloring protocol may be IPCA, or may be other coloring protocols applicable to IPv4, such as IPFPM, which is not specifically limited here.
本申请实施例中,第一转发层协议有多种,可以根据实际应用的需要进行选择,在第一转发层协议确定的情况下,第一染色协议有多种选择,提升了本申请技术方案的灵活性和可实现性。In the embodiment of the present application, there are various first forwarding layer protocols, which can be selected according to the needs of practical applications. In the case where the first forwarding layer protocol is determined, there are various options for the first coloring protocol, which improves the technical solution of the present application. flexibility and achievability.
示例性的,当第一转发层协议为IPv4时,可以基于IPv4的染色协议(例如IPFPM染色协议),对Flag字段中的0号比特位(Bit0),或者ToS字段中的6号或者7号比特位(Bit6/7)进行染色。染色后IPv4报文的报文头如图7所示。在实际应用中,IPFPM染色协议还可以对IPv4报文头的其他位置进行染色,例如ToS字段中的4号至6号比特位中的任一位,具体此处不做限定。Exemplarily, when the first forwarding layer protocol is IPv4, a coloring protocol based on IPv4 (for example, the IPFPM coloring protocol) can be used for bit 0 (Bit0) in the Flag field, or No. 6 or No. 7 in the ToS field. Bits (Bit6/7) are colored. Figure 7 shows the packet header of the colored IPv4 packet. In practical applications, the IPFPM dyeing protocol may also dye other positions in the IPv4 packet header, for example, any of bits 4 to 6 in the ToS field, which is not specifically limited here.
示例性的,当第一转发层协议为MPLS或者IPv6等类似具备多层协议可以灵活增加报文头的信息时,可以基于iFIT的染色协议,对新增的报文头进行染色。如图8所示,MPLS报文中可以新增报文头IFIT,并对该报文头中的字段进行染色。染色后,加粗的L字段,用于进行丢包染色标记;加粗的D字段,用于进行时延染色标记,以及抖动分析。Exemplarily, when the first forwarding layer protocol is MPLS or IPv6 and the like, which has a multi-layer protocol capable of flexibly adding information in the packet header, the newly added packet header can be colored based on the iFIT coloring protocol. As shown in FIG. 8 , a packet header IFIT may be added to the MPLS packet, and the fields in the packet header can be colored. After coloring, the bold L field is used for packet loss coloring marking; the bold D field is used for delay coloring and jitter analysis.
网络设备在接收到第一报文时,可以基于第一报文对应的第一转发层协议,确定出第一转发层协议对应的第一染色协议,从而获取到第一报文的染色信息。When receiving the first packet, the network device may determine the first coloring protocol corresponding to the first forwarding layer protocol based on the first forwarding layer protocol corresponding to the first packet, so as to obtain coloring information of the first packet.
可选的,网络设备可以接收到对应于不同流量的多个报文,网络设备可以根据自身配置的流量选择策略,选择出需要进行检测的流量所对应的第一报文。由于流量选择策略并不是本发明关注的重点,此处不展开说明。Optionally, the network device may receive multiple packets corresponding to different traffic flows, and the network device may select the first packet corresponding to the traffic to be detected according to the traffic selection policy configured by the network device. Since the traffic selection strategy is not the focus of the present invention, it will not be described here.
502.将第一报文转换为第二报文,第二报文中包括染色信息,第二报文对应于第二转发层协议。502. Convert the first packet into a second packet, where the second packet includes coloring information, and the second packet corresponds to the second forwarding layer protocol.
网络设备在确定出第一报文的染色信息之后,可以将将第一报文转换为第二报文,并将该染色信息映射到第二报文中。具体来说,可以是根据第二转发层协议,确定出对应于第二转发层协议的第二染色协议。然后根据第二转发层协议构建第二报文,基于第二染色协议确定出第二报文的染色位,并将第一报文的染色信息映射到第二报文的染色位上。After determining the coloring information of the first packet, the network device may convert the first packet into the second packet, and map the coloring information to the second packet. Specifically, the second coloring protocol corresponding to the second forwarding layer protocol may be determined according to the second forwarding layer protocol. Then, the second packet is constructed according to the second forwarding layer protocol, the coloring bit of the second packet is determined based on the second coloring protocol, and the coloring information of the first packet is mapped to the coloring bit of the second packet.
需要注意的是,第二报文和第一报文对应于同一条流量,只是使用的转发层协议和染色协议有所不同,也就是说,第一报文和第二报文是一条流量在不同转发层协议中对应的不同格式的报文。It should be noted that the second packet and the first packet correspond to the same traffic, but the forwarding layer protocol and the coloring protocol used are different. That is to say, the first packet and the second packet are a traffic Packets in different formats corresponding to different forwarding layer protocols.
可选的,第二转发层协议有多种可能,可以是MPLS或者GRE,还可以是VxLAN或者IPv4,除此之外,还可以是其他能够定义报文格式的转发协议,例如IPv6,或者SRv6,根据实际应用的需要进行确定,具体此处不做限定。Optionally, there are multiple possibilities for the second forwarding layer protocol, which can be MPLS or GRE, or VxLAN or IPv4. In addition, it can also be other forwarding protocols that can define packet formats, such as IPv6 or SRv6. , which is determined according to actual application requirements, which is not specifically limited here.
可选的,第二染色协议与第二转发层协议有关,也存在多种可能,若第二转发层协议为MPLS,GRE,VxLAN,IPv6,和SRv6中的任一项,则第二染色协议可以是iFIT,也可以 是iOAM,除此之外,还可以是其他可以适用于第二转发层协议的染色协议,例如INT,具体此处不做限定。若第二转发层协议为IPv4,则第二染色协议可以是IPCA,还可以是其他可以适用于IPv4的染色协议,例如IPFPM,具体此处不做限定。Optionally, the second coloring protocol is related to the second forwarding layer protocol, and there are multiple possibilities. If the second forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the second coloring protocol It can be iFIT or iOAM, and other dyeing protocols that can be applied to the second forwarding layer protocol, such as INT, are not limited here. If the second forwarding layer protocol is IPv4, the second coloring protocol may be IPCA, or may be other coloring protocols applicable to IPv4, such as IPFPM, which is not specifically limited here.
本申请实施例中,第二转发层协议有多种,可以根据实际应用的需要进行选择,在第二转发层协议确定的情况下,第二染色协议有多种选择,提升了本申请技术方案的灵活性和可实现性。In the embodiment of the present application, there are various second forwarding layer protocols, which can be selected according to actual application needs. In the case where the second forwarding layer protocol is determined, there are various options for the second coloring protocol, which improves the technical solution of the present application. flexibility and achievability.
可选的,在较为常见的转发层协议的交互过程中,网络设备进行染色信息映射的策略可以是预先设定好的。其中,常见的转发层协议的交互可以是IPv4和SRv6,也可以是IPv4和和VxLAN,除此之外,还可以是其他的情况,例如IPv4和IPv6,具体此处不做限定。Optionally, in the relatively common interaction process of forwarding layer protocols, the strategy for mapping the coloring information by the network device may be preset. Among them, the common forwarding layer protocol interaction may be IPv4 and SRv6, or IPv4 and VxLAN, and other situations, such as IPv4 and IPv6, are not limited here.
503.发送第二报文。503. Send the second message.
网络设备在构建好第二报文后,可以将第二报文发送给下一跳设备。After constructing the second packet, the network device may send the second packet to the next-hop device.
本申请实施例中,网络设备在对不同转发层协议的报文进行封装时,可以获取到上一跳设备发送的第一报文中的染色信息,并在将第一报文转换成第二报文的过程中,将该染色信息映射到第二报文中,使得染色信息可以实现端到端的传输,从而可以实现端到端逐跳质量诊断,提升了报文检测的准确度。In this embodiment of the present application, when the network device encapsulates packets of different forwarding layer protocols, it can obtain the coloring information in the first packet sent by the previous hop device, and convert the first packet into the second packet. During the message process, the coloring information is mapped to the second message, so that the coloring information can be transmitted end-to-end, so that end-to-end hop-by-hop quality diagnosis can be realized, and the accuracy of the message detection is improved.
进一步的,在不同的转发层协议中,报文使用的是对应于该转发层协议的染色协议,使得网络设备无需解析报文内存就可以获取到染色信息,提升了转发效率。Further, in different forwarding layer protocols, the packet uses a coloring protocol corresponding to the forwarding layer protocol, so that the network device can obtain the coloring information without parsing the packet memory, which improves the forwarding efficiency.
可选的,在步骤501中,网络设备还可以获取到第一报文对应的流量标识。不同的转发层协议中,网络设备获取流量标识的方式不同。示例性的,若第一报文的为IPv4报文,则网络设备可以根据第一报文携带的五元组信息确定流量标识。除此之外,网络设备还可以基于其他的方式,确定出第一报文对应的流量标识,例如根据第一报文对应的三元组信息。具体此处不做限定。若第一报文的报文头为MPLS报文,则该报文头中的“Flow ID”字段便可以表示流量标识。除此之外,网络设备也可以根据该MPLS报文携带的其他信息确定第一设备的流量标识,例如该MPLS报文携带的五元组或者三元组信息,具体此处不做限定。网络设备获取流量标识的方式与转发层协议有关,可以根据实际应用的需要进行选择,具体此处不做限定。Optionally, in step 501, the network device may also acquire the traffic identifier corresponding to the first packet. In different forwarding layer protocols, network devices acquire traffic identifiers in different ways. Exemplarily, if the first packet is an IPv4 packet, the network device may determine the traffic identifier according to the quintuple information carried in the first packet. In addition, the network device may also determine the traffic identifier corresponding to the first packet based on other methods, for example, according to triplet information corresponding to the first packet. There is no specific limitation here. If the packet header of the first packet is an MPLS packet, the "Flow ID" field in the packet header can represent the flow identifier. In addition, the network device may also determine the traffic identifier of the first device according to other information carried in the MPLS packet, such as quintuple or triplet information carried in the MPLS packet, which is not specifically limited here. The manner in which the network device obtains the traffic identifier is related to the forwarding layer protocol, and can be selected according to the needs of the actual application, which is not specifically limited here.
可选的,在步骤501中,网络设备可以根据第一染色协议,对第一报文进行包统计操作和/或打时戳操作,得到第一操作结果。Optionally, in step 501, the network device may perform a packet counting operation and/or a time stamping operation on the first packet according to the first coloring protocol to obtain the first operation result.
可选的,在步骤502中,网络设备可以根据第二染色协议,对第二报文进行包统计操作和/或打时戳操作,得到第二操作结果。Optionally, in step 502, the network device may perform a packet counting operation and/or a time stamping operation on the second packet according to the second coloring protocol to obtain a second operation result.
需要注意的是,网络设备选择哪种染色协议进行包统计操作和/或打时戳操作,与染色协议的处理复杂程度相关。为了节约运算资源,网络设备常选择操作较为简单的染色协议,作为包统计操作和/或打时戳操作的依据,例如在SRv6转发层协议中,选择iFIT染色协议,即iFIT for SRv6;或者在VxLAN转发层协议中,选择iFIT染色协议,即iFIT for VxLAN;除此之外,还可以其他的选择,例如在IPv4转发层协议中,选择IPCA染色协议,具体此处不做限定。It should be noted that which dyeing protocol the network device chooses to perform the packet statistics operation and/or the time stamping operation is related to the processing complexity of the dyeing protocol. In order to save computing resources, network devices often choose a dyeing protocol with simpler operations as the basis for packet statistics operations and/or time stamping operations. For example, in the SRv6 forwarding layer protocol, select the iFIT dyeing protocol, i.e. iFIT for SRv6; In the VxLAN forwarding layer protocol, select the iFIT dyeing protocol, i.e. iFIT for VxLAN; in addition, you can also choose other options, such as the IPCA dyeing protocol in the IPv4 forwarding layer protocol, which is not limited here.
可选的,在步骤502之后,网络设备还可以将第一操作结果和流量标识中的至少一项, 或者第二操作结果和流量标识中的至少一项上报给分析器,使得分析进行丢包检测、时延检测、抖动检测和路径还原中的至少一项。Optionally, after step 502, the network device may also report at least one of the first operation result and the traffic identifier, or at least one of the second operation result and the traffic identifier to the analyzer, so that the analysis performs packet loss. At least one of detection, delay detection, jitter detection, and path restoration.
需要注意的是,同一个报文处理系统中的各个网络设备向分析器上报检测信息时,可以采用统一的格式,便于分析器进行分析和检测。其中,检测信息包括操作结果和流量标识中的至少一项,操作结果包括第一操作结果或第二操作结果。It should be noted that when each network device in the same packet processing system reports detection information to the analyzer, a unified format can be adopted, which is convenient for the analyzer to analyze and detect. The detection information includes at least one of an operation result and a traffic identifier, and the operation result includes a first operation result or a second operation result.
本申请实施例中,网络设备可以将操作结果上报给分析器,使得分析器可以根据操作结果进行丢包、时延和抖动检测。同时,网络设备还可以上报流量标识,使得分析器可以根据多个网络设备上报的流量标识还原出报文的转发路径。此外,网络设备可以选择基于何种染色协议,对报文进行包统计和打时戳操作,提升了本申请技术方案的灵活性。In this embodiment of the present application, the network device can report the operation result to the analyzer, so that the analyzer can perform packet loss, delay and jitter detection according to the operation result. At the same time, the network device can also report the traffic identifier, so that the analyzer can restore the forwarding path of the packet according to the traffic identifiers reported by the multiple network devices. In addition, the network device can select the coloring protocol based on which packet statistics and time stamping operations are performed on the packets, which improves the flexibility of the technical solution of the present application.
下面,对本申请实施例提供的报文处理装置进行说明。请参阅图9,图9为本申请实施例提供的报文处理装置的一个结构示意图,报文处理装置900包括:Next, the message processing apparatus provided by the embodiment of the present application will be described. Please refer to FIG. 9. FIG. 9 is a schematic structural diagram of a message processing apparatus provided by an embodiment of the present application. The message processing apparatus 900 includes:
处理单元902,用于:The processing unit 902 is used for:
获取第一报文的染色信息。其中,第一报文对应于第一转发层协议,染色信息用于检测报文。将第一报文转换为第二报文,第二报文中包括染色信息。其中,第二报文对应于第二转发层协议,第一报文和第二报文对应于同一流量,第一转发层协议与第二转发层协议不同。Obtain the coloring information of the first packet. The first packet corresponds to the first forwarding layer protocol, and the coloring information is used to detect the packet. The first message is converted into a second message, and the second message includes coloring information. The second packet corresponds to the second forwarding layer protocol, the first packet and the second packet correspond to the same traffic, and the first forwarding layer protocol is different from the second forwarding layer protocol.
发送单元903,用于发送第二报文。The sending unit 903 is configured to send the second message.
在一些可选的实施例中,处理单元902,具体用于根据第一转发层协议对应的第一染色协议,确定第一报文的染色信息。根据第二转发层协议对应的第二染色协议,确定第二报文的染色位。并将染色信息映射到染色位中,得到第二报文。In some optional embodiments, the processing unit 902 is specifically configured to determine the coloring information of the first packet according to the first coloring protocol corresponding to the first forwarding layer protocol. The coloring bit of the second packet is determined according to the second coloring protocol corresponding to the second forwarding layer protocol. The dyeing information is mapped to the dyeing bits to obtain a second message.
在一些可选的实施例中,第一转发层协议包括:MPLS,GRE,VxLAN,IPv4,IPv6,或者SRv6。In some optional embodiments, the first forwarding layer protocol includes MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
在一些可选的实施例中,若第一转发层协议为MPLS,GRE,VxLAN,IPv6,和SRv6中的任一项,则第一染色协议为iFIT,iOAM和INT中的任一项;若第一转发层协议为IPv4,则第一染色协议为IPCA或者IPFPM。In some optional embodiments, if the first forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the first coloring protocol is any one of iFIT, iOAM, and INT; if The first forwarding layer protocol is IPv4, and the first coloring protocol is IPCA or IPFPM.
在一些可选的实施例中,第二转发层协议包括:MPLS,GRE,VxLAN,IPv4,IPv6,或者SRv6。In some optional embodiments, the second forwarding layer protocol includes MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
在一些可选的实施例中,若第二转发层协议为MPLS,GRE,VxLAN,IPv6,和SRv6中的任一项,则第二染色协议为iFIT,iOAM和INT中的任一项;若第二转发层协议为IPv4,则第二染色协议为IPCA或者IPFPM。In some optional embodiments, if the second forwarding layer protocol is any one of MPLS, GRE, VxLAN, IPv6, and SRv6, the second coloring protocol is any one of iFIT, iOAM, and INT; if The second forwarding layer protocol is IPv4, and the second coloring protocol is IPCA or IPFPM.
在一些可选的实施例中,处理单元902,还用于获取第一报文对应的流量标识,并根据第一染色协议,对第一报文进行包统计操作和/或打时戳操作,得到第一操作结果。In some optional embodiments, the processing unit 902 is further configured to obtain a traffic identifier corresponding to the first packet, and perform a packet statistics operation and/or a time stamp operation on the first packet according to the first coloring protocol, Get the first operation result.
发送单元903,还用于上报第一操作结果以及流量标识中的至少一项;The sending unit 903 is further configured to report at least one of the first operation result and the traffic identifier;
在一些可选的实施例中,处理单元902,还用于获取第一报文对应的流量标识,并根据第二染色协议,对第二报文进行包统计操作和/或打时戳操作,得到第二操作结果。In some optional embodiments, the processing unit 902 is further configured to acquire a traffic identifier corresponding to the first packet, and perform a packet statistics operation and/or a time stamping operation on the second packet according to the second coloring protocol, Obtain the second operation result.
发送单元903,还用于上报第二操作结果以及流量标识中的至少一项。The sending unit 903 is further configured to report at least one of the second operation result and the traffic identifier.
在一些可选的实施例中,报文处理装置900还包括接收单元901,用于接收第一报文。In some optional embodiments, the packet processing apparatus 900 further includes a receiving unit 901, configured to receive the first packet.
报文处理装置900可以执行图4a至图6所示实施例中网络设备所执行的操作,此处不再赘述。The packet processing apparatus 900 may perform the operations performed by the network device in the embodiments shown in FIG. 4a to FIG. 6 , and details are not described herein again.
图10是本申请实施例提供的一种计算机设备的结构示意图,该计算机设备1000可以包括一个或一个以上处理器1001和存储器1005,该存储器1005中存储有一个或一个以上的应用程序或数据。10 is a schematic structural diagram of a computer device provided by an embodiment of the present application. The computer device 1000 may include one or more processors 1001 and a memory 1005, and the memory 1005 stores one or more application programs or data.
在实际应用中,处理器1001有多种可能,可以是中央处理器(central processing units,CPU),微处理器(micro processor unit,MPU),除此之外,还可以是其他的处理器,例如嵌入式处理器,单核处理器或者多核处理器,根据实际应用的需要进行选择,具体此处不做限定。In practical applications, the processor 1001 has many possibilities, which may be a central processing unit (CPU), a microprocessor (microprocessor unit, MPU), or other processors. For example, an embedded processor, a single-core processor or a multi-core processor can be selected according to actual application needs, which is not specifically limited here.
其中,存储器1005可以是易失性存储或持久存储。存储在存储器1005的程序可以包括一个或一个以上模块,每个模块可以用于执行服务器所执行的一系列操作。更进一步地,处理器1001可以设置为与存储器1005通信,在计算机设备1000上执行存储器1005中的一系列指令操作。Among them, the memory 1005 may be volatile storage or persistent storage. A program stored in memory 1005 may include one or more modules, each of which may be used to perform a series of operations performed by the server. Still further, the processor 1001 may be arranged to communicate with the memory 1005 to execute a series of instruction operations in the memory 1005 on the computer device 1000.
计算机设备1000还可以包括一个或一个以上电源1002,一个或一个以上有线或无线网络接口1003,一个或一个以上输入输出接口1004,和/或,一个或一个以上操作系统,例如Windows ServerTM,Mac OS XTM,UnixTM,LinuxTM,FreeBSDTM等。 Computer device 1000 may also include one or more power supplies 1002, one or more wired or wireless network interfaces 1003, one or more input and output interfaces 1004, and/or, one or more operating systems, such as Windows Server™, Mac OS XTM, UnixTM, LinuxTM, FreeBSDTM, etc.
处理器1001可以执行图4a至图6所示实施例中网络设备所执行的操作,此处不再赘述。The processor 1001 may perform the operations performed by the network device in the embodiments shown in FIG. 4a to FIG. 6 , which will not be repeated here.
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working process of the system, device and unit described above may refer to the corresponding process in the foregoing method embodiments, which will not be repeated here.
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the several embodiments provided in this application, it should be understood that the disclosed system, apparatus and method may be implemented in other manners. For example, the apparatus embodiments described above are only illustrative. For example, the division of the units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not implemented. On the other hand, the shown or discussed mutual coupling or direct coupling or communication connection may be through some interfaces, indirect coupling or communication connection of devices or units, and may be in electrical, mechanical or other forms.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。The units described as separate components may or may not be physically separated, and components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution in this embodiment.
另外,在本申请各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically alone, or two or more units may be integrated into one unit. The above-mentioned integrated units may be implemented in the form of hardware, or may be implemented in the form of software functional units.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部 分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(read-only memory,ROM)、随机存取存储器(random access memory,RAM)、磁碟或者光盘等各种可以存储程序代码的介质。The integrated unit, if implemented in the form of a software functional unit and sold or used as an independent product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solutions of the present application can be embodied in the form of software products in essence, or the parts that contribute to the prior art, or all or part of the technical solutions, and the computer software products are stored in a storage medium , including several instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), magnetic disk or optical disk and other media that can store program codes .

Claims (16)

  1. 一种报文处理方法,其特征在于,包括:A message processing method, comprising:
    获取第一报文的染色信息,所述第一报文对应于第一转发层协议,所述染色信息用于检测报文;acquiring coloring information of a first packet, where the first packet corresponds to a first forwarding layer protocol, and the coloring information is used to detect the packet;
    将所述第一报文转换为第二报文,所述第二报文中包括所述染色信息,所述第二报文对应于第二转发层协议,所述第一报文和所述第二报文对应于同一流量,所述第一转发层协议与所述第二转发层协议不同;converting the first packet into a second packet, where the second packet includes the coloring information, the second packet corresponds to the second forwarding layer protocol, the first packet and the The second packet corresponds to the same traffic, and the first forwarding layer protocol is different from the second forwarding layer protocol;
    发送所述第二报文。Send the second message.
  2. 根据权利要求1所述的方法,其特征在于,所述获取第一报文的染色信息包括:The method according to claim 1, wherein the acquiring the coloring information of the first packet comprises:
    根据所述第一转发层协议对应的第一染色协议,确定所述第一报文的所述染色信息;determining the coloring information of the first packet according to a first coloring protocol corresponding to the first forwarding layer protocol;
    所述将所述第一报文转换为第二报文,包括:The converting the first packet into the second packet includes:
    根据所述第二转发层协议对应的第二染色协议,确定所述第二报文的染色位;determining a coloring bit of the second packet according to a second coloring protocol corresponding to the second forwarding layer protocol;
    将所述染色信息映射到所述染色位中,得到所述第二报文。The coloring information is mapped to the coloring bit to obtain the second message.
  3. 根据权利要求1或2所述的方法,其特征在于,所述第一转发层协议包括:多协议标记交换协议MPLS,通用路由封装协议GRE,虚拟扩展局域网VxLAN,第四版网际协议IPv4,第六版网际协议IPv6,或者基于第六版网际协议的段路由SRv6。The method according to claim 1 or 2, wherein the first forwarding layer protocol comprises: Multiprotocol Label Switching Protocol (MPLS), Generic Routing Encapsulation Protocol (GRE), Virtual Extended Local Area Network (VxLAN), Internet Protocol Version 4 (IPv4), Internet Protocol version 6 IPv6, or segment routing SRv6 based on Internet Protocol version 6.
  4. 根据权利要求3所述的方法,其特征在于,若所述第一转发层协议为所述MPLS,所述GRE,所述VxLAN,所述IPv6,和所述SRv6中的任一项,则所述第一染色协议为随路检测iFIT,带内操作管理维护iOAM和带内网络遥测INT中的任一项;The method according to claim 3, wherein if the first forwarding layer protocol is any one of the MPLS, the GRE, the VxLAN, the IPv6, and the SRv6, the The first staining protocol is any one of iFIT for on-path detection, iOAM for in-band operation management and maintenance, and in-band network telemetry INT;
    若所述第一转发层协议为所述IPv4,则所述第一染色协议为网络包守恒算法IPCA或者IP流性能测量IPFPM。If the first forwarding layer protocol is the IPv4, the first coloring protocol is the network packet conservation algorithm IPCA or the IP flow performance measurement IPFPM.
  5. 根据权利要求1或2所述的方法,其特征在于,所述第二转发层协议包括:MPLS,GRE,VxLAN,IPv4,IPv6,或者SRv6。The method according to claim 1 or 2, wherein the second forwarding layer protocol comprises: MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
  6. 根据权利要求5所述的方法,其特征在于,若所述第二转发层协议为所述MPLS,所述GRE,所述VxLAN,所述IPv6,和所述SRv6中的任一项,则所述第二染色协议为iFIT,iOAM和INT中的任一项;The method according to claim 5, wherein if the second forwarding layer protocol is any one of the MPLS, the GRE, the VxLAN, the IPv6, and the SRv6, the The second staining protocol is any one of iFIT, iOAM and INT;
    若所述第二转发层协议为所述IPv4,则所述第二染色协议为IPCA或者IPFPM。If the second forwarding layer protocol is the IPv4, the second coloring protocol is IPCA or IPFPM.
  7. 根据权利要求2至6中任一项所述的方法,其特征在于,所述方法还包括:The method according to any one of claims 2 to 6, wherein the method further comprises:
    获取所述第一报文对应的流量标识;obtaining the traffic identifier corresponding to the first packet;
    根据所述第一染色协议,对所述第一报文进行包统计操作和/或打时戳操作,得到第一操作结果;According to the first dyeing protocol, performing a packet statistics operation and/or a time stamping operation on the first message to obtain a first operation result;
    上报所述第一操作结果以及所述流量标识中的至少一项;reporting at least one of the first operation result and the traffic identifier;
    或者,or,
    获取所述第一报文对应的所述流量标识;obtaining the traffic identifier corresponding to the first packet;
    根据所述第二染色协议,对所述第二报文进行包统计操作和/或打时戳操作,得到第二操作结果;According to the second dyeing protocol, performing a packet statistics operation and/or a time stamping operation on the second packet to obtain a second operation result;
    上报所述第二操作结果以及所述流量标识中的至少一项。At least one of the second operation result and the traffic identifier is reported.
  8. 一种报文处理装置,其特征在于,包括:A message processing device, comprising:
    处理单元,用于:Processing unit for:
    获取第一报文的染色信息,所述第一报文对应于第一转发层协议,所述染色信息用于检测报文;acquiring coloring information of a first packet, where the first packet corresponds to a first forwarding layer protocol, and the coloring information is used to detect the packet;
    将所述第一报文转换为所述第二报文,所述第二报文中包括所述染色信息,所述第二报文对应于第二转发层协议,所述第一报文和所述第二报文对应于同一流量,所述第一转发层协议与所述第二转发层协议不同;Converting the first packet into the second packet, where the second packet includes the coloring information, the second packet corresponds to the second forwarding layer protocol, and the first packet and The second packet corresponds to the same flow, and the first forwarding layer protocol is different from the second forwarding layer protocol;
    发送单元,用于发送所述第二报文。a sending unit, configured to send the second message.
  9. 根据权利要求8所述的报文处理装置,其特征在于,所述处理单元,具体用于:The message processing apparatus according to claim 8, wherein the processing unit is specifically configured to:
    根据所述第一转发层协议对应的第一染色协议,确定所述第一报文的所述染色信息;determining the coloring information of the first packet according to a first coloring protocol corresponding to the first forwarding layer protocol;
    根据所述第二转发层协议对应的第二染色协议,确定所述第二报文的染色位;determining a coloring bit of the second packet according to a second coloring protocol corresponding to the second forwarding layer protocol;
    将所述染色信息映射到所述染色位中,得到所述第二报文。The coloring information is mapped to the coloring bit to obtain the second message.
  10. 根据权利要求8或9所述的报文处理装置,其特征在于,所述第一转发层协议包括:MPLS,GRE,VxLAN,IPv4,IPv6,或者SRv6。The packet processing apparatus according to claim 8 or 9, wherein the first forwarding layer protocol comprises: MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
  11. 根据权利要求10所述的报文处理装置,其特征在于,若所述第一转发层协议为所述MPLS,所述GRE,所述VxLAN,所述IPv6,和所述SRv6中的任一项,则所述第一染色协议为iFIT,iOAM和INT中的任一项;The packet processing apparatus according to claim 10, wherein if the first forwarding layer protocol is any one of the MPLS, the GRE, the VxLAN, the IPv6, and the SRv6 , then the first staining protocol is any one of iFIT, iOAM and INT;
    若所述第一转发层协议为所述IPv4,则所述第一染色协议为IPCA或者IPFPM。If the first forwarding layer protocol is the IPv4, the first coloring protocol is IPCA or IPFPM.
  12. 根据权利要求8或9所述的报文处理装置,其特征在于,所述第二转发层协议包括:MPLS,GRE,VxLAN,IPv4,IPv6,或者SRv6。The packet processing apparatus according to claim 8 or 9, wherein the second forwarding layer protocol comprises: MPLS, GRE, VxLAN, IPv4, IPv6, or SRv6.
  13. 根据权利要求12所述的报文处理装置,其特征在于,若所述第二转发层协议为所述MPLS,所述GRE,所述VxLAN,所述IPv6,和所述SRv6中的任一项,则所述第二染色协议为iFIT,iOAM和INT中的任一项;The packet processing apparatus according to claim 12, wherein if the second forwarding layer protocol is any one of the MPLS, the GRE, the VxLAN, the IPv6, and the SRv6 , then the second staining protocol is any one of iFIT, iOAM and INT;
    若所述第二转发层协议为所述IPv4,则所述第二染色协议为IPCA或者IPFPM。If the second forwarding layer protocol is the IPv4, the second coloring protocol is IPCA or IPFPM.
  14. 根据权利要求9至13中任一项所述的报文处理装置,其特征在于,所述处理单元,还用于:The message processing apparatus according to any one of claims 9 to 13, wherein the processing unit is further configured to:
    获取所述第一报文对应的流量标识;obtaining the traffic identifier corresponding to the first packet;
    根据所述第一染色协议,对所述第一报文进行包统计操作和/或打时戳操作,得到第一操作结果;According to the first dyeing protocol, performing a packet statistics operation and/or a time stamping operation on the first message to obtain a first operation result;
    所述发送单元,还用于上报所述第一操作结果以及所述流量标识中的至少一项;The sending unit is further configured to report at least one of the first operation result and the traffic identifier;
    或者,or,
    所述处理单元,还用于:The processing unit is also used for:
    获取所述第一报文对应的所述流量标识;obtaining the traffic identifier corresponding to the first packet;
    根据所述第二染色协议,对所述第二报文进行包统计操作和/或打时戳操作,得到第二操作结果;According to the second dyeing protocol, performing a packet statistics operation and/or a time stamping operation on the second packet to obtain a second operation result;
    所述发送单元,还用于上报所述第二操作结果以及所述流量标识中的至少一项。The sending unit is further configured to report at least one of the second operation result and the traffic identifier.
  15. 一种计算机设备,其特征在于,包括:A computer equipment, characterized in that, comprising:
    处理器、存储器、输入输出接口以及总线;processor, memory, input and output interface and bus;
    所述处理器、所述存储器、所述输入输出接口与所述总线相连;the processor, the memory, and the input and output interface are connected to the bus;
    所述处理器用于执行权利要求1至7中任一项所述的方法。The processor is adapted to perform the method of any one of claims 1 to 7.
  16. 一种计算机可读存储介质,其特征在于,所述计算机可读存储介质中保存有程序,当所述计算机执行所述程序时,执行权利要求1至7中任一项所述的方法。A computer-readable storage medium, wherein a program is stored in the computer-readable storage medium, and when the computer executes the program, the method according to any one of claims 1 to 7 is executed.
PCT/CN2021/139564 2021-03-29 2021-12-20 Packet processing method and related device WO2022206050A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202110333960.X 2021-03-29
CN202110333960.XA CN115134273A (en) 2021-03-29 2021-03-29 Message processing method and related equipment

Publications (1)

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

Family

ID=83375773

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/139564 WO2022206050A1 (en) 2021-03-29 2021-12-20 Packet processing method and related device

Country Status (2)

Country Link
CN (1) CN115134273A (en)
WO (1) WO2022206050A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737269A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 A kind of packaging method, device and node
CN109743340A (en) * 2019-04-04 2019-05-10 华为技术有限公司 The method and network equipment of Message processing
CN110213148A (en) * 2019-05-22 2019-09-06 腾讯科技(深圳)有限公司 A kind of method, system and device of data transmission
CN113556259A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Message processing method and device based on flow detection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109756521B (en) * 2019-03-21 2021-07-13 浪潮云信息技术股份公司 NSH message processing method, device and system
CN111817985B (en) * 2019-04-10 2024-02-02 华为技术有限公司 Service processing method and device
CN111698161B (en) * 2020-04-01 2022-09-02 北京华三通信技术有限公司 Message processing method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108737269A (en) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 A kind of packaging method, device and node
CN109743340A (en) * 2019-04-04 2019-05-10 华为技术有限公司 The method and network equipment of Message processing
CN110213148A (en) * 2019-05-22 2019-09-06 腾讯科技(深圳)有限公司 A kind of method, system and device of data transmission
CN113556259A (en) * 2020-04-24 2021-10-26 华为技术有限公司 Message processing method and device based on flow detection

Also Published As

Publication number Publication date
CN115134273A (en) 2022-09-30

Similar Documents

Publication Publication Date Title
Tan et al. In-band network telemetry: A survey
US10616091B2 (en) Exploratory linktrace operations in a computer network
US8774045B2 (en) Packet loss detecting method and apparatus, and router
CN113079091B (en) Active stream following detection method, network equipment and communication system
CN107852365B (en) Method and apparatus for dynamic VPN policy model
US10547504B2 (en) Method and system for measuring quality of service running on terminal, and device
WO2020233192A1 (en) Method and apparatus for providing service for service flow
US9577905B2 (en) Packet tracing through control and data plane operations
US11497077B2 (en) Method and apparatus for port management of ethernet bridges
US20230078123A1 (en) Method for Forwarding Packet in SRV6 Service Function Chain and SF Device
US9014013B2 (en) Packet tracing through control and data plane operations using SNMP trap commands
US20230006906A1 (en) In-situ flow detection method and apparatus
WO2021213045A1 (en) Packet processing method and device based on in-situ flow detection
EP2509261B1 (en) Monitoring of a network element in a packet-switched network
US8948032B1 (en) Pseudowire packet loss measurement
EP3461080B1 (en) Topology determination method, message response method, controller and switch
US20230327983A1 (en) Performance measurement in a segment routing network
WO2022206050A1 (en) Packet processing method and related device
EP3902228B1 (en) Data message transmission methods
WO2023284577A1 (en) Method and apparatus for detecting data stream
D'Antonio et al. An architecture for automatic configuration of integrated networks
CN115225333A (en) TSN encryption method and system based on software definition
CN117792884A (en) Port linkage monitoring group generation method and device, electronic equipment and storage medium
CN114598636A (en) Traffic scheduling method, equipment and system
Jain Introduction to OpenFlow

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: 21934686

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21934686

Country of ref document: EP

Kind code of ref document: A1