Alternating marker measurement period switching method, apparatus, network device, and storage medium

By using an ASIC chip in network devices to automatically switch IOAM measurement cycles, the problem of insufficient accuracy in traditional IOAM measurement is solved, achieving high-precision packet loss and latency measurement while saving CPU resources.

CN116668344BActive Publication Date: 2026-04-10SUZHOU CENTEC COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
SUZHOU CENTEC COMM CO LTD
Filing Date
2023-05-23
Publication Date
2026-04-10

AI Technical Summary

Technical Problem

In traditional IOAM measurements, packet loss and insufficient accuracy in delay measurement are caused by the switching of measurement cycles by the control equipment.

Method used

By using ASIC chips in network devices and automatically switching IOAM measurement cycles based on a preset configuration information table, autonomous measurement cycle control of network nodes is achieved, avoiding the cycle switching control delay of management devices and improving measurement accuracy.

Benefits of technology

It improves the accuracy of packet loss and latency measurements in IOAM, saves upper-layer CPU resources of network devices, reduces protocol parsing time, and ensures the accuracy and efficiency of measurements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116668344B_ABST
    Figure CN116668344B_ABST
Patent Text Reader

Abstract

The embodiment of the application provides an alternative marking measurement period switching method and device, network equipment and a storage medium, and belongs to the technical field of communication. When a measurement instruction issued by a control device is received, the network equipment starts measurement period timing based on configuration information table through an ASIC chip, and performs IOAM measurement on specified traffic in a measurement period. When the measurement period timing reaches a target time length and no end instruction is received, the next round of measurement period timing is started based on the configuration information table through the ASIC chip, and IOAM measurement is performed on the specified traffic in the next round of measurement period. The cycle is repeated until the end instruction is received. The network nodes in the network under test realize automatic switching of the IOAM measurement period through the ASIC chip, and do not need to be controlled by the control device. The measurement period switching accuracy can be improved, and the accuracy of packet loss and delay measurement in the IOAM can be improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The present application relates to the technical field of communication, in particular to an alternate marking measurement period switching method and device, network equipment and a storage medium. BACKGROUND

[0002] The IOAM (In-band Operation, Administration, and Maintenance) technology has the feature that IOAM data content is encapsulated into a service data packet and is transmitted in the network as part of the service data packet, so as to perform packet loss measurement, delay measurement and other operation and maintenance services according to the IOAM data during transmission.

[0003] In IOAM measurement, a plurality of node devices of a network to be measured are generally measured. The traditional IOAM measurement is controlled by a control device, and the control device and the plurality of node devices of the network to be measured rely on a time synchronization mechanism to achieve period synchronization. The control device controls the plurality of node devices of the network to be measured to perform IOAM measurement by switching measurement periods. However, the switching measurement period of the control device has low period switching accuracy, which results in inaccurate packet loss and delay measurement accuracy. SUMMARY

[0004] Therefore, the present application aims to provide an alternate marking measurement period switching method and device, network equipment and a storage medium, which can improve the problem of inaccurate packet loss and delay measurement accuracy caused by the switching measurement period of the control device in the IOAM measurement.

[0005] To achieve the above-mentioned purpose, the technical solutions adopted by the embodiments of the present application are as follows:

[0006] In a first aspect, the embodiments of the present application provide an alternate marking measurement period switching method applied to a network device of a network to be measured, wherein the network device is in communication connection with a control device, and the network device comprises an ASIC chip, and the method comprises the following steps:

[0007] When the measurement instruction issued by the control device is received, a round of measurement period timing is started based on a preset configuration information table through the ASIC chip, and IOAM measurement is performed on specified traffic in the round of measurement period;

[0008] When the round of measurement period reaches a target time length, the next round of measurement period timing is performed based on the configuration information table through the ASIC chip, and IOAM measurement is performed on specified traffic in the next round of measurement period;

[0009] When the next round of measurement period reaches the target length, and no end instruction issued by the management and control device is received, return to execute the step of starting the next round of measurement period timing based on the configuration information table and performing IOAM measurement on the specified traffic in the next round of measurement period by the ASIC chip.

[0010] When the timing of the next round of measurement period reaches half of the measurement period, the IOAM measurement value in the previous round of measurement period is reported to the management and control device.

[0011] Further, the measurement instruction includes the type identification of the specified traffic.

[0012] When the network device is the initial node of the network to be measured, the step of starting a round of measurement period timing based on the preset configuration information table and performing IOAM measurement on the specified traffic in the round of measurement period by the ASIC chip includes:

[0013] From the preset configuration information table, the configuration information corresponding to the type identification is found; wherein, the configuration information includes the target length of the measurement period and the measurement marker value;

[0014] Countdown with the target length, take the traffic matching the type identification in the to-be-transferred packet traffic as the specified traffic, and add IOAM measurement label in the specified traffic based on the measurement marker value;

[0015] During the countdown, the specified traffic with the added IOAM measurement label is forwarded, and the number of transfers and / or the transfer time is counted.

[0016] Further, when the network device is an intermediate node of the network to be measured, the step of starting a round of measurement period timing based on the preset configuration information table and performing IOAM measurement on the specified traffic in the round of measurement period by the ASIC chip includes:

[0017] From the preset configuration information table, the configuration information corresponding to the type identification is found, and the target length in the configuration information is counted down;

[0018] During the countdown, if it is identified that the received packet traffic has an IOAM measurement label, the number of transfers and / or the transfer time is counted according to the IOAM measurement label.

[0019] Further, when the network device is a terminal node of the network to be measured, the step of starting a round of measurement period timing based on the preset configuration information table and performing IOAM measurement on the specified traffic in the round of measurement period by the ASIC chip includes:

[0020] find the configuration information corresponding to the type identifier from a preset configuration information table, and count down the target time length in the configuration information;

[0021] During the countdown, if it is identified that the received packet flow has an IOAM measurement label, the number of hops and / or the hop time are counted according to the IOAM measurement label, and the IOAM measurement label in the packet flow is stripped.

[0022] Further, the step of counting down the next round of measurement period by the ASIC chip based on the configuration information table comprises:

[0023] The preset configuration information table is searched to obtain a target time length corresponding to the type identifier in the measurement instruction;

[0024] The ASIC chip is used to count down the target time length, and the measurement marker value of the previous round of measurement period is switched to obtain the measurement marker value of the current round of measurement period.

[0025] Further, the measurement marker value comprises a packet loss marker value;

[0026] The step of switching the measurement marker value of the previous round of measurement period to obtain the measurement marker value of the current round of measurement period comprises:

[0027] The packet loss marker value in the previous round of measurement period is flipped to obtain the measurement marker value of the current round of measurement period.

[0028] Further, the method further comprises:

[0029] The measurement configuration information issued by the management and control device is received, and the measurement configuration information is recorded into a configuration information table; wherein the measurement configuration information comprises a to-be-measured flow type and a target time length of a measurement period.

[0030] In a second aspect, an embodiment of the present application provides an alternating marker measurement period switching device, which is applied to a network device of a to-be-measured network, the network device is in communication connection with a management and control device, and the network device comprises an ASIC chip, the device comprises a measurement starting module, a period switching module and a reporting module;

[0031] The measurement starting module is used to, when the measurement instruction issued by the management and control device is received, start a round of measurement period counting by the ASIC chip based on a preset configuration information table, and perform IOAM measurement on specified flow in the measurement period.

[0032] The period switching module is configured to, when the current measurement period reaches the target length of time, start timing of a next measurement period based on the configuration information table via the ASIC chip, and perform IOAM measurement on specified traffic in the next measurement period.

[0033] The period switching module is further configured to, when the next measurement period reaches the target length of time and no end instruction issued by the management and control device is received, return to performing the step of starting timing of a next measurement period based on the configuration information table via the ASIC chip, and performing IOAM measurement on specified traffic in the next measurement period.

[0034] The reporting module is configured to, when timing of the next measurement period reaches half of the measurement period, report the IOAM measurement value in the previous measurement period to the management and control device.

[0035] In a third aspect, an embodiment of the present application provides a network device including a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the alternating marking measurement period switching method according to the first aspect.

[0036] In a fourth aspect, an embodiment of the present application provides a storage medium storing a computer program executable by a processor to implement the alternating marking measurement period switching method according to the first aspect.

[0037] The alternating marking measurement period switching method, device, network device and storage medium provided by the embodiments of the present application can start measurement period timing based on a configuration information table via an ASIC chip when a measurement instruction issued by a management and control device is received, perform IOAM measurement on specified traffic in the measurement period, start timing of a next measurement period based on the configuration information table via the ASIC chip when the measurement period timing reaches a target length of time and no end instruction is received, and perform IOAM measurement on specified traffic in the next measurement period, and the cycle is repeated until the end instruction is received. Network nodes in a network under test can automatically switch IOAM measurement periods via the ASIC chip, without the need for control by the management and control device, which can improve measurement period switching accuracy and further improve accuracy of packet loss and time delay measurement in IOAM.

[0038] In order to make the above objectives, features and advantages of the present application more apparent, more comprehensible and more readily understood, a preferred embodiment is described in detail below with reference to the accompanying drawings. BRIEF DESCRIPTION OF DRAWINGS

[0039] In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the embodiments will be briefly introduced as follows. It should be understood that the following drawings only show some of the embodiments of the present application, and therefore should not be regarded as a limitation to the scope, and other related drawings can also be obtained by those of ordinary skill in the art without any creative effort, based on these drawings.

[0040] Figure 1 A structural schematic diagram of a packet loss measurement principle provided by the embodiments of the present application is shown.

[0041] Figure 2 A structural schematic diagram of a time delay measurement principle provided by the embodiments of the present application is shown.

[0042] Figure 3 A packet format schematic diagram of an IOAM measurement packet provided by the embodiments of the present application is shown.

[0043] Figure 4 A structural schematic diagram of an alternate marking measurement period switching system provided by the embodiments of the present application is shown.

[0044] Figure 5 A flowchart of one of the alternate marking measurement period switching methods provided by the embodiments of the present application is shown.

[0045] Figure 6 A flowchart of another of the alternate marking measurement period switching methods provided by the embodiments of the present application is shown.

[0046] Figure 7 A flowchart of one of the partial sub-steps of step S12 in the method provided by the embodiments of the present application is shown. Figure 5 or Figure 6 A flowchart of another of the partial sub-steps of step S12 in the method provided by the embodiments of the present application is shown.

[0047] Figure 8 A flowchart of another of the partial sub-steps of step S12 in the method provided by the embodiments of the present application is shown. Figure 5 or Figure 6 A flowchart of another of the partial sub-steps of step S12 in the method provided by the embodiments of the present application is shown.

[0048] Figure 9 A flowchart of another of the partial sub-steps of step S12 in the method provided by the embodiments of the present application is shown. Figure 5 or Figure 6 A flowchart of another of the partial sub-steps of step S12 in the method provided by the embodiments of the present application is shown.

[0049] Figure 10 A flowchart of the partial sub-steps of step S14 in the method provided by the embodiments of the present application is shown. Figure 5 or Figure 6 A flowchart of the partial sub-steps of step S14 in the method provided by the embodiments of the present application is shown.

[0050] Figure 11 A block schematic diagram of an alternate marking measurement period switching device provided by the embodiments of the present application is shown.

[0051] Figure 12 A block diagram of a network device provided by an embodiment of the present application is shown.

[0052] BRIEF DESCRIPTION OF DRAWINGS: 100-alternating mark measurement period switching system; 10-node device; 20-management and control device; 30-alternating mark measurement period switching apparatus; 301-measurement starting module; 302-period switching module; 303-reporting module; 40-network device. DETAILED DESCRIPTION

[0053] The technical solutions in the embodiments of the present application will be described clearly and completely below in conjunction with the accompanying drawings of the embodiments of the present application. Obviously, the described embodiments are only some of the embodiments of the present application, but not all the embodiments. The components of the embodiments of the present application described and shown in the accompanying drawings can be arranged and designed in various different configurations.

[0054] Therefore, the following detailed description of the embodiments of the present application provided in the accompanying drawings is not intended to limit the scope of the claimed present application, but only represents selected embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present application.

[0055] It should be noted that the relational terms such as "first" and "second" and the like are used only to distinguish one entity or operation from another, and do not necessarily require or imply that these entities or operations exist in any such actual relationship or order. Moreover, the terms "comprising", "including" or any other variant thereof are intended to cover non-exclusive inclusion, so that a process, method, article or apparatus that includes a list of elements does not only include those elements, but also includes other elements not explicitly listed, or further includes elements inherent in such a process, method, article or apparatus. Without more limitations, the element defined by the statement "comprising a" does not exclude the presence of additional identical elements in the process, method, article or apparatus that includes the element.

[0056] Common IOAM (In-band Operation, Administration, and Maintenance) measurements include packet loss measurement and latency measurement.

[0057] Packet loss measurement is achieved by marking (staining) the packet loss measurement flag in the InBandOAM flow instruction header of the actual service flow, and providing packet loss measurement function for specific traffic according to the staining mark. In the traditional IOAM measurement, the principle of packet loss measurement is as follows Figure 1As shown, the initial node (the sending device of the IOAM measurement message) in the network under test alternately colors the detected traffic flow label field according to a certain period, and simultaneously counts the traffic flow sent in the period, and reports the statistical result to the upper control system. The non-initial node device (the receiving device) in the network under test counts the number of messages with the detected traffic flow feature field colored according to the same period as the sending device, and reports the statistical result to the control plane. The control platform continuously synchronously issues period switching instructions to the sending device and the receiving device, so that the sending device and the receiving device count the number of messages according to the period, and calculate the transmission packet loss number of the traffic flow in the period according to the statistical information of the detected traffic flow reported by the sending device and the receiving device in the period: PacketLoss[i] = Tx[i] - Rx[i], wherein i represents a certain period.

[0058] The time for the receiving device to count is usually between 1 and 2 periods, so as to ensure that the out-of-order messages can be correctly counted and the statistical error is reduced.

[0059] The delay measurement is achieved by controlling the delay measurement control bit in the InBandOAM flow instruction header of the actual traffic flow, so as to control the delay measurement of the specific traffic according to the control bit. In the traditional IOAM measurement, the principle of delay measurement is as shown in Figure 2 In the delay measurement period, two node devices in the network under test each send an IOAM measurement message to the other, record the time of sending the message by themselves and the time of receiving the message sent by the other device, and report to the control platform. The control platform calculates the message delay according to the sending time of the two.

[0060] The message format of the IOAM measurement message is usually based on MPLS Inband, and the InBandOAM label is defined as three parts of IOAM guide label, IOAM flow instruction header and IOAM extension data, wherein the IOAM guide label and the IOAM flow instruction header are both necessary parts, and the IOAM extension data part is optional, and the message encapsulation format is as shown in Figure 3 .

[0061] InBandOAM guide label (FII), InBandOAM guide label occupies one MPLS label bit, i.e. 32 bits, and is used to indicate that the content after the label is the InBandOAM flow instruction header. The guide label is the MPLS reserved label (0-15), the default value is "0xC", and the TC, S and TTL fields are required to comply with the RFC 3032 standard.

[0062] InBandOAM flow instruction head (FIH) occupies one MPLS label bit, i.e. 32 bits, carries basic information for in-band flow detection, and the information includes flow ID, coloring indication bit, type indication and the like.

[0063] Flow ID: bit0-bit19, used for uniquely identifying a service flow, and the Flow ID needs to be globally unique in the detection domain, and the Flow ID information is obtained based on five tuples.

[0064] L Flag, i.e. Loss Flag, loss packet measurement coloring mark, and the loss packet measurement statistics are performed by marking the coloring packet with 0 / 1.

[0065] D Flag, i.e. Delay Flag, delay measurement coloring mark, 1 indicates that the delay needs to be measured, and 0 indicates that the delay does not need to be measured.

[0066] R is a reserved bit, reserved for future extension.

[0067] S / R, if the guide label is the bottom of the stack, it is a reserved R, and by default, it is set to 1. If the guide label is not the bottom of the stack, it is an S mark.

[0068] NextHeader indicates the extension data type, indicating whether to carry the extension header. Among them, 0x00 is reserved. 0x01 indicates that the FIH is basic detection information and does not carry the extension header. 0x02 indicates that the FIH is optional hop-by-hop detection information and does not carry the extension header. 0x03-0xFF indicates that the extension is reserved for future use.

[0069] InBandOAM is an extension data (FIEH).

[0070] In the traditional IOAM measurement, the measurement start, measurement end and period switching instructions are issued by the control platform to the network devices that need to be measured, and the upper layer CPU of the network device parses the instructions and performs corresponding IOAM measurement control. In the IOAM measurement, the loss packet measurement and the delay measurement generally last for multiple consecutive periods, and multiple period switching needs to be performed during the measurement. However, since the network device in the IOAM measurement needs to parse the period switching instruction issued by the control device before performing the period switching operation, and the network device is busy and needs to be queued for parsing, the period switching has a time delay, the period switching accuracy is low, and the loss packet measurement and the delay measurement accuracy are not accurate enough.

[0071] Based on the above consideration, the embodiment of the present application provides an alternating marking measurement period switching method, which can improve the problem of inaccurate loss packet and delay measurement accuracy caused by the control device 20 switching the measurement period in the IOAM measurement.

[0072] The alternative marking measurement period switching method provided by the embodiments of the present application can be applied to, for example, Figure 4 The alternative marking measurement period switching system 100 can include a management and control device 20 and a plurality of node devices 10 in a network to be measured, and the management and control device 20 and the plurality of node devices 10 can communicate with each other through an Ethernet.

[0073] The plurality of node devices 10 are network devices, which include but are not limited to switches and routers. The plurality of node devices 10 each include an ASIC chip and are preconfigured with a configuration information table. The configuration information table records configuration information of various types of packet flows, which include but are not limited to a target duration of a measurement period, an initial measurement marker value of a packet loss measurement, and a measurement marker value of a delay measurement.

[0074] In other embodiments, the node device can use a non-ASIC (Application-Specific Intergrated Circuit) chip plus an embedded CPU to replace the ASIC chip.

[0075] In the present embodiment, the initial measurement marker value of the packet loss measurement refers to the value of Lbit in the IOAM measurement packet, which is generally 0 or 1. The measurement marker value of the delay measurement refers to the value of Dbit in the IOAM measurement packet, which is also generally 0 or 1.

[0076] The management and control device 20 can be a physical device or a cloud device.

[0077] The management and control device 20 is configured to synchronously send a measurement instruction and an end instruction of IOAM measurement to the plurality of node devices 10 in the network to be measured.

[0078] The node device 10 is configured to implement the alternative marking measurement period switching method provided by the embodiments of the present application.

[0079] In one possible embodiment, an alternative marking measurement period switching method is provided, which will be described below with reference to Figure 5 may include the following steps. In the present embodiment, the alternative marking measurement period switching method is applied to any one of the node devices 10 of Figure 1 .

[0080] S12, when the measurement instruction issued by the management and control device is received, a round of measurement period timing is started by the ASIC chip based on the preconfigured configuration information table, and IOAM measurement is performed on the specified traffic in the round of measurement period.

[0081] S14, when the measurement cycle reaches the target length, the ASIC chip is used to count the next measurement cycle based on the configuration information table, and the IOAM measurement of the specified traffic in the next measurement cycle is performed.

[0082] S16, when the next measurement cycle reaches the target length, it is determined whether an end instruction issued by the management and control device is received. If not, return to step S14, and if yes, the measurement is ended.

[0083] S18, when the counting of the next measurement cycle reaches half of the measurement cycle, the IOAM measurement value in the previous measurement cycle is reported to the management and control device. Step S18 can be performed after steps S12 and S14.

[0084] The management and control device 20 synchronously sends a measurement instruction to all network devices in the network to be measured. When any network device in the network to be measured receives the measurement instruction, the ASIC chip is used to start counting the first measurement cycle based on the preconfigured configuration information table, and the IOAM measurement of the specified traffic is performed in the measurement cycle. It can be a delay measurement or a packet loss measurement. When it is a delay measurement, only one specified traffic can be measured in the measurement cycle. When it is a delay and packet loss measurement, the number is not limited.

[0085] When the counting of the first measurement cycle reaches the target length, i.e. one measurement cycle, the ASIC chip is used to count the next measurement cycle based on the configuration information table, and the IOAM measurement of the specified traffic in the next measurement cycle is performed. When the counting of the next measurement cycle reaches the target length, i.e. one measurement cycle, if an end instruction is received, the IOAM measurement is ended, and the IOAM measurement value of each measurement cycle is reported. If no end instruction is received, the counting and IOAM measurement of the next cycle are continued until the end instruction is received.

[0086] In addition, in order to prevent network disorder, delay and other factors from causing inaccurate IOAM measurement, in the embodiment, the IOAM measurement value in the previous measurement cycle is reported to the management and control device only when the counting of the next measurement cycle reaches half of the measurement cycle. That is, when the counting of the nth measurement cycle reaches half of the measurement cycle, the IOAM measurement value in the (n-1)th measurement cycle is reported to the management and control device.

[0087] Compared with the traditional mode of controlling the period switching of the IOMA measurement by the management and control platform, in the above-mentioned alternating marking measurement period switching method, the network nodes in the network to be measured automatically switch the IOAM measurement period through the ASIC chip, without the need for control by the management and control device, which can improve the measurement period switching accuracy, and further improve the accuracy of the packet loss and delay measurement in the IOAM. At the same time, the period switching of the IOAM measurement no longer needs to be protocol parsed, and the upper CPU of the network device is not needed to participate, which greatly saves the upper CPU resources of the network device.

[0088] Further, in order to facilitate the configuration, modification and update of the configuration information in each network device, configuration information management is introduced. In a possible implementation, with reference to Figure 6 The alternating marking measurement period switching method provided by the embodiments of the present application can further include step S11, which can be executed before step S12 or only step S11 can be executed.

[0089] S11, receiving the measurement configuration information issued by the management and control device, and recording the measurement configuration information into the configuration information table.

[0090] In the present embodiment, the measurement configuration information includes the target duration of the measurement period of the to-be-measured traffic type, and can further include the measurement marking value.

[0091] The measurement period can be counted up or down, and is not specifically limited in the present embodiment.

[0092] The measurement instruction issued by the management and control device 20 can include the type identifier of the specified traffic, i.e., indicating the type of the traffic of the IOMA vehicle to be measured. When the roles of the network devices in the network to be measured are different, i.e., when the network device is the initial node (source node), intermediate node or terminal node of the network to be measured, the embodiments of step S12 are also different.

[0093] In a possible implementation, when the network device is the initial node of the network to be measured, with reference to Figure 7 Step S12 can start a round of measurement period counting and perform IOAM measurement through the following steps.

[0094] S121A, searching for the configuration information corresponding to the type identifier from the preset configuration information table.

[0095] It should be understood that the configuration information includes the target duration of the measurement period and the measurement marking value.

[0096] S122A, counting down with the target duration, taking the traffic matching the type identifier in the to-be-transferred packet traffic as the specified traffic, and adding the IOAM measurement label in the specified traffic based on the measurement marking value.

[0097] S123A, during the countdown, forwarding the specified traffic with the added IOAM measurement label, and performing the statistics of the number of hops and / or the time of hop.

[0098] The traffic to be forwarded can be traffic sent by other devices and to be forwarded by the local device, or can be locally generated traffic to be sent to the next device. In the embodiment, the IOAM measurement label is an InBandOAM label.

[0099] For the first network device in the network to be measured, when receiving the measurement instruction, the type identifier in the measurement instruction is used to find the corresponding configuration information from the configuration information table, to obtain the target time length of the measurement period and the measurement label value of the IOAM, i.e. the values of Lbit and Dbit. Further, the countdown of the target time length is started.

[0100] During the countdown, the traffic with the same type as the type identifier specified in the configuration information is taken as the specified traffic. According to the measurement label value of the IOAM (the values of Lbit and Dbit) in the configuration information, the InBandOAM label is added to the specified traffic. The specified traffic with the added InBandOAM label is sent to the next network device in the network to be measured, and the statistics of the number of hops and / or the time of hop are performed.

[0101] When the packet loss measurement is performed, the statistics of the number of hops are performed, i.e. the total amount of the specified traffic sent by the network device is counted. When the time delay measurement is performed, the statistics of the time of hop are performed, i.e. the receiving time or sending time of the specified traffic is counted. The packet loss measurement and the time delay measurement can be performed simultaneously, in which case the statistics of the number of hops and the time of hop are performed.

[0102] In a possible embodiment, when the network device is an intermediate node of the network to be measured, referring to Figure 8 , step S12 can start a round of measurement period counting and perform the IOAM measurement through the following steps.

[0103] S121B, find the configuration information corresponding to the type identifier from the preset configuration information table, and perform the countdown with the target time length in the configuration information.

[0104] S122B, during the countdown, if it is identified that the received traffic has the IOAM measurement label, the statistics of the number of hops and / or the time of hop are performed according to the IOAM measurement label.

[0105] When the network device is an intermediate node of the network to be measured, the IOAM measurement label does not need to be added to the specified traffic. Therefore, upon receiving the measurement instruction, the target duration in the configuration information found from the configuration information table is counted down, and during the countdown, if the packet traffic with the IOAM measurement label is received, the Lbit and Dbit in the IOAM measurement label perform corresponding IOAM measurement.

[0106] For example, if the current measurement period measures the amount of Lbit being 0, when the Lbit in the IOAM measurement label is 0, the number of turns is incremented by 1, and when the Lbit in the IOAM measurement label is 1, the number of turns is not incremented. Conversely, if the current measurement period measures the amount of Lbit being 1, when the Lbit in the IOAM measurement label is 0, the number of turns is not incremented, and when the Lbit in the IOAM measurement label is 1, the number of turns is incremented. When the Dbit in the IOAM measurement label is 1, the time when the specified traffic is received and forwarded is recorded, and when the Dbit in the IOAM measurement label is 0, no delay measurement is performed.

[0107] In a possible implementation, when the network device is the terminal node of the network to be measured, that is, the last node device 10, referring to Figure 9 , step S12 can start a round of measurement period counting and perform IOAM measurement through the following steps.

[0108] S121C, find the corresponding configuration information of the type identifier from the preset configuration information table, and count down the target duration in the configuration information.

[0109] S122C, during the countdown, if it is identified that the received packet traffic has the IOAM measurement label, the number of turns and / or the time when the turn is counted according to the IOAM measurement label, and the IOAM measurement label in the packet traffic is stripped.

[0110] Compared with the case when the network device is an intermediate node, the difference is that when the network device is a terminal node, the IOAM measurement label in the packet traffic is needed before forwarding.

[0111] Through the above sub-steps of step S12, when the measurement instruction indicating to perform IOAM measurement issued by the management and control device is received, the IOAM measurement can be stably and orderly performed.

[0112] Further, when the first measurement period is full, the next measurement period needs to be switched. Considering that in the packet loss detection, the specified traffic is alternately colored in adjacent periods, that is, the value of Lbit is switched, to avoid measurement interference between adjacent periods. Therefore, when the counting of the next round of measurement period is switched, the switching of the measurement label value is introduced, mainly the switching of the value of Lbit. Referring toFigure 10 The step S14 can be implemented by the following steps: searching the configuration information table to obtain the target time length corresponding to the type identifier in the measurement instruction, and counting down the target time length by the ASIC chip.

[0113] S141, searching the preset configuration information table to obtain the target time length corresponding to the type identifier in the measurement instruction.

[0114] S142, counting down the target time length by the ASIC chip, and switching the measurement marker value of the last measurement period to obtain the measurement marker value of the current measurement period.

[0115] Further, the switching of the measurement marker value of the last measurement period is mainly for the measurement marker value, i.e. the packet loss marker value, and the essence of the switching is to flip the packet loss marker value to be measured. Therefore, the step S14 can be further implemented as: flipping the packet loss marker value in the last measurement period to obtain the measurement marker value of the current measurement period.

[0116] For the time delay marker value, since only one Dbit=1 packet flow is sent in one period, when Dbit=1 in the configuration information, after sending a packet with Dbit=1 in the corresponding IOAM measurement label, the ASIC chip will automatically clear the Dbit in the remaining specified flow. That is, for the time delay marker value, the switching of the measurement marker value of the last measurement period can be implemented as: after sending a packet with time delay marker value=1 in an IOAM measurement label, setting the time delay marker value of the remaining specified flow in the current measurement period to zero.

[0117] For the initial node, the time delay marker value in the IOAM measurement label of the first specified flow in the current measurement period is set to one, and the time delay marker values of the remaining specified flows in the current measurement period are all set to zero.

[0118] The ASIC chip counts down the target field of view found, and switches the measurement marker value of the packet loss measurement of the last measurement period, i.e. switches the Lbit value. For example, for the initial node of the network to be measured, if the Lbit value in the last measurement period is 0, then in the current measurement period, an IOAM measurement label with Lbit=1 is generated, and the number of rotations is recorded. For the intermediate node and the terminal node of the network to be measured, if the total number of packet flows with Lbit=0 in the IOAM measurement label is counted in the last measurement period, then in the current measurement period, the total number of packet flows with Lbit=1 is measured.

[0119] For the measurement marker value of the time delay measurement, i.e. the value of Dbit, no switching is performed.

[0120] Through steps S141 and S142, in the measurement period switching, according to the measurement marker value of the last round of measurement period, the values of Lbit and Dbit of the specified flow are modified.

[0121] It should be noted that different specified flows can have different packet loss measurement periods and delay measurement periods, and the same specified flow can also have different packet loss measurement periods and delay measurement periods.

[0122] For an ASIC chip, a flow end state table entry (FlowTImerStatus table entry) can be maintained for each type of specified flow, which can include a packet loss measurement period item (L Timer Value), a packet loss period timing item (L Timer Count), a delay measurement period item (D Timer Value) and a delay period timing item (D TimerCount).

[0123] The unit of L Timer Value can be ms, which is the target duration of the packet loss measurement period obtained from the user's pre-configured configuration information table (MplsIoamFlagStatusCtl table). The initial value of L Timer Count is L Timer Value, which is reduced by one every 1 ms. The unit of D Timer Value can be ms, which is the target duration of the delay measurement period obtained from the user's pre-configured configuration information table. The initial value of D Timer Count is D Timer Value, which is reduced by one every 1 ms. Thus, the ASIC chip can switch the measurement period by maintaining the flow end state table entry.

[0124] It should be understood that for a network device, IOAM measurement of multiple types of specified flows can be performed at the same time, and at this time, the ASIC chip maintains a flow end state table for each type of specified flow to simultaneously achieve period switching of multiple types of specified flows. By maintaining the flow end state table, the problem of period switching control confusion when multiple types of specified flows are simultaneously measured by IOAM can be avoided to some extent.

[0125] The above-mentioned alternative marker measurement period switching method provided by the embodiment of the application realizes automatic switching of IOAM measurement of the specified flow by the ASIC chip, and simultaneously automatically switches Lbit and Dbit in the IOAM measurement label, without the need for the upper layer CPU to participate or the need for control by the management platform, which can save upper layer CPU resources and improve period switching precision, thereby ensuring high precision of packet loss and delay measurement.

[0126] Based on the same inventive concept as the above-mentioned alternate marking measurement period switching method, the embodiments of the present application also provide an alternate marking measurement period switching device 30, which can be applied to any one of the node devices 10 (network devices) in Figure 1 Referring to Figure 11 , the device can include a measurement starting module 301, a period switching module 302, and a reporting module 303.

[0127] The measurement starting module 301 is configured to, when receiving a measurement instruction issued by a management and control device, start a round of measurement period timing based on a preset configuration information table through an ASIC chip, and perform IOAM measurement on specified traffic in the round of measurement period.

[0128] The period switching module 302 is configured to, when the round of measurement period reaches a target duration, perform timing of the next round of measurement period based on the configuration information table through the ASIC chip, and perform IOAM measurement on specified traffic in the next round of measurement period.

[0129] The period switching module 302 is further configured to, when the next round of measurement period reaches the target duration and no end instruction is received from the management and control device 20, return to perform the step of performing timing of the next round of measurement period based on the configuration information table through the ASIC chip, and performing IOAM measurement on specified traffic in the next round of measurement period.

[0130] The reporting module 303 is configured to, when receiving the end instruction issued by the management and control device, report the IOAM measurement values in each measurement period to the management and control device.

