CN116668344A - Method, device, network equipment and storage medium for switching measurement period of alternate mark - Google Patents

Method, device, network equipment and storage medium for switching measurement period of alternate mark Download PDF

Info

Publication number
CN116668344A
CN116668344A CN202310586706.XA CN202310586706A CN116668344A CN 116668344 A CN116668344 A CN 116668344A CN 202310586706 A CN202310586706 A CN 202310586706A CN 116668344 A CN116668344 A CN 116668344A
Authority
CN
China
Prior art keywords
measurement
measurement period
ioam
configuration information
period
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310586706.XA
Other languages
Chinese (zh)
Inventor
徐海青
李磊
赵仕中
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Suzhou Centec Communications Co Ltd
Original Assignee
Suzhou Centec Communications Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Suzhou Centec Communications Co Ltd filed Critical Suzhou Centec Communications Co Ltd
Priority to CN202310586706.XA priority Critical patent/CN116668344A/en
Publication of CN116668344A publication Critical patent/CN116668344A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • H04L43/106Active monitoring, e.g. heartbeat, ping or trace-route using time related information in packets, e.g. by adding timestamps
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Health & Medical Sciences (AREA)
  • Cardiology (AREA)
  • General Health & Medical Sciences (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The embodiment of the invention provides an alternate mark measurement period switching method, a device, network equipment and a storage medium, which belong to the technical field of communication, when a measurement instruction issued by management and control equipment is received, the network equipment starts measurement period timing through an ASIC chip based on a configuration information table and carries out IOAM measurement on specified flow in the measurement period, when the measurement period timing reaches a target duration and an ending instruction is not received, the next round of measurement period timing is started through the ASIC chip based on the configuration information table and the IOAM measurement is carried out on the specified flow in the next round of measurement period, so that the loop reciprocates until the ending instruction is received, the network node in a network to be tested realizes automatic switching of the IOAM measurement period through the ASIC chip without being controlled by the management and control equipment, and the switching precision of the measurement period can be improved, thereby improving the packet loss and time delay measurement precision in the IOAM.

Description

Method, device, network equipment and storage medium for switching measurement period of alternate mark
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a method and apparatus for switching measurement periods of an alternate mark, a network device, and a storage medium.
Background
The IOAM (In-band Operation, adminisration, and Maintenance) technology is characterized In that the IOAM data content is encapsulated into a service data packet, and is transmitted as a part of the service data packet In a network, so that In the transmission process, operation and Maintenance services such as packet loss measurement, delay measurement, and the like are performed according to the IOAM data.
In IOAM measurements, measurements are typically made on multiple node devices of the network under test. The traditional IOAM measurement is controlled by the control equipment, the control equipment and a plurality of node equipment of the network to be measured rely on a time synchronization mechanism to realize period synchronization, and the control equipment periodically controls the plurality of node equipment of the network to be measured to carry out the IOAM measurement by switching the measurement period. However, the mode of switching the measurement period by the control device has low period switching precision, so that the packet loss and time delay measurement precision are not accurate enough.
Disclosure of Invention
In view of the above, the present invention is directed to a method, an apparatus, a network device and a storage medium for switching an alternate mark measurement period, which can solve the problems of packet loss and inaccurate time delay measurement precision caused by switching the measurement period by a management device in IOAM measurement.
In order to achieve the above object, the technical scheme adopted in the embodiment of the invention is as follows:
in a first aspect, an embodiment of the present invention provides an alternate mark measurement period switching method, which is applied to a network device of a network to be measured, where the network device is communicatively connected to a management and control device, and the network device includes an ASIC chip, and the method includes:
when a measurement instruction issued by the control equipment is received, starting a round of measurement period timing through the ASIC chip based on a preset configuration information table, and performing IOAM measurement on the specified flow in the round of measurement period;
when the round of measurement period reaches the target duration, based on the configuration information table, the ASIC chip is used for timing the next round of measurement period, and IOAM measurement is carried out on the appointed flow in the next round of measurement period;
when the next round of measurement period reaches the target duration and an ending instruction issued by the control equipment is not received, returning to execute the step of timing the next round of measurement period through the ASIC chip based on the configuration information table and performing IOAM measurement on the specified flow in the next round of measurement period;
And when the timing of the next round of measurement period reaches half of the measurement period, reporting the IOAM measured value in the previous round of measurement period to the management and control equipment.
Further, the measurement instruction comprises a type identifier of the appointed flow;
when the network device is an initial node of the network to be measured, the step of starting a round of measurement period timing through the ASIC chip based on a preset configuration information table and performing IOAM measurement on the specified flow in the round of measurement period comprises the following steps:
searching configuration information corresponding to the type identifier from a preset configuration information table; the configuration information comprises a target duration of a measurement period and a measurement mark value;
counting down by using the target duration, taking the flow matched with the type identifier in the message flow to be converted as a specified flow, and adding an IOAM measurement tag into the specified flow based on the measurement mark value;
and during the countdown period, forwarding the designated flow after the IOAM measurement tag is added, and counting the number of revolutions and/or the time of revolution.
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 through the ASIC chip based on the preset configuration information table, and performing IOAM measurement on the specified traffic in the round of measurement period includes:
Searching configuration information corresponding to the type identifier from a preset configuration information table, and counting down by using a target duration in the configuration information;
and during the countdown period, if the received message traffic is identified to have the IOAM measurement tag, counting the number of revolutions and/or the time of revolutions according to the IOAM measurement tag.
Further, when the network device is an end node of the network to be measured, the step of starting a round of measurement period timing through the ASIC chip based on the preset configuration information table, and performing IOAM measurement on the specified traffic in the round of measurement period includes:
searching configuration information corresponding to the type identifier from a preset configuration information table, and counting down by using a target duration in the configuration information;
and during the countdown period, if the received message flow is identified to have the IOAM measurement tag, counting the number of revolutions and/or the time of revolutions according to the IOAM measurement tag, and stripping the IOAM measurement tag in the message flow.
Further, the step of performing, based on the configuration information table, timing of a next measurement cycle through the ASIC chip includes:
searching a preset configuration information table to obtain a target duration corresponding to the type identifier in the measurement instruction;
And counting down by the ASIC chip according to the target time length, and switching the measurement mark value of the previous round of measurement period to obtain the measurement mark value of the current round of measurement period.
Further, the measurement mark value comprises a packet loss mark value;
the step of switching the measurement mark value of the previous round of measurement period to obtain the measurement mark value of the current round of measurement period comprises the following steps:
and turning over the packet loss marking value in the previous round of measurement period to obtain the measurement marking value of the current round of measurement period.
Further, the method further comprises:
receiving measurement configuration information issued by the control equipment, and recording the measurement configuration information into a configuration information table; the measurement configuration information comprises a flow type to be measured and a target duration of a measurement period.
In a second aspect, an embodiment of the present invention provides an alternate mark measurement period switching device, which is applied to a network device of a network to be measured, where the network device is in communication connection with a management and control device, and the network device includes an ASIC chip, and the device includes a measurement starting module, a period switching module, and a reporting module;
the measurement starting module is used for starting one round of measurement period timing through the ASIC chip based on a preset configuration information table when receiving a measurement instruction issued by the management and control equipment, and performing IOAM measurement on the specified flow in the round of measurement period;
The period switching module is used for timing the next round of measurement period through the ASIC chip based on the configuration information table when the round of measurement period reaches the target duration, and performing IOAM measurement on the specified flow in the next round of measurement period;
the period switching module is further configured to, when the next measurement period reaches a target duration and an end instruction issued by the control device is not received, return to execute the step of performing timing of the next measurement period through the ASIC chip based on the configuration information table, and perform IOAM measurement on a specified flow in the next measurement period;
and the reporting module is used for reporting the IOAM measured value in the previous round of measurement period to the management and control equipment when the timing of the next round of measurement period reaches half of the measurement period.
In a third aspect, embodiments of the present invention provide a network device comprising a processor and a memory storing machine executable instructions executable by the processor to implement the method of alternating marker measurement period switching as described in the first aspect.
In a fourth aspect, an embodiment of the present invention provides a storage medium having stored thereon a computer program which, when executed by a processor, implements the method for switching between alternating mark measurement periods according to the first aspect.
According to the alternating mark measurement period switching method, device, network equipment and storage medium, when a measurement instruction issued by the management and control equipment is received, the network equipment starts measurement period timing through an ASIC chip based on a configuration information table and carries out IOAM measurement on specified flow in the measurement period, when the measurement period timing reaches target duration and an ending instruction is not received, based on the configuration information table, the ASIC chip starts the next measurement period timing and carries out IOAM measurement on the specified flow in the next measurement period, so that the cycle is repeated until the ending instruction is received, network nodes in a network to be tested realize automatic switching of the IOAM measurement period through the ASIC chip without being controlled by the management and control equipment, the measurement period switching precision can be improved, and the packet loss and delay measurement precision in the IOAM is further improved.
In order to make the above objects, features and advantages of the present invention more comprehensible, preferred embodiments accompanied with figures are described in detail below.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the embodiments will be briefly described below, it being understood that the following drawings only illustrate some embodiments of the present invention and should not be considered as limiting the scope, and other related drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 shows a schematic structural diagram of a packet loss measurement principle according to an embodiment of the present invention.
Fig. 2 shows a schematic structural diagram of a delay measurement principle according to an embodiment of the present invention.
Fig. 3 is a schematic diagram of a message format of an IOAM measurement message according to an embodiment of the present invention.
Fig. 4 shows a schematic structural diagram of an alternate mark measurement period switching system according to an embodiment of the present invention.
Fig. 5 shows one of flow diagrams of an alternate mark measurement period switching method according to an embodiment of the present invention.
Fig. 6 shows a second flowchart of an alternate mark measurement period switching method according to an embodiment of the invention.
Fig. 7 shows one of the flow charts of the partial sub-steps of step S12 in fig. 5 or 6.
Fig. 8 shows a second flow chart of a partial sub-step of step S12 in fig. 5 or 6.
Fig. 9 shows a third flow chart of a partial sub-step of step S12 in fig. 5 or 6.
Fig. 10 shows a schematic flow chart of a partial sub-step of step S14 in fig. 5 or fig. 6.
Fig. 11 is a block diagram schematically illustrating an alternate mark measurement period switching device according to an embodiment of the present invention.
Fig. 12 shows a block schematic diagram of a network device according to an embodiment of the present invention.
Description of the drawings: 100-alternately marking a measurement period switching system; 10-node device; 20-controlling equipment; 30-an alternate mark measurement period switching device; 301-a measurement starting module; 302-a period switching module; 303-reporting module; 40-network device.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are only some, but not all embodiments of the invention. The components of the embodiments of the present invention generally described and illustrated in the figures herein may be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the invention, as presented in the figures, is not intended to limit the scope of the invention, as claimed, but is merely representative of selected embodiments of the invention. All other embodiments, which can be made by a person skilled in the art without making any inventive effort, are intended to fall within the scope of the present invention.
It is noted that relational terms such as "first" and "second", and the like, are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Common IOAM (In-band Operation, adminisration, and Maintenance) measurements include packet loss measurements and latency measurements.
The packet loss measurement is to perform characteristic marking (dyeing) on a packet loss measurement zone bit in an instruction head of an actual service flow InBandOAM flow, and provide a packet loss measurement function for specific flow according to the dyeing marking condition. In conventional IOAM measurement, the principle of packet loss measurement is shown in fig. 1, and an initial node (a transmitting device of an IOAM measurement message) in a network to be measured alternately dyes a detected traffic flow mark field according to a certain period, counts traffic flows transmitted in the period, and reports a statistical result to an upper management and control system. According to the same period as the sending device, the non-initial node device (receiving device) in the network to be tested counts the number of the messages with the detected service flow characteristic field of the period as the dyeing, and reports the counted result to the control plane. The management and control platform continuously and synchronously issues a period switching instruction to the sending equipment and the receiving equipment, so that the sending equipment and the receiving equipment count the number of messages according to the period, and calculate the transmission packet loss number of the service flow in the period according to the statistical information of the detected service flow in the period reported by the sending equipment and the receiving equipment: packetLoss [ i ] = Tx [ i ] -Rx [ i ], where i represents a certain period.
The time counted by the receiving equipment is usually between 1 and 2 periods, so that the disordered messages can be counted correctly, and the counting error is reduced.
The time delay measurement is realized by controlling a time delay measurement control bit in an instruction head of an actual service flow InBandOAM flow, so that the purpose of controlling the time delay measurement of specific flow according to the condition of the control bit is achieved. In conventional IOAM measurement, the principle of delay measurement is shown in fig. 2, and in a delay measurement period, two node devices in a network to be measured each send an IOAM measurement message to each other, record the time of sending the message by themselves and the time of receiving the message sent by the opposite device, and report the time to a management and control platform. And the control platform calculates the message delay according to the time of the two transmissions.
The message format of the IOAM measurement message is generally in the form of MPLS Inband, the Inband oam label is defined as three parts of an IOAM boot label, an IOAM flow instruction header, and IOAM extension data, where the IOAM boot label and the IOAM flow instruction header are both necessary parts, the IOAM extension data part is optional, and the message encapsulation format is shown in fig. 3.
InBandOAM guide label (FII), which occupies one MPLS label bit, namely 32bit, and is used for indicating the content of the InBandOAM stream instruction head after the label through specific reserved label guide. The bootstrap label is an MPLS reserved label (0-15), the default value is '0 xC', and the TC, S and TTL fields are required to meet the RFC 3032 standard.
An InBandOAM Flow Instruction Header (FIH) occupies one MPLS label bit, namely 32 bits, and carries basic information for in-band flow detection, wherein the information comprises flow ID, dyeing indication bit, type indication and the like.
Flow ID: bit0-bit19, which is used to uniquely identify a service Flow, the Flow ID needs to be unique in the detection domain for the whole network, and Flow ID information is obtained based on five-tuple.
And carrying out packet Loss measurement statistics on the L Flag, namely the Loss Flag, the packet Loss measurement dyeing mark through a 0/1 mark dyeing message.
D Flag, namely Delay Flag, time Delay measurement dyeing mark, 1 indicates that time Delay is required to be measured, and 0 indicates that time Delay is not required to be measured.
R is reserved bit, and future expansion use is reserved.
S/R, if the guide label is the stack bottom, R is reserved, and 1 is set by default. If the boot label is a non-stack bottom, it is the S label.
The nextHeader indicates an extension data type, indicating whether an extension header is carried. Wherein 0x00 is reserved. 0x01 indicates that FIH is basic detection information, and does not carry an extension header. 0x02 indicates that FIH is optional hop-by-hop detection information, and does not carry an extension header. 0x03-0xFF indicates reserved extension usage.
InBandOAM is extended data (FIEH).
In the traditional IOAM measurement, a management and control platform issues instructions such as measurement start, measurement end, period switching and the like to network equipment to be measured, and an upper CPU of the network equipment analyzes the instructions and then performs corresponding IOAM measurement control. In IOAM measurements, packet loss measurements and delay measurements typically last for a number of consecutive periods, during which a number of periodic switches are required. However, the network device in the IOAM measurement needs to perform the periodic switching operation after performing protocol analysis on the periodic switching instruction issued by the management and control device, and the network device has busy service and needs to wait for analysis in a queuing, so that the periodic switching has time delay, the periodic switching precision is low, and the packet loss measurement and the delay measurement precision are not accurate enough.
Based on the above-mentioned considerations, the embodiments of the present invention provide an alternate mark measurement period switching method, which can solve the problems of packet loss and inaccurate time delay measurement precision caused by switching of measurement periods by the management and control device 20 in the IOAM measurement.
The method for switching the measurement period of the alternate mark according to the embodiment of the present invention may be applied to the system 100 for switching the measurement period of the alternate mark shown in fig. 4, where the system 100 for switching the measurement period of the alternate mark may include a management and control device 20 and a plurality of node devices 10 in a network to be tested, and the management and control device 20 and the plurality of node devices 10 may communicate with each other through ethernet.
The plurality of node devices 10 are all network devices including, but not limited to: the switches and routers, the plurality of node devices 10 each include ASIC chips, and are preconfigured with configuration information tables. The configuration information table records configuration information of various types of message flows, and the configuration information includes but is not limited to: the method comprises the steps of measuring a target duration of a period, an initial measurement mark value of packet loss measurement and a measurement mark value of delay measurement.
In other embodiments, the node device may employ a non-ASIC (Application-specific integrated circuit) chip plus an embedded CPU instead of an ASIC chip.
In this embodiment, the initial measurement flag value of the packet loss measurement refers to the value of the Lbit in the IOAM measurement packet, which is generally 0 or 1. The measurement flag value of the delay measurement refers to the value of Dbit in the IOAM measurement message, and is typically 0 or 1.
The management and control device 20 may be an entity device or a cloud device.
The management and control device 20 is configured to send measurement instructions and end instructions related to the IOAM measurement to the plurality of node devices 10 in the network under test synchronously.
The node device 10 is configured to implement the method for switching the measurement period of the alternate mark according to the embodiment of the present invention.
In one possible embodiment, an alternate mark measurement period switching method is provided, and referring to fig. 5, the following steps may be included. In the present embodiment, the alternate mark measurement period switching method is applied to any one of the node apparatuses 10 of fig. 1 for illustration.
S12, when a measurement instruction issued by the management and control equipment is received, starting a round of measurement period timing through the ASIC chip based on a preset configuration information table, and performing IOAM measurement on the specified flow in the round of measurement period.
And S14, when the round of measurement period reaches the target duration, based on the configuration information table, timing the next round of measurement period through the ASIC chip, and performing IOAM measurement on the specified flow in the next round of measurement period.
S16, judging whether an ending instruction issued by the control equipment is received or not when the next round of measurement period reaches the target duration. If not, the process returns to step S14, and if yes, the measurement is ended.
And S18, reporting the IOAM measured value in the previous round of measurement period to the management and control equipment when the timing of the next round of measurement period reaches half of the measurement period. Step S18 may be performed after steps S12 and S14.
The management and control device 20 synchronously sends measurement instructions to all network devices in the network to be measured, and when any network device in the network to be measured receives the measurement instructions, starts to start the timing of the first round of measurement period through the ASIC chip based on a pre-configured configuration information table, and performs IOAM measurement on the specified flow in the round of measurement period, which can be time delay measurement or packet loss measurement. In the case of time delay measurement, only one specified flow can be measured in the round measurement period, and in the case of time delay packet loss measurement, the number is not limited in the round measurement period.
And when the timing of the first round of measurement period reaches the target duration, namely, when one measurement period is full, based on the configuration information table, the ASIC chip is used for timing the next round of measurement period, and the IOAM measurement is carried out on the specified flow in the next round of measurement period. When the timing of the next measurement period reaches the target duration, namely one measurement period is full, if an ending instruction is received, ending the IOAM measurement, reporting the IOAM measurement value of each measurement period, and if the ending instruction is not received, continuing the timing of the next measurement period and the IOAM measurement until the ending instruction is received.
In order to prevent inaccurate IOAM measurement caused by network disorder, delay and the like, in this embodiment, the IOAM measurement value in the previous measurement period is not reported to the management and control device until the timing of the next measurement period reaches half of the measurement period. That is, when the timing of the measurement period of the nth round reaches half of the measurement period, the IOAM measurement value in the measurement period of the n-1 th round is reported to the management and control device.
Compared with the traditional mode of controlling the periodic switching of the IOMA measurement by the management and control platform, in the method for switching the periodic switching of the alternate mark measurement, the network node in the network to be tested realizes automatic switching of the IOAM measurement period by the ASIC chip, and the method does not need to be controlled by the management and control equipment, so that the switching precision of the measurement period can be improved, and further the precision of packet loss and time delay measurement in the IOAM is improved. Meanwhile, the periodic switching of the IOAM measurement does not need protocol analysis, does not need participation of an upper CPU, and greatly saves upper CPU resources of network equipment.
Further, in order to facilitate configuration, modification and updating of configuration information in each network device, configuration information management is introduced, in a possible implementation manner, referring to fig. 6, the method for switching an alternate mark measurement period according to the embodiment of the present invention may further include step S11, where step S11 may be performed before step S12, or only step S11 may be performed.
S11, receiving measurement configuration information issued by the management and control equipment, and recording the measurement configuration information into a configuration information table.
In this embodiment, the measurement configuration information includes a flow type to be measured and a target duration of a measurement period, and may further include a measurement flag value.
The measurement cycle may be counted up or down, and is not particularly limited in this embodiment.
The measurement instructions issued by the management and control device 20 may include a type identifier specifying the traffic, i.e. the type of traffic for the IOMA vehicle to be serviced. The implementation of step S12 is also different when the roles of the network devices in the network under test are different, i.e. when the network devices are the initial node (source node), intermediate node or end node of the network under test.
In one possible implementation, when the network device is an initial node of the network under test, referring to fig. 7, step S12 may start a round of measurement cycle timing and take IOAM measurements by the following steps.
S121A, searching out configuration information corresponding to the type identifier from a preset configuration information table.
It should be appreciated that the configuration information includes a target length of the measurement period and a measurement flag value.
S122A, counting down with the target duration, taking the flow matched with the type identifier in the message flow to be converted as the designated flow, and adding the IOAM measurement tag into the designated flow based on the measurement mark value.
And S123A, forwarding the designated flow after the IOAM measurement tag is added during the countdown period, and counting the number of revolutions and/or the time of revolution.
The message traffic to be transferred may be the message traffic to be transferred by the local device and sent by other devices, or the message traffic to be locally generated and sent to the next device. In the present embodiment, the IOAM measurement tag is an InBandOAM tag.
For a first network device in a network to be measured, when a measurement instruction is received, configuration information corresponding to a type identifier in the measurement instruction is searched from a configuration information table, and a target duration of a measurement period and measurement mark values of the IOAM, namely values of the Lbit and the Dbit, are obtained. Further, the countdown to the target duration is started.
And during the countdown period, taking the message flow consistent with the type appointed by the type identification in the message flow to be converted as the appointed flow. And adding an IOAM measurement tag, namely an InBandOAM tag, into the appointed flow according to the measurement mark values (values of Lbit and Dbit) of the IOAM in the configuration information. And sending the designated flow after the IOAM measurement tag is added to the next network equipment in the network to be tested, and simultaneously counting the number of revolutions and/or the time of revolutions.
And when the packet loss measurement is performed, counting the number of revolutions, namely counting the total quantity of the designated flow sent out by the network equipment. And when the time delay measurement is performed, counting the rotated time, namely counting the receiving time or the sending time of the designated flow. Packet loss measurement and delay measurement can be performed simultaneously, and statistics of the number of revolutions and the time of revolutions can be performed at the moment.
In one possible implementation, when the network device is an intermediate node of the network under test, referring to fig. 8, step S12 may start a round of measurement cycle timing and take IOAM measurements by the following steps.
S121B, searching configuration information corresponding to the type identifier from a preset configuration information table, and counting down the target duration in the configuration information.
And S122B, if the received message flow is identified to have the IOAM measurement tag during the countdown period, counting the number of revolutions and/or the time of revolutions according to the IOAM measurement tag.
When the network device is an intermediate node of the network to be tested, the IOAM measurement tag does not need to be added to the specified traffic. Therefore, when a measurement instruction is received, counting down is performed according to the target duration in the configuration information searched from the configuration information table, and if the message flow with the IOAM measurement tag is received during the counting down, the Lbit and the Dbit in the IOAM measurement tag perform corresponding IOAM measurement.
For example, when the current measurement period measures an amount of 0 for the Lbit, the number of revolutions is increased by 1 when the Lbit in the IOAM measurement tag is 0, and the number of revolutions is not increased by 1 when the Lbit in the IOAM measurement tag is 1. On the contrary, if the current measurement period is measured by the amount that the Lbit is 1, the number of revolutions is not increased by 1 when the Lbit in the IOAM measurement tag is 0, and the number of revolutions is increased by 1 when the Lbit in the IOAM measurement tag is 1. When the Dbit in the IOAM measuring label is 1, the time of receiving and transmitting the appointed flow is recorded, and when the Dbit in the IOAM measuring label is 0, the time delay measurement is not carried out.
In one possible implementation, when the network device is the end node of the network under test, i.e. the last node device 10, referring to fig. 9, step S12 may initiate a round of measurement cycle timing and performing IOAM measurements by the following steps.
S121C, searching configuration information corresponding to the type identifier from a preset configuration information table, and counting down the target duration in the configuration information.
S122C, if the received message flow is identified to have the IOAM measurement tag during the countdown period, counting the number of revolutions and/or the time of revolutions according to the IOAM measurement tag, and stripping the IOAM measurement tag in the message flow.
The difference is that when the network device is an end node, the IOAM measurement tag in the message traffic is needed to be forwarded, compared to when the network device is an intermediate node.
Through the substep of the step S12, when the measurement instruction of the IOAM measurement is received, which is issued by the management and control device, the IOAM measurement can be performed stably and orderly.
Further, when the first measurement period is full, the next measurement period needs to be switched. In the packet loss detection, the designated flow is alternately dyed in adjacent periods, namely the value of the Lbit is switched, so as to avoid measurement interference during the adjacent periods. Therefore, when the switching is performed for the timing of the next measurement cycle, the switching of the measurement mark value is introduced, mainly the switching of the Lbit value. Referring to fig. 10, in the above step S14, the timing of the next round of measurement cycle may be performed by the ASIC chip based on the configuration information table by the following steps.
S141, searching a preset configuration information table to obtain a target duration corresponding to the type identifier in the measurement instruction.
S142, counting down by the ASIC chip according to the target time length, and switching the measurement mark value of the previous round of measurement period to obtain the measurement mark value of the current round of measurement period.
Further, the measurement flag value of the previous measurement cycle is switched, mainly for the measured measurement flag value, i.e. the packet loss flag value, and the switching is essentially to switch the packet loss flag value to be measured. Thus, step S14 may be further implemented as: and turning over the packet loss marking value in the previous round of measurement period to obtain the measurement marking value of the current round of measurement period.
For the delay flag value, since only one packet flow with Dbit of 1 is generally sent in one period, when Dbit in configuration information is 1, after sending a corresponding packet with Dbit of 1 in one IOAM measurement tag, the ASIC chip will automatically clear the Dbit in the remaining specified flow. That is, for the time delay flag value, switching the measurement flag value of the previous measurement cycle may be implemented as: and after a message with the delay marking value of one in one IOAM measurement tag is sent, setting the delay marking value in the residual specified flow in the current round of measurement period to be zero.
And for the initial node, setting the time delay mark value in the IOAM measurement tag in the first appointed flow in the current round of measurement period as one, and setting the time delay mark values in the rest appointed flows in the current round of measurement period as zero.
And counting down by the ASIC chip with the searched target view field, and switching the measurement mark value of the packet loss measurement in the previous measurement period, namely switching the Lbit value. For example, for an initial node of the network to be measured, when the value of the Lbit in the previous measurement period is 0, in the current measurement period, generating an IOAM measurement tag by taking the Lbit as 1, and recording the number of revolutions. And when the statistics of the previous round of measurement period is that the total number of message traffic with the Lbit of 0 in the IOMA measurement tag is counted for the middle node and the end node of the network to be measured, the total number of message traffic with the Lbit of 1 is measured in the current round of measurement period.
And for the measurement mark value of the time delay measurement, namely the value of the Dbit, switching is not performed.
In the measurement period switching, the values of the lcbit and Dbit of the specified flow are modified together according to the measurement flag value of the previous measurement period in steps S141 and S142.
It should be noted that, for different specified flows, there may be different packet loss measurement periods and delay measurement periods, and for the same specified flow, there may also be different packet loss measurement periods and delay measurement periods.
For ASIC chips, a flow end state table entry (flowtimer status table entry) may be maintained for each type of designated flow, which may include a packet loss measurement period entry (L Timer Value), a packet loss period Count entry (L Timer Count), a delay measurement period entry (D Timer Value), and a delay period Count entry (D Timer Count).
The unit of the L Timer Value may be ms, which is a target duration of a packet loss measurement period obtained from a configuration information table (mplsioamflag status ctl table) configured in advance by a user. The initial Value of the L Timer Count is L Timer Value, which is decremented by one every 1 ms. The unit of the Value of the D Timer may be ms, which is a target duration of the delay measurement period obtained from a configuration information table configured in advance by a user. The initial Value of D Timer Count is D Timer Value, decremented by one every 1 ms. Thus, the ASIC chip can perform switching of the measurement period by maintaining the flow end state table entry.
It should be understood that for one network device, IOAM measurements of multiple types of specified traffic may be performed simultaneously, where the ASIC chip maintains a traffic end state table for each type of specified traffic to effect periodic switching of multiple types of specified traffic simultaneously. By maintaining the flow state ending table, the problem that periodic switching control is disordered when IOAM measurement of a plurality of types of specified flows is performed simultaneously can be avoided to a certain extent.
According to the method for switching the alternating mark measurement period, provided by the embodiment of the invention, the automatic switching of the spleen gas during the IOAM measurement is realized through the ASIC chip, and meanwhile, the Lbit and the Dbit in the IOAM measurement tag are automatically switched, so that the participation of an upper CPU is not needed, the control of a management and control platform is also not needed, the upper CPU resource can be saved, the period switching precision is improved, and the high precision of packet loss and time delay measurement is ensured.
Based on the same inventive concept as the above-described alternate mark measurement period switching method, the embodiment of the present invention also provides an alternate mark measurement period switching apparatus 30, which can be applied to any one of the node devices 10 (network devices) in fig. 1. Referring to fig. 11, the apparatus may include a measurement start module 301, a period switch module 302, and a report module 303.
The measurement starting module 301 is configured to start a round of measurement cycle timing through an ASIC chip based on a preset configuration information table when receiving a measurement instruction issued by the management and control device, and perform IOAM measurement on a specified flow in the round of measurement cycle.
And the period switching module 302 is configured to, when the round of measurement period reaches the target duration, perform timing of a next round of measurement period through the ASIC chip based on the configuration information table, and perform IOAM measurement on the specified flow in the next round of measurement period.
The period switching module 302 is further configured to, when the next measurement period reaches the target duration and the ending instruction issued by the management and control device 20 is not received, return to execute the step of performing timing of the next measurement period through the ASIC chip based on the configuration information table, and performing IOAM measurement on the specified flow in the next measurement period.
And the reporting module 303 is configured to report the IOAM measurement values in each measurement period to the management and control device when receiving an end instruction issued by the management and control device.
The system also comprises a configuration module, wherein the configuration module is used for reporting the IOAM measured value in the previous round of measurement period to the management and control equipment when the timing of the next round of measurement period reaches half of the measurement period.
In the above-mentioned alternative marking measurement period switching device 30, through the synergistic effect of the measurement starting module 301, the period switching module 302 and the reporting module 303, the network node in the network to be measured realizes automatic switching of the IOAM measurement period through the ASIC chip, and the measurement period switching precision can be improved without being controlled by a management and control device, thereby improving the precision of packet loss and delay measurement in the IOAM. Meanwhile, the periodic switching of the IOAM measurement does not need protocol analysis, does not need participation of an upper CPU, and greatly saves upper CPU resources of network equipment.
For the specific limitation of the alternative mark measurement period switching device 30, reference is made to the limitation of the alternative mark measurement period switching method hereinabove, and the description thereof will not be repeated. The respective modules in the above-described alternate mark measurement period switching device 30 may be implemented in whole or in part by software, hardware, and combinations thereof. The above modules may be embedded in hardware or independent of a processor in the electronic device, or may be stored in software in a memory of the electronic device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a network device 40 is provided, which may be a terminal, and the internal structure of which may be as shown in fig. 12. The network device 40 includes a processor, memory, communication interfaces, and input means connected by a system bus. Wherein the processor of the network device 40 is configured to provide computing and control capabilities. The memory of the network device 40 includes a nonvolatile storage medium, internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The communication interface of the network device 40 is used for communicating with an external terminal in a wired or wireless manner, where the wireless manner may be implemented through WIFI, an operator network, near Field Communication (NFC), or other technologies. The computer program, when executed by a processor, implements the alternating mark measurement period switching method provided by the above embodiment.
The architecture shown in fig. 12 is merely a block diagram of a portion of the architecture associated with the inventive arrangements and is not limiting as to the network devices to which the inventive arrangements are applied, and a particular network device may include more or fewer components than shown in fig. 12, or may combine certain components, or have a different arrangement of components.
In one embodiment, the alternate mark measurement period switching device 30 provided by the present invention may be implemented in the form of a computer program that is executable on a network device 40 as shown in fig. 12. The memory of the network device 40 may store various program modules constituting the alternate mark measurement period switching apparatus 30, such as a measurement start module 301, a period switching module 302, and a reporting module 303 shown in fig. 11. The computer program of each program module causes the processor to execute the steps in the alternate mark measurement cycle switching method described in the present specification.
For example, the network device 40 shown in fig. 12 may perform step S12 by the measurement start module 301 in the alternate mark measurement period switching apparatus 30 shown in fig. 11. The network device 40 may perform steps S14 and S16 through the period switching module 302. The network device 40 may perform S18 through the reporting module 303.
In one embodiment, a network device 40 is provided that includes a memory storing machine-executable instructions and a processor that when executed performs the following steps: when a measurement instruction issued by the control equipment is received, starting a round of measurement period timing through an ASIC chip based on a preset configuration information table, and performing IOAM measurement on the specified flow in the round of measurement period; when the round of measurement period reaches the target duration, based on the configuration information table, timing the next round of measurement period through the ASIC chip, and performing IOAM measurement on the appointed flow in the next round of measurement period; returning to execute the step of timing the next round of measurement period through the ASIC chip based on the configuration information table and performing IOAM measurement on the appointed flow in the next round of measurement period when the next round of measurement period reaches the target duration and the ending instruction issued by the management and control equipment is not received; and when the timing of the next round of measurement period reaches half of the measurement period, reporting the IOAM measured value in the previous round of measurement period to the management and control equipment.
In one embodiment, a storage medium having a computer program stored thereon is provided, which when executed by a processor, performs the steps of: when a measurement instruction issued by the control equipment is received, starting a round of measurement period timing through an ASIC chip based on a preset configuration information table, and performing IOAM measurement on the specified flow in the round of measurement period; when the round of measurement period reaches the target duration, based on the configuration information table, timing the next round of measurement period through the ASIC chip, and performing IOAM measurement on the appointed flow in the next round of measurement period; returning to execute the step of timing the next round of measurement period through the ASIC chip based on the configuration information table and performing IOAM measurement on the appointed flow in the next round of measurement period when the next round of measurement period reaches the target duration and the ending instruction issued by the management and control equipment is not received; and when the timing of the next round of measurement period reaches half of the measurement period, reporting the IOAM measured value in the previous round of measurement period to the management and control equipment.
In the several embodiments provided in the present invention, it should be understood that the disclosed apparatus and method may be implemented in other manners. The apparatus embodiments described above are merely illustrative, for example, flow diagrams and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, the functional modules in the embodiments of the present invention may be integrated together to form a single part, or each module may exist alone, or two or more modules may be integrated to form a single part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention may be embodied essentially or in a part contributing to the prior art or in a part of the technical solution, in the form of a software product stored in a storage medium, comprising several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to perform all or part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (RAM, random Access Memory), a magnetic disk, or an optical disk, or other various media capable of storing program codes.
The above description is only of the preferred embodiments of the present invention and is not intended to limit the present invention, and various modifications and variations may be made to the present invention by those skilled in the art. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. An alternating mark measurement cycle switching method, characterized by being applied to a network device of a network to be measured, the network device being communicatively connected to a management and control device, and the network device comprising an ASIC chip, the method comprising:
when a measurement instruction issued by the control equipment is received, starting a round of measurement period timing through the ASIC chip based on a preset configuration information table, and performing IOAM measurement on the specified flow in the round of measurement period;
when the round of measurement period reaches the target duration, based on the configuration information table, the ASIC chip is used for timing the next round of measurement period, and IOAM measurement is carried out on the appointed flow in the next round of measurement period;
when the next round of measurement period reaches the target duration and an ending instruction issued by the control equipment is not received, returning to execute the step of timing the next round of measurement period through the ASIC chip based on the configuration information table and performing IOAM measurement on the specified flow in the next round of measurement period;
and when the timing of the next round of measurement period reaches half of the measurement period, reporting the IOAM measured value in the previous round of measurement period to the management and control equipment.
2. The alternately marked measurement period switching method of claim 1 wherein the measurement instruction includes a type identifier specifying a flow rate;
when the network device is an initial node of the network to be measured, the step of starting a round of measurement period timing through the ASIC chip based on a preset configuration information table and performing IOAM measurement on the specified flow in the round of measurement period comprises the following steps:
searching configuration information corresponding to the type identifier from a preset configuration information table; the configuration information comprises a target duration of a measurement period and a measurement mark value;
counting down by using the target duration, taking the flow matched with the type identifier in the message flow to be converted as a specified flow, and adding an IOAM measurement tag into the specified flow based on the measurement mark value;
and during the countdown period, forwarding the designated flow after the IOAM measurement tag is added, and counting the number of revolutions and/or the time of revolution.
3. The method for switching the measurement cycle of the alternate mark according to claim 2, wherein when the network device is an intermediate node of the network to be measured, the step of starting a round of measurement cycle timing through the ASIC chip based on the preset configuration information table and performing IOAM measurement on the specified traffic in the round of measurement cycle includes:
Searching configuration information corresponding to the type identifier from a preset configuration information table, and counting down by using a target duration in the configuration information;
and during the countdown period, if the received message traffic is identified to have the IOAM measurement tag, counting the number of revolutions and/or the time of revolutions according to the IOAM measurement tag.
4. The method for switching measurement periods of alternating marking according to claim 2, wherein when the network device is an end node of a network to be measured, the step of starting a round of measurement period timing by the ASIC chip based on a preset configuration information table and performing IOAM measurement on a specified flow in the round of measurement period includes:
searching configuration information corresponding to the type identifier from a preset configuration information table, and counting down by using a target duration in the configuration information;
and during the countdown period, if the received message flow is identified to have the IOAM measurement tag, counting the number of revolutions and/or the time of revolutions according to the IOAM measurement tag, and stripping the IOAM measurement tag in the message flow.
5. The method according to any one of claims 1 to 4, wherein the step of performing timing of a next round of measurement cycle by the ASIC chip based on the configuration information table includes:
Searching a preset configuration information table to obtain a target duration corresponding to the type identifier in the measurement instruction;
and counting down by the ASIC chip according to the target time length, and switching the measurement mark value of the previous round of measurement period to obtain the measurement mark value of the current round of measurement period.
6. The alternate mark measurement cycle switching method according to claim 5, wherein the measurement mark value includes a packet loss mark value;
the step of switching the measurement mark value of the previous round of measurement period to obtain the measurement mark value of the current round of measurement period comprises the following steps:
and turning over the packet loss marking value in the previous round of measurement period to obtain the measurement marking value of the current round of measurement period.
7. The alternating mark measurement period switching method according to claim 1, characterized in that the method further comprises:
receiving measurement configuration information issued by the control equipment, and recording the measurement configuration information into a configuration information table; the measurement configuration information comprises a flow type to be measured and a target duration of a measurement period.
8. The device is characterized by being applied to network equipment of a network to be measured, wherein the network equipment is in communication connection with management and control equipment and 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 used for starting one round of measurement period timing through the ASIC chip based on a preset configuration information table when receiving a measurement instruction issued by the management and control equipment, and performing IOAM measurement on the specified flow in the round of measurement period;
the period switching module is used for timing the next round of measurement period through the ASIC chip based on the configuration information table when the round of measurement period reaches the target duration, and performing IOAM measurement on the specified flow in the next round of measurement period;
the period switching module is further configured to, when the next measurement period reaches a target duration and an end instruction issued by the control device is not received, return to execute the step of performing timing of the next measurement period through the ASIC chip based on the configuration information table, and perform IOAM measurement on a specified flow in the next measurement period;
and the reporting module is used for reporting the IOAM measured value in the previous round of measurement period to the management and control equipment when the timing of the next round of measurement period reaches half of the measurement period.
9. A network device comprising a processor and a memory, the memory storing machine executable instructions executable by the processor to implement the alternating mark measurement period switching method of any one of claims 1 to 7.
10. A storage medium having stored thereon a computer program, which when executed by a processor implements the alternating mark measurement period switching method according to any one of claims 1 to 7.
CN202310586706.XA 2023-05-23 2023-05-23 Method, device, network equipment and storage medium for switching measurement period of alternate mark Pending CN116668344A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310586706.XA CN116668344A (en) 2023-05-23 2023-05-23 Method, device, network equipment and storage medium for switching measurement period of alternate mark

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310586706.XA CN116668344A (en) 2023-05-23 2023-05-23 Method, device, network equipment and storage medium for switching measurement period of alternate mark

Publications (1)

Publication Number Publication Date
CN116668344A true CN116668344A (en) 2023-08-29

Family

ID=87714582

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310586706.XA Pending CN116668344A (en) 2023-05-23 2023-05-23 Method, device, network equipment and storage medium for switching measurement period of alternate mark

Country Status (1)

Country Link
CN (1) CN116668344A (en)

Similar Documents

Publication Publication Date Title
US8184553B2 (en) Method and apparatus for measuring packet transmission quality
CN102273136B (en) Method and apparatus for detecting multi-service performance in tunnel
US20220407791A1 (en) Network performance detection method and apparatus, and network device
JP2004112791A (en) Method of measuring network operation parameter
CN110971331B (en) Hop-by-hop time delay measurement method and system
CN112398557B (en) Time delay statistical method, device, storage medium and system
EP2179611A1 (en) Monitoring individual data flow performance
EP2140613A1 (en) Method and apparatus for performance monitoring in a communications network
CN105429822A (en) Software defined network based method for measuring link packet loss at each hop on peer-to-peer path
CN114338465A (en) Network anomaly determination method and device
CN113067740B (en) Method, device, equipment and computer readable storage medium for detecting following path performance
WO2016165439A1 (en) Method, device and system for determining uplink scheduling traffic
CN113973063A (en) In-band measurement method, device and node
CN112448926A (en) Processing method and system for in-band operation, management and maintenance IOAM
Olvera-Irigoyen et al. Available bandwidth probing for path selection in heterogeneous home networks
CN113328901B (en) Message out-of-order detection method, device and system
CN116668344A (en) Method, device, network equipment and storage medium for switching measurement period of alternate mark
US7701863B2 (en) Decentralized SLS monitoring for throughput in a differentiated service environment
WO2020259113A1 (en) Network performance measurement device and method
CN114697202B (en) Detection method and device
CN113708985B (en) Flow detection method, device and system
US8121816B2 (en) Identifying causes of service level agreement performance violations
CN112702218A (en) Method, system, network device and storage medium for detecting data transmission quality
WO2024055584A1 (en) Delay measurement method, electronic device, and computer-readable medium
CN112769631A (en) Method for measuring data transmission quality, forwarding device and readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination