Method and apparatus for packet loss statistics of multi-layer protocol stack

CN115208966BActive Publication Date: 2026-08-18CHINA TELECOM CORP LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202110400053.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-04-14
Publication Date
2026-08-18
Estimated Expiration
2041-04-14

AI Technical Summary

Technical Problem

然而,该实现方法中的收发报文计数器数值是某一网络链路的收发报文数,因此,实现的丢包统计仅仅是对某一条链路进行统一的统计,并未针对特定的上层协议业务报文进行统计

Benefits of technology

[0014] In this embodiment of the disclosure, by extending the Y.1731 protocol, measurement frames containing message values ​​of a specified message layer are sent and received, and packet loss statistics are performed on messages of a specified layer. This solves the problem that the existing Y.1731 protocol can only perform unified packet loss statistics on all messages on the link, and realizes packet loss statistics for multi-layer protocol messages on the network link.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115208966B_ABST
    Figure CN115208966B_ABST
Patent Text Reader

Abstract

The disclosure discloses a kind of multi-layer protocol stack packet loss statistics method and device, it is related to network technology and security field.The method comprises: source end sends the packet loss measurement message with specified message layer number field and the sending message value of specified message layer number to destination end;Receive the packet loss measurement response message with specified message layer number field and the receiving message value of specified message layer number sent by destination end;And according to the sending message value and receiving message value of specified message layer number, packet loss statistics is carried out.The disclosure solves the problem that existing Y.1731 protocol can only carry out unified packet loss statistics on all messages on link, realizes the packet loss statistics of network link multi-layer protocol message.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of network technology and security, and in particular to a method and apparatus for packet loss statistics of a multi-layer protocol stack. Background Technology

[0002] The Y.1731 protocol, proposed by the ITU-T standards organization, is widely used for performance monitoring in Ethernet OAM (Operation Administration and Maintenance). Packet loss statistics are achieved by exchanging frames containing send / receive packet counter values ​​with network peers. However, the send / receive packet counter values ​​in this implementation represent the number of sent / received packets on a specific network link. Therefore, the implemented packet loss statistics only perform uniform statistics on a single link and do not target specific upper-layer protocol service packets. However, in actual network operation, network maintenance requires monitoring packet loss across multiple network layers, thus necessitating packet loss statistics for various upper-layer protocol packets in the OSI seven-layer model. Summary of the Invention

[0003] One technical problem this disclosure aims to solve is to provide a method and apparatus for packet loss statistics of multi-layer protocol stacks, which can realize packet loss statistics for various upper-layer protocol messages.

[0004] According to one aspect of this disclosure, a multi-layer protocol stack packet loss statistics method is proposed, comprising: sending a packet loss measurement message carrying a specified message layer digital segment and a specified message layer number of transmitted message to a destination; receiving a packet loss measurement response message carrying a specified message layer digital segment and a specified message layer number of received message sent by the destination; and performing packet loss statistics based on the transmitted message value and the received message value of the specified message layer number.

[0005] In some embodiments, the source identifies the layer number to which each service message belongs; reads the transmitted message value of the specified message layer using an extended local counter; and fills the transmitted message value of the specified message layer into the packet loss measurement message in accordance with the Y.1731 protocol.

[0006] In some embodiments, the destination identifies the layer number to which each service message belongs; reads the received message value of the specified message layer using an extended local counter based on the specified message layer number field; and fills the received message value of the specified message layer into the packet loss measurement response message in accordance with the Y.1731 protocol.

[0007] In some embodiments, when performing packet loss statistics for a dual-end multi-layer protocol stack, the messages sent by both the source and destination ends carry a specified message layer digital field, as well as the sent and received message values ​​of the local end and the peer end.

[0008] According to another aspect of this disclosure, a multi-layer protocol stack packet loss statistics device is also proposed, comprising: a measurement message sending unit configured to send a packet loss measurement message carrying a specified message layer digital segment and a specified message layer number to a destination; an acknowledgment message receiving unit configured to receive a packet loss measurement acknowledgment message carrying a specified message layer digital segment and a specified message layer number to a destination; and a packet loss statistics unit configured to perform packet loss statistics based on the specified message layer number and the received message number.

[0009] In some embodiments, the multi-layer protocol stack packet loss statistics device further includes: a message layer identification unit configured to identify the layer to which each service message belongs; an extended local counter configured to read the value of the sent message at a specified message layer; and a message filling unit configured to fill the sent message value at a specified message layer into the packet loss measurement message according to the Y.1731 protocol.

[0010] In some embodiments, the multi-layer protocol stack packet loss statistics device further includes: a message layer number identification unit configured to identify the layer number to which each service message belongs; an extended local counter configured to read the received message value of a specified message layer according to a specified message layer number segment; and a message filling unit configured to fill the received message value of a specified message layer into the packet loss measurement response message according to the Y.1731 protocol.

[0011] In some embodiments, when performing packet loss statistics for a dual-end multi-layer protocol stack, the messages sent by both the source and destination ends carry a specified message layer digital field, as well as the sent and received message values ​​of the local end and the peer end.

[0012] According to another aspect of this disclosure, a multi-layer protocol stack packet loss statistics device is also proposed, comprising: a memory; and a processor coupled to the memory, the processor being configured to execute the multi-layer protocol stack packet loss statistics method as described above based on instructions stored in the memory.

[0013] In some embodiments, a non-transitory computer-readable storage medium stores computer program instructions that, when executed by a processor, implement the multi-layer protocol stack packet loss statistics method described above.

[0014] In this embodiment of the disclosure, by extending the Y.1731 protocol, measurement frames containing message values ​​of a specified message layer are sent and received, and packet loss statistics are performed on messages of a specified layer. This solves the problem that the existing Y.1731 protocol can only perform unified packet loss statistics on all messages on the link, and realizes packet loss statistics for multi-layer protocol messages on the network link.

[0015] Other features and advantages of this disclosure will become clear from the following detailed description of exemplary embodiments with reference to the accompanying drawings. Attached Figure Description

[0016] The accompanying drawings, which form part of this specification, illustrate embodiments of this disclosure and, together with the specification, serve to explain the principles of this disclosure.

[0017] This disclosure will become clearer with reference to the accompanying drawings and the following detailed description, wherein:

[0018] Figure 1 This is a flowchart illustrating some embodiments of the multi-layer protocol stack packet loss statistics method disclosed herein.

[0019] Figure 2 This is a flowchart illustrating some other embodiments of the multi-layer protocol stack packet loss statistics method disclosed herein.

[0020] Figure 3 This is a schematic diagram of some embodiments of the message fields of this disclosure.

[0021] Figure 4 This is a schematic diagram of some embodiments of the message fields of this disclosure.

[0022] Figure 5 This is a schematic diagram of some embodiments of the message fields of this disclosure.

[0023] Figure 6 This is a schematic diagram of the structure of some embodiments of the multi-layer protocol stack packet loss statistics device disclosed herein.

[0024] Figure 7 This is a schematic diagram of the structure of some other embodiments of the multi-layer protocol stack packet loss statistics device disclosed herein.

[0025] Figure 8 This is a schematic diagram of the structure of some other embodiments of the multi-layer protocol stack packet loss statistics device disclosed herein. Detailed Implementation

[0026] Various exemplary embodiments of the present disclosure will now be described in detail with reference to the accompanying drawings. It should be noted that, unless otherwise specifically stated, the relative arrangement, numerical expressions, and values ​​of the components and steps set forth in these embodiments do not limit the scope of the present disclosure.

[0027] At the same time, it should be understood that, for ease of description, the dimensions of the various parts shown in the accompanying drawings are not drawn according to actual scale.

[0028] The following description of at least one exemplary embodiment is merely illustrative and is in no way intended to limit this disclosure or its application or use.

[0029] Techniques, methods, and equipment known to those skilled in the art may not be discussed in detail, but where appropriate, such techniques, methods, and equipment should be considered part of the specification.

[0030] In all examples shown and discussed herein, any specific values ​​should be interpreted as merely exemplary and not as limitations. Therefore, other examples of exemplary embodiments may have different values.

[0031] It should be noted that similar labels and letters in the following figures indicate similar items; therefore, once an item is defined in one figure, it does not need to be discussed further in subsequent figures.

[0032] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with specific embodiments and the accompanying drawings.

[0033] Figure 1 This is a flowchart illustrating some embodiments of the multi-layer protocol stack packet loss statistics method disclosed herein.

[0034] In step 110, the source sends a packet loss measurement message to the destination, which carries a specified message layer number field and the value of the sent message for the specified message layer number.

[0035] In some embodiments, the source identifies the layer number to which each service packet belongs. Then, the local counter is extended, and the value of the sent packets for the specified packet layer is read using the extended local counter. According to the Y.1731 protocol, the value of the sent packets for the specified packet layer is filled into the packet loss measurement packet.

[0036] In step 120, a packet loss measurement response message is received from the destination, carrying a received message value with a specified message layer number field and a specified message layer number.

[0037] In some embodiments, after receiving a packet loss measurement message, the destination identifies the layer number to which each service message belongs, reads the received message value of the specified message layer number using an extended local counter according to the specified message layer number field, and fills the received message value of the specified message layer number into the packet loss measurement response message in accordance with the Y.1731 protocol.

[0038] In step 130, packet loss statistics are performed based on the number of sent and received packets at the specified message layer.

[0039] In some embodiments, the packet loss statistics algorithm of the Y.1731 protocol is used to calculate packet loss for packets at a specified layer.

[0040] In the above embodiments, by extending the Y.1731 protocol, measurement frames containing message values ​​of a specified message layer are sent and received, and packet loss statistics are performed on messages of a specified layer, thereby achieving the purpose of quality monitoring of network multi-layer protocol messages.

[0041] Figure 2 This is a flowchart illustrating some other embodiments of the multi-layer protocol stack packet loss statistics method disclosed herein.

[0042] In step 210, the source end configures a packet loss statistics command for a specified layer via command line.

[0043] In step 220, the transmitted message value for the specified message layer is read using an extended local counter.

[0044] In some embodiments, the source and destination identify the layer number to which the service message belongs. When starting the Y.1731 packet loss statistics measurement, the source uses an extended local counter to read the sent message value for the specified message layer.

[0045] In step 230, the source end fills the packet loss statistics measurement frame according to the Y.1731 protocol.

[0046] In step 240, the specified message layer digital segment is filled into the packet loss statistics measurement frame according to the configuration command.

[0047] In some embodiments, such as Figure 3 As shown, a LayerTag field is added to the packet loss measurement message. This field is used to indicate the specified message layer to be counted.

[0048] In step 250, a packet loss statistics measurement frame with a specified message layer number is sent.

[0049] In step 260, after the destination receives the packet loss statistics measurement frame, it parses the message to obtain the specified message layer digital segment.

[0050] In step 270, the received message value of the specified message layer number is read using an extended local counter based on the specified message layer number field.

[0051] In step 280, the received message value of the specified message layer is filled into the packet loss measurement response message in accordance with the Y.1731 protocol.

[0052] In some embodiments, such as Figure 4 As shown, a LayerTag field is added to the packet loss measurement response message. This field is used to indicate the number of specified packet layers that have been counted.

[0053] In some embodiments, when performing packet loss statistics for a dual-end multi-layer protocol stack, the messages sent by both the source and destination ends carry a specified message layer digital field, as well as the sent and received message values ​​of the local end and the peer end.

[0054] like Figure 5 As shown, the source and destination exchange connectivity detection messages, which also carry a specified message layer digital segment.

[0055] In step 290, the destination sends a packet loss measurement response message to the source.

[0056] In step 2100, the source end calculates packet loss by comparing the transmitted and received message values ​​at a specified layer with those of the peer end using the packet loss statistics algorithm of the Y.1731 protocol.

[0057] In the above embodiments, when sending and receiving messages, the layer to which the message belongs is identified, the local counter is extended to record the number of messages sent and received at each layer, and a message layer marker field is added to the test message. By sending and receiving measurement frames containing specific layer counter values ​​and identifying the message layer, and by performing packet loss statistics for sending and receiving messages at specific layers, the problem that the Y.1731 protocol can only perform unified packet loss statistics for all messages on the link is solved, and packet loss statistics for multi-layer protocol messages on the network link are realized.

[0058] Figure 6 This is a schematic diagram illustrating the structure of some embodiments of the multi-layer protocol stack packet loss statistics device disclosed herein. The device includes: a measurement message sending unit 610, an acknowledgment message receiving unit 620, and a packet loss statistics unit 630.

[0059] The measurement message sending unit 610 is configured to send a packet loss measurement message to the destination, which carries a specified message layer digital field and a specified message layer number.

[0060] In some embodiments, the apparatus further includes a message layer identification unit 710, an extended local counter 720, and a message filling unit 730.

[0061] The message layer identification unit 710 is configured to identify the layer to which each service message belongs; the extended local counter 720 is configured to read the value of the sent message of the specified message layer; and the message filling unit 730 is configured to fill the sent message value of the specified message layer into the packet loss measurement message in accordance with the Y.1731 protocol.

[0062] The response message receiving unit 620 is configured to receive a packet loss measurement response message sent by the destination, which carries a specified message layer digital field and a specified message layer number.

[0063] In some embodiments, the message layer identification unit 710 is configured to identify the layer to which each service message belongs; the extended local counter 720 is configured to read the received message value of a specified message layer according to a specified message layer number field; and the message filling unit 730 is configured to fill the received message value of a specified message layer into the packet loss measurement response message in accordance with the Y.1731 protocol.

[0064] The packet loss statistics unit 630 is configured to perform packet loss statistics based on the number of sent and received packets at a specified message layer.

[0065] In the above embodiments, by extending the Y.1731 protocol, measurement frames containing message values ​​of a specified message layer are sent and received, and packet loss statistics are performed on messages of a specified layer, thereby achieving the purpose of quality monitoring of network multi-layer protocol messages.