[0131] The device can further include a configuration module, which is configured to, when the timing of the next round of measurement period reaches half of the measurement period, report the IOAM measurement values in the previous round of measurement period to the management and control device.

[0132] In the above-mentioned alternate marking measurement period switching device 30, through the cooperative action of the measurement starting module 301, the period switching module 302, and the reporting module 303, the network nodes in the network under test automatically switch the IOAM measurement period through the ASIC chip, without the need for control by the management and control device, which can improve the measurement period switching accuracy and further improve the accuracy of packet loss and delay measurement in IOAM. At the same time, the period switching of IOAM measurement no longer needs to be protocol-analyzed, and does not need the participation of the upper-layer CPU, which greatly saves the upper-layer CPU resources of the network device.

[0133] The specific definition of the alternate mark measurement period switching device 30 can refer to the definition of the alternate mark measurement period switching method in the foregoing, which will not be repeated here. Each module in the alternate mark measurement period switching device 30 described above can be implemented by software, hardware, and a combination thereof, in whole or in part. The modules described above can be embedded in or independent of the processor in the electronic device in hardware form, or can be stored in the memory of the electronic device in software form, so as to be called and executed by the processor to perform the operations corresponding to each of the modules described above.

[0134] In an embodiment, a network device 40, which can be a terminal, has an internal structure as shown in Figure 12 The network device 40 includes a processor, a memory, a communication interface, and an input device connected through a system bus. The processor of the network device 40 is configured to provide computing and control capabilities. The memory of the network device 40 includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program in the non-volatile storage medium to run. The communication interface of the network device 40 is configured to perform wired or wireless communication with an external terminal. The wireless communication can be achieved through WIFI, a carrier network, near field communication (NFC), or other technologies. The computer program is executed by the processor to implement the alternate mark measurement period switching method provided in the above embodiment.

[0135] Figure 12 The structure shown in Figure 12 The specific network device can include more or fewer components than those shown in

[0136] In an embodiment, the alternate mark measurement period switching device 30 provided by the present application can be implemented in the form of a computer program, which can run on a network device 40 as shown in Figure 12 The memory of the network device 40 can store various program modules constituting the alternate mark measurement period switching device 30, such as a measurement start module 301, a period switching module 302, and a reporting module 303 as shown in Figure 11 The computer program constituted by the various program modules enables the processor to perform the steps of the alternate mark measurement period switching method described in the specification.

[0137] For example, Figure 12 The network device 40 as shown in Figure 11The measurement starting module 301 in the illustrated alternative marking measurement period switching device 30 performs step S12. The network device 40 can perform steps S14 and S16 through the period switching module 302. The network device 40 can perform S18 through the reporting module 303.

[0138] In an embodiment, a network device 40 is provided, comprising a memory and a processor, the memory storing machine executable instructions, and the processor implementing the following steps when executing the machine executable instructions: upon receiving a measurement instruction issued by a management and control device, starting a round of measurement period timing based on a preset configuration information table through an ASIC chip, and performing IOAM measurement on specified traffic in the round of measurement period; upon the round of measurement period reaching a target time length, performing timing of a next round of measurement period based on the configuration information table through the ASIC chip, and performing IOAM measurement on specified traffic in the next round of measurement period; upon the next round of measurement period reaching the target time length and no end instruction issued by the management and control device being received, returning to performing timing of the next round of measurement period based on the configuration information table through the ASIC chip, and performing IOAM measurement on specified traffic in the next round of measurement period; upon the timing of the next round of measurement period reaching half of the measurement period, reporting IOAM measurement values in the previous round of measurement period to the management and control device.

[0139] In an embodiment, a storage medium is provided, having a computer program stored thereon, the computer program implementing the following steps when executed by a processor: upon receiving a measurement instruction issued by a management and control device, starting a round of measurement period timing based on a preset configuration information table through an ASIC chip, and performing IOAM measurement on specified traffic in the round of measurement period; upon the round of measurement period reaching a target time length, performing timing of a next round of measurement period based on the configuration information table through the ASIC chip, and performing IOAM measurement on specified traffic in the next round of measurement period; upon the next round of measurement period reaching the target time length and no end instruction issued by the management and control device being received, returning to performing timing of the next round of measurement period based on the configuration information table through the ASIC chip, and performing IOAM measurement on specified traffic in the next round of measurement period; upon the timing of the next round of measurement period reaching half of the measurement period, reporting IOAM measurement values in the previous round of measurement period to the management and control device.

[0140] In several embodiments provided by the present application, it should be understood that the disclosed apparatus and method can also be implemented in other manners. The described embodiments of the apparatus are merely exemplary, and the possible implementation manners of the apparatus, method and computer program product according to the present application are shown in the flowcharts and block diagrams in the accompanying drawings. In this regard, each block in the flowcharts or block diagrams can represent a module, a segment or a portion of code which comprises one or more executable instructions for implementing the specified logic function. It should also be noted that in some alternative implementations, the functions shown in the blocks can occur in a different order from that shown in the accompanying drawings. For example, two consecutive blocks can actually be executed substantially in parallel, or they can be executed in reverse order according to the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system, or can be implemented by a combination of special-purpose hardware and computer instructions.

[0141] In addition, each functional module in the various embodiments of the present application can be integrated together to form a separate part, or each module can exist independently, or two or more modules can be integrated to form a separate part.

[0142] If the functions are implemented in the form of software function modules and sold or used as independent products, they can be stored in a computer readable storage medium. Based on this understanding, the technical solutions of the present application essentially or the part that contributes to the prior art, or part of the technical solutions can be embodied in the form of a software product. The computer software product is stored in a storage medium and includes several instructions for causing a computer device (which can 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: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a magnetic disk or an optical disk, and various media that can store program codes.

[0143] The above only describes the preferred embodiments of the present application and is not intended to limit the present application. For those skilled in the art, the present application can have various modifications and changes. Any modification, equivalent replacement, improvement, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. An alternate marker measurement cycle switching method, characterized by, The application is applied to a network device of a network to be measured, the network device is in communication connection with a management and control device, and the network device comprises an ASIC chip, and the method comprises the following steps: When a measurement instruction issued by the management and control device is received, a measurement period is started based on preset configuration information table, and IOAM measurement is performed on specified traffic in the measurement period by the ASIC chip; When the measurement period reaches a target time length, the next measurement period is started based on the configuration information table by the ASIC chip, and IOAM measurement is performed on specified traffic in the next measurement period; When the next measurement period reaches the target time length and no end instruction issued by the management and control device is received, the step of starting the next measurement period based on the configuration information table by the ASIC chip and performing IOAM measurement on specified traffic in the next measurement period is returned; When the next measurement period reaches half of the measurement period, the IOAM measurement value in the previous measurement period is reported to the management and control device.

2. The alternate marker measurement cycle switching method of claim 1, wherein, The measurement instruction comprises a type identifier of specified traffic; When the network device is an initial node of the network to be measured, the step of starting the measurement period based on the preset configuration information table by the ASIC chip and performing IOAM measurement on specified traffic in the measurement period comprises the following steps: The configuration information corresponding to the type identifier is found from the preset configuration information table; wherein the configuration information comprises a target time length of the measurement period and a measurement marker value; The target time length is counted down, the traffic matching the type identifier in the to-be-forwarded packet traffic is taken as specified traffic, and IOAM measurement labels are added to the specified traffic based on the measurement marker value; During the countdown, the specified traffic with the added IOAM measurement labels is forwarded, and the forwarding number and / or forwarding time are counted.

3. The alternate marker measurement period switching method of claim 2, wherein, When the network device is an intermediate node of the network to be measured, the step of starting the measurement period based on the preset configuration information table by the ASIC chip and performing IOAM measurement on specified traffic in the measurement period comprises the following steps: The configuration information corresponding to the type identifier is found from the preset configuration information table, and the target time length in the configuration information is counted down; During the countdown, if it is identified that the received packet traffic has IOAM measurement labels, the forwarding number and / or forwarding time are counted according to the IOAM measurement labels.

4. The alternate marker measurement period switching method of claim 2, wherein, When the network device is a terminal node of the network to be measured, the step of starting the measurement period based on the preset configuration information table by the ASIC chip and performing IOAM measurement on specified traffic in the measurement period comprises the following steps: The configuration information corresponding to the type identifier is found from the preset configuration information table, and the target time length in the configuration information is counted down; During the countdown period, if an IOAM measurement label is identified in the received packet flow, the number of hops and / or the hop time is counted according to the IOAM measurement label, and the IOAM measurement label in the packet flow is stripped.

5. The alternative marker measurement cycle switching method according to any one of claims 1 to 4, characterized in that, The step of counting the next round of measurement period by the ASIC chip based on the configuration information table comprises: performing lookup on the preset configuration information table to obtain a target time length corresponding to the type identifier in the measurement instruction; counting down by the target time length by the ASIC chip, and switching the measurement marker value of the previous round of measurement period to obtain the measurement marker value of the current round of measurement period.

6. The alternate marker measurement cycle switching method of claim 5, wherein, The measurement marker value comprises a packet loss marker value. The step of switching the measurement marker value of the previous round of measurement period to obtain the measurement marker value of the current round of measurement period comprises: inverting the packet loss marker value in the previous round of measurement period to obtain the measurement marker value of the current round of measurement period.

7. The alternate marker measurement cycle switching method of claim 1, wherein, The method further comprises: receiving the measurement configuration information issued by the management and control device, and recording the measurement configuration information into a configuration information table; wherein the measurement configuration information comprises a to-be-measured traffic type and a target time length of a measurement period.

8. An alternate flagging measurement period switching apparatus characterized by comprising: The network device applied to a to-be-measured network, wherein the network device is in communication connection with a management and control device, and the network device comprises an ASIC chip, and the device comprises a measurement starting module, a period switching module and a reporting module; The measurement starting module is configured to, when the measurement instruction issued by the management and control device is received, start counting a round of measurement period by the ASIC chip based on a preset configuration information table, and perform IOAM measurement on specified traffic in the round of measurement period; The period switching module is configured to, when the target time length of the round of measurement period is reached, count the next round of measurement period by the ASIC chip based on the configuration information table, and perform IOAM measurement on specified traffic in the next round of measurement period; The period switching module is further configured to, when the target time length of the next round of measurement period is reached and no end instruction issued by the management and control device is received, return to execute the step of counting the next round of measurement period by the ASIC chip based on the configuration information table, and performing IOAM measurement on specified traffic in the next round of measurement period; The reporting module is configured to, when the counting of the next round of measurement period reaches half of the measurement period, report the IOAM measurement value in the previous round of measurement period to the management and control device.

9. A network device, comprising: The computer program is executed by the processor to implement the alternating marker measurement period switching method according to any one of claims 1 to 7.

10. A storage medium having stored thereon a computer program, characterized in that The computer program is executed by the processor to implement the alternating marker measurement period switching method according to any one of claims 1 to 7.

Citation Information

Patent Citations

  • Processing method and system for in-band operation management and maintenance IOAM

    CN112448926A