WO2020135391A1 - 一种操作管理维护iOAM报文的传输方法及相应装置 - Google Patents

一种操作管理维护iOAM报文的传输方法及相应装置 Download PDF

Info

Publication number
WO2020135391A1
WO2020135391A1 PCT/CN2019/127791 CN2019127791W WO2020135391A1 WO 2020135391 A1 WO2020135391 A1 WO 2020135391A1 CN 2019127791 W CN2019127791 W CN 2019127791W WO 2020135391 A1 WO2020135391 A1 WO 2020135391A1
Authority
WO
WIPO (PCT)
Prior art keywords
node device
ioam
message
ioam message
tail
Prior art date
Application number
PCT/CN2019/127791
Other languages
English (en)
French (fr)
Inventor
周天然
徐玲
刘敏
陆博
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to KR1020217020410A priority Critical patent/KR102535474B1/ko
Priority to EP19904381.1A priority patent/EP3883186B1/en
Publication of WO2020135391A1 publication Critical patent/WO2020135391A1/zh
Priority to US17/360,001 priority patent/US20210328860A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0686Additional information in the notification, e.g. enhancement of specific meta-data
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/02Capturing of monitoring data
    • H04L43/026Capturing of monitoring data using flow identification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/06Generation of reports
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/0858One way delays
    • 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/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/16Threshold monitoring
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/11Identifying congestion
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/11Identifying congestion
    • H04L47/115Identifying congestion using a dedicated packet
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/33Flow control; Congestion control using forward notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L2212/00Encapsulation of packets
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/04Network management architectures or arrangements
    • 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