[0066] Figure 8 This is a schematic diagram illustrating the structure of some other embodiments of the multi-layer protocol stack packet loss statistics device disclosed herein. The device 800 includes a memory 810 and a processor 820. The memory 810 can be a disk, flash memory, or any other non-volatile storage medium. The memory is used to store... Figure 1 , 2 The instructions in the corresponding embodiment. Processor 820 is coupled to memory 810 and may be implemented as one or more integrated circuits, such as a microprocessor or microcontroller. Processor 820 is used to execute instructions stored in memory.

[0067] In some embodiments, the processor 820 is coupled to the memory 810 via a BUS bus 830. The device 800 can also be connected to an external storage system 850 via a storage interface 840 to access external data, and can also be connected to a network or another computer system (not shown) via a network interface 860. Further details are omitted here.

[0068] In this embodiment, by storing data instructions in a memory and then processing the instructions by a processor, packet loss statistics for multi-layer protocol messages in network links can be achieved.

[0069] In other embodiments, a computer-readable storage medium stores computer program instructions that are implemented when executed by a processor. Figure 1 , 2The steps of the method in the corresponding embodiments are described. Those skilled in the art will understand that embodiments of this disclosure can be provided as methods, apparatus, or computer program products. Therefore, this disclosure can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this disclosure can take the form of a computer program product embodied on one or more computer-usable non-transitory storage media (including, but not limited to, disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0070] This disclosure is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this disclosure. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create a machine for implementing the flowchart illustrations. Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.

[0071] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.

[0072] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.

[0073] This concludes the detailed description of the present disclosure. To avoid obscuring the concept of the disclosure, some details known in the art have not been described. Those skilled in the art will fully understand how to implement the technical solutions disclosed herein based on the above description.

[0074] While specific embodiments of this disclosure have been described in detail by way of example, those skilled in the art should understand that the examples are for illustrative purposes only and not intended to limit the scope of this disclosure. Those skilled in the art should understand that modifications can be made to the above embodiments without departing from the scope and spirit of this disclosure. The scope of this disclosure is defined by the appended claims.

Claims

1. A method for packet loss statistics in a multi-layer protocol stack, comprising: The source end identifies the layer to which each service message belongs, uses an extended local counter to read the sent message value of the specified message layer, and fills the sent message value of the specified message layer into the packet loss measurement message according to the Y.1731 protocol. The source end sends a packet loss measurement message to the destination end, which carries a specified message layer digital segment and the specified message layer number. The destination end receives a packet loss measurement response message carrying the specified message layer digital segment and the received message value of the specified message layer number. The destination end identifies the layer number to which each service message belongs, reads the received message value of the specified message layer number using an extended local counter according to the specified message layer digital segment, and fills the received message value of the specified message layer number into the packet loss measurement response message according to the Y.1731 protocol. as well as Packet loss statistics are performed based on the number of sent and received packets at the specified packet layer.

2. The multi-layer protocol stack packet loss statistics method according to claim 1, wherein, When performing packet loss statistics for a dual-end multi-layer protocol stack, the messages sent by both the source and destination ends carry the specified message layer digital field, as well as the sent and received message values ​​of the local end and the peer end.

3. A multi-layer protocol stack packet loss statistics device, comprising: The message layer identification unit is configured to identify the layer to which each service message belongs; An extended local counter is configured to read the value of a sent message at a specified message layer. as well as The message filling unit is configured to fill the packet loss measurement message with the sent message value of the specified message layer according to the Y.1731 protocol; The measurement message sending unit is configured to send a packet loss measurement message to the destination end, which carries a specified message layer digital segment and the specified message layer number. The response message receiving unit is configured to receive a packet loss measurement response message sent by the destination end, which carries the received message value of the specified message layer digital segment and the specified message layer number. The destination end identifies the layer number to which each service message belongs, reads the received message value of the specified message layer number using an extended local counter according to the specified message layer digital segment, and fills the received message value of the specified message layer number into the packet loss measurement response message according to the Y.1731 protocol. as well as The packet loss statistics unit is configured to perform packet loss statistics based on the number of sent and received packets at the specified message layer.

4. The multi-layer protocol stack packet loss statistics device according to claim 3, wherein, When performing packet loss statistics for dual-end multi-layer protocol stacks, the messages sent by both the source and destination ends carry the specified message layer digital field, as well as the sent and received message values ​​of the local end and the peer end.

5. A multi-layer protocol stack packet loss statistics device, comprising: Memory; as well as A processor coupled to the memory, the processor being configured to execute the multi-layer protocol stack packet loss statistics method as described in any one of claims 1 to 2 based on instructions stored in the memory.

6. A non-transitory computer-readable storage medium having stored thereon computer program instructions that, when executed by a processor, implement the multi-layer protocol stack packet loss statistics method according to any one of claims 1 to 2.

Citation Information

Patent Citations

  • Method, device and system for Ethernet packet loss measurement

    CN102984018A

  • Method and device for measuring packet loss

    CN105634840A