Definitions

  • the present application relates to the field of communication technology, and in particular to an operation management and maintenance iOAM message transmission method and corresponding device.
  • Operation management and maintenance (OAM) technology is a network management technology that provides fault monitoring, fault reporting, fault location, and fault repair for the network.
  • OAM Operation management and maintenance
  • iOAM in-situ OAM
  • a plurality of node devices are usually included, and the plurality of node devices can generally be divided into head node devices, intermediate node devices, and tail node devices.
  • the head node device after acquiring the business message, the head node device encapsulates the iOAM header into the business message to obtain the iOAM message, and encapsulates the data collection instruction in the iOAM message, and after the data collection instruction is encapsulated, the head node device will also Add your own node information to the iOAM message, and then transmit the iOAM message to the intermediate node device; after each intermediate node device obtains the iOAM message, when it detects the data collection instruction in the iOAM message, it will The node information is added to the iOAM message, and the iOAM message with the added node information is transmitted to the next-hop node device; after receiving the iOAM message transmitted by the intermediate node device of the previous hop, the tail node device responds to the
  • the packet is decapsulated to obtain the node information of each node device contained therein, and then the node information is transmitted to the management device, so that the management device analyzes the node information.
  • the tail node device sends the node information of each node device along the way to the management device.
  • the node information includes information such as the node identification of the intermediate node device. Refer to the schematic diagram shown in FIG. 1, where R1 is the head node device in the iOAM network, R6 is the tail node device, and the remaining nodes (that is, R2, R3, R4, and R5) are intermediate node devices.
  • iOAM technology has the characteristic of encapsulating data streams packet by packet, which causes the head node device to obtain a large number of iOAM messages. Further, it causes the tail node device to report more data to the management device Large, and even affect the performance of the tail node equipment and management equipment.
  • an embodiment of the present application discloses a transmission method and device for in-band operation management and maintenance iOAM messages.
  • an embodiment of the present application discloses an in-band operation management and maintenance iOAM message transmission method.
  • the method is applied to an iOAM network.
  • the iOAM network includes a measurement domain, and the measurement domain includes a tail node device.
  • the tail node device is an exit device of the measurement domain, and the method includes:
  • the tail node device receives a first iOAM message sent by the first node device, where the first iOAM message includes first node information and service data, and the first node information indicates transmission of the first iOAM message Information of the first node device, the measurement domain includes the first node device;
  • the tail node device determines whether the first iOAM message includes an important data identifier, and the important data identifier instructs the node device in the measurement domain to trigger a trigger that meets a predetermined condition during transmission of the first iOAM message important events;
  • the tail node device determines that the first iOAM message includes an important data identifier
  • the tail node device When the tail node device determines that the first iOAM message includes an important data identifier, the tail node device generates a notification message according to the first iOAM message, and the tail node device sends a notification message to the management device of the iOAM network
  • the notification message, the notification message includes the first node information.
  • the tail node device only when the node device in the measurement domain triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device sends a notification message to the management device. Only when the node device in the measurement domain triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device sends a notification message to the management device.
  • the method further includes:
  • the tail node device determines that the first iOAM message does not include an important data identifier, the tail node device does not generate the notification message.
  • the first iOAM message does not include the important data identifier, it indicates that the node device in the measurement domain did not trigger an important event that meets the predetermined condition during the transmission of the first iOAM message, so there is no need for the management device to analyze, therefore, The tail node device does not generate the notification message, and accordingly, there is no need to report the notification message to the management device, thereby reducing the amount of data reported by the tail node device to the management device.
  • the notification message further includes tail node information, and the tail node information indicates information of the tail node device transmitting the first iOAM message.
  • the method before the tail node device determines whether the first iOAM message includes an important data identifier, the method further includes:
  • the tail node device detects whether it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message
  • the tail node device determines that it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the tail node device updates the important data identifier in the first iOAM message.
  • the tail node device can update the important data identifier in the first iOAM message according to whether it triggers an important event that meets a predetermined condition.
  • the tail node device receiving the first iOAM message sent by the first node device includes:
  • the tail node device receives the first iOAM message sent by the first node device and forwarded by the second node device, and the first iOAM message further includes second node information;
  • the second node information indicates the second node device transmitting the first iOAM message
  • the second node information is the node information encapsulated in the first iOAM message by the second node device;
  • the notification message also includes the second node information.
  • the first iOAM message acquired by the tail node device can contain the node information of each node device transmitting the first iOAM message in the measurement domain, so that the notification message includes the first transmission in the measurement domain Node information of each node device in the iOAM message.
  • the tail node device detects whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, including:
  • the tail node device obtains the congestion parameter of its own outgoing port, and the congestion parameter includes displaying the ECN waterline for congestion notification;
  • the tail node device determines that it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message;
  • the tail node device When the tail node device determines that it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the tail node device adds the tail node information to the first iOAM message ,
  • the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the arrival time of the first iOAM message to the tail node device Time at the port.
  • the tail node device detects whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, including:
  • the tail node device acquires the first time when the first iOAM message arrives at the ingress port of the tail node device, and the second time when the first iOAM message reaches the egress port of the tail node device;
  • the tail node device determines that it transmits an important event that meets a predetermined condition during the transmission of the first iOAM message ;
  • the tail node device When the tail node device determines that it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the tail node device adds the tail node information to the first iOAM message ,
  • the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the arrival time of the first iOAM message to the tail node device Time at the port.
  • the tail node device detects whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, including:
  • the tail node device obtains characteristic parameters of the data stream corresponding to the first iOAM message
  • the tail node device compares the characteristic parameters of the data stream corresponding to the first iOAM message with the characteristic parameters of the data stream corresponding to the target iOAM message stored by the tail node device, and the target iOAM message is the tail The iOAM message previously obtained by the node device;
  • the tail node device compares the tail node corresponding to the first iOAM message
  • the port of the device corresponds to the port of the tail node device of the target iOAM message, and the port includes: an ingress port and/or an egress port;
  • the tail node device determines that it is transmitting the first iOAM message Medium, trigger important events that meet the predetermined conditions;
  • the tail node device When the tail node device determines that it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the tail node device adds the tail node information to the first iOAM message ,
  • the tail node information includes: a node identifier of the tail node device and a port identifier of the tail node device, and the port identifier includes: an input port identifier and/or an output port identifier.
  • the notification message further includes: identification information of the first iOAM message, the identification information includes a flow identifier and a sequence number of the first iOAM message, and the flow identifier indicates In the data stream to which the first iOAM message belongs, the sequence number indicates the position of the first iOAM message in the data stream.
  • the important data identification includes the device identification of the node device that triggered the important event.
  • the important data identifier includes an event type identifier of the triggered important event.
  • the embodiments of the present application share an in-band operation management and maintenance iOAM message transmission method.
  • the method is applied to an iOAM network.
  • the iOAM network includes a measurement domain, and the measurement domain includes a first node device.
  • the method includes:
  • the first node device obtains a first iOAM message, and the first iOAM message includes service data transmitted in the iOAM network;
  • the first node device determines whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message
  • the first node device determines that the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message
  • the first node device updates the first iOAM message ,
  • the updated first iOAM message includes: important data identifiers, first node information, and service data, and the first node information indicates information of the first node device transmitting the first iOAM message;
  • the first node device forwards the updated first iOAM message to the next-hop node device of the first node device.
  • the first node device can determine that when it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the first iOAM message is updated, and the updated first iOAM message
  • the document includes important data identification, so that the first iOAM message can be marked by the important data identification, which facilitates the tail node device to detect whether a notification message needs to be generated and reported based on the first iOAM message, thereby reducing the data reported by the tail node device the amount.
  • the important data identifier is located in a preset field of the total header of the updated first iOAM message
  • the important data identifier is located in a preset field of the iOAM header of the updated first iOAM message;
  • the important data identifier is located in the service data included in the updated first iOAM message
  • the important data identifier is located in a preset field between the iOAM header of the updated first iOAM message and service data.
  • the first node device determines whether the first node device triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, including:
  • the first node device obtains a congestion parameter of its own outgoing port, and the congestion parameter includes displaying a congestion notification ECN waterline;
  • the first node device determines that it transmits an important event that meets predetermined conditions during the transmission of the first iOAM message;
  • the first node information includes: a node identifier of the first node device, a time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first The time of the egress port of the node device.
  • the first node device determines whether the first node device triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, including:
  • the first node device obtains the first time when the first iOAM message arrives at the ingress port of the first node device, and obtains the first time when the first iOAM message arrives at the egress port of the first node device Two times
  • the first node device determines that in the process of transmitting the first iOAM message, it triggers the importance of meeting the predetermined condition. event;
  • the first node information includes: a node identifier of the first node device, a time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first The time of the egress port of the node device.
  • the first node device determines whether the first node device triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, including:
  • the first node device obtains the characteristic parameters of the data stream corresponding to the first iOAM message
  • the first node device compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the first node device, the target iOAM message is Describe the iOAM message obtained by the first node device before;
  • the first node device compares the first iOAM message corresponding to the first
  • the port of a node device corresponds to the port of the first node device of the target iOAM message, and the port includes: an ingress port and/or an egress port;
  • the first node device determines that it is transmitting the first iOAM message In the process of writing, trigger important events that meet the predetermined conditions;
  • the first node information includes: a node identification of the first node device and a port identification of the first node device, and the port identification includes: an input port identification and/or an output port identification.
  • an embodiment of the present application discloses an in-band operation management and maintenance iOAM message transmission device.
  • the device is applied to an iOAM network.
  • the iOAM network includes a measurement domain, and the measurement domain includes a tail node device.
  • the tail node device is an exit device of the measurement domain, and the device is provided in the tail node device.
  • the device includes:
  • the receiver is configured to receive a first iOAM message sent by a first node device, where the first iOAM message includes first node information and service data, and the first node information indicates transmission of the first iOAM Information of the first node device of the message, the measurement domain includes the first node device;
  • the processor is configured to determine whether the first iOAM message includes an important data identifier, and the important data identifier instructs a node device in the measurement domain to trigger a predetermined compliance during transmission of the first iOAM message Important events of condition;
  • the processor is further configured to generate a notification message according to the first iOAM message;
  • the transmitter is used to send the notification message to the management device of the iOAM network, where the notification message includes the first node information.
  • the processor is further configured to not generate the notification message when it is determined that the first iOAM message does not include an important data identifier.
  • the notification message further includes tail node information, and the tail node information indicates information of the tail node device transmitting the first iOAM message.
  • the processor is further configured to detect that the tail node device is transmitting the first iOAM message before determining whether the first iOAM message includes an important data identifier , Whether to trigger important events that meet the predetermined conditions;
  • the processor is further configured to update the important data identifier in the first iOAM message.
  • the processor is specifically configured to receive the first iOAM message sent by the first node device and forwarded by the second node device, and the first iOAM message
  • the article also includes the second node information
  • the second node information indicates the second node device transmitting the first iOAM message
  • the second node information is the node information encapsulated in the first iOAM message by the second node device;
  • the notification message also includes the second node information.
  • the processor is specifically configured to obtain a congestion parameter of the egress port of the tail node device, the congestion parameter includes displaying a congestion notification ECN waterline;
  • the processor determines that the tail node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message;
  • the processor is further configured to add the tail node to the first iOAM message Information, the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the first iOAM message reaches the tail node device The time of the outgoing port.
  • the processor is specifically configured to obtain the first time when the first iOAM message arrives at the ingress port of the tail node device, and obtain the first iOAM message The second time to reach the egress port of the tail node device;
  • the processor determines that the tail node device triggers to meet a predetermined condition during the transmission of the first iOAM message Important events
  • the processor is further configured to add the tail node to the first iOAM message Information, the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the first iOAM message reaches the tail node device The time of the outgoing port.
  • the processor is specifically configured to obtain characteristic parameters of the data stream corresponding to the first iOAM message
  • the processor compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the tail node device, the target iOAM message is the tail node IOAM messages previously obtained by the device;
  • the processor compares the first iOAM message corresponding to the tail node device And the target iOAM packet correspond to the port of the tail node device, and the port includes: an ingress port and/or an egress port;
  • the processor determines that the tail node device is transmitting the first iOAM message In the process of writing, trigger important events that meet the predetermined conditions;
  • the processor adds the tail node information to the first iOAM message.
  • the tail node information includes: a node identification of the tail node device and a port identification of the tail node device, and the port identification includes: an input port identification and/or an output port identification.
  • the notification message further includes: identification information of the first iOAM message, the identification information includes a flow identifier and a sequence number of the first iOAM message, and the flow identifier indicates In the data stream to which the first iOAM message belongs, the sequence number indicates the position of the first iOAM message in the data stream.
  • the important data identification includes the device identification of the node device that triggered the important event.
  • the important data identifier includes an event type identifier of the triggered important event.
  • an embodiment of the present application discloses an in-band operation management and maintenance iOAM message transmission device.
  • the device is applied to an iOAM network.
  • the iOAM network includes a measurement domain, and the measurement domain includes a first node device.
  • the apparatus is provided in the first node device, and the apparatus includes:
  • the receiver is configured to obtain a first iOAM message, and the first iOAM message includes service data transmitted in the iOAM network;
  • the processor is configured to determine whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message;
  • the processor determines that the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message
  • the processor updates the first iOAM message, the updated The first iOAM message includes: important data identification, first node information, and service data, and the first node information indicates information of the first node device that transmits the first iOAM message;
  • the transmitter is used to forward the updated first iOAM message to the next-hop node device of the first node device.
  • the important data identifier is located in a preset field of the total header of the updated first iOAM message
  • the important data identifier is located in a preset field of the iOAM header of the updated first iOAM message;
  • the important data identifier is located in the service data included in the updated first iOAM message
  • the important data identifier is located in a preset field between the iOAM header of the updated first iOAM message and service data.
  • the processor is specifically configured to acquire a congestion parameter of the egress port of the first node device, the congestion parameter includes displaying a congestion notification ECN waterline;
  • the processor determines that the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message;
  • the first node information includes: a node identifier of the first node device, a time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first The time of the egress port of the node device.
  • the processor is specifically configured to obtain the first time when the first iOAM message arrives at the ingress port of the first node device, and obtain the first iOAM message The second time when the text reaches the egress port of the first node device;
  • the processor determines that the first node device, during the transmission of the first iOAM message, triggers to meet the predetermined Important events of condition;
  • the first node information includes: a node identifier of the first node device, a time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first The time of the egress port of the node device.
  • the processor is specifically configured to acquire characteristic parameters of the data stream corresponding to the first iOAM message
  • the processor compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the first node device.
  • the target iOAM message is the first IOAM messages previously obtained by a node device;
  • the processor compares the first iOAM message corresponding to the first node
  • the port of the device corresponds to the port of the first node device of the target iOAM message, and the port includes: an ingress port and/or an egress port;
  • the processor determines that the first node device is transmitting the first In the process of an iOAM message, trigger an important event that meets predetermined conditions;
  • the first node information includes: a node identification of the first node device and a port identification of the first node device, and the port identification includes: an input port identification and/or an output port identification.
  • the present application also provides an in-band operation management and maintenance iOAM message transmission device, which is provided in a tail node device.
  • the tail node device is applied to a measurement domain included in an iOAM network.
  • the tail node is an exit device of the measurement domain, and the device includes a unit for performing the method steps of the first aspect and the implementation of the first aspect.
  • the present application also provides an in-band operation management and maintenance iOAM message transmission device, which is provided in a first node device, and the first node device is applied in a measurement domain included in an iOAM network.
  • the apparatus includes a unit for performing the method steps of the second aspect and the implementation of the second aspect.
  • an embodiment of the present application discloses an in-band operation management and maintenance iOAM message transmission device used as a tail node device.
  • the tail node device is applied to a measurement domain included in an iOAM network.
  • the tail node device is The export equipment of the measurement domain, the equipment includes:
  • the memory is used to store program instructions
  • the processor is configured to call and execute the program instructions stored in the memory, so that the tail node device executes the first aspect, or any possible design method in the first aspect.
  • an embodiment of the present application discloses an in-band operation management and maintenance iOAM message transmission device, which is used as a first node device.
  • the first node device is applied to a measurement domain included in an iOAM network, and the tail node
  • the device is an export device of the measurement domain, and the device includes:
  • the memory is used to store program instructions
  • the processor is configured to call and execute the program instructions stored in the memory, so that the first node device executes the second aspect, or any possible design method in the second aspect.
  • the present application provides a computer-readable storage medium having instructions stored therein, which when executed on a computer, causes the computer to perform the first aspect or any possible design of the first aspect The method.
  • the present application provides a computer-readable storage medium having instructions stored therein, which when executed on a computer, causes the computer to perform the second aspect or any possible design of the second aspect The method.
  • the present application provides an in-band operation management and maintenance iOAM message transmission system.
  • the system is applied to a measurement domain included in an iOAM network.
  • the system includes:
  • a tail node device and a first node device is an exit device of the measurement domain;
  • the tail node device is used to perform the method in the first aspect or any possible design in the first aspect;
  • the first node device is used to perform the method of the second aspect or any possible design of the second aspect.
  • each time the tail node device obtains an iOAM message it generates a notification message according to the iOAM message and reports the notification message to the management device, resulting in a large amount of data reported by the tail node device to the management device.
  • the tail node device only when the received first iOAM message contains the important data identifier, the tail node device generates a notification message according to the first iOAM message and reports it to the management device.
  • the node device in the measurement domain where the tail node device is located transmits the first iOAM message and triggers an important event that meets a predetermined condition
  • the first iOAM message will contain the important data identifier, that is, only the measurement
  • the tail node device sends a notification message to the management device.
  • the solution of the embodiment of the present application can reduce the number of notification messages sent by the tail node device to the management device, that is, reduce the amount of data reported by the tail node device to the management device, thereby solving the tail node device in the prior art The problem of large amount of reported data.
  • FIG. 1 is a schematic diagram of a network structure of an iOAM network in an application scenario of an embodiment of this application;
  • FIG. 2 is a schematic diagram of a working process of an iOAM message transmission method disclosed in an embodiment of the present application
  • FIG. 3 is a schematic diagram of a working process of another iOAM message transmission method disclosed in an embodiment of the present application.
  • FIG. 4 is a schematic diagram of a working process of another iOAM message transmission method disclosed in an embodiment of the present application.
  • FIG. 5 is a schematic diagram of a working process of another iOAM message transmission method disclosed in an embodiment of the present application.
  • FIG. 6 is a schematic diagram of a working process of another iOAM message transmission method disclosed in an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a working process of another iOAM message transmission method disclosed in an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an iOAM message format disclosed in an embodiment of the present application.
  • FIG. 9 is a schematic diagram of another iOAM message format disclosed in an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of an iOAM message transmission device disclosed in an embodiment of the present application.
  • FIG. 11 is a schematic structural diagram of yet another iOAM message transmission device disclosed in an embodiment of the present application.
  • FIG. 12 is a schematic structural diagram of an iOAM message transmission device disclosed in an embodiment of the present application.
  • FIG. 13 is a schematic structural diagram of an iOAM message transmission system disclosed in an embodiment of the present application.
  • an embodiment of the present application discloses a transmission method and device for in-band operation management and maintenance iOAM messages.
  • each node device can be divided into: the entry border node device of the iOAM network, the intermediate node device of the iOAM network, and the exit border node device of the iOAM network.
  • the iOAM message is transmitted to the intermediate node device of the iOAM network; after the intermediate node device of the iOAM network obtains the iOAM message, when it detects the data collection instruction in the iOAM message, it adds its own node information To the iOAM message, and transmit the iOAM message with the added node information to the next hop node device; after receiving the iOAM message transmitted by the intermediate node device of the previous hop, the egress border node device of the iOAM network receives , The exit border node device of the iOAM network decapsulates the iOAM message, obtains the service message, and transmits the service message to the network
  • the iOAM network may include a measurement domain.
  • the measurement field indicates the measurement range of the iOAM network.
  • the measurement domain may include all or part of the node devices in the iOAM network. For example, if the node device included in the iOAM network is ⁇ R1, R2, R3, R4, R5, R6 ⁇ , the node device included in the measurement domain is ⁇ R1, R2, R3 ⁇ , or the node device included in the measurement domain is ⁇ R1 , R2, R3, R4, R5, R6 ⁇ , where R1-R6 respectively identify node devices.
  • the iOAM network may include multiple measurement domains.
  • the iOAM network When the iOAM network includes a plurality of measurement domains, a part of the node devices included in one measurement domain of the plurality of measurement domains may coincide with a part of the node devices included in another measurement domain of the plurality of measurement domains.
  • the measurement domain 1 in the iOAM network includes node devices R1, R2, R3, and R4; the measurement domain 2 in the iOAM network includes node devices R3, R4, R5, and R6.
  • each measurement domain contains at least two node devices, and at least two node devices include tail node devices in the measurement domain.
  • the tail node devices in the measurement domain are egress devices in the measurement domain.
  • the measurement After acquiring the iOAM message, the tail node device in the domain can read the node information contained in the iOAM message and report the node information to the management device.
  • the node device included in the iOAM network is ⁇ R1, R2, R3, R4, R5, R6 ⁇ , where R1 is the entrance of the iOAM network
  • the border node equipment, the node equipment ⁇ R2, R3, R4, R5 ⁇ is the intermediate node equipment of the iOAM network, and R6 is the egress border node equipment of the iOAM network.
  • the four node devices ⁇ R1, R2, R3, R4 ⁇ can be divided into a measurement domain, then R1 is the head node device of the measurement domain, R4 is the tail node device of the measurement domain, and R2 and R3 are The intermediate node device of the measurement domain.
  • R4 may read the node information contained in the iOAM message and report the node information to the management device.
  • the node information of a certain node device refers to the data along the way of the node device in the iOAM network (that is, iOAM trace data).
  • the measurement domain 1 in the iOAM network includes node devices R1, R2, R3, and R4.
  • the node devices included in the measurement domain 2 are R3, R4, R5, and R6, and R3 and R4 are node devices that overlap between the two measurement domains.
  • the tail node device in the measurement domain can be configured accordingly.
  • the iOAM message is called the target message of the tail node device
  • the tail node device can be configured with a target Packet flow strategy.
  • the flow strategy of the target packet includes the classification parameter of the data flow corresponding to the target packet (ie, the flow classification parameter) and the behavior (ie, the traffic behavior parameter) that needs to be performed on the target packet.
  • the flow classification parameter may be any combination of one or more of the five-tuple corresponding to the target packet (that is, source IP address, destination IP address, source port, destination port, and transport layer protocol).
  • the flow The classification parameter may be three of the five-tuple corresponding to the target message.
  • the traffic behavior parameter may be a report enable flag bit to instruct the tail node device to read the node information in the target message after acquiring the target message and report a notification message containing the node information.
  • the tail node device in the measurement domain After receiving an iOAM message, the tail node device in the measurement domain matches the data flow characteristic parameter of the iOAM message with the flow classification parameter in the flow policy configured by itself. When the match hits, the iOAM message is considered The text is the target message of the tail node device in the measurement domain. In this case, the tail node device performs the behavior indicated by the traffic behavior parameter, that is, reads the node information contained in the iOAM message, generates a notification message according to the node information, and reports the notification message to the management device.
  • the flow classification parameter configured for the tail node device in the measurement domain is a partial parameter in the quintuple corresponding to the target packet
  • the data flow characteristic parameter of the iOAM packet and the flow policy configured by the tail node device When the flow classification parameters are exactly the same, the match is considered to be a hit.
  • the flow classification parameters configured for the tail node device in the measurement domain are all the parameters in the quintuple corresponding to the target packet, then the number of the same parameters of the two is greater than the preset number threshold, it is considered to match Hit.
  • the four node devices R1 to R4 constitute the first measurement domain
  • the R4 node device is the tail node device of the first measurement domain
  • R4 needs to report after acquiring the first target packet Node information contained in the first target message
  • the three node devices R4 to R6 constitute the second measurement domain
  • the R6 node device is the tail node device of the second measurement domain
  • R6 after acquiring the second target message The node information contained in the second target packet needs to be reported.
  • R4 matches the data flow characteristic parameters of the first iOAM message with the flow classification parameters in the first flow policy.
  • R4 determines that the first iOAM message is the first For the target message, R4 needs to read the node information in the first iOAM message, generate a notification message containing the node information, and report it.
  • R4 continues to transmit the first iOAM message to the next hop node device R5, and R5 transmits the first iOAM message to R6.
  • R6 matches the data flow characteristic parameters of the first iOAM message with the flow classification parameters in the second flow policy.
  • R6 determines that the first iOAM message is the second For the target message, R6 reads the node information in the first iOAM message, generates and reports a notification message containing the node information.
  • the IP address of the management device can also be configured, so that the tail node device reports information to the management device according to the IP address of the management device.
  • the tail node device when the tail node device in the measurement domain is configured accordingly, the tail node device can be individually configured, or the management device can also send the corresponding configuration information to the tail node device to achieve the tail Node device configuration.
  • the first embodiment of the present application discloses an in-band operation management and maintenance iOAM message transmission method.
  • the method is applied to an iOAM network, the iOAM network includes a measurement domain, and the measurement domain includes a tail node device, and the tail node device is an exit device of the measurement domain.
  • the method for transmitting iOAM messages disclosed in the embodiments of the present application includes the following steps:
  • Step S11 The tail node device receives the first iOAM message sent by the first node device.
  • the first iOAM message includes first node information and service data, the first node information indicates information of the first node device transmitting the first iOAM message, and the measurement domain includes the first One node device.
  • the business data refers to the data contained in the business message and needs to be transmitted in the iOAM network.
  • the measurement domain in the embodiment of the present application includes a tail node device and a first node device.
  • the first node device is the head node device in the measurement domain.
  • the head node device After acquiring the service packet, the head node device encapsulates the service packet to obtain the first iOAM report
  • the head node device can also add its own node information to the first iOAM message to obtain the first iOAM message containing the node information of the head node device, and then transmit the included head header to the tail node device The first iOAM message of the node information of the node device.
  • the first node device may be an intermediate node device in the measurement domain, or the first node device may be a head node device in the measurement domain. In a possible implementation manner, the first node device is an intermediate node device in the measurement domain.
  • the intermediate node device After obtaining the first iOAM message transmitted by the previous hop node device, the intermediate node device adds its own node information to the third node device. In an iOAM message, the first iOAM message loaded with the node information of the first node device is obtained, and then the first iOAM message loaded with the node information of the first node device is transmitted to the next-hop node device.
  • the next hop node device is an intermediate node device or a tail node device in the measurement domain.
  • the first node device is a head node device in the measurement domain
  • the measurement domain includes an intermediate node between the head node device and the tail node device in addition to the head node device and the tail node device
  • the intermediate node device can transmit it hop by hop, thereby transmitting the first iOAM message to the tail node device.
  • the node information of a certain node device refers to the data along the way (ie iOAM trace data) of the node device in the iOAM network.
  • the first node information indicates information of the first node device transmitting the first iOAM message, that is, data along the way of the first node device.
  • the first node information is the information of the head node device; if there are more than two node devices in the measurement domain
  • the first node device may be an intermediate node device in the measurement domain or a head node device in the measurement domain, and the first node information is information of the intermediate node device or information of the head node device.
  • the iOAM network is shown in Figure 1.
  • the four node devices ⁇ R1, R2, R3, R4 ⁇ are a measurement domain, where R1 is the head node device of the measurement domain and R4 is the tail node device of the measurement domain And R2 and R3 are intermediate node devices in the measurement domain.
  • the first node device may be R1, or may be R2 or R3.
  • the first node information is the information of R1, and R1 transmits the first iOAM message to R2 or R3, and R2 or R3 transmits the first iOAM message to R4.
  • the first node device may be R2 or R3.
  • the first node information is information of R2 or R3.
  • R2 or R3 transmits the first iOAM message to R4.
  • each node device in the measurement domain may process the acquired first iOAM message, for example, add it in the first iOAM message Handle its own node information and add important data identifiers in the first iOAM message.
  • the processed first iOAM message is still called a first iOAM message.
  • R1 is the head node device
  • R2 is the intermediate node device
  • R3 is the tail node device
  • R1 obtains the service message
  • Perform the encapsulation operation get the iOAM message containing the business data, and add its own node information to the iOAM message
  • the obtained message is the first iOAM message
  • R1 can also determine whether it is transmitting
  • an important event that meets a predetermined condition is triggered. If triggered, an important data identifier is added to the obtained first iOAM message, and the obtained message is still called a first iOAM message.
  • R1 transmits the first iOAM message to R2; after receiving the first iOAM message, R2 adds its own node information to the first iOAM message and determines that it is transmitting the first iOAM message.
  • R2 adds its own node information to the first iOAM message and determines that it is transmitting the first iOAM message.
  • an important data identifier is also added.
  • the iOAM message with the R2 node information and the important data identifier is still called the first iOAM message, and the R2 node is added.
  • the first iOAM message identified by information and important data is transmitted to R3.
  • Step S12 The tail node device determines whether the first iOAM message includes an important data identifier.
  • the important data identifier indicates that the node device in the measurement domain triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • the node device in the measurement domain After acquiring the first iOAM message, the node device in the measurement domain will determine whether it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, for example, whether congestion occurs, and/or Or whether there is a change in the message transmission path, etc.
  • the node device in the measurement domain may be a certain type of node device included in the measurement domain, or various types of node devices included in the measurement domain, that is, the node device in the measurement domain It refers to any kind of node device in the measurement domain, or a combination of at least two types of node devices in the head node device, the intermediate node device, and the tail node device.
  • the head node device or the intermediate node device can determine whether it triggers the importance of meeting the predetermined conditions during the transmission of the first iOAM message If an event is triggered, an important data identifier is added to the first iOAM message.
  • the first iOAM message obtained by the tail node device includes the important data identifier added by the head node device or the intermediate node device .
  • the node device in the measurement domain includes a tail node device
  • the tail node device in the measurement domain can determine whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, and determines when the trigger occurs.
  • An important data identifier is added to an iOAM message.
  • the first iOAM message obtained by the tail node device in the measurement domain includes the important data identifier added by the tail node device.
  • the important data identifier may include multiple forms, wherein the important data identifier may be a preset character, and the character may be a number, letter, symbol, or other types, for example, may be a fixed value (for example, "1" ), in this case, after detecting the preset character, the tail node device can determine that the first iOAM message includes an important data identifier; or, the important data identifier can be a node device that triggers an important event that meets a predetermined condition The number increases and the value increases. In this case, each node device updates the important data identifier after triggering the important event that meets the predetermined condition.
  • the updated important data identifier is the addition of the original important data identifier and the preset value As a result, for example, it may be the number of node devices that trigger the important event.
  • the important data corresponding to the first node device that triggers the important event is 1, and the second node device that triggers the important event will Update to 2, and so on;
  • the important data identification can also include the device identification of the node device that triggered the important event that meets the predetermined condition; further, the important event that meets the predetermined condition can be classified in advance, in this case
  • the important data identification includes the identification of the type of important events triggered by the node device.
  • Step S13 When the tail node device determines that the first iOAM message includes an important data identifier, the tail node device generates a notification message according to the first iOAM message, and the tail node device sends a notification message to the iOAM network.
  • the management device sends the notification message, where the notification message includes the first node information.
  • the tail node device in the measurement domain determines that the first iOAM message includes important data identifiers, the tail node device in the measurement domain can read the first node information contained in the first iOAM message and generate a message containing the first node information Notification message, and then report the notification message to the management device.
  • the tail node device in the measurement domain determines that the first iOAM message includes important data identification including multiple situations.
  • each node device ie, the head node device and the intermediate node device
  • the node device of an iOAM message adds an important data identifier to the first iOAM message.
  • each node device that is, the head node device and the intermediate node device
  • the tail node device triggers an important event that meets the predetermined condition during the transmission of an iOAM message
  • the tail node device in the measurement domain adds an important data identifier to the first iOAM message.
  • each node device ie, a head node device and an intermediate node device
  • each node device ie, a head node device and an intermediate node device
  • the measurement domain The tail node device in the detection of itself in the process of transmitting the first iOAM message also triggers an important event that meets the predetermined conditions.
  • the tail node device in the measurement domain can keep the first iOAM message transmitted before The important data identifier added by the node device of the server remains unchanged, or the important data identifier in the first iOAM message is updated.
  • the tail node device in the measurement domain can report to the management device in various ways.
  • the tail node device in the measurement domain may be directly connected to the management device of the iOAM network. After generating the notification message according to the first iOAM message, the tail node device directly transmits the notification message to the management device.
  • the tail node device in the measurement domain is not directly connected to the management device of the iOAM network, but when the route is reachable, the notification message can be transmitted to the management device by way of route forwarding.
  • the management device of the iOAM network can analyze the notification message, so as to detect whether each node device in the measurement domain has a problem of excessive transmission delay or link change during communication.
  • An embodiment of the present application discloses an iOAM message transmission method.
  • a tail node device in a measurement domain receives a first iOAM message sent by a first node device, and determines whether the first iOAM message contains important Data identification, if the first iOAM message contains an important data identification, the tail node device generates a notification message containing the first node information based on the first iOAM message, and sends the notification message to the management device of the iOAM network.
  • each time the tail node device obtains an iOAM message it generates a notification message according to the iOAM message and sends a notification message to the management device.
  • the tail node device only generates a notification message according to the first iOAM message and reports it to the management device when the received first iOAM message contains an important data identifier.
  • the node device in the measurement domain where the tail node device is located transmits the first iOAM message and triggers an important event that meets a predetermined condition
  • the first iOAM message will contain the important data identifier, that is, only the measurement
  • the tail node device sends a notification message to the management device.
  • the solution of the embodiment of the present application can reduce the number of notification messages sent by the tail node device to the management device, that is, reduce the amount of data reported by the tail node device to the management device, thereby solving the problem in the prior art The problem of large amount of data reported by the node device.
  • the method further includes:
  • the tail node device determines that the first iOAM message does not include an important data identifier, the tail node device does not generate the notification message.
  • the first iOAM message does not include the important data identifier, it indicates that the node device in the measurement domain did not trigger an important event that meets the predetermined condition during the transmission of the first iOAM message, so there is no need for the management device to analyze, therefore, The tail node device does not generate the notification message, and accordingly, there is no need to report the notification message to the management device, thereby reducing the amount of data reported by the tail node device to the management device.
  • the notification message includes the first node information. Further, in another embodiment of the present application, the notification message further includes tail node information, and the tail node information indicates transmission of the first node. Information of the tail node device of the iOAM message.
  • the tail node information indicates the information of the tail node device transmitting the first iOAM message.
  • the first iOAM message can be continuously transmitted to the next hop node device and transmitted hop by hop until the iOAM network.
  • the egress border node device obtains the first iOAM message, and the egress border node device of the iOAM network can perform decapsulation processing on the first iOAM message to obtain the corresponding service message.
  • the four node devices ⁇ R1, R2, R3, R4, ⁇ constitute a measurement domain
  • R4 is the tail node device of the measurement domain
  • R4 is acquiring the first iOAM message
  • the first iOAM message may continue to be transmitted to R5, and R5 may also continue to transmit the first iOAM message to R6, and R6 decapsulates the first iOAM message.
  • the tail node device may detect whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • this application discloses another embodiment.
  • the iOAM message transmission method disclosed in this embodiment is applied to an iOAM network.
  • the iOAM network includes a measurement domain, and the measurement domain includes a tail node device.
  • the node device is an exit device of the measurement domain. Referring to the schematic diagram of the working process shown in FIG. 3, the method for transmitting iOAM messages disclosed in the embodiments of the present application includes the following steps:
  • Step S21 The tail node device receives a first iOAM message sent by the first node device, where the first iOAM message includes first node information and service data, and the first node information indicates transmission of the first node information In the information of the first node device of the iOAM message, the measurement domain includes the first node device.
  • step S21 is the same as the execution process of step S11, and can be referred to each other, which will not be repeated here.
  • Step S22 The tail node device detects whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message. If so, the operation of step S23 is performed, and if not, the operation of step S24 is performed.
  • Step S23 When the tail node device determines that it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device updates important data in the first iOAM message Logo.
  • step S25 is performed.
  • the tail node device updates the important data identifier in the first iOAM message, and the tail node device may also perform the operation of step S24.
  • the tail node device updates the value in the first iOAM message.
  • the important data identification in the first iOAM message may be kept unchanged, or the important data identification in the first iOAM message may be overwritten.
  • the tail node device updates the important data identifier in the first iOAM message according to the original Some important data labels determine the value after this increment, and update the important data labels accordingly.
  • the tail node device adds the device identifier of the tail node device to the first iOAM message when updating the important data identifier in the first iOAM message .
  • the tail node device needs to determine the type of the important event triggered by itself when updating the important data identifier in the first iOAM message, and report it on the first iOAM In this article, the identification of the type of important events triggered by itself is added.
  • Step S24 The tail node device determines whether the first iOAM message includes an important data identifier, and the important data identifier indicates that the node device in the measurement domain triggers compliance in the process of transmitting the first iOAM message Important events with predetermined conditions. If yes, the operation of step S25 is performed.
  • Step S25 The tail node device generates a notification message according to the first iOAM message, and the tail node device sends the notification message to the management device of the iOAM network, where the notification message includes the first node information.
  • step S24 when the tail node device determines that the first iOAM message does not include an important data identifier, it may also perform the following operations:
  • Step S26 The tail node device does not generate the notification message.
  • the tail node device detects whether it is in the process of transmitting the first iOAM message. Trigger an important event that meets a predetermined condition; when the tail node device determines that it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device reports on the first iOAM Updated important data identification in the article.
  • the tail node device can update the important data identifier in the first iOAM message according to whether it triggers an important event that meets a predetermined condition.
  • the measurement domain often contains two or more node devices. If the measurement domain contains two node devices, one of them is the head node device, the other is the tail node device, and the first node device is the head node device. In this case, the first node device is acquiring the first iOAM After the message, the first iOAM message is directly transmitted to the tail node device.
  • the first iOAM message received by the tail node device may be forwarded and transmitted to the tail node device by other multiple node devices in the measurement domain.
  • the tail node device receiving the first iOAM message sent by the first node device includes:
  • the tail node device receives the first iOAM message sent by the first node device and forwarded by the second node device, and the first iOAM message further includes second node information.
  • the second node information indicates the second node device transmitting the first iOAM message; the second node information is encapsulated in the first iOAM message by the second node device Node information; the notification message also includes the second node information.
  • the next-hop node device of the first node device is the second node device, and the second node device is located between the first node device and the tail node device of the measurement domain.
  • the first node device converts the first iOAM
  • the message is transmitted to the second node device, and then the second node device continues to transmit the first iOAM message until the first iOAM message is transmitted to the tail node device.
  • an intermediate node device such as a third node device may also be included.
  • the second node device after acquiring the first iOAM message, the second node device will The first iOAM message is transmitted to its own next-hop node device, and each intermediate node device sequentially transmits until the first iOAM message is transmitted to the tail node device.
  • the first node device may be R2, the second node device may be R3, and R4 is the tail node device.
  • the first node device that is, R2 transmits the first iOAM message to the second node device (that is, R3), and the second node device forwards the first iOAM message to the tail node device ( That is R4).
  • the second node device after acquiring the first iOAM message, the second node device adds its own node information (ie, second node information) to the first iOAM message, so that the first iOAM message acquired by the tail node device Contains the second node information.
  • the notification message generated by the tail node device according to the first iOAM message also includes the second node information, so that the management device can obtain the second node information through the notification message.
  • the first iOAM message acquired by the tail node device can include the node information of each node device in the measurement domain that transmits the first iOAM message, so that the notification message includes the transmission of the first iOAM message in the measurement domain. Node information of each node device in an iOAM message.
  • the tail node device may detect whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message in various ways. Wherein, referring to the schematic workflow diagram shown in FIG. 4, the tail node device detects whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, including the following steps:
  • Step S221 The tail node device obtains the congestion parameter of its own outgoing port, and the congestion parameter includes an explicit congestion notification (ECN) waterline for displaying the congestion notification.
  • ECN explicit congestion notification
  • the congestion parameter of the egress port depends on the number of various types of packets arriving at the egress port at the same time. Generally, the larger the number of packets arriving at the egress port at the same time, the more serious the congestion at the egress port. The corresponding egress port The greater the congestion parameter of.
  • Step S222 When the congestion parameter is greater than the preset congestion threshold, the tail node device determines that it triggers an important event that meets a predetermined condition during transmission of the first iOAM message.
  • the congestion parameter of the egress port of the tail node device When the congestion parameter of the egress port of the tail node device is greater than the preset congestion threshold, it indicates that the tail node device is congested during the transmission of the first iOAM message, and the tail node device is transmitting the first iOAM message In the process, there may be a problem of excessive transmission delay. In this case, it may be considered that the tail node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • the tail node device When the tail node device determines that it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the tail node device adds the tail node information to the first iOAM message ,
  • the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the arrival time of the first iOAM message to the tail node device Time at the port.
  • the management device determines, according to the received notification message, whether the tail node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the management device is acquiring the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the egress of the first iOAM message reaching the tail node device After the time of the port, according to the time difference between the time when the first iOAM message reaches the ingress port of the tail node device and the time when the first iOAM message reaches the egress port of the tail node device, the Whether the problem of excessive transmission delay occurs during the transmission of the first iOAM message.
  • the tail node device detects whether it triggers compliance in the process of transmitting the first iOAM message.
  • Important events with predetermined conditions including the following steps:
  • Step S223 The tail node device acquires the first time when the first iOAM message arrives at the ingress port of the tail node device, and acquires the first time when the first iOAM message reaches the egress port of the tail node device Two times.
  • Step S224 When the time difference between the second time and the first time is greater than a preset time threshold, the tail node device determines that during the transmission of the first iOAM message, it triggers to meet a predetermined condition Important events.
  • the time difference between the second time and the first time is greater than a preset time threshold, it indicates that the delay of the tail node device in transmitting the first iOAM message exceeds the preset time threshold, that is, when the transmission occurs
  • the tail node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • the tail node device when the tail node device determines that it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device adds the first event to the first iOAM message.
  • the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the first iOAM message reaches the tail The time of the egress port of the node device.
  • the management device can detect whether the tail node device has a problem of excessive transmission delay during the transmission of the first iOAM message based on the obtained notification message.
  • the management device is acquiring the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the egress of the first iOAM message reaching the tail node device After the port time, the time difference between the time when the first iOAM message arrives at the ingress port of the tail node device and the time when the first iOAM message arrives at the egress port of the tail node device can be calculated, if the time difference is greater than the With the set time threshold, the management device can determine whether the tail node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the tail node device detects whether it triggers compliance with the predetermined process during the transmission of the first iOAM message.
  • Conditional important events include the following steps:
  • Step S225 The tail node device obtains characteristic parameters of the data stream corresponding to the first iOAM message.
  • Each service message obtained by the head node device in the measurement domain may be split from the same data stream, or may originate from different data streams.
  • the data stream corresponding to the first iOAM message refers to the data stream where the service data included in the first iOAM message is located.
  • the characteristic parameters of the data stream are used to distinguish between different data streams, and the characteristic parameters of the data stream may include a stream identifier and/or a quintuple of the data stream.
  • the characteristic parameters of the data stream are usually loaded in the first iOAM message, and the characteristic parameters of the data stream corresponding to the first iOAM message can be obtained by parsing the first iOAM message.
  • Step S226 the tail node device compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the tail node device, the target iOAM message is The iOAM message previously obtained by the tail node device.
  • each time the tail node device obtains the iOAM message it will store the characteristic parameters of the data stream corresponding to the iOAM message.
  • Step S227 When the characteristic parameters of the data stream corresponding to the first iOAM message are the same as the characteristic parameters of the data stream corresponding to the target iOAM message, the tail node device compares the corresponding parameters of the first iOAM message.
  • the port of the tail node device and the target iOAM message correspond to the port of the tail node device, and the port includes an ingress port and/or an egress port.
  • the message corresponds to the port of the tail node device, which refers to the port to which the message is applied during the transmission of the tail node device, and the port includes the ingress port and/or the egress port.
  • the characteristic parameter of the data stream corresponding to the first iOAM message is the same as the characteristic parameter of the data stream corresponding to the target iOAM message, it indicates that the first iOAM message corresponds to the same data stream as the target iOAM message.
  • Step S228 When the port corresponding to the tail node device of the first iOAM message is different from the port corresponding to the tail node device of the target iOAM message, the tail node device determines that it is transmitting the first iOAM message In the process of writing, important events that meet predetermined conditions are triggered.
  • the characteristic parameter of the data stream corresponding to the first iOAM message When the characteristic parameter of the data stream corresponding to the first iOAM message is the same as the characteristic parameter of the data stream corresponding to the target iOAM message, it indicates that the first iOAM message corresponds to the same data stream as the target iOAM message. In this case, if the port corresponding to the tail node device of the first iOAM message is different from the port corresponding to the tail node device of the target iOAM message, it indicates that the tail node device is transmitting the same data stream. The port changes, so that it can be determined that the trailing node device has undergone path transfer during the transmission of the first iOAM message.
  • the tail node device When the tail node device determines that it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the tail node device adds the tail node information to the first iOAM message ,
  • the tail node information includes: a node identifier of the tail node device and a port identifier of the tail node device, and the port identifier includes: an input port identifier and/or an output port identifier.
  • the management device may determine, according to the notification message, whether the trailing node device has transferred a path during the transmission of the first iOAM message.
  • the management device searches for other iOAM messages having the same characteristics as the data stream of the first iOAM message, that is, finds other iOAM messages that belong to the same data stream as the first iOAM message Message (that is, the target iOAM message); then, compare whether the port of the first node device corresponding to the first iOAM message and the target iOAM message is the same; if they are the same, determine that the first node device is transmitting the first iOAM message. No path change occurs during the process. If they are different, it is determined that the first node device has a path change during the transmission of the first iOAM message.
  • the notification message further includes: identification information of the first iOAM message, and the identification information includes a flow of the first iOAM message Identifier and sequence number, the stream identifier indicates the data stream to which the first iOAM message belongs, and the sequence number indicates the position of the first iOAM message in the data stream.
  • the important data identifier is a preset character, and/or the number of node devices that trigger the important event, and/or the device identifier of the node device that triggers the important event, and And/or the event type identifier of the important event triggered.
  • the important data identifier may include multiple forms, wherein the important data identifier may be a preset character, and the character may be a number, letter, symbol, or other types, for example, may be a fixed value (for example, "1" ) In this case, after detecting the preset character, the tail node device can determine that the first iOAM message includes the important data identifier.
  • the important data identifier may be a value that increases as the number of node devices that trigger important events that meet a predetermined condition grow.
  • each node device updates the important data identifier after triggering an important event that meets the predetermined condition.
  • the updated important data identifier is the result of the addition of the original important data identifier and the preset value.
  • it may be the number of node devices that trigger the important event.
  • the first node device that triggers the important event corresponds to The important data identifier of is 1, the second node device that triggers an important event updates it to 2, and so on.
  • the important data identification includes the device identification of the node device that triggered the important event.
  • the generated notification message may also include the device identification of the node device that triggered the important event.
  • the management device can determine which node devices are in the process of transmitting iOAM messages An important event was triggered.
  • the important data identifier includes an event type identifier of the triggered important event.
  • the important events that meet the predetermined conditions are classified in advance, and the generated notification message may also include the event type identifier of the triggered important event.
  • the management device After the management device receives the notification message, According to the event type identification of important events, determine which important events are triggered by the node device during the transmission of the iOAM message.
  • the important data identifier includes the event type identifier of the important event that is triggered and the device identifier of the node device that triggered the important event, and the event type identifier and trigger of the important event that was triggered are also included in the notification message
  • the device identifier of the node device of the important event so that after receiving the notification message, the management device can determine which node devices triggered the important event during the transmission of the iOAM message, and which of these node devices respectively triggered Type of important event.
  • the method further includes:
  • the tail node device detects whether the number of node devices that trigger the important event is greater than a preset reporting threshold
  • the tail node device determines that the number of node devices for the important event is greater than a preset reporting threshold, the tail node device then performs the operation of generating a notification message according to the first iOAM message.
  • the tail node device may then generate a notification message.
  • the tail node device determines that the number of node devices of the important event is greater than the preset reporting threshold, it indicates that the number of node devices that trigger important events is large, that is, only the number of node devices that trigger important events
  • the tail node device generates a notification message and reports the notification message to the management device.
  • the tail node device does not generate a notification message, which can further reduce the amount of data reported by the tail node device to the notification message.
  • an in-band operation management and maintenance iOAM message transmission method is also disclosed.
  • the method is applied to an iOAM network, where the iOAM network includes a measurement domain, and the measurement domain includes a first node device.
  • the transmission method of the iOAM message includes the following steps:
  • Step S31 The first node device obtains a first iOAM message, where the first iOAM message includes service data transmitted in the iOAM network.
  • the first node device obtains the corresponding first iOAM message according to the service message, and the service data refers to the content contained in the service message and requires Data transmitted in the iOAM network.
  • the first node device may obtain the first iOAM message by encapsulating the service message.
  • the first node device may obtain the first iOAM message forwarded from the head node device or other intermediate node devices.
  • Step S32 The first node device determines whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • the important events that meet the predetermined condition may include multiple types.
  • the first node device may determine whether it triggers an important event that meets the predetermined condition during the transmission of the first iOAM message in various ways.
  • Step S33 When the first node device determines that the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the first node device updates the first iOAM message.
  • the updated first iOAM message includes: important data identification, first node information, and service data, and the first node information indicates information of the first node device that transmits the first iOAM message.
  • the important data identifier may include multiple forms, wherein the important data identifier may be a preset character, and the character may be a number, letter, symbol, or other types, for example, may be a fixed value (for example, "1" ), in this case, after detecting the preset character, the tail node device can determine that the first iOAM message includes the important data identifier; or, the important data identifier includes the node device’s important event that triggers an important event that meets the predetermined condition. The number increases and the value increases. In this case, each node device updates the important data identifier after triggering the important event that meets the predetermined condition.
  • the updated important data identifier is the result of the addition of the original important data identifier and the preset value For example, it may be the number of node devices that trigger the important event.
  • the important data identifier corresponding to the first node device that triggers the important event is 1, and the second node device that triggers the important event updates it Is 2, and so on;
  • the important data identification includes the device identification of the node device that triggered the important event that meets the predetermined condition; further, the important event that meets the predetermined condition can also be classified in advance.
  • the important data The identification includes the identification of the type of the important event triggered, and so on.
  • Step S34 The first node device forwards the updated first iOAM message to the next-hop node device of the first node device.
  • the tail node device may generate a corresponding notification message according to whether the first iOAM message contains an important data identifier.
  • the intermediate node device may continue to transmit the first iOAM message until the tail node device in the measurement domain receives the first iOAM message.
  • the first node device can determine that when it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the first iOAM message is updated, and the updated An iOAM message includes important data identification, so that the first iOAM message can be marked by the important data identification, so that the tail node device can detect whether a notification message needs to be generated and reported based on the first iOAM message, thereby reducing the tail node device The amount of data reported.
  • the tail node device Only when the node device in the measurement domain triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device sends a notification message to the management device. Only when the node device in the measurement domain triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, the tail node device sends a notification message to the management device.
  • the important data identifier may be set in the first iOAM message in various ways.
  • the first iOAM message is composed of a total header (ie, header), iOAM header, and service data (ie, payload).
  • the iOAM message is usually loaded in the general header, for example, the sixth version of the Internet protocol (internet protocol version 6, IPv6) or multi-protocol label switching (MPLS), etc.; the iOAM header is usually loaded with data Collect instructions, etc.
  • the important data identifier may be located in a preset field of the total header of the updated first iOAM message. Or, the important data identifier is located in a preset field of the iOAM header of the updated first iOAM message. Or, the important data identifier is located in the service data included in the updated first iOAM message, where the important data identifier may be set at the end of the service data.
  • the tail node device receives the first After an iOAM message, by querying the last field in the service data, it can be detected whether the first iOAM message contains an important data identifier; or, the important data identifier is located in the iOAM of the updated first iOAM message In the preset field between the header and the business data, in this case, an additional field is set between the iOAM header and the business data, and an important data identifier is added to this field.
  • the iOAM header is shown in Fig. 9, and the "iOAM Command Space Identifier" field (ie, "Namespace-ID” field) of the iOAM header represents the iOAM identifier, which is usually 16 bits long.
  • node length field ie, the "NodeLen” field
  • NodeLen the "NodeLen” field
  • the "node length” field is used to define the data length (typically a 5-bit unsigned integer) that each node increases in multiples of 4 bytes.
  • the "Flags" field is 4 bits long, where Bit 0 is used to identify overflow. When there is not enough space in the iOAM packet header to record the node information, this flag will be set to 1; Bit 1 is used to indicate Loopback (loopback flag), when the Lookback bit is set to 1, the intermediate node device And the tail node device needs to send a copy of the message to the head node device of the iOAM message; Bit 2-3 is the currently reserved part, which can be used to set important data identification.
  • the "Remaining Length” field (that is, the “RemainingLen” field) is a 7-bit unsigned integer. This field defines the remaining length interval that can be used to record data in multiples of 4 bytes. When the node device adds data in the iOAM header, The "RemainingLen” field needs to be reduced accordingly according to the "NodeLen” field.
  • the "iOAM Trace Type” field that is, "iOAM-Trace-type” is a 24-bit identifier used to define the data type recorded in the node list.
  • the data type identified by each bit is:
  • Bit 0 When set, it indicates that the node data contains the values of Hop_lim and node id;
  • Bit 1 When set, it indicates that the node data contains ingress_if_id and ingress_if_id;
  • Bit 2 When set, it indicates that the node data contains a second-level time stamp
  • Bit 3 When set, it indicates that the node data contains a sub-second timestamp
  • Bit 4 When set, it indicates that the node data contains the forwarding delay
  • Bit 5 When set, it indicates that the node data contains special data of the namespace class
  • Bit 6 When set, it indicates that the node data contains the queue depth
  • Bit 7 When set, it indicates that the node data contains a variable-length opaque snapshot field
  • Bit 8 When set, it indicates that the node data contains Hop_Lim and node_id that have been stored in a wide format
  • Bit 9 When set, it indicates that the node data contains ingress_if_id and egress_if_id stored in a wide format
  • Bit 10 When set, it indicates that the node data contains special data of the namespace class stored in a wide format
  • Bit 11 When set, it indicates that the node data contains the buffer occupancy rate
  • Bit 12-22 currently undefined, can be used to set important data identification
  • Bit 23 When set, it indicates that the node data contains the checksum padding data of the node data.
  • the "reserved bit” field (that is, the “Reserved” field) is 8 bits long and is used for future use and can be used to set important data identification.
  • the "node data list” field (that is, the "Node data list” field) is n variable-length fields.
  • the data type contained in the Node data field is determined by the bits of iOAM-Trace-Type.
  • the data filled in the Node data list is node information.
  • the first intermediate node device when the first intermediate node device obtains the first iOAM message, it can add its own node information in the Node i data [list] field of the first iOAM message; when the second When the intermediate node device obtains the first iOAM message, it can add its own node information in the Node data[2] field of the first iOAM message; correspondingly, when the Nth intermediate node device obtains the first iOAM message, it can Add your own node information in the Node data[n] field of the first iOAM message.
  • the first node device can detect whether it triggers an important event that meets a predetermined condition in the process of transmitting the first iOAM message in various ways. In one of the modes, the first node device determines whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, including the following steps:
  • the first node device obtains a congestion parameter of its own outgoing port, and the congestion parameter includes displaying a congestion notification ECN waterline;
  • the first node device determines that it transmits an important event that meets a predetermined condition during transmission of the first iOAM message.
  • the congestion parameter of the egress port depends on the number of various packets arriving at the egress port at the same time. Generally, the larger the number of packets arriving at the egress port at the same time, the more serious the congestion at the egress port. The larger the congestion parameter.
  • the congestion parameter of the egress port of the first node device When the congestion parameter of the egress port of the first node device is greater than the preset congestion threshold, it indicates that the first node device is congested during the transmission of the first iOAM message. In this case, the first node device is transmitting In the process of the first iOAM message, a problem of excessive transmission delay may occur, and it is determined that the first node device triggers an important event that meets a predetermined condition during the process of transmitting the first iOAM message.
  • the first node information includes: the first node information includes: the node identifier of the first node device, and the time when the first iOAM message arrives at the ingress port of the first node device And the time when the first iOAM message arrives at the egress port of the first node device.
  • the management device may determine, according to the notification message, whether the first node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the management device acquires the node identifier of the first node device, the time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first node After the time of the egress port of the device, the time when the first iOAM message reaches the ingress port of the first node device and the time of the first iOAM message to reach the egress port of the first node device Time difference, determine whether the first node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the first node device determines whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, including the following steps:
  • the first node device obtains the first time when the first iOAM message arrives at the ingress port of the first node device, and obtains the first time when the first iOAM message arrives at the egress port of the first node device Two times
  • the first node device determines that in the process of transmitting the first iOAM message, it triggers the importance of meeting the predetermined condition. event.
  • the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • the first node information includes: the node identifier of the first node device, the time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message The time to reach the egress port of the first node device.
  • the management device may determine, according to the notification message, whether the transmission path of the first iOAM message is too large for the first node device.
  • the management device acquires the node identifier of the first node device, the time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first node After the time of the egress port of the device, the time difference between the time when the first iOAM message arrives at the ingress port of the first node device and the time when the first iOAM message arrives at the egress port of the first node device can be calculated, If the time difference is greater than the preset time threshold, the management device may determine that the first node device indicated by the node identifier of the first node device has a delay exceeding the threshold during the transmission of the first iOAM message.
  • the first node device determines whether the first node device triggers an important event that meets the predetermined condition during the transmission of the first iOAM message , Including the following steps:
  • the first node device obtains the characteristic parameters of the data stream corresponding to the first iOAM message
  • the characteristic parameters of the data stream include: a stream identifier and/or a quintuple of the data stream;
  • the first node device compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the first node device, the target iOAM message is Describe the iOAM message obtained by the first node device before;
  • the first node device compares the first iOAM message corresponding to the first The port of a node device corresponds to the port of the first node device of the target iOAM message, and the port includes an ingress port and/or an egress port.
  • the first node device determines that it is transmitting the first iOAM message In the process of writing, important events that meet predetermined conditions are triggered.
  • the characteristic parameter of the data stream corresponding to the first iOAM message When the characteristic parameter of the data stream corresponding to the first iOAM message is the same as the characteristic parameter of the data stream corresponding to the target iOAM message, it indicates that the first iOAM message corresponds to the same data stream as the target iOAM message. In this case, if the port corresponding to the first node device of the first iOAM message is different from the port corresponding to the first node device of the target iOAM message, it indicates that the first node device is transmitting the same data stream. During the process, the port changes, so that it can be determined that the first node device transfers the path during the transmission of the first iOAM message.
  • the first node information includes: a node identifier of the first node device and a port identifier of the first node device
  • the port identifier includes: an ingress port identifier and /Or the identification of the outgoing port
  • the management device may determine whether the first node device has a path change problem during the transmission of the first iOAM message according to the notification message.
  • the management device searches for other iOAM messages (that is, target iOAM messages) that have the same characteristics as the data flow of the first iOAM message, that is, finds the first iOAM message.
  • Other iOAM messages belonging to the same data flow then, compare the port of the first node device corresponding to the first iOAM message with the target iOAM message, if they are the same, determine that the first node device is transmitting the first iOAM message No path change occurs during the process. If they are different, it is determined that the first node device has a path change during the transmission of the first iOAM message.
  • an in-band operation management and maintenance iOAM message transmission device is also disclosed.
  • the device is applied to an iOAM network
  • the iOAM network includes a measurement domain, and the measurement domain includes a tail node device, the tail node device is an exit device of the measurement domain, and the apparatus is provided in the tail node device.
  • the device includes: a transmitter 110, a receiver 120, and a processor 130.
  • the receiver 120 is configured to receive a first iOAM message sent by a first node device, where the first iOAM message includes first node information and service data, and the first node information indicates transmission of the Information of the first node device of the first iOAM message, and the measurement domain includes the first node device.
  • the business data refers to the data contained in the business message and needs to be transmitted in the iOAM network.
  • the node information of a certain node device refers to the data along the way (ie iOAM trace data) of the node device in the iOAM network.
  • the first node information indicates information of the first node device transmitting the first iOAM message, that is, data along the way of the first node device.
  • the first node information is the information of the head node device; if there are more than two node devices in the measurement domain
  • the first node device may be an intermediate node device in the measurement domain or a head node device in the measurement domain, and the first node information is information of the intermediate node device or information of the head node device.
  • the processor 130 is configured to determine whether the first iOAM message includes an important data identifier, and the important data identifier instructs a node device in the measurement domain to trigger compliance in the process of transmitting the first iOAM message Important events with predetermined conditions.
  • the node device in the measurement domain After acquiring the first iOAM message, the node device in the measurement domain will determine whether it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, for example, whether congestion occurs, and/or Or whether there is a change in the message transmission path, etc.
  • the node device in the measurement domain may be a certain type of node device included in the measurement domain, or various types of node devices included in the measurement domain, that is, the node device in the measurement domain It refers to any kind of node device in the measurement domain, or a combination of at least two types of node devices in the head node device, the intermediate node device, and the tail node device.
  • the head node device or the intermediate node device can determine whether it triggers the importance of meeting the predetermined conditions during the transmission of the first iOAM message If an event is triggered, an important data identifier is added to the first iOAM message.
  • the first iOAM message obtained by the tail node device includes the important data identifier added by the head node device or the intermediate node device .
  • the node device in the measurement domain includes a tail node device
  • the tail node device in the measurement domain can determine whether it triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, and determines when the trigger occurs.
  • An important data identifier is added to an iOAM message.
  • the first iOAM message obtained by the tail node device in the measurement domain includes the important data identifier added by the tail node device.
  • the processor 130 is further configured to generate a notification message according to the first iOAM message.
  • the transmitter 110 is configured to send the notification message to the management device of the iOAM network, where the notification message includes the first node information.
  • the management device of the iOAM network can analyze the notification message, so as to detect whether each node device in the measurement domain has a problem of excessive transmission delay or link change during communication.
  • each time the tail node device obtains an iOAM message it generates a notification message according to the iOAM message and sends a notification message to the management device.
  • a notification message is generated according to the first iOAM message and reported to the management device.
  • the node device in the measurement domain where the tail node device is located transmits the first iOAM message and triggers an important event that meets a predetermined condition
  • the first iOAM message will contain the important data identifier, that is, only the measurement
  • the node device in the domain only sends a notification message to the management device when an important event that meets a predetermined condition is triggered during the transmission of the first iOAM message.
  • the solution of the embodiment of the present application can reduce the number of notification messages sent by the tail node device to the management device, that is, reduce the amount of data reported by the tail node device to the management device, thereby solving the problem in the prior art The problem of large amount of data reported by the node device.
  • the processor is further configured not to generate the notification message when it is determined that the first iOAM message does not include an important data identifier.
  • the first iOAM message does not include the important data identifier, it indicates that the node device in the measurement domain did not trigger an important event that meets the predetermined conditions during the transmission of the first iOAM message, and there is no need for the management device to analyze it. Therefore, The notification message is not generated, and accordingly, there is no need to report the notification message to the management device, thereby reducing the amount of data reported by the tail node device to the management device.
  • the notification message further includes tail node information, and the tail node information indicates information of the tail node device that transmits the first iOAM message.
  • the tail node information indicates the information of the tail node device transmitting the first iOAM message.
  • the processor is further configured to detect whether the tail node device is transmitting the first iOAM before determining whether the first iOAM message includes an important data identifier Whether an important event that meets predetermined conditions is triggered during the message process;
  • the processor is further configured to update the important data identifier in the first iOAM message.
  • the processor can update the important data identifier in the first iOAM message according to whether the tail node device triggers an important event that meets a predetermined condition.
  • the first iOAM message received by the tail node device may be forwarded and transmitted to the tail node device by other multiple node devices in the measurement domain.
  • the processor is specifically configured to receive the first iOAM message sent by the first node device and forwarded by the second node device, where the first iOAM message also includes the second Node information
  • the second node information indicates the second node device transmitting the first iOAM message
  • the second node information is the node information encapsulated in the first iOAM message by the second node device;
  • the notification message also includes the second node information.
  • the processor may detect whether it triggers an important event that meets a predetermined condition in the process of transmitting the first iOAM message in various ways.
  • the processor is specifically configured to acquire the congestion parameter of the egress port of the tail node device, the congestion parameter includes displaying a congestion notification ECN waterline;
  • the processor determines that the tail node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message;
  • the processor is further configured to add the tail node to the first iOAM message Information, the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the first iOAM message reaches the tail node device The time of the outgoing port.
  • the management device determines, according to the received notification message, whether the tail node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the management device is acquiring the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the egress of the first iOAM message reaching the tail node device After the time of the port, according to the time difference between the time when the first iOAM message reaches the ingress port of the tail node device and the time when the first iOAM message reaches the egress port of the tail node device, the Whether the problem of excessive transmission delay occurs during the transmission of the first iOAM message.
  • the processor is specifically configured to obtain the first time when the first iOAM message arrives at the ingress port of the tail node device, and obtain the first iOAM message to reach the end The second time of the egress port of the node device;
  • the processor determines that the tail node device triggers to meet a predetermined condition during the transmission of the first iOAM message Important events
  • the processor is further configured to add the tail node to the first iOAM message Information, the tail node information includes: the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the first iOAM message reaches the tail node device The time of the outgoing port.
  • the management device can detect whether the tail node device has a problem of excessive transmission delay during the transmission of the first iOAM message based on the obtained notification message.
  • the management device is acquiring the node identifier of the tail node device, the time when the first iOAM message arrives at the ingress port of the tail node device, and the egress of the first iOAM message reaching the tail node device After the port time, the time difference between the time when the first iOAM message arrives at the ingress port of the tail node device and the time when the first iOAM message arrives at the egress port of the tail node device can be calculated, if the time difference is greater than the With the set time threshold, the management device can determine whether the tail node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the processor is specifically configured to obtain characteristic parameters of the data stream corresponding to the first iOAM message
  • the processor compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the tail node device, the target iOAM message is the tail node IOAM messages previously obtained by the device;
  • the processor compares the first iOAM message corresponding to the tail node device And the target iOAM packet correspond to the port of the tail node device, and the port includes: an ingress port and/or an egress port;
  • the processor determines that the tail node device is transmitting the first iOAM message In the process of writing, trigger important events that meet the predetermined conditions;
  • the processor adds the tail node information to the first iOAM message.
  • the tail node information includes: a node identification of the tail node device and a port identification of the tail node device, and the port identification includes: an input port identification and/or an output port identification.
  • the management device may determine, according to the notification message, whether the trailing node device has transferred a path during the transmission of the first iOAM message.
  • the management device searches for other iOAM messages having the same characteristics as the data stream of the first iOAM message, that is, finds other iOAM messages that belong to the same data stream as the first iOAM message Message (that is, the target iOAM message); then, compare whether the port of the first node device corresponding to the first iOAM message and the target iOAM message is the same; if they are the same, determine that the first node device is transmitting the first iOAM message. No path change occurs during the process. If they are different, it is determined that the first node device has a path change during the transmission of the first iOAM message.
  • the notification message further includes: identification information of the first iOAM message, the identification information includes a flow identifier and a sequence number of the first iOAM message, and the flow The identifier indicates the data stream to which the first iOAM message belongs, and the sequence number indicates the position of the first iOAM message in the data stream.
  • the important data identifier may include multiple forms.
  • the important data identifier includes a device identifier of a node device that triggers the important event.
  • the generated notification message may also include the device identification of the node device that triggered the important event.
  • the management device can determine which node devices are in the process of transmitting iOAM messages An important event was triggered.
  • the important data identifier includes an event type identifier of the triggered important event.
  • the important events that meet the predetermined conditions are classified in advance, and the generated notification message may also include the event type identifier of the triggered important event.
  • the management device After the management device receives the notification message, According to the event type identification of important events, determine which important events are triggered by the node device during the transmission of the iOAM message.
  • an in-band operation management and maintenance iOAM message transmission device is disclosed.
  • the device is applied to an iOAM network.
  • the iOAM network includes a measurement domain, and the measurement domain includes a A node device, the apparatus is provided in the first node device.
  • the device includes: a transmitter 210, a receiver 220, and a processor 230.
  • the receiver 220 is configured to obtain a first iOAM message, and the first iOAM message includes service data transmitted in the iOAM network.
  • the first node device obtains the corresponding first iOAM message according to the service message.
  • the service data refers to the service message contained in the iOAM Data transmitted on the network.
  • the first node device may obtain the first iOAM message by encapsulating the service message.
  • the first node device may obtain the first iOAM message forwarded from the head node device or other intermediate node devices.
  • the processor 230 is configured to determine whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message.
  • the processor determines that the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message
  • the processor updates the first iOAM message.
  • the updated first iOAM message includes: important data identification, first node information, and service data, and the first node information indicates information of the first node device that transmits the first iOAM message.
  • the transmitter 210 is configured to forward the updated first iOAM message to the next-hop node device of the first node device.
  • the tail node device may generate a corresponding notification message according to whether the first iOAM message contains an important data identifier.
  • the intermediate node device may continue to transmit the first iOAM message until the tail node device in the measurement domain receives the first iOAM message.
  • the first node device can determine that when it triggers an important event that meets predetermined conditions during the transmission of the first iOAM message, the first iOAM message is updated, and the updated An iOAM message includes important data identification, so that the first iOAM message can be marked by the important data identification, so that the tail node device can detect whether a notification message needs to be generated and reported based on the first iOAM message, thereby reducing the tail node device The amount of data reported.
  • the important data identifier may be set in the first iOAM message in various ways.
  • the important data identifier is located in a preset field of the total header of the updated first iOAM message; or, the important data identifier is located in the updated first iOAM message In the preset field of the iOAM header of the document; or, the important data identifier is located in the service data included in the updated first iOAM message; or, the important data identifier is located in the updated first iOAM In the preset field between the iOAM header of the message and the service data.
  • the first node device can detect whether it triggers an important event that meets a predetermined condition in the process of transmitting the first iOAM message in various ways.
  • the processor is specifically configured to acquire a congestion parameter of the egress port of the first node device, the congestion parameter includes displaying a congestion notification ECN waterline;
  • the processor determines that the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message;
  • the first node information includes: a node identifier of the first node device, a time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first The time of the egress port of the node device.
  • the management device may determine, according to the notification message, whether the first node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the management device acquires the node identifier of the first node device, the time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first node After the time of the egress port of the device, the time when the first iOAM message reaches the ingress port of the first node device and the time of the first iOAM message to reach the egress port of the first node device Time difference, determine whether the first node device has a problem of excessive transmission delay during the transmission of the first iOAM message.
  • the processor is specifically configured to obtain the first time when the first iOAM message arrives at the ingress port of the first node device, and obtain the first iOAM message to reach the The second time of the egress port of the first node device;
  • the processor determines that the first node device, during the transmission of the first iOAM message, triggers to meet the predetermined Important events of condition;
  • the first node information includes: a node identifier of the first node device, a time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first The time of the egress port of the node device.
  • the management device may determine, according to the notification message, whether the transmission path of the first iOAM message is too large for the first node device.
  • the management device acquires the node identifier of the first node device, the time when the first iOAM message arrives at the ingress port of the first node device, and the first iOAM message reaches the first node After the time of the egress port of the device, the time difference between the time when the first iOAM message arrives at the ingress port of the first node device and the time when the first iOAM message arrives at the egress port of the first node device can be calculated, If the time difference is greater than the preset time threshold, the management device may determine that the first node device indicated by the node identifier of the first node device has a delay exceeding the threshold during the transmission of the first iOAM message.
  • the processor is specifically configured to obtain the characteristic parameters of the data stream corresponding to the first iOAM message;
  • the processor compares the characteristic parameter of the data stream corresponding to the first iOAM message with the characteristic parameter of the data stream corresponding to the target iOAM message stored by the first node device.
  • the target iOAM message is the first IOAM messages previously obtained by a node device;
  • the processor compares the first iOAM message corresponding to the first node
  • the port of the device corresponds to the port of the first node device of the target iOAM message, and the port includes: an ingress port and/or an egress port;
  • the processor determines that the first node device is transmitting the first In the process of an iOAM message, trigger an important event that meets predetermined conditions;
  • the first node information includes: a node identification of the first node device and a port identification of the first node device, and the port identification includes: an input port identification and/or an output port identification.
  • the management device may determine whether the first node device has a path change problem during the transmission of the first iOAM message according to the notification message.
  • the management device searches for other iOAM messages (that is, target iOAM messages) that have the same characteristics as the data flow of the first iOAM message, that is, finds the first iOAM message.
  • Other iOAM messages belonging to the same data stream then, compare whether the port of the first node device corresponding to the first iOAM message and the target iOAM message is the same; if they are the same, determine that the first node device is transmitting the first iOAM message. No path change occurs during the process. If they are different, it is determined that the first node device has a path change during the transmission of the first iOAM message.
  • an in-band operation management and maintenance iOAM message transmission device is also disclosed.
  • the device is installed in a tail node device, and the tail node device is applied to a measurement domain included in an iOAM network, and the tail node device is an exit device of the measurement domain.
  • the iOAM message transmission device includes a receiving unit, a sending unit, and a processing unit, and the receiving unit, the sending unit, and the processing unit are used to perform the implementation corresponding to FIG. 2 to FIG. 6 All or part of the steps in the example.
  • FIG. 10 is a schematic structural diagram of an embodiment of an iOAM message transmission apparatus disclosed in an embodiment of the present application.
  • the device includes a transmitter 110, a receiver 120, and a processor 130.
  • the receiving unit may be used to receive a first iOAM message sent by a first node device, where the first iOAM message includes first node information and service data, and the first node information indicates transmission of the first node information In the information of the first node device of the iOAM message, the measurement domain includes the first node device.
  • the processing unit may be used to determine whether the first iOAM message includes an important data identifier, and the important data identifier instructs a node device in the measurement domain to trigger a predetermined condition to be met during transmission of the first iOAM message Important event, when it is determined that the first iOAM message includes an important data identifier, the processing unit may be further configured to generate a notification message according to the first iOAM message.
  • the sending unit may be used to send the notification message to the management device of the iOAM network, where the notification message includes the first node information.
  • an in-band operation management and maintenance iOAM message transmission device is also disclosed.
  • the apparatus is applied to an iOAM network, the iOAM network includes a measurement domain, and the measurement domain includes a first node device, and the apparatus is provided in the first node device.
  • the iOAM message transmission device includes a receiving unit, a sending unit, and a processing unit, and the receiving unit, the sending unit, and the processing unit are used to execute the All or part of the steps.
  • FIG. 11 is a schematic structural diagram of an embodiment of an iOAM message transmission apparatus disclosed in an embodiment of the present application.
  • the device includes a transmitter 210, a receiver 220, and a processor 230.
  • the receiving unit may be used to obtain a first iOAM message, where the first iOAM message includes service data transmitted in the iOAM network.
  • the processing unit may determine whether the first node device triggers an important event that meets a predetermined condition during the transmission of the first iOAM message, and when the processor determines that the first node device is transmitting the During the process of the first iOAM message, when an important event that meets a predetermined condition is triggered, the processor updates the first iOAM message.
  • the updated first iOAM message includes: important data identification, first node information, and Service data, and the first node information indicates information of the first node device that transmits the first iOAM message.
  • the sending unit may be used to forward the updated first iOAM message to the next-hop node device of the first node device.
  • a transmission device for the in-band operation management and maintenance iOAM message is also disclosed, which is used as a tail node device,
  • the tail node device is applied to the measurement domain included in the iOAM network.
  • the tail node device is an egress device of the measurement domain. Referring to the schematic diagram shown in FIG. 12, the device includes:
  • Processor 1101 and memory where:
  • the memory is used to store program instructions and the processor is used to call and execute the program instructions stored in the memory, so that the tail node device executes all or part of the embodiments corresponding to FIG. 2 to FIG. 6 step.
  • the device may further include: the network device includes: a transceiver 1102 and a bus 1103, and the memory includes a random access memory 1104 and a read-only memory 1105.
  • the processor is coupled to the receiver, the random access memory and the read-only memory through the bus.
  • the basic input/output system solidified in the read-only memory or the boot loader boot system in the embedded system is used to start the device and guide the device into a normal operating state. After the device enters the normal operating state, the application program and the operating system are run in the random access memory, so that the tail node device performs all or part of the steps in the embodiments corresponding to FIGS. 2 to 6.
  • the network device in the embodiment of the present invention may correspond to the tail node device in the measurement domain in the embodiments corresponding to FIG. 2 to FIG. 6, and the processor 620, transceiver 610, and the like in the network device may implement FIG. 2
  • the functions and/or various steps and methods implemented by the tail node device in the measurement domain in the embodiment corresponding to FIG. 6 are not repeated here for brevity.
  • this embodiment may also be based on a network device implemented by a general physical server combined with network function virtualization (NFV) technology, the network device being a virtual network device (eg, virtual host, virtual Router or virtual switch).
  • the virtual network device may be a virtual machine (English: Virtual Machine, VM) running a program for sending an announcement message function, and the virtual machine is deployed on a hardware device (for example, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • a person skilled in the art can virtualize multiple network devices with the above functions on a general physical server by reading this application. I won't repeat them here.
  • an in-band operation management and maintenance iOAM message transmission device is also disclosed, which is used as the first node device ,
  • the first node device is applied to the measurement domain included in the iOAM network, and the device includes:
  • the memory is used to store program instructions and the processor is used to call and execute the program instructions stored in the memory, so that the first node device performs all or part of the steps in the embodiment corresponding to FIG. 7.
  • the device may further include: the network device includes: a transceiver and a bus, and the memory includes a random access memory and a read-only memory.
  • the processor is coupled to the receiver, the random access memory and the read-only memory through the bus.
  • the basic input and output system solidified in the read-only memory or the bootloader boot system in the embedded system is used to start the system and guide the device into a normal operating state.
  • the application program and the operating system are run in the random access memory, so that the first node device performs all or part of the steps in the embodiment corresponding to FIG. 7.
  • the network device in the embodiment of the present invention may correspond to the first node device in the measurement domain in the embodiment corresponding to FIG. 7, and the processor, transceiver, etc. in the network device may implement the implementation corresponding to FIG. 7.
  • the functions of the first node device in the measurement domain and/or the various steps and methods implemented are not repeated here for brevity.
  • this embodiment may also be based on a network device implemented by a general physical server combined with network function virtualization (NFV) technology, the network device being a virtual network device (eg, virtual host, virtual Router or virtual switch).
  • the virtual network device may be a virtual machine (English: Virtual Machine, VM) running a program for sending an announcement message function, and the virtual machine is deployed on a hardware device (for example, a physical server).
  • a virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment.
  • a person skilled in the art can virtualize multiple network devices with the above functions on a general physical server by reading this application. I won't repeat them here.
  • an embodiment of the present application further provides a computer storage medium, where the computer storage medium provided in any device may store a program, and when the program is executed, it may be implemented in the embodiments corresponding to FIGS. 2 to 6. All or part of the steps.
  • the storage medium in any device can be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviation: ROM) or a random storage memory (English: random access memory, abbreviation: RAM), etc.
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • the processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • the PLD may be a complex programmable logic device (complex programmable logic device (CPLD), field programmable gate array (FPGA), general array logic (GAL) or any combination thereof.
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only) memory, ROM), flash memory (flash memory), hard disk (hard disk drive) or solid state drive (SSD); the memory may also include a combination of the above types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • read-only memory read-only memory
  • ROM read-only memory
  • flash memory flash memory
  • hard disk drive hard disk drive
  • SSD solid state drive
  • an embodiment of the present application further provides a computer storage medium, where the computer storage medium provided in any device may store a program, and when the program is executed, all or part of the embodiment corresponding to FIG. 7 may be implemented. step.
  • the storage medium in any device can be a magnetic disk, an optical disk, a read-only memory (English: read-only memory, abbreviation: ROM) or a random storage memory (English: random access memory, abbreviation: RAM), etc.
  • the processor may be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
  • the processor may further include a hardware chip.
  • the hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • the above PLD may be a complex programmable logic device (complex programmable logic device (CPLD), field programmable gate array (FPGA), general array logic (GAL) or any combination thereof.
  • the memory may include volatile memory (volatile memory), such as random-access memory (RAM); the memory may also include non-volatile memory (non-volatile memory), such as read-only memory (read-only) memory, ROM), flash memory (flash memory), hard disk (hard disk drive) or solid state drive (SSD); the memory may also include a combination of the above types of memory.
  • volatile memory volatile memory
  • non-volatile memory non-volatile memory
  • read-only memory read-only memory
  • ROM read-only memory
  • flash memory flash memory
  • hard disk drive hard disk drive
  • SSD solid state drive
  • the embodiments of the present application disclose an in-band operation management and maintenance iOAM message transmission system.
  • the system is applied to a measurement domain included in an iOAM network.
  • the system includes:
  • a tail node device 100 and a first node device 200, the tail node device 100 is an exit device of the measurement domain.
  • the tail node device 100 is used to perform all or part of the steps in the embodiments corresponding to FIG. 2 to FIG. 6;
  • the first node device 200 is used to perform all or part of the steps in the embodiment corresponding to FIG. 7.
  • the tail node device only generates a notification message according to the first iOAM message and reports it to the management device when the received first iOAM message contains an important data identifier.
  • the node device in the measurement domain where the tail node device is located transmits the first iOAM message and triggers an important event that meets a predetermined condition
  • the first iOAM message will contain the important data identifier, that is, only the measurement
  • the tail node device sends a notification message to the management device.
  • the solution of the embodiment of the present application can reduce the number of notification messages sent by the tail node device to the management device, that is, reduce the amount of data reported by the tail node device to the management device, thereby solving the problem in the prior art The problem of large amount of data reported by the node device.
  • the various illustrative logic units and circuits described in the embodiments of the present application may be implemented by a general-purpose processor, a digital signal processor, an application specific integrated circuit (ASIC), a field programmable gate array (FPGA), or other programmable logic devices. Discrete gate or transistor logic, discrete hardware components, or any combination of the above are designed to implement or operate the described functions.
  • the general-purpose processor may be a microprocessor. Alternatively, the general-purpose processor may also be any conventional processor, management device, micro-management device, or state machine.
  • the processor may also be implemented by a combination of computing devices, such as a digital signal processor and a microprocessor, multiple microprocessors, one or more microprocessors combined with a digital signal processor core, or any other similar configuration achieve.
  • the steps of the method or algorithm described in the embodiments of the present application may be directly embedded in hardware, a software unit executed by a processor, or a combination of both.
  • the software unit may be stored in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM, or any other form of storage medium in the art.
  • the storage medium may be connected to the processor so that the processor can read information from the storage medium and can write information to the storage medium.
  • the storage medium may also be integrated into the processor.
  • the processor and the storage medium may be provided in the ASIC, and the ASIC may be provided in the UE. Alternatively, the processor and the storage medium may also be provided in different components in the UE.
  • sequence number of each process does not mean the order of execution, and the execution order of each process should be determined by its function and internal logic, and should not be used for the embodiments of this application.
  • the implementation process constitutes no limitation.
  • the computer program product includes one or more computer instructions.
  • the computer may be a general-purpose computer, a dedicated computer, a computer network, or other programmable devices.
  • the computer instructions may be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instructions may be from a website site, computer, server or data center Transmission to another website, computer, server or data center via wired (eg coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (eg infrared, wireless, microwave, etc.).
  • the computer-readable storage medium may be any available medium that can be accessed by a computer or a data storage device including a server, a data center, and the like integrated with one or more available media.
  • the usable medium may be a magnetic medium (for example, a floppy disk, a hard disk, a magnetic tape), an optical medium (for example, a DVD), or a semiconductor medium (for example, Solid State Disk (SSD)), or the like.
  • a magnetic medium for example, a floppy disk, a hard disk, a magnetic tape
  • an optical medium for example, a DVD
  • a semiconductor medium for example, Solid State Disk (SSD)
  • the technology in the embodiments of the present invention can be implemented by means of software plus a necessary general hardware platform.
  • the technical solutions in the embodiments of the present invention can be embodied in the form of software products in essence or part of contributions to the existing technology, and the computer software products can be stored in a storage medium, such as ROM/RAM , Magnetic disks, optical disks, etc., including several instructions to enable a computer device (which may be a personal computer, server, or network device, etc.) to perform the methods described in various embodiments of the present invention or some parts of the embodiments.

Landscapes

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

Abstract

本申请实施例公开一种iOAM报文的传输方法及相应装置,在该方法中,测量域中的尾节点设备接收第一iOAM报文,并确定第一iOAM报文中是否包含重要数据标识,若第一iOAM报文中包含重要数据标识,则尾节点设备基于第一iOAM报文生成包含第一节点信息的通知消息,并向iOAM网络的管理设备发送该通知消息。通过本申请实施例的方案,尾节点设备只有在接收到的第一iOAM报文中包含重要数据标识时,才会根据第一iOAM报文生成通知消息并上报。因此只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才向管理设备发送通知消息,从而减少尾节点设备向管理设备发送通知消息的数量,即减少尾节点设备上报至管理设备的数据量。

Description

一种操作管理维护iOAM报文的传输方法及相应装置
本申请要求于2018年12月29日提交国家知识产权局、申请号为201811634575.3、发明名称为“一种操作管理维护iOAM报文的传输方法及相应装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请涉及通信技术领域,具体涉及一种操作管理维护iOAM报文的传输方法及相应装置。
背景技术
操作管理维护(operation administration and maintenance,OAM)技术,是一种为网络提供故障监测、故障申告、故障定位以及故障修复的网络管理技术。其中,带内OAM(in-situ OAM,iOAM)技术较带外OAM技术具有显著优势,因此具有较广泛的应用前景。
在iOAM网络中,通常包含多个节点设备,所述多个节点设备通常可划分为头节点设备、中间节点设备和尾节点设备等类型。其中,头节点设备在获取业务报文之后,对业务报文封装iOAM报头,得到iOAM报文,在iOAM报文中封装数据收集指令,并且,在封装数据收集指令之后,头节点设备还会将自身的节点信息添加至iOAM报文中,然后,再将iOAM报文传输至中间节点设备;每一个中间节点设备获取iOAM报文之后,当检测到iOAM报文中的数据收集指令时,将自身的节点信息添加至iOAM报文中,并将添加有节点信息的iOAM报文传输至下一跳节点设备;尾节点设备在接收到上一跳的中间节点设备传输的iOAM报文之后,对iOAM报文进行解封装,获取其中包含的各个节点设备的节点信息,再将该节点信息传输至管理设备,以便管理设备对节点信息进行分析。也就是说,尾节点设备会向管理设备上送沿途各个节点设备的节点信息。通常情况下,节点信息包括该中间节点设备的节点标识等信息。参见图1所示的示意图,其中,R1即为iOAM网络中的头节点设备,R6为尾节点设备,而其余节点(即R2、R3、R4和R5)为中间节点设备。
但是,发明人在本申请的研究过程中发现,iOAM技术具有对数据流逐包封装的特点,导致头节点设备获取大量iOAM报文,进一步的,导致尾节点设备向管理设备上报的数据量较大,甚至会影响尾节点设备和管理设备的性能。
发明内容
为了解决现有技术中,尾节点设备上报的数据量较大的问题,本申请实施例公开一种带内操作管理维护iOAM报文的传输方法及装置。
第一方面,本申请实施例公开一种带内操作管理维护iOAM报文的传输方法,所述方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备,所述方法包括:
所述尾节点设备接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备;
所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件;
当所述尾节点设备确定所述第一iOAM报文包括重要数据标识时,所述尾节点设备根据所述第一iOAM报文生成通知消息,并且所述尾节点设备向iOAM网络的管理设备发送所述通 知消息,所述通知消息包括所述第一节点信息。
采用本实现方式,只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。
一种可选的设计中,所述方法还包括:
当所述尾节点设备确定所述第一iOAM报文不包括重要数据标识时,所述尾节点设备不生成所述通知消息。
如果第一iOAM报文不包括重要数据标识,则表明测量域中的节点设备未在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件,则无需管理设备进行分析,因此,尾节点设备不生成所述通知消息,相应的,也无需向管理设备上报通知消息,从而减少了尾节点设备向管理设备上报的数据量。
一种可选的设计中,所述通知消息还包括尾节点信息,所述尾节点信息指示传输所述第一iOAM报文的所述尾节点设备的信息。
一种可选的设计中,在所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识之前,还包括:
所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中更新重要数据标识。
采用本实现方式,尾节点设备能够根据自身是否触发符合预定条件的重要事件,更新第一iOAM报文中的重要数据标识。
一种可选的设计中,所述尾节点设备接收第一节点设备发送的第一iOAM报文,包括:
所述尾节点设备接收所述第一节点设备发送、并由第二节点设备转发的所述第一iOAM报文,所述第一iOAM报文中还包括第二节点信息;
所述第二节点信息指示传输所述第一iOAM报文的所述第二节点设备;
所述第二节点信息为由所述第二节点设备封装在所述第一iOAM报文中的节点信息;
所述通知消息还包括所述第二节点信息。
采用本实现方式,能够使尾节点设备获取到的第一iOAM报文中,包含测量域中传输第一iOAM报文的各个节点设备的节点信息,从而使通知消息中包含测量域中传输第一iOAM报文的各个节点设备的节点信息。
具体的,一种可选实现方式中,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
所述尾节点设备获取自身的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的 时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
具体的,一种可选实现方式中,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
所述尾节点设备获取所述第一iOAM报文到达所述尾节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述尾节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
具体的,一种可选实现方式中,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
所述尾节点设备获取所述第一iOAM报文对应的数据流的特征参数;
所述尾节点设备比较所述第一iOAM报文对应的数据流的特征参数与所述尾节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述尾节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述尾节点设备比较所述第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口,所述端口包括:入端口和/或出端口;
当第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识和所述尾节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
一种可选的设计中,所述通知消息还包括:所述第一iOAM报文的标识信息,所述标识信息包括所述第一iOAM报文的流标识和序列号,所述流标识指示所述第一iOAM报文所属的数据流,所述序列号指示所述第一iOAM报文在所述数据流中的位置。
一种可选的设计中,所述重要数据标识包括触发所述重要事件的节点设备的设备标识。
一种可选的设计中,所述重要数据标识包括触发的所述重要事件的事件类型标识。
第二方面,本申请实施例公共一种带内操作管理维护iOAM报文的传输方法,所述方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备,所述方法包括:
所述第一节点设备获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传输的业务数据;
所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
当所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发 符合预定条件的重要事件时,所述第一节点设备更新所述第一iOAM报文,更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息;
所述第一节点设备向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
采用本实现方式,第一节点设备能够确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,更新所述第一iOAM报文,更新后的第一iOAM报文包括重要数据标识,从而能够通过对重要数据标识实现对第一iOAM报文的标记,便于尾节点设备检测是否需要根据第一iOAM报文生成通知消息并上报,从而减少尾节点设备上报的数据量。
一种可选的设计中,所述重要数据标识位于所述更新后的第一iOAM报文的总报头的预设字段中;
或者,
所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头的预设字段中;
或者,
所述重要数据标识位于所述更新后的第一iOAM报文包括的业务数据中;
或者,
所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头和业务数据之间的预设字段中。
具体的,一种可选实现方式中,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
所述第一节点设备获取自身的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
具体的,一种可选实现方式中,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
所述第一节点设备获取所述第一iOAM报文到达所述第一节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述第一节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
具体的,一种可选实现方式中,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
所述第一节点设备获取所述第一iOAM报文对应的数据流的特征参数;
所述第一节点设备比较所述第一iOAM报文对应的数据流的特征参数与所述第一节点 设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述第一节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述第一节点设备比较所述第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口,所述端口包括:入端口和/或出端口;
当第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识和所述第一节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
第三方面,本申请实施例公开一种带内操作管理维护iOAM报文的传输装置,所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备,所述装置设置在所述尾节点设备中,所述装置包括:
发送器、接收器和处理器;
所述接收器,用于接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备;
所述处理器,用于确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件;
当确定所述第一iOAM报文包括重要数据标识时,所述处理器还用于根据所述第一iOAM报文生成通知消息;
所述发送器用于向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
一种可选的设计中,所述处理器还用于,当确定所述第一iOAM报文不包括重要数据标识时,所述不生成所述通知消息。
一种可选的设计中,所述通知消息还包括尾节点信息,所述尾节点信息指示传输所述第一iOAM报文的所述尾节点设备的信息。
一种可选的设计中,所述处理器还用于,在确定所述第一iOAM报文是否包括重要数据标识之前,检测所述尾节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中更新重要数据标识。
具体的,一种可选实现方式中,所述处理器具体用于,接收所述第一节点设备发送、并由第二节点设备转发的所述第一iOAM报文,所述第一iOAM报文中还包括第二节点信息;
所述第二节点信息指示传输所述第一iOAM报文的所述第二节点设备;
所述第二节点信息为由所述第二节点设备封装在所述第一iOAM报文中的节点信息;
所述通知消息还包括所述第二节点信息。
具体的,一种可选实现方式中,所述处理器具体用于,获取所述尾节点设备的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
具体的,一种可选实现方式中,所述处理器具体用于,获取所述第一iOAM报文到达所述尾节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述尾节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
一种可选的设计中,所述处理器具体用于,获取所述第一iOAM报文对应的数据流的特征参数;
所述处理器比较所述第一iOAM报文对应的数据流的特征参数与所述尾节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述尾节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述处理器比较所述第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口,所述端口包括:入端口和/或出端口;
当第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识和所述尾节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
一种可选的设计中,所述通知消息还包括:所述第一iOAM报文的标识信息,所述标识信息包括所述第一iOAM报文的流标识和序列号,所述流标识指示所述第一iOAM报文所属的数据流,所述序列号指示所述第一iOAM报文在所述数据流中的位置。
一种可选的设计中,所述重要数据标识包括触发所述重要事件的节点设备的设备标识。
一种可选的设计中,所述重要数据标识包括触发的所述重要事件的事件类型标识。
第四方面,本申请实施例公开一种带内操作管理维护iOAM报文的传输装置,所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备,所述装置设置在所述第一节点设备中,所述装置包括:
发送器、接收器和处理器;
所述接收器,用于获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传 输的业务数据;
所述处理器,用于确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
当所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器更新所述第一iOAM报文,更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息;
所述发送器用于向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
一种可选的设计中,所述重要数据标识位于所述更新后的第一iOAM报文的总报头的预设字段中;
或者,
所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头的预设字段中;
或者,
所述重要数据标识位于所述更新后的第一iOAM报文包括的业务数据中;
或者,
所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头和业务数据之间的预设字段中。
具体的,一种可选实现方式中,所述处理器具体用于,获取所述第一节点设备的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
具体的,一种可选实现方式中,所述处理器具体用于,获取所述第一iOAM报文到达所述第一节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述第一节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
具体的,一种可选实现方式中,所述处理器具体用于,获取所述第一iOAM报文对应的数据流的特征参数;
所述处理器比较所述第一iOAM报文对应的数据流的特征参数与所述第一节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述第一节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述处理器比较所述第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口,所述端口包括:入端口和/或出端口;
当第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识和所述第一节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
第五方面,本申请还提供了一种带内操作管理维护iOAM报文的传输装置,该装置设置在尾节点设备,所述尾节点设备应用于iOAM网络包括的测量域中,所述尾节点设备是所述测量域的出口设备,所述装置包括用于执行第一方面及第一方面各实现方式的中方法步骤的单元。
第六方面,本申请还提供了一种带内操作管理维护iOAM报文的传输装置,该装置设置在第一节点设备,所述第一节点设备应用于iOAM网络包括的测量域中,所述装置包括用于执行第二方面及第二方面各实现方式的中方法步骤的单元。
第七方面,本申请实施例公开一种带内操作管理维护iOAM报文的传输设备,用作尾节点设备,所述尾节点设备应用于iOAM网络包括的测量域中,所述尾节点设备是所述测量域的出口设备,所述设备包括:
处理器和存储器,其中:
所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述尾节点设备执行第一方面,或第一方面的任意一种可能的设计中的方法。
第八方面,本申请实施例公开一种带内操作管理维护iOAM报文的传输设备,用作第一节点设备,所述第一节点设备应用于iOAM网络包括的测量域中,所述尾节点设备是所述测量域的出口设备,所述设备包括:
处理器和存储器,其中:
所述存储器,用于存储程序指令;
所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述第一节点设备执行第二方面,或第二方面的任意一种可能的设计中的方法。
第九方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第一方面或第一方面任意可能的设计中的方法。
第十方面,本申请提供了一种计算机可读存储介质,所述计算机可读存储介质中存储有指令,当其在计算机上运行时,使得计算机执行第二方面或第二方面任意可能的设计中的方法。
第十一方面,本申请提供了一种带内操作管理维护iOAM报文的传输系统,所述系统应用于iOAM网络包括的测量域中,所述系统包括:
尾节点设备和第一节点设备,所述尾节点设备是所述测量域的出口设备;
所述尾节点设备用于执行第一方面或第一方面任意可能的设计中的方法;
所述第一节点设备用于执行第二方面或第二方面任意可能的设计中的方法。
在现有技术中,尾节点设备每次在获取iOAM报文之后,都会根据该iOAM报文生成通知消息,并向管理设备上报通知消息,导致尾节点设备向管理设备上报的数据量较大。
而本申请实施例的方案,只有在接收到的第一iOAM报文中包含重要数据标识时,尾节 点设备才会根据第一iOAM报文生成通知消息并向管理设备上报。而尾节点设备所在测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,第一iOAM报文中才会包含重要数据标识,也就是说,只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。因此,与现有技术相比,本申请实施例的方案能够减少尾节点设备向管理设备发送通知消息的数量,即减少尾节点设备上报至管理设备的数据量,从而解决现有技术中尾节点设备上报的数据量较大的问题。
附图说明
为了更清楚地说明本申请的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,对于本领域普通技术人员而言,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例的应用场景中的iOAM网络的网络结构示意图;
图2为本申请实施例公开的一种iOAM报文的传输方法的工作流程示意图;
图3为本申请实施例公开的再一种iOAM报文的传输方法的工作流程示意图;
图4为本申请实施例公开的再一种iOAM报文的传输方法的工作流程示意图;
图5为本申请实施例公开的再一种iOAM报文的传输方法的工作流程示意图;
图6为本申请实施例公开的再一种iOAM报文的传输方法的工作流程示意图;
图7为本申请实施例公开的再一种iOAM报文的传输方法的工作流程示意图;
图8为本申请实施例公开的一种iOAM报文的格式示意图;
图9为本申请实施例公开的再一种iOAM报文的格式示意图;
图10为本申请实施例公开的一种iOAM报文的传输装置的结构示意图;
图11为本申请实施例公开的再一种iOAM报文的传输装置的结构示意图;
图12为本申请实施例公开的一种iOAM报文的传输设备的结构示意图;
图13为本申请实施例公开的一种iOAM报文的传输系统的结构示意图。
具体实施方式
为了解决现有技术中,尾节点设备上报的数据量较大的问题,本申请实施例公开一种带内操作管理维护iOAM报文的传输方法及装置。
本申请实施例公开的方案,应用于通过iOAM网络传输iOAM报文的应用场景。在iOAM网络中,通常包含多个节点设备。根据在iOAM网络中的位置,各个节点设备可分为:iOAM网络的入口边界节点设备、iOAM网络的中间节点设备和iOAM网络的出口边界节点设备。其中,iOAM网络的入口边界节点设备获取业务报文之后,对业务报文进行iOAM头的封装,得到iOAM报文,并且,在封装数据收集指令之后,还可将自身的节点信息添加至iOAM报文中,然后,再将iOAM报文传输至iOAM网络的中间节点设备;iOAM网络的中间节点设备获取iOAM报文之后,当检测到iOAM报文中的数据收集指令时,将自身的节点信息添加至iOAM报文中,并将添加有节点信息的iOAM报文传输至下一跳节点设备;iOAM网络的出口边界节点设备在接收到上一跳的中间节点设备传输的iOAM报文之后,一方面,iOAM网络的出口边界节点设备对iOAM报文进行解封装,获得业务报文,并向iOAM网络之外的网络设备传输所述业务报文;另一方面,iOAM网络的出口边界节点设备对iOAM报文进行解封装的同时,获取iOAM报文中包含的各个节点设备的节点信息,再将该节点信息传输至管理设备,以便管理设备对节点信息进行分析,通过分析,管理设备能够检测iOAM网络中 的节点设备是否存在传输时延过长和路径变化等问题。
另外,根据实际的检测需求,iOAM网络可以包括测量域。测量域指示iOAM网络的测量范围。测量域可以包括iOAM网络中的全部或部分节点设备。例如,若iOAM网络中包括的节点设备为{R1,R2,R3,R4,R5,R6},测量域包括的节点设备为{R1,R2,R3},或者测量域包括的节点设备为{R1,R2,R3,R4,R5,R6},其中,R1-R6分别标识节点设备。iOAM网络可以包括多个测量域。当iOAM网络包括多个测量域时,所述多个测量域中的一个测量域包括的部分节点设备可以与所述多个测量域中的另一个测量域包括的部分节点设备重合。举例说明,iOAM网络中的测量域1包括的节点设备为R1、R2、R3和R4;iOAM网络中的测量域2包括的节点设备为R3、R4、R5和R6。
并且,每个测量域中至少包含两个节点设备,至少包含的两个节点设备中包括该测量域中的尾节点设备,该测量域中的尾节点设备为该测量域的出口设备,该测量域中的尾节点设备在获取iOAM报文之后,可读取iOAM报文中包含的节点信息,并向管理设备上报该节点信息。
例如,若本申请实施例公开的方案的应用场景如图1所示,该iOAM网络中包含的节点设备为{R1,R2,R3,R4,R5,R6},其中,R1为iOAM网络的入口边界节点设备,节点设备{R2,R3,R4,R5}为iOAM网络的中间节点设备,R6为iOAM网络的出口边界节点设备。其中,可将{R1,R2,R3,R4}这四个节点设备划分为一个测量域,则R1为该测量域的头节点设备,R4为该测量域的尾节点设备,而R2和R3为该测量域的中间节点设备。这种情况下,R4在获取该测量域内传输的iOAM报文之后,可读取该iOAM报文中包含的节点信息,并将节点信息上报至管理设备。
另外,在本申请实施例中,某一个节点设备的节点信息指的是该节点设备在iOAM网络中的沿途数据(即iOAM trace data)。
进一步的,在划分iOAM网络的测量域时,不同测量域之间可能存在重合的节点设备,例如,iOAM网络中的测量域1包括的节点设备为R1、R2、R3和R4,iOAM网络中的测量域2包括的节点设备为R3、R4、R5和R6,则R3和R4为两个测量域之间存在重合的节点设备。
这种情况下,可对测量域中的尾节点设备进行相应的配置。当该测量域中的尾节点设备需要读取某一iOAM报文中包含的节点信息并上报,将该iOAM报文称为该尾节点设备的目标报文,则对该尾节点设备可配置目标报文的流策略。目标报文的流策略包括目标报文对应的数据流的分类参数(即流分类参数)和需要对目标报文进行的行为(即流行为参数)。其中,流分类参数可为目标报文对应的五元组(即源IP地址、目的IP地址、源端口、目的端口和传输层协议)中的任意一种或多种的组合,例如,该流分类参数可为目标报文对应的五元组中的三个。另外,流行为参数可为上报使能标志位,以指示尾节点设备在获取目标报文后,读取目标报文中的节点信息,并上报包含节点信息的通知消息。
测量域中的尾节点设备在接收到一个iOAM报文之后,将该iOAM报文的数据流特征参数与自身配置的流策略中的流分类参数相匹配,当匹配命中时,则认为该iOAM报文为该测量域中的尾节点设备的目标报文。这种情况下,该尾节点设备执行该流行为参数指示的行为,即读取该iOAM报文中包含的节点信息,根据该节点信息生成通知消息,并向管理设备上报该通知消息。
其中,当对测量域中的尾节点设备配置的流分类参数为目标报文对应的五元组中的部 分参数时,则iOAM报文的数据流特征参数与该尾节点设备配置的流策略中的流分类参数完全相同时,则认为匹配命中。
另外,当对测量域中的尾节点设备配置的流分类参数为目标报文对应的五元组中的全部参数时,则二者相同的参数的数量大于预设的数量阈值时,则认为匹配命中。
例如,若iOAM网络如图1所示,R1至R4这四个节点设备构成第一测量域,R4节点设备为第一测量域的尾节点设备,R4在获取第一目标报文之后,需要上报第一目标报文中包含的节点信息;另外,R4至R6这三个节点设备构成第二测量域,R6节点设备为第二测量域的尾节点设备,R6在获取第二目标报文之后,需要上报第二目标报文中包含的节点信息。这种情况下,需要为R4配置基于第一目标报文的第一流策略,以及为R6配置基于第二目标报文的第二流策略。当第一iOAM报文传输至R4时,R4将第一iOAM报文的数据流特征参数与第一流策略中的流分类参数相匹配,当匹配命中时,R4确定第一iOAM报文为第一目标报文,R4需要读取第一iOAM报文中的节点信息,生成包含该节点信息的通知消息并上报。当匹配未命中时,R4继续向下一跳节点设备R5传输第一iOAM报文,而R5会将第一iOAM报文传输至R6。R6在接收到第一iOAM报文之后,将第一iOAM报文的数据流特征参数与第二流策略中的流分类参数相匹配,当匹配命中时,R6确定第一iOAM报文为第二目标报文,R6读取第一iOAM报文中的节点信息,生成包含该节点信息的通知消息并上报。
进一步的,在对尾节点设备进行配置时,还可以配置管理设备的IP地址等,以便尾节点设备根据管理设备的IP地址向管理设备进行信息的上报。
另外,在对测量域中的尾节点设备进行相应的配置时,可对尾节点设备进行单独的人为配置,或者,还可以由管理设备向尾节点设备下发相应的配置信息,以实现对尾节点设备的配置。
本申请第一实施例公开一种带内操作管理维护iOAM报文的传输方法。该方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备。
参见图2所示的工作流程示意图,本申请实施例公开的iOAM报文的传输方法包括以下步骤:
步骤S11、所述尾节点设备接收第一节点设备发送的第一iOAM报文。
所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备。
其中,业务数据指的是业务报文中包含的,并需要在iOAM网络中传输的数据。
在本申请实施例的测量域中,包括尾节点设备和第一节点设备。其中,若测量域中只有两个节点设备,则第一节点设备为该测量域中的头节点设备,该头节点设备在获取业务报文之后,对业务报文进行封装,获取第一iOAM报文,并且,头节点设备还可以在该第一iOAM报文中添加自身的节点信息,得到包含有头节点设备的节点信息的第一iOAM报文,再向尾节点设备传输所述包含有头节点设备的节点信息的第一iOAM报文。
若测量域中的节点设备多于两个,则第一节点设备可以为该测量域中的中间节点设备,或者,第一节点设备为该测量域内的头节点设备。其中,在一种可能的实现方式中,第一节点设备为测量域内的中间节点设备,该中间节点设备获取上一跳节点设备传输的第一iOAM报文之后,将自身的节点信息添加至第一iOAM报文之中,获取加载有第一节点设备 的节点信息的第一iOAM报文,再将加载有第一节点设备的节点信息的第一iOAM报文传输至下一跳节点设备,所述下一跳节点设备为测量域中的中间节点设备或尾节点设备。在另一种可能的实现方式中,第一节点设备为该测量域内的头节点设备,则该测量域除了头节点设备和尾节点设备,还包括头节点设备和尾节点设备之间的中间节点设备,中间节点设备的数量为一个或多个,中间节点设备获取第一iOAM报文之后,能够逐跳传输,从而将第一iOAM报文传输至尾节点设备。
在本申请实施例中,某一个节点设备的节点信息指的是该节点设备在iOAM网络中的沿途数据(即iOAM trace data)。相应的,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,即第一节点设备的沿途数据。也就是说,若测量域中只有两个节点设备,第一节点设备为该测量域中的头节点设备,则第一节点信息为头节点设备的信息;若测量域中的节点设备多于两个,第一节点设备可以为该测量域中的中间节点设备或该测量域内的头节点设备,则第一节点信息为中间节点设备的信息或为头节点设备的信息。
例如,iOAM网络如图1所示,{R1,R2,R3,R4}这四个节点设备为一个测量域,其中,R1为该测量域的头节点设备,R4为该测量域的尾节点设备,而R2和R3为该测量域的中间节点设备,这种情况下,第一节点设备可以为R1,也可以为R2或R3。当第一节点设备为R1时,第一节点信息为R1的信息,并且,R1会将第一iOAM报文传输至R2或R3,R2或R3再将第一iOAM报文传输至R4。或者,第一节点设备可以为R2或R3,相应的,第一节点信息为R2或R3的信息,R2或R3在获取第一iOAM报文之后,再将第一iOAM报文传输至R4。
另外,测量域中的各个节点设备在获取到上一跳的节点设备传输的第一iOAM报文之后,可对获取到的第一iOAM报文进行处理,例如,在第一iOAM报文中添加自身的节点信息,以及在第一iOAM报文中添加重要数据标识等方式进行处理。在本申请实施例中,将处理后的第一iOAM报文仍然称为第一iOAM报文。
例如,当图1中的R1、R2和R3这三个节点设备构成一个测量域,其中的R1为头节点设备,R2为中间节点设备,R3为尾节点设备时,R1获取到业务报文之后,进行封装操作,得到包含业务数据的iOAM报文,并在该iOAM报文中添加自身的节点信息,获取到的报文即为第一iOAM报文,然后,R1还可以判断自身是否在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件,若触发,则在获取到的第一iOAM报文中添加重要数据标识,获取到的报文仍然称为第一iOAM报文,然后R1将第一iOAM报文传输至R2;R2接收到第一iOAM报文之后,在第一iOAM报文中添加自身的节点信息,并在确定自身在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件时,还添加重要数据标识,其中,添加有R2的节点信息和重要数据标识的iOAM报文仍被称为第一iOAM报文,并将添加有R2的节点信息和重要数据标识的第一iOAM报文传输至R3。
步骤S12、所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识。
所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件。
其中,所述测量域中的节点设备在获取第一iOAM报文之后,会判断自身在传输第一iOAM报文的过程中,是否触发符合预定条件的重要事件,例如,是否发生拥塞,和/或是否发生报文传输路径的变化等。
另外,所述测量域中的节点设备可以为该测量域内包含的某一种类型的节点设备,或者为测量域内包含的各种类型的节点设备,也就是说,所述测量域中的节点设备指的是测量域内的任意一种节点设备,或者为头节点设备、中间节点设备和尾节点设备中的至少两种节点设备的结合。
若测量域中的节点设备指的是测量域中的头节点设备或中间节点设备,头节点设备或中间节点设备能够判断自身在传输第一iOAM报文的过程中,是否触发符合预定条件的重要事件,若触发,则在第一iOAM报文中添加重要数据标识,这种情况下,尾节点设备获取到的第一iOAM报文之中,包括头节点设备或中间节点设备添加的重要数据标识。
若测量域中的节点设备包括尾节点设备,表示测量域中的尾节点设备能够判断自身在传输第一iOAM报文的过程中,是否触发符合预定条件的重要事件,并确定触发时,在第一iOAM报文中添加重要数据标识,这种情况下,测量域中的尾节点设备获取到的第一iOAM报文之中,包括尾节点设备添加的重要数据标识。
所述重要数据标识可包括多种形式,其中,重要数据标识可以为预设的字符,该字符可以为数字、字母和符号等多种类型,例如,可以为一个固定的数值(例如“1”),这种情况下,检测到该预设的字符,尾节点设备即可确定第一iOAM报文中包括重要数据标识;或者,重要数据标识可以为随触发符合预定条件的重要事件的节点设备的数量增长而递增的数值,这种情况下,每个节点设备在触发符合预定条件的重要事件之后,更新重要数据标识,更新后的重要数据标识为原重要数据标识与预设数值的相加结果,例如,可以为触发所述重要事件的节点设备的数量,这种情况下,第一个触发重要事件的节点设备对应的重要数据标识为1,第二个触发重要事件的节点设备将其更新为2,并依次类推;另外,重要数据标识还可以包括触发符合预定条件的重要事件的节点设备的设备标识;进一步的,还可以预先为符合预定条件的重要事件进行分类,这种情况下,重要数据标识包括节点设备所触发的重要事件的类型的标识等。
步骤S13、当所述尾节点设备确定所述第一iOAM报文包括重要数据标识时,所述尾节点设备根据所述第一iOAM报文生成通知消息,并且所述尾节点设备向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
如果测量域中的尾节点设备确定第一iOAM报文包括重要数据标识,该测量域中的尾节点设备可读取第一iOAM报文中包含的第一节点信息,生成包含第一节点信息的通知消息,再向管理设备上报该通知消息。
其中,该测量域中的尾节点设备确定第一iOAM报文包括重要数据标识包括多种情况。其中一种情况为,尾节点设备之前传输第一iOAM报文的各个节点设备(即头节点设备和中间节点设备)触发符合预定条件的重要事件,由该测量域中的尾节点设备之前传输第一iOAM报文的节点设备在第一iOAM报文中添加重要数据标识。
或者,另一种情况为,该测量域中的尾节点之前传输第一iOAM报文的各个节点设备(即头节点设备和中间节点设备)在传输第一iOAM报文的过程中均未触发符合预定条件的重要事件,而尾节点设备在传输一iOAM报文的过程中,触发符合预定条件的重要事件,则由该测量域中的尾节点设备在第一iOAM报文中添加重要数据标识。
或者,在另一种情况中,该测量域中的尾节点设备之前传输第一iOAM报文的各个节点设备(即头节点设备和中间节点设备)触发符合预定条件的重要事件,并且该测量域中的尾节点设备检测到自身在传输第一iOAM报文的过程中,也触发符合预定条件的重要事 件,这种情况下,该测量域中的尾节点设备可保持之前传输第一iOAM报文的节点设备添加的重要数据标识不变,或者更新第一iOAM报文中的重要数据标识。
另外,该测量域中的尾节点设备可通过多种方式向管理设备进行上报。其中,该测量域中的尾节点设备可与iOAM网络的管理设备直接相连,在根据第一iOAM报文生成通知消息之后,该尾节点设备将该通知消息直接传输至管理设备。或者,该测量域中的尾节点设备并非与iOAM网络的管理设备直接相连,但路由可达时,通知消息可通过路由转发的方式传输至管理设备。
进一步的,iOAM网络的管理设备在获取通知消息之后,可对该通知消息进行分析,从而检测该测量域中各个节点设备在通信过程中是否出现传输时延过长或链路变化等问题。
本申请实施例公开一种iOAM报文的传输方法,在该方法中,测量域中的尾节点设备接收第一节点设备发送的第一iOAM报文,并确定第一iOAM报文中是否包含重要数据标识,若第一iOAM报文中包含重要数据标识,则尾节点设备基于第一iOAM报文生成包含第一节点信息的通知消息,并向iOAM网络的管理设备发送该通知消息。
在现有技术中,尾节点设备每次在获取iOAM报文之后,都会根据该iOAM报文生成通知消息,并向管理设备发送通知消息。
而通过本申请实施例的方案,尾节点设备只有在接收到的第一iOAM报文中包含重要数据标识时,才会根据第一iOAM报文生成通知消息并向管理设备上报。而尾节点设备所在测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,第一iOAM报文中才会包含重要数据标识,也就是说,只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。
因此,与现有技术相比,本申请实施例的方案能够减少尾节点设备向管理设备发送通知消息的数量,即减少尾节点设备上报至管理设备的数据量,从而解决现有技术中,尾节点设备上报的数据量较大的问题。
进一步的,在本申请实施例中,还包括:
当所述尾节点设备确定所述第一iOAM报文不包括重要数据标识时,所述尾节点设备不生成所述通知消息。
如果第一iOAM报文不包括重要数据标识,则表明测量域中的节点设备未在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件,则无需管理设备进行分析,因此,尾节点设备不生成所述通知消息,相应的,也无需向管理设备上报通知消息,从而减少了尾节点设备向管理设备上报的数据量。
根据步骤S13的操作可知,在通知消息中包括第一节点信息,进一步的,在本申请另一实施例中,所述通知消息还包括尾节点信息,所述尾节点信息指示传输所述第一iOAM报文的所述尾节点设备的信息。
在本申请实施例中,尾节点信息指示的即为传输第一iOAM报文的尾节点设备的信息。其中,若尾节点设备仅为测量域中的尾节点设备,而并非整个iOAM网络的出口边界节点设备,可将第一iOAM报文继续传输至下一跳节点设备,并逐跳传输,直至iOAM网络的出口边界节点设备获取第一iOAM报文,iOAM网络的出口边界节点设备可对第一iOAM报文进行解封装处理,得到相应的业务报文。例如,若iOAM网络如图1所示,{R1,R2,R3,R4,}这四个节点设备构成一个测量域,R4为该测量域的尾节点设备,则R4在获取第一iOAM报 文之后,还可以继续将第一iOAM报文传输至R5,而R5还可以继续将第一iOAM报文传输至R6,由R6对第一iOAM报文进行解封装处理。
另外,尾节点设备可以检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。这种情况下,本申请公开另一实施例,该实施例公开的iOAM报文的传输方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备。参见图3所示的工作流程示意图,本申请实施例公开的iOAM报文的传输方法,包括以下步骤:
步骤S21、所述尾节点设备接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备。
其中,步骤S21的执行过程与步骤S11的执行过程相同,可相互参照,此处不再赘述。
步骤S22、所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。若是,执行步骤S23的操作,若否,执行步骤S24的操作。
步骤S23、当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中更新重要数据标识。
然后,执行步骤S25的操作。
或者,所述尾节点设备在所述第一iOAM报文中更新重要数据标识,所述尾节点设备还可以执行步骤S24的操作。
其中,若重要数据标识为固定标识(例如为预设的字符,或者为固定的数值),而第一iOAM报文中已经包含重要数据标识时,尾节点设备在更新第一iOAM报文中的重要数据标识时,可保持第一iOAM报文中的重要数据标识不变,或者覆盖第一iOAM报文中的重要数据标识。
另外,若重要数据标识为随触发符合预定条件的重要事件的节点设备的数量增长而递增的数值,尾节点设备在更新第一iOAM报文中的重要数据标识时,根据第一iOAM报文中原有的重要数据标识确定本次递增之后的数值,并据此更新重要数据标识。
若重要数据标识包括触发符合预定条件的重要事件的节点设备的设备标识,尾节点设备在更新第一iOAM报文中的重要数据标识时,在第一iOAM报文中添加尾节点设备的设备标识。
若重要数据标识包括节点设备所触发的重要事件的类型的标识,尾节点设备在更新第一iOAM报文中的重要数据标识时,需要确定自身触发的重要事件的类型,并在第一iOAM报文中添加自身触发的重要事件的类型的标识。
步骤S24、所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件。若是,执行步骤S25的操作。
步骤S25、所述尾节点设备根据所述第一iOAM报文生成通知消息,并且所述尾节点设备向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
另外,若在步骤S24中,当所述尾节点设备确定所述第一iOAM报文中不包括重要数据标识时,还可以执行以下操作:
步骤S26、所述尾节点设备不生成所述通知消息。
上述实施例中,在所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识之 前,还增加以下步骤:尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中更新重要数据标识。
通过上述实施例,尾节点设备能够根据自身是否触发符合预定条件的重要事件,更新第一iOAM报文中的重要数据标识。
另外,测量域中往往包含两个或多个节点设备。若测量域中包含两个节点设备,则其中一个为头节点设备,另一个为尾节点设备,而第一节点设备为该头节点设备,这种情况下,第一节点设备在获取第一iOAM报文之后,会将第一iOAM报文直接传输至尾节点设备。
若测量域中包含多个节点设备,则尾节点设备接收到的第一iOAM报文,可由测量域中其他多个节点设备转发传输至尾节点设备。这种情况下,所述尾节点设备接收第一节点设备发送的第一iOAM报文,包括:
所述尾节点设备接收所述第一节点设备发送、并由第二节点设备转发的所述第一iOAM报文,所述第一iOAM报文中还包括第二节点信息。
其中,所述第二节点信息指示传输所述第一iOAM报文的所述第二节点设备;所述第二节点信息为由所述第二节点设备封装在所述第一iOAM报文中的节点信息;所述通知消息还包括所述第二节点信息。
这种情况下,第一节点设备的下一跳节点设备为第二节点设备,而第二节点设备位于第一节点设备与该测量域的尾节点设备之间,第一节点设备将第一iOAM报文传输至第二节点设备,再由第二节点设备继续传输第一iOAM报文,直到将第一iOAM报文传输至尾节点设备。
当然,在第二节点设备与该测量域的尾节点设备之间,还可以包括第三节点设备等中间节点设备,这种情况下,第二节点设备在获取第一iOAM报文之后,会将第一iOAM报文传输至自身的下一跳节点设备,各个中间节点设备依次进行传输,直到将第一iOAM报文传输至尾节点设备。
例如,若{R1,R2,R3,R4}这四个节点设备构成一个测量域,则第一节点设备可以为R2,第二节点设备可以为R3,R4为尾节点设备,这种情况下,第一节点设备(即R2)获取第一iOAM报文之后,将第一iOAM报文传输至第二节点设备(即R3),第二节点设备再将第一iOAM报文转发至尾节点设备(即R4)。并且,第二节点设备在获取第一iOAM报文之后,会将自身的节点信息(即第二节点信息)添加至第一iOAM报文之中,从而使尾节点设备获取的第一iOAM报文中包含第二节点信息。相应的,尾节点设备根据第一iOAM报文所生成的通知消息中,还包括第二节点信息,从而使管理设备能够通过通知消息获取第二节点信息。
通过本申请实施例,能够使尾节点设备获取到的第一iOAM报文中,包含测量域中传输第一iOAM报文的各个节点设备的节点信息,从而使通知消息中包含测量域中传输第一iOAM报文的各个节点设备的节点信息。
另外,在步骤S24中,尾节点设备可通过多种方式检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。其中,参见图4所示的工作流程示意图,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括以下步骤:
步骤S221、所述尾节点设备获取自身的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知显式拥塞通知(explicit congestion notification,ECN)水线。
其中,出端口的拥塞参数取决于同时到达出端口的各种类型报文的数量,通常同时到达出端口的报文的数量越大,则表明出端口处的拥塞情况越严重,相应的出端口的拥塞参数越大。
步骤S222、当所述拥塞参数大于所述预设拥塞阈值时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
其中,当尾节点设备的出端口的拥塞参数大于预设拥塞阈值时,则表明尾节点设备在传输所述第一iOAM报文的过程中出现拥塞,则尾节点设备在传输第一iOAM报文的过程中,有可能出现传输时延过大的问题。这种情况下,可认为尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。这种情况下,管理设备根据接收到的通知消息确定尾节点设备在传输第一iOAM报文的过程中是否出现传输时延过大的问题。
具体的,管理设备在获取所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间之后,可根据第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间的时间差,确定尾节点设备在传输第一iOAM报文的过程中是否出现传输时延过大的问题。
另外,若所述符合预定条件的重要事件为时延超过阈值,参见图5所示的工作流程示意图,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括以下步骤:
步骤S223、所述尾节点设备获取所述第一iOAM报文到达所述尾节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述尾节点设备的出端口的第二时间。
步骤S224、当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
其中,如果第二时间与第一时间的时间差大于预设的时间阈值,则表明尾节点设备在传输所述第一iOAM报文的过程中的时延超过预设的时间阈值,即出现传输时延过大的问题,这种情况下,可认为尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
相应的,当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
这种情况下,管理设备能够根据获取到的通知消息,检测尾节点设备在传输第一iOAM报文的过程中,是否出现传输时延过大的问题。
具体的,管理设备在获取所述尾节点设备的节点标识、所述第一iOAM报文到达所述 尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间之后,可计算第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间的时间差,若该时间差大于预设的时间阈值,则管理设备可确定尾节点设备在传输第一iOAM报文的过程中,是否出现传输时延过大的问题。
另外,若所述符合预定条件的重要事件为路径转移事件,参见图6所示的工作流程示意图,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括以下步骤:
步骤S225、所述尾节点设备获取所述第一iOAM报文对应的数据流的特征参数。
测量域中的头节点设备获取到的各个业务报文,可能由同一数据流拆分而成,或者来源于不同的数据流。其中,第一iOAM报文对应的数据流指的是第一iOAM报文包含的业务数据所在的数据流。所述数据流的特征参数用于对不同数据流进行区分,所述数据流的特征参数可以包括所述数据流的流标识和/或五元组。
另外,所述数据流的特征参数通常加载在所述第一iOAM报文中,通过对第一iOAM报文进行解析,即可获取第一iOAM报文对应的数据流的特征参数。
步骤S226、所述尾节点设备比较所述第一iOAM报文对应的数据流的特征参数与所述尾节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述尾节点设备之前获取的iOAM报文。
也就是说,所述尾节点设备每次在获取iOAM报文之后,会存储该iOAM报文对应的数据流的特征参数。
步骤S227、当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述尾节点设备比较所述第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口,所述端口包括:入端口和/或出端口。
其中,报文对应尾节点设备的端口,指的是报文在尾节点设备传输过程中应用的端口,该端口包括入端口和/或出端口。
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,表明第一iOAM报文与目标iOAM报文对应同一个数据流。
步骤S228、当第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,表明第一iOAM报文与目标iOAM报文对应同一个数据流。这种情况下,若第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同,则表明尾节点设备在传输同一数据流的过程中,端口发生变化,从而可以确定尾节点设备在传输第一iOAM报文的过程中发生路径转移。
当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识和所述尾节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
这种情况下,管理设备可根据通知消息,判断尾节点设备在传输第一iOAM报文的过 程中是否出现路径转移。
具体的,管理设备在获取第一节点信息之后,查找与第一iOAM报文的数据流的特征相同的其他iOAM报文,也就是说,查找与第一iOAM报文属于同一数据流的其他iOAM报文(即目标iOAM报文);然后,比较第一iOAM报文与目标iOAM报文对应第一节点设备的端口是否相同,如果相同,则确定第一节点设备在传输第一iOAM报文的过程中未出现路径变化,如果不同,则确定第一节点设备在传输第一iOAM报文的过程中出现路径变化。
进一步的,在本申请实施例公开的iOAM报文的传输方法中,所述通知消息还包括:所述第一iOAM报文的标识信息,所述标识信息包括所述第一iOAM报文的流标识和序列号,所述流标识指示所述第一iOAM报文所属的数据流,所述序列号指示所述第一iOAM报文在所述数据流中的位置。
进一步的,在本申请实施例中,所述重要数据标识为预设字符、和/或触发所述重要事件的节点设备的数量、和/或触发所述重要事件的节点设备的设备标识、和/或触发的所述重要事件的事件类型标识。
所述重要数据标识可包括多种形式,其中,重要数据标识可以为预设的字符,该字符可以为数字、字母和符号等多种类型,例如,可以为一个固定的数值(例如“1”),这种情况下,检测到该预设的字符,尾节点设备即可确定第一iOAM报文中包括重要数据标识。
另外,重要数据标识可以为随触发符合预定条件的重要事件的节点设备的数量增长而递增的数值,这种情况下,每个节点设备在触发符合预定条件的重要事件之后,更新重要数据标识,更新后的重要数据标识为原重要数据标识与预设数值的相加结果,例如,可以为触发所述重要事件的节点设备的数量,这种情况下,第一个触发重要事件的节点设备对应的重要数据标识为1,第二个触发重要事件的节点设备将其更新为2,并依次类推。
在另外一种可行的方式中,所述重要数据标识包括触发所述重要事件的节点设备的设备标识。这种情况下,所生成的通知消息中还可以包括触发所述重要事件的节点设备的设备标识,管理设备在接收到该通知消息之后,即可确定哪些节点设备在iOAM报文的传输过程中触发了重要事件。
或者,在另外一种可行的方式中,所述重要数据标识包括触发的所述重要事件的事件类型标识。这种情况下,预先为符合预定条件的重要事件进行分类,并且,所生成的通知消息中还可以包括触发的所述重要事件的事件类型标识,管理设备在接收到该通知消息之后,即可根据重要事件的事件类型标识,确定节点设备在传输iOAM报文的过程中触发了哪些重要事件。
或者,所述重要数据标识包括触发的所述重要事件的事件类型标识和触发所述重要事件的节点设备的设备标识,并在通知消息中同时包括触发的所述重要事件的事件类型标识和触发所述重要事件的节点设备的设备标识,以便管理设备在接收到该通知消息之后,即可确定哪些节点设备在iOAM报文的传输过程中触发了重要事件,以及这些节点设备分别触发了哪种类型的重要事件。
进一步的,当所述重要数据标识为触发所述重要事件的节点设备的数量时,所述尾节点设备在根据所述第一iOAM报文生成通知消息之前,还包括:
所述尾节点设备检测触发所述重要事件的节点设备的数量是否大于预设上报阈值;
当所述尾节点设备确定所述重要事件的节点设备的数量大于预设上报阈值时,所述尾节点设备再执行根据所述第一iOAM报文生成通知消息的操作。
本申请实施例中,可以在确定所述重要事件的节点设备的数量大于预设上报阈值的情况下,再由尾节点设备生成通知消息。其中,当所述尾节点设备确定所述重要事件的节点设备的数量大于预设上报阈值时,表明触发重要事件的节点设备数量较多,也就是说,只有在触发重要事件的节点设备的数量较多时,尾节点设备才生成通知消息,并向管理设备上报通知消息。而当触发重要事件的节点设备的数量较少时,尾节点设备不会生成通知消息,从而能够进一步减少尾节点设备上报通知消息的数据量。
相应的,在本申请另一实施例中,还公开一种带内操作管理维护iOAM报文的传输方法。该方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备。参见图7所示的工作流程示意图,所述iOAM报文的传输方法包括以下步骤:
步骤S31、所述第一节点设备获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传输的业务数据。
其中,若第一节点设备为测量域中的头节点设备,则第一节点设备根据业务报文,获取相应的第一iOAM报文,业务数据指的是该业务报文中包含的,并需要在iOAM网络中传输的数据。例如,第一节点设备可通过对业务报文进行封装的方式,获取第一iOAM报文。
若第一节点设备为测量域中的中间节点设备,则第一节点设备可获取来自头节点设备或者其他中间节点设备转发的第一iOAM报文。
步骤S32、所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。
其中,符合预定条件的重要事件可包括多种类型,相应的,第一节点设备可通过多种方式确定自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。
步骤S33、当所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述第一节点设备更新所述第一iOAM报文。
更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息。
所述重要数据标识可包括多种形式,其中,重要数据标识可以为预设的字符,该字符可以为数字、字母和符号等多种类型,例如,可以为一个固定的数值(例如“1”),这种情况下,检测到该预设的字符,尾节点设备即可确定第一iOAM报文中包括重要数据标识;或者,重要数据标识包括随触发符合预定条件的重要事件的节点设备的数量增长而递增的数值,这种情况下,每个节点设备在触发符合预定条件的重要事件之后,更新重要数据标识,更新后的重要数据标识为原重要数据标识与预设数值的相加结果,例如,可以为触发所述重要事件的节点设备的数量,这种情况下,第一个触发重要事件的节点设备对应的重要数据标识为1,第二个触发重要事件的节点设备将其更新为2,并依次类推;另外,重要数据标识包括触发符合预定条件的重要事件的节点设备的设备标识;进一步的,还可以预先为符合预定条件的重要事件进行分类,这种情况下,重要数据标识包括所触发的重要事件的类型的标识等。
步骤S34、所述第一节点设备向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
其中,若下一跳节点设备为该测量域的尾节点设备,尾节点设备可根据第一iOAM报文中是否包含重要数据标识,生成相应的通知消息。另外,若下一跳节点设备为该测量域 的中间节点设备,则该中间节点设备还可以继续传输第一iOAM报文,直到测量域中的尾节点设备接收到第一iOAM报文。
通过本申请实施例的方案,第一节点设备能够确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,更新所述第一iOAM报文,更新后的第一iOAM报文包括重要数据标识,从而能够通过对重要数据标识实现对第一iOAM报文的标记,便于尾节点设备检测是否需要根据第一iOAM报文生成通知消息并上报,从而减少尾节点设备上报的数据量。
只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。
另外,本申请实施例中,重要数据标识可通过多种方式设置在第一iOAM报文中。参见图8所示的第一iOAM报文的示意图,其中,第一iOAM报文由总报头(即header)、iOAM报头和业务数据(即payload)构成。总报头中通常加载有iOAM报文的承载方式,例如,第六版互联网协议(internet protocol version 6,IPv6)或多协议标签交换(multi-protocol label switching,MPLS)等;iOAM报头中通常加载数据收集指令等。
在本申请实施例中,所述重要数据标识可以位于所述更新后的第一iOAM报文的总报头的预设字段中。或者,所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头的预设字段中。或者,所述重要数据标识位于所述更新后的第一iOAM报文包括的业务数据中,其中,可将重要数据标识设置在业务数据的最后,这种情况下,尾节点设备在接收到第一iOAM报文之后,通过查询业务数据中最后的字段,即可检测第一iOAM报文中是否包含重要数据标识;或者,所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头和业务数据之间的预设字段中,这种情况下,在iOAM报头和业务数据之间额外设置一个字段,在该字段中添加重要数据标识。
其中,iOAM报头如图9所示,iOAM报头的“iOAM命令空间标识符”字段(即“Namespace-ID”字段)表示iOAM标识符,通常长16bit。
“节点长度”字段(即“NodeLen”字段)用于定义每个节点以4字节的倍数增加的数据长度(通常为5bit无符号整数)。
“Flags”字段长4bit,其中,Bit 0用于标识overflow(溢出)。当iOAM报文头中没有足够的空间用来记录节点信息时,该标志位就会被置1;Bit 1用于表示Loopback(回环标志位),当Lookback bit位被置1时,中间节点设备和尾节点设备需要向iOAM报文的头节点设备发送一份报文的副本;Bit 2-3为当前保留的部分,可用于设置重要数据标识。
“剩余长度”字段(即“RemainingLen”字段)为7bit的无符号整数,该字段定义了剩余的以4字节倍数的可用于记录数据的长度区间,当节点设备在iOAM报头中添加数据时,“RemainingLen”字段需要按照“NodeLen”字段相应减少。
“iOAM跟踪类型”字段,即“iOAM-Trace-type”为24比特长的标识符,用于定义node list中所记录的数据类型,每个bit所标识的数据类型为:
Bit 0:当置位时,表明节点数据中包含Hop_lim和node id的值;
Bit 1:当置位时,表明节点数据中包含ingress_if_id和ingress_if_id;
Bit 2:当置位时,表明节点数据中包含秒级的时间戳;
Bit 3:当置位时,表明节点数据中包含亚秒级的时间戳;
Bit 4:当置位时,表明节点数据中包含转发时延;
Bit 5:当置位时,表明节点数据中包含名称空间类的特殊数据;
Bit 6:当置位时,表明节点数据中包含队列深度;
Bit 7:当置位时,表明节点数据中包含可变长度的不透明状态的快照字段;
Bit 8:当置位时,表明节点数据中包含已宽格式存储的Hop_Lim和node_id;
Bit 9:当置位时,表明节点数据中包含以宽格式存储的ingress_if_id和egress_if_id;
Bit 10:当置位时,表明节点数据中包含以宽格式存储的名称空间类的特殊数据;
Bit 11:当置位时,表明节点数据中包含buffer占用率;
Bit 12-22:当前未定义,可用于设置重要数据标识;
Bit 23:当置位时,表明节点数据中包含节点数据的校验和填充数据。
“保留位”字段(即“Reserved”字段)长8bit,用作以后的使用,可用于设置重要数据标识。
“节点数据列表”字段(即“Node data list”字段)为n个可变长度的字段。Node data list字段里所含的数据类型由iOAM-Trace-Type的比特位决定。Node data list填充的数据为节点信息,例如,当第一中间节点设备获取第一iOAM报文时,可在第一iOAM报文的Node data list[1]字段添加自身的节点信息;当第二中间节点设备获取第一iOAM报文时,可在第一iOAM报文的Node data list[2]字段添加自身的节点信息;相应的,当第N中间节点设备获取第一iOAM报文时,可在第一iOAM报文的Node data list[n]字段添加自身的节点信息。
另外,第一节点设备可通过多种方式检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。在其中一种方式中,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括以下步骤:
所述第一节点设备获取自身的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
其中,出端口的拥塞参数取决于同时到达出端口的各种报文的数量,通常同时到达出端口的报文的数量越大,则表明出端口处的拥塞情况越严重,相应的出端口的拥塞参数越大。
当第一节点设备的出端口的拥塞参数大于预设拥塞阈值时,则表明第一节点设备在传输所述第一iOAM报文的过程中出现拥塞,这种情况下,第一节点设备在传输所述第一iOAM报文的过程中可能会出现传输时延过大的问题,则确定第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
这种情况下,所述第一节点信息包括:所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
管理设备在获取通知消息后,可根据该通知消息确定第一节点设备在传输第一iOAM报文的过程中,是否出现传输时延过大的问题。
具体的,管理设备在获取所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间之后,即可根据所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间的时间差,确定第一节点设备在传输所述第一iOAM报文的过程中是否出现传输时延过大的问题。
在另一种方式中,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括以下步骤:
所述第一节点设备获取所述第一iOAM报文到达所述第一节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述第一节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
其中,如果第二时间与第一时间的时间差大于预设的时间阈值,则表明第一节点设备在传输所述第一iOAM报文的过程中的时延超过预设的时间阈值,即出现传输时延过大的问题,这种情况下,可认为第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
这种情况下,所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
管理设备在获取通知消息后,可根据该通知消息确定第一节点设备在传输第一iOAM报文的过程中,是否出现传输路径过大的问题。
具体的,管理设备在获取所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间之后,可计算第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间的时间差,若该时间差大于预设的时间阈值,则管理设备可确定第一节点设备的节点标识所指示的第一节点设备在传输第一iOAM报文的过程中,出现时延超过阈值的情况。
另外,若所述符合预定条件的重要事件为路径转移事件,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括以下步骤:
所述第一节点设备获取所述第一iOAM报文对应的数据流的特征参数;
所述数据流的特征参数包括:所述数据流的流标识和/或五元组;
所述第一节点设备比较所述第一iOAM报文对应的数据流的特征参数与所述第一节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述第一节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述第一节点设备比较所述第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口,所述端口包括:入端口和/或出端口。
当第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件。
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,表明第一iOAM报文与目标iOAM报文对应同一个数据流。这种情况下,若第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同,则表明第一节点设备在传输同一数据流的过程中,端口发生变化,从而可以确定第一节点设备在传输第一iOAM报文的过程中发生路径转移。
相应的,在这种情况下,所述第一节点信息包括:所述第一节点设备的节点标识和所述第一节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
这种情况下,管理设备在获取通知消息后,可根据该通知消息确定第一节点设备在传输第一iOAM报文的过程中,是否出现路径变化的问题。
具体的,管理设备在获取第一节点信息之后,查找与第一iOAM报文的数据流的特征相同的其他iOAM报文(即目标iOAM报文),也就是说,查找与第一iOAM报文属于同一数据流的其他iOAM报文;然后,比较第一iOAM报文与目标iOAM报文对应第一节点设备的端口是否相同,如果相同,则确定第一节点设备在传输第一iOAM报文的过程中未出现路径变化,如果不同,则确定第一节点设备在传输第一iOAM报文的过程中出现路径变化。
与上述带内操作管理维护iOAM报文的传输方法相对应的,在本申请另一实施例中,还公开一种带内操作管理维护iOAM报文的传输装置,所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备,所述装置设置在所述尾节点设备中。
参见图10所示的结构示意图,所述装置包括:发送器110、接收器120和处理器130。
其中,所述接收器120,用于接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备。
其中,业务数据指的是业务报文中包含的,并需要在iOAM网络中传输的数据。
在本申请实施例中,某一个节点设备的节点信息指的是该节点设备在iOAM网络中的沿途数据(即iOAM trace data)。相应的,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,即第一节点设备的沿途数据。也就是说,若测量域中只有两个节点设备,第一节点设备为该测量域中的头节点设备,则第一节点信息为头节点设备的信息;若测量域中的节点设备多于两个,第一节点设备可以为该测量域中的中间节点设备或该测量域内的头节点设备,则第一节点信息为中间节点设备的信息或为头节点设备的信息。
所述处理器130,用于确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件。
其中,所述测量域中的节点设备在获取第一iOAM报文之后,会判断自身在传输第一iOAM报文的过程中,是否触发符合预定条件的重要事件,例如,是否发生拥塞,和/或是否发生报文传输路径的变化等。
另外,所述测量域中的节点设备可以为该测量域内包含的某一种类型的节点设备,或者为测量域内包含的各种类型的节点设备,也就是说,所述测量域中的节点设备指的是测量域内的任意一种节点设备,或者为头节点设备、中间节点设备和尾节点设备中的至少两种节点设备的结合。
若测量域中的节点设备指的是测量域中的头节点设备或中间节点设备,头节点设备或中间节点设备能够判断自身在传输第一iOAM报文的过程中,是否触发符合预定条件的重要事件,若触发,则在第一iOAM报文中添加重要数据标识,这种情况下,尾节点设备获取到的第一iOAM报文之中,包括头节点设备或中间节点设备添加的重要数据标识。
若测量域中的节点设备包括尾节点设备,表示测量域中的尾节点设备能够判断自身在传输第一iOAM报文的过程中,是否触发符合预定条件的重要事件,并确定触发时,在第一iOAM报文中添加重要数据标识,这种情况下,测量域中的尾节点设备获取到的第一iOAM报文之中,包括尾节点设备添加的重要数据标识。
当确定所述第一iOAM报文包括重要数据标识时,所述处理器130还用于根据所述第一iOAM报文生成通知消息。
所述发送器110用于向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
进一步的,iOAM网络的管理设备在获取通知消息之后,可对该通知消息进行分析,从而检测该测量域中各个节点设备在通信过程中是否出现传输时延过长或链路变化等问题。
在现有技术中,尾节点设备每次在获取iOAM报文之后,都会根据该iOAM报文生成通知消息,并向管理设备发送通知消息。
而通过本申请实施例的方案,只有在接收到的第一iOAM报文中包含重要数据标识时,才会根据第一iOAM报文生成通知消息并向管理设备上报。而尾节点设备所在测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,第一iOAM报文中才会包含重要数据标识,也就是说,只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,才会向管理设备发送通知消息。
因此,与现有技术相比,本申请实施例的方案能够减少尾节点设备向管理设备发送通知消息的数量,即减少尾节点设备上报至管理设备的数据量,从而解决现有技术中,尾节点设备上报的数据量较大的问题。
进一步的,在本申请实施例所述的装置中,所述处理器还用于,当确定所述第一iOAM报文不包括重要数据标识时,不生成所述通知消息。
如果第一iOAM报文不包括重要数据标识,则表明测量域中的节点设备未在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件,则无需管理设备进行分析,因此,不生成所述通知消息,相应的,也无需向管理设备上报通知消息,从而减少了尾节点设备向管理设备上报的数据量。
进一步的,在本申请实施例所述的装置中,所述通知消息还包括尾节点信息,所述尾节点信息指示传输所述第一iOAM报文的所述尾节点设备的信息。
在本申请实施例中,尾节点信息指示的即为传输第一iOAM报文的尾节点设备的信息。
另外,在本申请实施例所述的装置中,所述处理器还用于,在确定所述第一iOAM报文是否包括重要数据标识之前,检测所述尾节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中更新重要数据标识。
这种情况下,处理器能够根据尾节点设备是否触发符合预定条件的重要事件,更新第一iOAM报文中的重要数据标识。
若测量域中包含多个节点设备,则尾节点设备接收到的第一iOAM报文,可由测量域中其他多个节点设备转发传输至尾节点设备。这种情况下,所述处理器具体用于,接收所述第一节点设备发送、并由第二节点设备转发的所述第一iOAM报文,所述第一iOAM报文中还包括第二节点信息;
所述第二节点信息指示传输所述第一iOAM报文的所述第二节点设备;
所述第二节点信息为由所述第二节点设备封装在所述第一iOAM报文中的节点信息;
所述通知消息还包括所述第二节点信息。
另外,处理器可通过多种方式检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。在其中一种方式中,所述处理器具体用于,获取所述尾节点设备的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
这种情况下,管理设备根据接收到的通知消息确定尾节点设备在传输第一iOAM报文的过程中是否出现传输时延过大的问题。
具体的,管理设备在获取所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间之后,可根据第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间的时间差,确定尾节点设备在传输第一iOAM报文的过程中是否出现传输时延过大的问题。
在另外一种方式中,所述处理器具体用于,获取所述第一iOAM报文到达所述尾节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述尾节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
这种情况下,管理设备能够根据获取到的通知消息,检测尾节点设备在传输第一iOAM报文的过程中,是否出现传输时延过大的问题。
具体的,管理设备在获取所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间之 后,可计算第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间的时间差,若该时间差大于预设的时间阈值,则管理设备可确定尾节点设备在传输第一iOAM报文的过程中,是否出现传输时延过大的问题。
在另外一种方式中,所述处理器具体用于,获取所述第一iOAM报文对应的数据流的特征参数;
所述处理器比较所述第一iOAM报文对应的数据流的特征参数与所述尾节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述尾节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述处理器比较所述第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口,所述端口包括:入端口和/或出端口;
当第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识和所述尾节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
这种情况下,管理设备可根据通知消息,判断尾节点设备在传输第一iOAM报文的过程中是否出现路径转移。
具体的,管理设备在获取第一节点信息之后,查找与第一iOAM报文的数据流的特征相同的其他iOAM报文,也就是说,查找与第一iOAM报文属于同一数据流的其他iOAM报文(即目标iOAM报文);然后,比较第一iOAM报文与目标iOAM报文对应第一节点设备的端口是否相同,如果相同,则确定第一节点设备在传输第一iOAM报文的过程中未出现路径变化,如果不同,则确定第一节点设备在传输第一iOAM报文的过程中出现路径变化。
进一步的,在本申请实施例中,所述通知消息还包括:所述第一iOAM报文的标识信息,所述标识信息包括所述第一iOAM报文的流标识和序列号,所述流标识指示所述第一iOAM报文所属的数据流,所述序列号指示所述第一iOAM报文在所述数据流中的位置。
进一步的,在本申请实施例中,所述重要数据标识可包括多种形式,在一种可行的方式中,所述重要数据标识包括触发所述重要事件的节点设备的设备标识。这种情况下,所生成的通知消息中还可以包括触发所述重要事件的节点设备的设备标识,管理设备在接收到该通知消息之后,即可确定哪些节点设备在iOAM报文的传输过程中触发了重要事件。
或者,在另外一种可行的方式中,所述重要数据标识包括触发的所述重要事件的事件类型标识。这种情况下,预先为符合预定条件的重要事件进行分类,并且,所生成的通知消息中还可以包括触发的所述重要事件的事件类型标识,管理设备在接收到该通知消息之后,即可根据重要事件的事件类型标识,确定节点设备在传输iOAM报文的过程中触发了哪些重要事件。
相应的,在本申请另一实施例中,公开一种带内操作管理维护iOAM报文的传输装置,所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备, 所述装置设置在所述第一节点设备中。
参见图11所示的结构示意图,所述装置包括:发送器210、接收器220和处理器230。
其中,所述接收器220,用于获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传输的业务数据。
若第一节点设备为测量域中的头节点设备,则第一节点设备根据业务报文,获取相应的第一iOAM报文,业务数据指的是该业务报文中包含的,并需要在iOAM网络中传输的数据。例如,第一节点设备可通过对业务报文进行封装的方式,获取第一iOAM报文。
若第一节点设备为测量域中的中间节点设备,则第一节点设备可获取来自头节点设备或者其他中间节点设备转发的第一iOAM报文。
所述处理器230,用于确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。
当所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器更新所述第一iOAM报文。
更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息。
所述发送器210用于向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
其中,若下一跳节点设备为该测量域的尾节点设备,尾节点设备可根据第一iOAM报文中是否包含重要数据标识,生成相应的通知消息。另外,若下一跳节点设备为该测量域的中间节点设备,则该中间节点设备还可以继续传输第一iOAM报文,直到测量域中的尾节点设备接收到第一iOAM报文。
通过本申请实施例的方案,第一节点设备能够确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,更新所述第一iOAM报文,更新后的第一iOAM报文包括重要数据标识,从而能够通过对重要数据标识实现对第一iOAM报文的标记,便于尾节点设备检测是否需要根据第一iOAM报文生成通知消息并上报,从而减少尾节点设备上报的数据量。
另外,本申请实施例中,重要数据标识可通过多种方式设置在第一iOAM报文中。在一种可行的方式中,所述重要数据标识位于所述更新后的第一iOAM报文的总报头的预设字段中;或者,所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头的预设字段中;或者,所述重要数据标识位于所述更新后的第一iOAM报文包括的业务数据中;或者,所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头和业务数据之间的预设字段中。
另外,第一节点设备可通过多种方式检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件。在其中一种方式中,所述处理器具体用于,获取所述第一节点设备的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
当所述拥塞参数大于所述预设拥塞阈值时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
管理设备在获取通知消息后,可根据该通知消息确定第一节点设备在传输第一iOAM报文的过程中,是否出现传输时延过大的问题。
具体的,管理设备在获取所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间之后,即可根据所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间的时间差,确定第一节点设备在传输所述第一iOAM报文的过程中是否出现传输时延过大的问题。
在另一种方式中,所述处理器具体用于,获取所述第一iOAM报文到达所述第一节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述第一节点设备的出端口的第二时间;
当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
管理设备在获取通知消息后,可根据该通知消息确定第一节点设备在传输第一iOAM报文的过程中,是否出现传输路径过大的问题。
具体的,管理设备在获取所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间之后,可计算第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间的时间差,若该时间差大于预设的时间阈值,则管理设备可确定第一节点设备的节点标识所指示的第一节点设备在传输第一iOAM报文的过程中,出现时延超过阈值的情况。
另外,若所述符合预定条件的重要事件为路径转移事件,所述处理器具体用于,获取所述第一iOAM报文对应的数据流的特征参数;
所述处理器比较所述第一iOAM报文对应的数据流的特征参数与所述第一节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述第一节点设备之前获取的iOAM报文;
当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述处理器比较所述第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口,所述端口包括:入端口和/或出端口;
当第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
所述第一节点信息包括:所述第一节点设备的节点标识和所述第一节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
这种情况下,管理设备在获取通知消息后,可根据该通知消息确定第一节点设备在传输第一iOAM报文的过程中,是否出现路径变化的问题。
具体的,管理设备在获取第一节点信息之后,查找与第一iOAM报文的数据流的特征相同的其他iOAM报文(即目标iOAM报文),也就是说,查找与第一iOAM报文属于同一数 据流的其他iOAM报文;然后,比较第一iOAM报文与目标iOAM报文对应第一节点设备的端口是否相同,如果相同,则确定第一节点设备在传输第一iOAM报文的过程中未出现路径变化,如果不同,则确定第一节点设备在传输第一iOAM报文的过程中出现路径变化。
与上述带内操作管理维护iOAM报文的传输方法相对应的,在本申请另一实施例中,还公开一种带内操作管理维护iOAM报文的传输装置。该装置设置在尾节点设备,所述尾节点设备应用于iOAM网络包括的测量域中,所述尾节点设备是所述测量域的出口设备。
在本申请的一个可选实施例中,所述iOAM报文的传输装置包括接收单元、发送单元和处理单元,所述接收单元、发送单元和处理单元用于执行图2至图6对应的实施例中的全部或部分步骤。
以上各个单元的划分仅仅是一种逻辑功能的划分,实际实现时,所述接收单元的功能可以集成到接收器,所述发送单元的功能可以集成到发送器,所述处理单元的功能可以集成到处理器实现。如图10所示,图10是本申请实施例公开的iOAM报文的传输装置的一个实施例的结构示意图。该装置包括发送器110、接收器120和处理器130。
例如,所述接收单元可用于接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备。所述处理单元可用于确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件,当确定所述第一iOAM报文包括重要数据标识时,所述处理单元可还用于根据所述第一iOAM报文生成通知消息。所述发送单元可用于向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
具体内容可以参考图2至图6对应的实施例中相关部分的描述,此处不再赘述。
相对应的,在本申请另一实施例中,还公开一种带内操作管理维护iOAM报文的传输装置。所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备,所述装置设置在所述第一节点设备中。
在本申请的一个可选实施例中,所述iOAM报文的传输装置包括接收单元、发送单元和处理单元,所述接收单元、发送单元和处理单元用于执行图7对应的实施例中的全部或部分步骤。
以上各个单元的划分仅仅是一种逻辑功能的划分,实际实现时,所述接收单元的功能可以集成到接收器,所述发送单元的功能可以集成到发送器,所述处理单元的功能可以集成到处理器实现。如图11所示,图11是本申请实施例公开的iOAM报文的传输装置的一个实施例的结构示意图。该装置包括发送器210、接收器220和处理器230。
例如,所述接收单元可用于获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传输的业务数据。所述处理单元可确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,当所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器更新所述第一iOAM报文,更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息。所述发 送单元可用于向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
具体内容可以参考图7对应的实施例中相关部分的描述,此处不再赘述。
与上述带内操作管理维护iOAM报文的传输方法相对应的,在本申请另一实施例中,还公开一种带内操作管理维护iOAM报文的传输设备,该设备用作尾节点设备,所述尾节点设备应用于iOAM网络包括的测量域中,所述尾节点设备是所述测量域的出口设备,参见图12所示的示意图,所述设备包括:
处理器1101和存储器,其中:
所述存储器,用于存储程序指令所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述尾节点设备执行图2至图6对应的实施例中的全部或部分步骤。
进一步的,该设备还可以包括:该网络设备包括:收发器1102和总线1103,所述存储器包括随机存取存储器1104和只读存储器1105。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该网络设备时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的boot loader引导系统进行启动,引导该设备进入正常运行状态。在该设备进入正常运行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述尾节点设备执行图2至图6对应的实施例中的全部或部分步骤。
本发明实施例的网络设备可对应于上述图2至图6所对应的实施例中的测量域中的尾节点设备,并且,该网络设备中的处理器620、收发器610等可以实现图2至图6所对应的实施例中的测量域中的尾节点设备所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述。
需要说明的是,本实施例也可以基于通用的物理服务器结合网络功能虚拟化(英文:Network Function Virtualization,NFV)技术实现的网络设备,所述网络设备为虚拟网络设备(如,虚拟主机、虚拟路由器或虚拟交换机)。所述虚拟网络设备可以是运行有用于发送通告报文功能的程序的虚拟机(英文:Virtual Machine,VM),所述虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。本领域技术人员通过阅读本申请即可在通用物理服务器上虚拟出具有上述功能的多个网络设备。此处不再赘述。
与上述带内操作管理维护iOAM报文的传输方法相对应的,在本申请另一实施例中,还公开一种带内操作管理维护iOAM报文的传输设备,该设备用作第一节点设备,所述第一节点设备应用于iOAM网络包括的测量域中,所述设备包括:
处理器和存储器,其中:
所述存储器,用于存储程序指令所述处理器,用于调用并执行所述存储器中存储的程序指令,以使所述第一节点设备执行图7对应的实施例中的全部或部分步骤。
进一步的,该设备还可以包括:该网络设备包括:收发器和总线,所述存储器包括随机存取存储器和只读存储器。
其中,处理器通过总线分别耦接收发器、随机存取存储器以及只读存储器。其中,当需要运行该网络设备时,通过固化在只读存储器中的基本输入输出系统或者嵌入式系统中的bootloader引导系统进行启动,引导该设备进入正常运行状态。在该设备进入正常运 行状态后,在随机存取存储器中运行应用程序和操作系统,从而使所述第一节点设备执行图7对应的实施例中的全部或部分步骤。
本发明实施例的网络设备可对应于上述图7所对应的实施例中的测量域中的第一节点设备,并且,该网络设备中的处理器、收发器等可以实现图7所对应的实施例中的测量域中的第一节点设备所具有的功能和/或所实施的各种步骤和方法,为了简洁,在此不再赘述。
需要说明的是,本实施例也可以基于通用的物理服务器结合网络功能虚拟化(英文:Network Function Virtualization,NFV)技术实现的网络设备,所述网络设备为虚拟网络设备(如,虚拟主机、虚拟路由器或虚拟交换机)。所述虚拟网络设备可以是运行有用于发送通告报文功能的程序的虚拟机(英文:Virtual Machine,VM),所述虚拟机部署在硬件设备上(例如,物理服务器)。虚拟机指通过软件模拟的具有完整硬件系统功能的、运行在一个完全隔离环境中的完整计算机系统。本领域技术人员通过阅读本申请即可在通用物理服务器上虚拟出具有上述功能的多个网络设备。此处不再赘述。
具体实现中,本申请实施例还提供一种计算机存储介质,其中,设置在任意设备中计算机存储介质可存储有程序,该程序执行时,可实施包括图2至图6对应的实施例中的全部或部分步骤。任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
其中,处理器可以是中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。
具体实现中,本申请实施例还提供一种计算机存储介质,其中,设置在任意设备中计算机存储介质可存储有程序,该程序执行时,可实施包括图7对应的实施例中的全部或部分步骤。任意设备中的存储介质均可为磁碟、光盘、只读存储记忆体(英文:read-only memory,简称:ROM)或随机存储记忆体(英文:random access memory,简称:RAM)等。
其中,处理器可以是中央处理器(central processing unit,CPU)、网络处理器(network processor,NP)或者CPU和NP的组合。处理器还可以进一步包括硬件芯片。上述硬件芯片可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列 (field-programmable gate array,FPGA),通用阵列逻辑(generic array logic,GAL)或其任意组合。存储器可以包括易失性存储器(volatile memory),例如随机存取存储器(random-access memory,RAM);存储器也可以包括非易失性存储器(non-volatile memory),例如只读存储器(read-only memory,ROM),快闪存储器(flash memory),硬盘(hard disk drive,HDD)或固态硬盘(solid-state drive,SSD);存储器还可以包括上述种类的存储器的组合。
相应的,本申请实施例公开一种带内操作管理维护iOAM报文的传输系统,所述系统应用于iOAM网络包括的测量域中,参见图13所示的示意图,所述系统包括:
尾节点设备100和第一节点设备200,所述尾节点设备100是所述测量域的出口设备。
其中,所述尾节点设备100用于执行图2至图6对应的实施例中的全部或部分步骤;
所述第一节点设备200用于执行图7对应的实施例中的全部或部分步骤。
通过本申请实施例的系统,尾节点设备只有在接收到的第一iOAM报文中包含重要数据标识时,才会根据第一iOAM报文生成通知消息并向管理设备上报。而尾节点设备所在测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,第一iOAM报文中才会包含重要数据标识,也就是说,只有测量域中的节点设备在传输第一iOAM报文的过程中,触发符合预定条件的重要事件时,尾节点设备才会向管理设备发送通知消息。
因此,与现有技术相比,本申请实施例的方案能够减少尾节点设备向管理设备发送通知消息的数量,即减少尾节点设备上报至管理设备的数据量,从而解决现有技术中,尾节点设备上报的数据量较大的问题。
本领域技术任何还可以了解到本申请实施例列出的各种说明性逻辑块(illustrative logical block)和步骤(step)可以通过电子硬件、电脑软件,或两者的结合进行实现。这样的功能是通过硬件还是软件来实现取决于特定的应用和整个系统的设计要求。本领域技术人员可以对于每种特定的应用,可以使用各种方法实现所述的功能,但这种实现不应被理解为超出本申请实施例保护的范围。
本申请实施例中所描述的各种说明性的逻辑单元和电路可以通过通用处理器,数字信号处理器,专用集成电路(ASIC),现场可编程门阵列(FPGA)或其它可编程逻辑装置,离散门或晶体管逻辑,离散硬件部件,或上述任何组合的设计来实现或操作所描述的功能。通用处理器可以为微处理器,可选地,该通用处理器也可以为任何传统的处理器、管理设备、微管理设备或状态机。处理器也可以通过计算装置的组合来实现,例如数字信号处理器和微处理器,多个微处理器,一个或多个微处理器联合一个数字信号处理器核,或任何其它类似的配置来实现。
本申请实施例中所描述的方法或算法的步骤可以直接嵌入硬件、处理器执行的软件单元、或者这两者的结合。软件单元可以存储于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、可移动磁盘、CD-ROM或本领域中其它任意形式的存储媒介中。示例性地,存储媒介可以与处理器连接,以使得处理器可以从存储媒介中读取信息,并可以向存储媒介存写信息。可选地,存储媒介还可以集成到处理器中。处理器和存储媒介可以设置于ASIC中,ASIC可以设置于UE中。可选地,处理器和存储媒介也可 以设置于UE中的不同的部件中。
应理解,在本申请的各种实施例中,各过程的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
在上述实施例中,可以全部或部分地通过软件、硬件、固件或者其任意组合来实现。当使用软件实现时,可以全部或部分地以计算机程序产品的形式实现。所述计算机程序产品包括一个或多个计算机指令。在计算机上加载和执行所述计算机程序指令时,全部或部分地产生按照本申请实施例所述的流程或功能。所述计算机可以是通用计算机、专用计算机、计算机网络、或者其他可编程装置。所述计算机指令可以存储在计算机可读存储介质中,或者从一个计算机可读存储介质向另一个计算机可读存储介质传输,例如,所述计算机指令可以从一个网站站点、计算机、服务器或数据中心通过有线(例如同轴电缆、光纤、数字用户线(DSL))或无线(例如红外、无线、微波等)方式向另一个网站站点、计算机、服务器或数据中心进行传输。所述计算机可读存储介质可以是计算机能够存取的任何可用介质或者是包含一个或多个可用介质集成的服务器、数据中心等数据存储设备。所述可用介质可以是磁性介质,(例如,软盘、硬盘、磁带)、光介质(例如,DVD)、或者半导体介质(例如固态硬盘Solid State Disk(SSD))等。
本说明书的各个部分均采用递进的方式进行描述,各个实施例之间相同相似的部分互相参见即可,每个实施例重点介绍的都是与其他实施例不同之处。尤其,对于装置和系统实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例部分的说明即可。
尽管已描述了本申请的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本申请范围的所有变更和修改。
本领域的技术人员可以清楚地了解到本发明实施例中的技术可借助软件加必需的通用硬件平台的方式来实现。基于这样的理解,本发明实施例中的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品可以存储在存储介质中,如ROM/RAM、磁碟、光盘等,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例或者实施例的某些部分所述的方法。
本说明书中各个实施例之间相同相似的部分互相参见即可。尤其,对于……实施例而言,由于其基本相似于方法实施例,所以描述的比较简单,相关之处参见方法实施例中的说明即可。
以上所述的本发明实施方式并不构成对本发明保护范围的限定。

Claims (32)

  1. 一种带内操作管理维护iOAM报文的传输方法,其特征在于,所述方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备,所述方法包括:
    所述尾节点设备接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备;
    所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件;
    当所述尾节点设备确定所述第一iOAM报文包括重要数据标识时,所述尾节点设备根据所述第一iOAM报文生成通知消息,并且所述尾节点设备向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
  2. 根据权利要求1所述的方法,其特征在于,还包括:
    当所述尾节点设备确定所述第一iOAM报文不包括重要数据标识时,所述尾节点设备不生成所述通知消息。
  3. 根据权利要求1或2所述的方法,其特征在于,
    所述通知消息还包括尾节点信息,所述尾节点信息指示传输所述第一iOAM报文的所述尾节点设备的信息。
  4. 根据权利要求3所述的方法,其特征在于,在所述尾节点设备确定所述第一iOAM报文是否包括重要数据标识之前,还包括:
    所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
    当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中更新重要数据标识。
  5. 根据权利要求1至4任一项所述的方法,其特征在于,所述尾节点设备接收第一节点设备发送的第一iOAM报文,包括:
    所述尾节点设备接收所述第一节点设备发送、并由第二节点设备转发的所述第一iOAM报文,所述第一iOAM报文中还包括第二节点信息;
    所述第二节点信息指示传输所述第一iOAM报文的所述第二节点设备;
    所述第二节点信息为由所述第二节点设备封装在所述第一iOAM报文中的节点信息;
    所述通知消息还包括所述第二节点信息。
  6. 根据权利要求4所述的方法,其特征在于,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
    所述尾节点设备获取自身的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN 水线;
    当所述拥塞参数大于所述预设拥塞阈值时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
  7. 根据权利要求4所述的方法,其特征在于,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
    所述尾节点设备获取所述第一iOAM报文到达所述尾节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述尾节点设备的出端口的第二时间;
    当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
  8. 根据权利要求4所述的方法,其特征在于,所述尾节点设备检测自身在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
    所述尾节点设备获取所述第一iOAM报文对应的数据流的特征参数;
    所述尾节点设备比较所述第一iOAM报文对应的数据流的特征参数与所述尾节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述尾节点设备之前获取的iOAM报文;
    当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述尾节点设备比较所述第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口,所述端口包括:入端口和/或出端口;
    当第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同时,所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    当所述尾节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述尾节点设备在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识和所述尾节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
  9. 根据权利要求1至8任一项所述的方法,其特征在于,
    所述通知消息还包括:所述第一iOAM报文的标识信息,所述标识信息包括所述第一iOAM报文的流标识和序列号,所述流标识指示所述第一iOAM报文所属的数据流,所述序列号指示所述第一iOAM报文在所述数据流中的位置。
  10. 根据权利要求1至9任一项所述的方法,其特征在于,所述重要数据标识包括触发所述重要事件的节点设备的设备标识。
  11. 根据权利要求1至10任一项所述的方法,其特征在于,所述重要数据标识包括触发的所述重要事件的事件类型标识。
  12. 一种带内操作管理维护iOAM报文的传输方法,其特征在于,所述方法应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备,所述方法包括:
    所述第一节点设备获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传输的业务数据;
    所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
    当所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述第一节点设备更新所述第一iOAM报文,更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息;
    所述第一节点设备向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
  13. 根据权利要求12所述的方法,其特征在于,
    所述重要数据标识位于所述更新后的第一iOAM报文的总报头的预设字段中;
    或者,
    所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头的预设字段中;
    或者,
    所述重要数据标识位于所述更新后的第一iOAM报文包括的业务数据中;
    或者,
    所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头和业务数据之间的预设字段中。
  14. 根据权利要求12或13所述的方法,其特征在于,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
    所述第一节点设备获取自身的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
    当所述拥塞参数大于所述预设拥塞阈值时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
  15. 根据权利要求12或13所述的方法,其特征在于,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
    所述第一节点设备获取所述第一iOAM报文到达所述第一节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述第一节点设备的出端口的第二时间;
    当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
  16. 根据权利要求12或13所述的方法,其特征在于,所述第一节点设备确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件,包括:
    所述第一节点设备获取所述第一iOAM报文对应的数据流的特征参数;
    所述第一节点设备比较所述第一iOAM报文对应的数据流的特征参数与所述第一节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述第一节点设备之前获取的iOAM报文;
    当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述第一节点设备比较所述第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口,所述端口包括:入端口和/或出端口;
    当第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同时,所述第一节点设备确定自身在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    所述第一节点信息包括:所述第一节点设备的节点标识和所述第一节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
  17. 一种带内操作管理维护iOAM报文的传输装置,其特征在于,所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括尾节点设备,所述尾节点设备是所述测量域的出口设备,所述装置设置在所述尾节点设备中,所述装置包括:
    发送器、接收器和处理器;
    所述接收器,用于接收第一节点设备发送的第一iOAM报文,所述第一iOAM报文中包括第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息,所述测量域包括所述第一节点设备;
    所述处理器,用于确定所述第一iOAM报文是否包括重要数据标识,所述重要数据标识指示所述测量域中的节点设备在传输所述第一iOAM报文的过程中触发符合预定条件的重要事件;
    当确定所述第一iOAM报文包括重要数据标识时,所述处理器还用于根据所述第一iOAM报文生成通知消息;
    所述发送器用于向iOAM网络的管理设备发送所述通知消息,所述通知消息包括所述第一节点信息。
  18. 根据权利要求17所述的装置,其特征在于,
    所述处理器还用于,当确定所述第一iOAM报文不包括重要数据标识时,不生成所述通知消息。
  19. 根据权利要求17或18所述的方法装置,其特征在于,
    所述通知消息还包括尾节点信息,所述尾节点信息指示传输所述第一iOAM报文的所述尾节点设备的信息。
  20. 根据权利要求19所述的装置,其特征在于,
    所述处理器还用于,在确定所述第一iOAM报文是否包括重要数据标识之前,检测所述尾节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
    当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中更新重要数据标识。
  21. 根据权利要求17至20任一项所述的装置,其特征在于,
    所述处理器具体用于,接收所述第一节点设备发送、并由第二节点设备转发的所述第一iOAM报文,所述第一iOAM报文中还包括第二节点信息;
    所述第二节点信息指示传输所述第一iOAM报文的所述第二节点设备;
    所述第二节点信息为由所述第二节点设备封装在所述第一iOAM报文中的节点信息;
    所述通知消息还包括所述第二节点信息。
  22. 根据权利要求20所述的装置,其特征在于,
    所述处理器具体用于,获取所述尾节点设备的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
    当所述拥塞参数大于所述预设拥塞阈值时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
  23. 根据权利要求20所述的装置,其特征在于,
    所述处理器具体用于,获取所述第一iOAM报文到达所述尾节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述尾节点设备的出端口的第二时间;
    当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器还用于在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识、所述第一iOAM报文到达所述尾节点设备的入端口的时间和所述第一iOAM报文到达所述尾节点设备的出端口的时间。
  24. 根据权利要求20所述的装置,其特征在于,
    所述处理器具体用于,获取所述第一iOAM报文对应的数据流的特征参数;
    所述处理器比较所述第一iOAM报文对应的数据流的特征参数与所述尾节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述尾节点设备之前获取的iOAM报文;
    当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述处理器比较所述第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口,所述端口包括:入端口和/或出端口;
    当第一iOAM报文对应所述尾节点设备的端口与所述目标iOAM报文对应所述尾节点设备的端口不同时,所述处理器确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    当确定所述尾节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器在所述第一iOAM报文中添加所述尾节点信息,所述尾节点信息包括:所述尾节点设备的节点标识和所述尾节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
  25. 根据权利要求17至24任一项所述的装置,其特征在于,
    所述通知消息还包括:所述第一iOAM报文的标识信息,所述标识信息包括所述第一iOAM报文的流标识和序列号,所述流标识指示所述第一iOAM报文所属的数据流,所述序列号指示所述第一iOAM报文在所述数据流中的位置。
  26. 根据权利要求17至25任一项所述的装置,其特征在于,所述重要数据标识包括触发所述重要事件的节点设备的设备标识。
  27. 根据权利要求17至25任一项所述的装置,其特征在于,所述重要数据标识包括触发的所述重要事件的事件类型标识。
  28. 一种带内操作管理维护iOAM报文的传输装置,其特征在于,所述装置应用于iOAM网络中,所述iOAM网络包括测量域,所述测量域包括第一节点设备,所述装置设置在所述第一节点设备中,所述装置包括:
    发送器、接收器和处理器;
    所述接收器,用于获取第一iOAM报文,所述第一iOAM报文中包括在所述iOAM网络中传输的业务数据;
    所述处理器,用于确定所述第一节点设备在传输所述第一iOAM报文的过程中,是否触发符合预定条件的重要事件;
    当所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件时,所述处理器更新所述第一iOAM报文,更新后的第一iOAM报文包括:重要数据标识、第一节点信息和业务数据,所述第一节点信息指示传输所述第一iOAM报文的所述第一节点设备的信息;
    所述发送器用于向所述第一节点设备的下一跳节点设备转发更新后的第一iOAM报文。
  29. 根据权利要求28所述的装置,其特征在于,
    所述重要数据标识位于所述更新后的第一iOAM报文的总报头的预设字段中;
    或者,
    所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头的预设字段中;
    或者,
    所述重要数据标识位于所述更新后的第一iOAM报文包括的业务数据中;
    或者,
    所述重要数据标识位于所述更新后的第一iOAM报文的iOAM报头和业务数据之间的预设字段中。
  30. 根据权利要求28或29所述的装置,其特征在于,
    所述处理器具体用于,获取所述第一节点设备的出端口的拥塞参数,所述拥塞参数包括显示拥塞通知ECN水线;
    当所述拥塞参数大于所述预设拥塞阈值时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
  31. 根据权利要求28或29所述的装置,其特征在于,
    所述处理器具体用于,获取所述第一iOAM报文到达所述第一节点设备的入端口的第一时间,以及获取所述第一iOAM报文到达所述第一节点设备的出端口的第二时间;
    当所述第二时间与所述第一时间之间的时间差大于预设时间阈值时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程中,触发符合预定条件的重要事件;
    所述第一节点信息包括:所述第一节点设备的节点标识、所述第一iOAM报文到达所述第一节点设备的入端口的时间和所述第一iOAM报文到达所述第一节点设备的出端口的时间。
  32. 根据权利要求28或29所述的装置,其特征在于,
    所述处理器具体用于,获取所述第一iOAM报文对应的数据流的特征参数;
    所述处理器比较所述第一iOAM报文对应的数据流的特征参数与所述第一节点设备存储的目标iOAM报文对应的数据流的特征参数,所述目标iOAM报文为所述第一节点设备之前获取的iOAM报文;
    当所述第一iOAM报文对应的数据流的特征参数与所述目标iOAM报文对应的数据流的特征参数相同时,所述处理器比较所述第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口,所述端口包括:入端口和/或出端口;
    当第一iOAM报文对应所述第一节点设备的端口与所述目标iOAM报文对应所述第一节点设备的端口不同时,所述处理器确定所述第一节点设备在传输所述第一iOAM报文的过程 中,触发符合预定条件的重要事件;
    所述第一节点信息包括:所述第一节点设备的节点标识和所述第一节点设备的端口的标识,所述端口的标识包括:入端口的标识和/或出端口的标识。
PCT/CN2019/127791 2018-12-29 2019-12-24 一种操作管理维护iOAM报文的传输方法及相应装置 WO2020135391A1 (zh)

Priority Applications (3)

Application Number Priority Date Filing Date Title
KR1020217020410A KR102535474B1 (ko) 2018-12-29 2019-12-24 운영, 관리 및 유지 (ioam) 패킷 송신 방법 및 관련된 장치
EP19904381.1A EP3883186B1 (en) 2018-12-29 2019-12-24 Operation administration and maintenance (ioam) packet transmission method, and corresponding apparatus
US17/360,001 US20210328860A1 (en) 2018-12-29 2021-06-28 Operation, Administration, and Maintenance IOAM Packet Transmission Method and Related Apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811634575.3 2018-12-29
CN201811634575.3A CN111385121B (zh) 2018-12-29 2018-12-29 一种操作管理维护iOAM报文的传输方法及相应装置

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/360,001 Continuation US20210328860A1 (en) 2018-12-29 2021-06-28 Operation, Administration, and Maintenance IOAM Packet Transmission Method and Related Apparatus

Publications (1)

Publication Number Publication Date
WO2020135391A1 true WO2020135391A1 (zh) 2020-07-02

Family

ID=71126808

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/127791 WO2020135391A1 (zh) 2018-12-29 2019-12-24 一种操作管理维护iOAM报文的传输方法及相应装置

Country Status (5)

Country Link
US (1) US20210328860A1 (zh)
EP (1) EP3883186B1 (zh)
KR (1) KR102535474B1 (zh)
CN (1) CN111385121B (zh)
WO (1) WO2020135391A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113949650A (zh) * 2020-07-17 2022-01-18 华为技术有限公司 随流检测方法及相关设备
CN112787951B (zh) * 2020-08-07 2024-02-27 中兴通讯股份有限公司 拥塞控制方法、装置、设备和计算机可读存储介质
US20220294737A1 (en) * 2021-03-09 2022-09-15 Nokia Solutions And Networks Oy Path congestion notification
CN115242643A (zh) * 2021-04-25 2022-10-25 中兴通讯股份有限公司 网络切片资源信息的收集方法、装置及存储介质
CN113644998B (zh) * 2021-08-23 2023-06-09 烽火通信科技股份有限公司 一种5g网络的ioam时延测量方法和装置
CN113992497B (zh) * 2021-11-03 2023-05-26 烽火通信科技股份有限公司 Ioam测量计算方法、装置、设备及存储介质
CN116962213A (zh) * 2022-04-13 2023-10-27 中国电信股份有限公司 操作维护管理信息处理方法、网络节点和存储介质
CN117834342A (zh) * 2022-09-29 2024-04-05 中兴通讯股份有限公司 虚拟化隧道网络的ioam封装的实现方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170111209A1 (en) * 2015-10-20 2017-04-20 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment
CN108737124A (zh) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 一种信息通告方法及装置
CN108737269A (zh) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 一种封装方法、装置和节点
CN108964943A (zh) * 2017-05-18 2018-12-07 中兴通讯股份有限公司 一种实现ioam封装的方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014127542A1 (en) 2013-02-25 2014-08-28 Telefonaktiebolaget L M Ericsson (Publ) Method and apparatus for congestion signalling for mpls networks
US10560354B2 (en) * 2017-03-24 2020-02-11 Cisco Technology, Inc. End-to-end, in situ packet enrichment for network analytics
EP3665866B1 (en) * 2017-08-08 2022-11-16 Telefonaktiebolaget LM Ericsson (publ) Scalable network path tracing
US10778464B2 (en) * 2018-04-20 2020-09-15 Futurewei Technologies, Inc. NSH encapsulation for traffic steering establishing a tunnel between virtual extensible local area network (VxLAN) tunnel end points (VTEPS) using a NSH encapsulation header comprising a VxLAN header whose VNI field has been replaced by an NSH shim
US11184280B2 (en) * 2018-10-11 2021-11-23 Cisco Technology, Inc. Methods and apparatus for verification of non-steered traffic flows having unspecified paths based on traversed network node or service function identities
US11496399B2 (en) * 2018-10-26 2022-11-08 Cisco Technology, Inc. Dynamically balancing traffic in a fabric using telemetry data
US11102121B2 (en) * 2019-10-23 2021-08-24 Cisco Technology, Inc. Path signatures for data flows

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170111209A1 (en) * 2015-10-20 2017-04-20 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment
CN108737124A (zh) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 一种信息通告方法及装置
CN108737269A (zh) * 2017-04-13 2018-11-02 中兴通讯股份有限公司 一种封装方法、装置和节点
CN108964943A (zh) * 2017-05-18 2018-12-07 中兴通讯股份有限公司 一种实现ioam封装的方法及装置

Also Published As

Publication number Publication date
US20210328860A1 (en) 2021-10-21
KR20210095940A (ko) 2021-08-03
CN111385121A (zh) 2020-07-07
EP3883186A4 (en) 2022-01-26
EP3883186A1 (en) 2021-09-22
KR102535474B1 (ko) 2023-05-26
EP3883186B1 (en) 2023-10-25
CN111385121B (zh) 2021-08-03

Similar Documents

Publication Publication Date Title
WO2020135391A1 (zh) 一种操作管理维护iOAM报文的传输方法及相应装置
US11196654B2 (en) System for aggregating statistics associated with interfaces
US11979322B2 (en) Method and apparatus for providing service for traffic flow
US7787442B2 (en) Communication statistic information collection apparatus
JP4640128B2 (ja) 応答通信機器及びarp応答通信機器
WO2019033857A1 (zh) 报文控制方法及网络装置
US20150163145A1 (en) Reporting elephant flows to a network controller
US8363551B2 (en) Measuring network metrics
US20050281259A1 (en) Method of generating a monitoring datagram
EP3082293B1 (en) Switching device and packet loss method therefor
CN102356601B (zh) 网络中的路径特性
CN110557342B (zh) 用于分析和减轻丢弃的分组的设备
CN109428782B (zh) 网络监控的方法和设备
CN109525501B (zh) 一种调整转发路径的方法和装置
US11316804B2 (en) Forwarding entry update method and apparatus in a memory
EP3534571B1 (en) Service packet transmission method, and node apparatus
WO2021169279A1 (zh) 报文乱序检测方法、装置及系统
US20230300051A1 (en) In-band Edge-to-Edge Round-Trip Time Measurement
WO2020182085A1 (zh) 报文的传输方法和设备
US7761589B1 (en) Flow control for multi-hop networks
CN115242892B (zh) 一种流标识获取方法、装置、设备及介质
CN108243117B (zh) 一种流量监控方法、装置及电子设备
WO2020220987A1 (zh) 数据包传输、管理方法、装置及数据转发设备、存储介质
CN114915564A (zh) 网络状态测量方法、装置和系统
WO2024065481A1 (zh) 一种数据处理方法、装置、网络设备及存储介质

Legal Events

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

Ref document number: 19904381

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2019904381

Country of ref document: EP

Effective date: 20210615

ENP Entry into the national phase

Ref document number: 20217020410

Country of ref document: KR

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE