WO2022222544A1 - Method and apparatus for operation administration and maintenance (oam) detection - Google Patents

Method and apparatus for operation administration and maintenance (oam) detection Download PDF

Info

Publication number
WO2022222544A1
WO2022222544A1 PCT/CN2021/143648 CN2021143648W WO2022222544A1 WO 2022222544 A1 WO2022222544 A1 WO 2022222544A1 CN 2021143648 W CN2021143648 W CN 2021143648W WO 2022222544 A1 WO2022222544 A1 WO 2022222544A1
Authority
WO
WIPO (PCT)
Prior art keywords
message
field
oam
oam message
detection
Prior art date
Application number
PCT/CN2021/143648
Other languages
French (fr)
Chinese (zh)
Inventor
王雅莉
周天然
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Publication of WO2022222544A1 publication Critical patent/WO2022222544A1/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/02Standardisation; Integration
    • 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/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0823Errors, e.g. transmission errors
    • H04L43/0829Packet loss
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0852Delays
    • H04L43/087Jitter
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/06Notations for structuring of protocol data, e.g. abstract syntax notation one [ASN.1]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/22Parsing or analysis of headers

Definitions

  • the present application relates to the field of communications, and in particular, to an OAM detection method and device for operation maintenance management.
  • Operation Administration and Maintenance is a tool for monitoring network faults. Its main functions are: link performance monitoring (for example, packet loss, delay, etc.), connectivity detection, etc. By enabling the Ethernet OAM function on two point-to-point connected devices, users can monitor the link status between the two devices.
  • OAM technology involves Continuity Check (CC)/Continuity Verification (CV) and Performance Measurement (PM).
  • CC Continuity Check
  • CV Continuous Verification
  • PM Performance Measurement
  • MPLS Multiprotocol Label Switching
  • BFD Bidirectional Forwarding Detection
  • TWAMP Two-Way Active Measurement Protocol
  • Different protocols have different message formats, session identifiers, message encapsulation formats, etc., which make the use of OAM technology have disadvantages such as protocol dispersion and complexity, and deep message encapsulation leading to low message processing efficiency.
  • the embodiments of the present application disclose an OAM detection method and device for operation, maintenance and management, which can realize data plane processing of OAM messages and improve the processing efficiency of OAM messages.
  • an embodiment of the present application provides an OAM detection method for operation, maintenance and management.
  • the method includes: acquiring a first IPV6 packet, where an IPv6 extension header of the first IPV6 packet carries a first OAM message, and the first OAM message includes Type T field and value V field, where the V field is used to carry the content of the first OAM message, and the T field is used to indicate the type of the first OAM message; the first IPV6 message is sent.
  • the OAM message is an operation, maintenance and management message, and the OAM message can be used to implement one or more functions of performance measurement and connectivity detection between any two nodes in the network.
  • the OAM message is carried by the IPV6 extension header, so that the OAM message is processed on the data plane, and the processing efficiency of the OAM message is improved.
  • the T field in the OAM message is used to indicate the type of the OAM message and the V field is used to carry the content of the OAM message, that is, various functions of the OAM message are integrated to realize the unification of the OAM message.
  • the first OAM message does not include protocol version information.
  • OAM detection packets based on different protocols all carry their own protocol version information, the protocols are scattered and complex, and the packet encapsulation is deep, resulting in low message processing efficiency.
  • network devices need to maintain multiple protocols, which increases the difficulty of maintenance.
  • the first OAM message does not need to include protocol version information, so the protocol encapsulation can be effectively simplified, the device does not need to support the parsing of multiple protocol version information, and the multiple protocols are unified It is processed at the network layer, and there is no need to maintain multiple protocols, which greatly reduces the requirements for equipment.
  • the T field indicates that the first OAM message is an echo message.
  • the echo echo message includes an echo request echo request message and an echo response echo reply message, and the T field indicates that the first OAM message is an echo message, so that the first OAM message can be used to implement connectivity detection.
  • the value of the T field when the value of the T field is the first value, it indicates that the first OAM message is an echo request message, and when the value of the T field is the second value, it indicates that the first OAM message is an echo reply message.
  • the value of the T field is the third value, it indicates that the type of the first OAM message is an echo message, and in this case, the specific type of the echo message is not distinguished.
  • the specific type of the echo message is identified by adding an identification field to the TLV field.
  • the first identification field is used to identify the echo message as an echo request message
  • the second identification field is used to identify the echo message as an echo reply message.
  • the representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field.
  • the above-mentioned identification field may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned identification field.
  • the method before acquiring the first IPv6 message, the method further includes: receiving a second IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; For the second IPv6 packet, obtain the first IPv6 packet.
  • the above-mentioned second OAM message is an echo request message
  • the first OAM message is an echo response message
  • the V field also includes one or more of the following fields: a sequence number field, which is used to carry the sequence number of the echo message; a return code return codes field, where the return codes field is used to carry the data sent by the reflection end to the sending end.
  • the response result of the echo message the first reply mode field, the first reply mode field is used to indicate the way of replying to the echo message; the type-length-value TLV field; and the reserved field, which is used for function extension.
  • the serial number field can be used to detect whether the echo response message corresponding to the echo request message is lost, and the return code field specifically indicates the response result of the reflector to the echo request message sent by the sender, which can be realized based on the return code field. Connectivity check and verification between any two nodes in the network.
  • the reply mode indicated by the first reply mode field may be, for example, replying through an application-level control channel, replying through an IPv6 data packet without a load, and the like.
  • the type-length-value TLV field may be, for example, a downstream detailed mapping TLV, and using the downstream detailed mapping TLV enables the source node to obtain information about each node that the first OAM message passes through in the connectivity detection process.
  • the V field is composed of the following fields: an identification field, used to indicate the type of the echo message; a sequence number field, used to carry the sequence number of the echo message; Return code return codes field, where the return codes field is used to carry the response result of the reflector to the echo message sent by the sender; the first reply mode field, the first reply mode field is used to indicate the way to respond to the echo message; type-length - Value TLV field; and reserved field for function extension.
  • the first OAM message does not include: timestamp information.
  • the first OAM message does not include the protocol version information and the timestamp information
  • the protocol version information can be, for example, the MPLS echo protocol version number or the protocol version number of the ICMPv6 echo
  • the timestamp information may be, for example, the sending timestamp of the echo request message sent by the sender, the reception timestamp of the echo request message received by the reflector, and the like. Omitting the timestamp information in the first OAM message makes the first OAM message used for connectivity detection more lightweight, and reduces the consumption of network bandwidth in the process of message transmission.
  • the T field indicates that the first OAM message is an active connectivity detection message, and the first OAM message may be used to implement the function of connectivity detection.
  • the V field includes: a first field, used to indicate the state of the active connectivity detection session established between the sender and the receiver; the second field, used to indicate the minimum sending of the active connectivity detection message by the sender. interval; the third field is used to indicate the minimum receiving interval for the sender to receive the active connectivity detection message sent by the receiver; the fourth field is used to indicate the minimum interval for the sender to receive the response message sent by the receiver; the fifth field , indicating the reason for the state change of the last session; the sixth field, used to provide the detection time multiplier, which is used to calculate the detection time in asynchronous mode; the seventh field, the seventh field includes the query request flag Demand , polling flag Poll and termination flag Final.
  • the query request flag is set to 1 to indicate that it is expected to work in the query mode, the query request flag to 0 indicates that it does not want to work in the query mode or does not support the query mode; the polling flag is set to 1 to indicate that the sender requests to verify connectivity or parameter changes and expects to bring The active connectivity detection message with the F flag set as a reply, the polling flag set to 0 indicates that the sender does not request verification; the termination flag in the active performance detection message responding to the F flag needs to be set to 1.
  • the sending end and the reflecting end can implement the bidirectional path between any two nodes (or forwarding engines) in the network based on the first OAM message.
  • Connectivity detection supports bidirectional OAM detection.
  • the V field further includes: a reserved field for function extension.
  • the first OAM message does not include: protocol version information, local identifier and remote identifier.
  • the above-mentioned protocol version information includes the version number of the BFD protocol
  • the local identifier can be, for example, My Discriminator in the BFD control message, and the remote identifier.
  • it can be Your Discriminator in the BFD control packet. Omitting the protocol version information in the first OAM message can effectively simplify the protocol encapsulation, and omitting the local identifier and the remote identifier in the first OAM message makes the first OAM message more lightweight.
  • the T field indicates that the first OAM message is a performance detection message, which can be used to implement the function of performance detection.
  • the V field includes: the eighth field, which is used to carry the sequence number of the first performance detection message sent by the sending end; the ninth field is used to carry the sequence number of the second performance detection message sent by the reflecting end, and the second The performance detection message is a response to the first performance detection message; the tenth field is used to carry the sending timestamp of the sending end sending the first performance detection message; the eleventh field is used to carry the reflective end receiving the first performance detection message. Reception timestamp; the twelfth field is used to carry the sending timestamp of the second performance detection message sent by the reflector; the thirteenth field is used to carry the reception timestamp of the second performance detection message received by the sender.
  • the performance detection function of packet loss measurement can be implemented based on the eighth field and the ninth field, and the tenth field, the eleventh field, the twelfth field and the thirteenth field can be used to implement delay detection and delay. At least one performance detection function in jitter measurement.
  • the V field further includes: a padding variable-length field.
  • the padding variable-length field can be used to fix the length of the first OAM message, so as to realize the fixed length of the first OAM message.
  • the T field indicates that the first OAM message is a performance detection message
  • the T field is a fourth value
  • the T field is a fifth value
  • the detection message is used for delay detection or delay jitter measurement.
  • the value of the T field is the sixth value, it indicates that the performance detection message is used for packet loss delay detection.
  • the T field may also only indicate that the first OAM message is a performance detection message, and a specific function of the performance detection message is identified by adding an identification field to the TLV field.
  • the third identification field is used to indicate that the performance detection message is used for packet loss detection
  • the fourth identification field is used to indicate that the performance detection message is used for delay detection
  • the fifth identification field is used to indicate that the performance detection message is used for packet loss delay detection.
  • the representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field.
  • the above-mentioned identification field may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned identification field.
  • the V field includes at least one sub-TLV field, and the at least one sub-TLV field includes a first sub-TLV, and the first sub-TLV indicates that the performance detection message is used for packet loss detection; the second sub-TLV, the second sub-TLV is used for The indication performance detection message is used for delay detection or delay jitter measurement; the third sub-TLV, the third sub-TLV is used for the indication performance detection message for packet loss delay detection.
  • the performance detection message can provide a variety of optional performance detection functions, such as packet loss detection, delay detection and delay jitter measurement, which increases the diversity of performance detection functions to meet different requirements of OAM detection.
  • the V field further includes: a fourteenth field, used to carry the statistical quantity of the first data packet sent by the sender; a fifteenth field, used to carry the reflection The statistical quantity of the first data packet received by the end; the sixteenth field is used to carry the statistical quantity of the second data packet sent by the reflection end, and the second data packet is the response to the first data packet; The seventeenth field is used to carry the statistical quantity of the second data packet received by the sender.
  • the V field further includes: an eighteenth field, which is used to carry the sending timestamp of the third performance detection message sent by the sender; the nineteenth field , which is used to carry the receiving timestamp of the third performance detection message received by the reflector; the twentieth field is used to carry the sending timestamp of the fourth performance detection message sent by the reflector.
  • the fourth performance detection message is a response to the third performance detection message. response; the twenty-first field is used to carry the receiving timestamp when the sender receives the fourth performance detection message.
  • the performance detection message may be used for delay detection and/or delay jitter measurement based on the eighteenth to twenty-first fields described above.
  • the V field includes the above-mentioned fourteenth field to twenty-first field.
  • the performance detection message is used for both packet loss detection and delay detection and/or delay jitter measurement.
  • the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  • the first OAM may implement various OAM functions.
  • the at least two OAM functions include: connectivity detection and performance measurement.
  • the V field includes a first identification and a second identification, the first identification is used to indicate that the first composite OAM message is used for the first OAM detection, and the second identification is used to indicate that the first composite OAM message is used for the second OAM detection .
  • the first OAM detection is connectivity detection
  • the second OAM detection is performance detection.
  • the representation manner of the first identifier and the second identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • the first identification and the second identification may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the first identifier and the second identifier.
  • the first composite OAM message includes first indication information, where the first indication information indicates that the first composite OAM message is a request message or a response message.
  • the first indication information may be a T field, when the T field takes the seventh value, it indicates that the first composite OAM message is a request message, and when the T field takes the eighth value, it indicates that the first composite OAM message is a response message;
  • the first indication information may also be a newly added first detection flag, and the first detection flag takes a first value, indicating that the first composite OAM message is a In the request message, the first detection flag takes a second value, indicating that the first composite OAM message is a response message.
  • the representation manner of the first detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the first detection identifier in the TLV field.
  • the above-mentioned first detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned first detection identifier.
  • the first composite OAM message further includes second indication information, where the second indication information indicates a specific type of performance detection.
  • the third indication information may be a T field.
  • the T field takes the ninth value, it indicates that the type of performance detection is packet loss detection.
  • the T field takes the tenth value, it indicates that the type of performance detection is delay detection or delay jitter.
  • the second indication information may also be a new The added second detection flag, where the second detection flag takes a first value, indicates that the type of performance detection is packet loss detection, the second detection flag takes a second value, and indicates that the type of performance detection is delay detection or delay jitter measurement, The second detection flag takes a third value, indicating that the type of performance detection is packet loss delay detection.
  • the representation manner of the second detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • This application does not specifically limit the bearing manner of the second detection identifier in the TLV field.
  • the above-mentioned second detection identifier may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned second detection identifier.
  • the method before acquiring the first IPv6 message, the method further includes: receiving a second IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; For the second IPv6 packet, obtain the first IPv6 packet.
  • the field used for connectivity detection in the V field includes one or more of the following fields: a sequence number field, used to carry the sequence number of the first composite OAM message sent by the sender; return codes return codes field, return codes The field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; the type-length-value TLV field ; and reserved fields for functional expansion.
  • the reply mode indicated by the second reply mode field may be, for example, replying through an application-level control channel, replying through an IPv6 data packet without a load, and the like.
  • the type-length-value TLV field may be, for example, a downstream detailed mapping TLV, and using the downstream detailed mapping TLV enables the source node to obtain information about each node that the first composite OAM message passes through in the connectivity detection.
  • the fields used for performance detection in the V field include: the twenty-second field: used to carry the sequence number of the second composite OAM message sent by the reflection end, the first The second composite OAM message is a response to the first composite OAM message; the 23rd field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the 24th field is used to carry the first composite OAM message received by the reflector The receiving timestamp of the composite OAM message; the twenty-fifth field is used to carry the sending timestamp of the second composite OAM message sent by the reflector; the twenty-sixth field is used to carry the receiving time when the sender receives the second composite OAM message stamp.
  • packet loss detection can be implemented based on the sequence number field and the twenty-second field in the first composite OAM message, and the four fields based on the twenty-third field to the twenty-sixth field can be used to implement delay detection and detection. At least one performance detection function in delay jitter measurement.
  • the V field further includes a reserved field for function extension.
  • the V field includes: a twenty-seventh field, used to indicate the statistical quantity of the third data packet sent by the sending end; a twenty-eighth field, It is used to indicate the statistical quantity of the third data packet received by the reflecting end; the twenty-ninth field is used to indicate the statistical quantity of the fourth data packet sent by the reflecting end.
  • the response of the message; the thirtieth field is used to indicate the statistical quantity of the fourth data message received by the sender.
  • the V field includes: a thirty-first field, which is used to carry the sending timestamp of the first composite OAM message sent by the sending end;
  • the thirty-two field is used to carry the receiving timestamp of the first composite OAM message received by the reflecting end;
  • the thirty-third field is used to carry the sending time stamp of the second composite OAM message sent by the reflecting end, and the second composite OAM message is a pair of The response of the first composite OAM message;
  • the thirty-fourth field is used to carry the receiving timestamp when the sender receives the second composite OAM message.
  • the V field includes the above-mentioned eight fields of the twenty-seventh field to the thirty-fourth field.
  • the first composite OAM message is used for both packet loss detection and delay detection and/or delay jitter measurement.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second The reply mode field the second reply mode field is used to indicate the way of replying to the first composite OAM message; the type-length-value TLV field; a reserved field for function extension; and the above-mentioned twenty-second to twenty-sixth fields field.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second Reply mode field the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet detection; and the above-mentioned twenty-seventh to thirtieth fields.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second Reply mode field the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is over delay detection; and the above-mentioned thirty-first field to thirty-fourth field.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second Reply mode field the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet delay detection; and the aforementioned twenty-seventh to thirty-fourth fields.
  • the V field is composed of the following fields: a thirty-fifth field, used to indicate the value of the composite OAM detection session established between the sender and the receiver. state; the thirty-sixth field is used to indicate the minimum sending interval for the sending end to send the first composite OAM message; the thirty-seventh field is used to indicate the minimum receiving interval for the sending end to receive the second composite OAM message sent by the receiving end; The thirty-eighth field is used to indicate the minimum receiving interval for the sender to receive the response message sent by the receiver; the thirty-ninth field is used to indicate the reason for the state change of the last session; the fortieth field is used to provide the detection time multiplication
  • the detection time multiplier is used to calculate the detection time in the asynchronous mode; the forty-first field includes the query request flag Demand, the polling flag Poll and the termination flag Final; the forty-second field is used to carry the The statistical quantity of the fifth data packet; the forty-first field includes the query request flag Demand, the polling flag Poll and the termination flag
  • the V field may also only include the fifteen fields from the thirty-fifth field to the forty-ninth field, where the thirty-fifth field Fields to forty-first enable the first composite OAM message to be used for active connectivity detection, and fields forty-second to forty-ninth enable the first composite OAM message to be used for performance detection.
  • the forty-second field to the forty-fifth field enable the first composite OAM message to be used for packet loss measurement
  • the forty-sixth field to the forty-ninth field enable the first composite OAM message to be used for delay measurement and/or delay jitter measurements.
  • the IPv6 extension header duplicates the BIER header for the destination option header DoH or segment routing header SRH or bit index display.
  • the native semantics of the IPv6 extension header is used to implement the data plane processing of the first OAM message, which reduces the encapsulation depth of the first OAM message and improves the efficiency and accuracy of OAM detection.
  • the IPv6 extension header is the segment routing header SRH
  • the OAM detection service in the SRv6 scenario is provided.
  • the IPv6 extension header is the BIER header
  • the OAM detection service under BIERv6 multicast is provided.
  • the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  • the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
  • the first IPv6 packet further includes a unified session identifier of the first OAM message, and the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
  • OAM detection packets of different protocols carry session identifiers of their respective protocols.
  • the session identifier of the Ping protocol is sender's Handle
  • the session identifiers of the BFD protocol are My Discriminator and Your Discriminator
  • the session identifier of the LM-DM protocol is The identifier is Session Identifier, etc., so that when OAM detection of each protocol is performed, the session negotiation process needs to be performed based on the session identifier of the protocol.
  • the message processing process is cumbersome and the OAM detection efficiency is low.
  • the above four types are
  • the first OAM message of the device adopts a unified session identifier, and realizes the multiplexing of the unified session identifier for four types of OAM messages, which effectively simplifies the negotiation process of the session, reduces the network overhead, and improves the OAM detection efficiency.
  • the sender of the first OAM message can quickly match the response message of the first OAM message.
  • an embodiment of the present application provides an OAM detection device for operation, maintenance and management.
  • the device includes: a processing unit configured to acquire a first IPv6 packet, where an IPv6 extension header of the first IPv6 packet carries the first OAM message,
  • the first OAM message includes a type T field and a value V field, where the T field indicates the type of the first OAM message, and the V field carries the content of the first OAM message;
  • the transceiver unit is used for sending the first IPv6 message.
  • the first OAM message does not include protocol version information.
  • the T field indicates that the first OAM message is an echo message.
  • the value of the T field when the value of the T field is the first value, it indicates that the first OAM message is an echo request message, and when the value of the T field is the second value, it indicates that the first OAM message is an echo reply message.
  • the value of the T field is the third value, it indicates that the type of the first OAM message is an echo message, and in this case, the specific type of the echo message is not distinguished.
  • the specific type of the echo message is identified by adding an identification field to the TLV field.
  • the first identification field is used to identify the echo message as an echo request message
  • the second identification field is used to identify the echo message as an echo reply message.
  • the representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field.
  • the above-mentioned identification field may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned identification field.
  • the transceiver unit is further configured to receive a second IPv6 message before acquiring the first IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; processing The unit is specifically configured to acquire the first IPv6 packet according to the second IPv6 packet.
  • the V field also includes one or more of the following fields: a sequence number field, which is used to carry the sequence number of the echo message; a return code return codes field, where the return codes field is used to carry the data sent by the reflection end to the sending end.
  • the response result of the echo message the first reply mode field, the first reply mode field is used to indicate the way of replying to the echo message; the type-length-value TLV field; and the reserved field, which is used for function extension.
  • the V field is composed of the following fields: an identification field, used to indicate the type of the echo message; a sequence number field, used to carry the sequence number of the echo message; Return code return codes field, where the return codes field is used to carry the response result of the reflector to the echo message sent by the sender; the first reply mode field, the first reply mode field is used to indicate the way to respond to the echo message; type-length - Value TLV field; and reserved field for function extension.
  • the first OAM message does not include: timestamp information.
  • the T field indicates that the first OAM message is an active connectivity detection message.
  • the V field includes: a first field, used to indicate the state of the active connectivity detection session established between the sender and the receiver; the second field, used to indicate the minimum sending of the active connectivity detection message by the sender. interval; the third field is used to indicate the minimum receiving interval for the sender to receive the active connectivity detection message sent by the receiver; the fourth field is used to indicate the minimum interval for the sender to receive the response message sent by the receiver; the fifth field , indicating the reason for the state change of the last session; the sixth field, used to provide the detection time multiplier, which is used to calculate the detection time in asynchronous mode; the seventh field, the seventh field includes the query request flag Demand , polling flag Poll and termination flag Final.
  • the V field further includes: a reserved field, where the reserved field is used for function expansion.
  • the first OAM message does not include: protocol version information, local identifier and remote identifier.
  • the T field indicates that the first OAM message is a performance detection message.
  • the V field includes: the eighth field, which is used to carry the sequence number of the first performance detection message sent by the sending end; the ninth field is used to carry the sequence number of the second performance detection message sent by the reflecting end, and the second The performance detection message is a response to the first performance detection message; the tenth field is used to carry the sending timestamp of the sending end sending the first performance detection message; the eleventh field is used to carry the reflective end receiving the first performance detection message. Reception timestamp; the twelfth field is used to carry the sending timestamp of the second performance detection message sent by the reflector; the thirteenth field is used to carry the reception timestamp of the second performance detection message received by the sender.
  • the V field further includes: a padding variable-length field.
  • the T field indicates that the first OAM message is a performance detection message
  • the T field is a fourth value
  • the T field is a fifth value
  • the detection message is used for delay detection or delay jitter measurement.
  • the value of the T field is the sixth value, it indicates that the performance detection message is used for packet loss delay detection.
  • the T field may also only indicate that the first OAM message is a performance detection message, and a specific function of the performance detection message is identified by adding an identification field to the TLV field.
  • the third identification field is used to indicate that the performance detection message is used for packet loss detection
  • the fourth identification field is used to indicate that the performance detection message is used for delay detection
  • the fifth identification field is used to indicate that the performance detection message is used for packet loss delay detection.
  • the representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field.
  • the above-mentioned identification field may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned identification field.
  • the V field includes at least one sub-TLV field, and the at least one sub-TLV field includes a first sub-TLV, and the first sub-TLV is used to indicate that the performance detection message is used for packet loss detection; the second sub-TLV, the second sub-TLV It is used to indicate that the performance detection message is used for delay detection or delay jitter measurement; the third sub-TLV, the third sub-TLV is used to indicate that the performance detection message is used for packet loss delay detection.
  • the V field further includes: a fourteenth field, used to carry the statistical quantity of the first data packet sent by the sender; a fifteenth field, used to carry the reflection The statistical quantity of the first data packet received by the end; the sixteenth field is used to carry the statistical quantity of the second data packet sent by the reflection end, and the second data packet is the response to the first data packet; The seventeenth field is used to carry the statistical quantity of the second data packet received by the sender.
  • the V field further includes: an eighteenth field, which is used to carry the sending timestamp of the third performance detection message sent by the sender; the nineteenth field , which is used to carry the receiving timestamp of the third performance detection message received by the reflector; the twentieth field is used to carry the sending timestamp of the fourth performance detection message sent by the reflector.
  • the fourth performance detection message is a response to the third performance detection message. response; the twenty-first field is used to carry the receiving timestamp when the sender receives the fourth performance detection message.
  • the V field includes the above-mentioned fourteenth field to twenty-first field.
  • the performance detection message is used for both packet loss detection and delay detection and/or delay jitter measurement.
  • the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  • the at least two OAM functions include: connectivity detection and performance measurement.
  • the V field includes a first identification and a second identification
  • the first identification is used to indicate that the first composite OAM message is used for the first OAM detection
  • the second identification is used to indicate that the first composite OAM message is used for the second OAM detection .
  • the first OAM detection is connectivity detection
  • the second OAM detection is performance detection
  • the first composite OAM message includes first indication information, where the first indication information indicates that the first composite OAM message is a request message or a response message.
  • the first indication information may be a T field, when the T field takes the seventh value, it indicates that the first composite OAM message is a request message, and when the T field takes the eighth value, it indicates that the first composite OAM message is a response message;
  • the first indication information may also be a newly added first detection flag, and the first detection flag takes a first value, indicating that the first composite OAM message is a In the request message, the first detection flag takes a second value, indicating that the first composite OAM message is a response message.
  • the representation manner of the first detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the first detection identifier in the TLV field.
  • the above-mentioned first detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned first detection identifier.
  • the first composite OAM message further includes second indication information, where the second indication information indicates a specific type of performance detection.
  • the third indication information may be a T field.
  • the T field takes the ninth value, it indicates that the type of performance detection is packet loss detection.
  • the T field takes the tenth value, it indicates that the type of performance detection is delay detection or delay jitter.
  • the second indication information may also be a new The added second detection flag, where the second detection flag takes a first value, indicates that the type of performance detection is packet loss detection, the second detection flag takes a second value, and indicates that the type of performance detection is delay detection or delay jitter measurement, The second detection flag takes a third value, indicating that the type of performance detection is packet loss delay detection.
  • the representation manner of the second detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • This application does not specifically limit the bearing manner of the second detection identifier in the TLV field.
  • the above-mentioned second detection identifier may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned second detection identifier.
  • the transceiver unit is further configured to receive a second IPv6 message before acquiring the first IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; the processing unit It is also used to obtain the first IPv6 packet according to the second IPv6 packet.
  • the field used for connectivity detection in the V field includes one or more of the following fields: a sequence number field, used to carry the sequence number of the first composite OAM message sent by the sender; return codes return codes field, return codes The field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; the type-length-value TLV field ; and reserved fields for functional expansion.
  • the fields used for performance detection in the V field include: the twenty-second field: used to carry the sequence number of the second composite OAM message sent by the reflection end, the first The second composite OAM message is a response to the first composite OAM message; the 23rd field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the 24th field is used to carry the first composite OAM message received by the reflector The receiving timestamp of the composite OAM message; the twenty-fifth field is used to carry the sending timestamp of the second composite OAM message sent by the reflector; the twenty-sixth field is used to carry the receiving time when the sender receives the second composite OAM message stamp.
  • the V field further includes a reserved field for function extension.
  • the V field includes: a twenty-seventh field, used to indicate the statistical quantity of the third data packet sent by the sending end; a twenty-eighth field, It is used to indicate the statistical quantity of the third data packet received by the reflecting end; the twenty-ninth field is used to indicate the statistical quantity of the fourth data packet sent by the reflecting end.
  • the response of the message; the thirtieth field is used to indicate the statistical quantity of the fourth data message received by the sender.
  • the V field includes: a thirty-first field, which is used to carry the sending timestamp of the first composite OAM message sent by the sending end;
  • the thirty-two field is used to carry the receiving timestamp of the first composite OAM message received by the reflecting end;
  • the thirty-third field is used to carry the sending time stamp of the second composite OAM message sent by the reflecting end, and the second composite OAM message is a pair of The response of the first composite OAM message;
  • the thirty-fourth field is used to carry the receiving timestamp when the sender receives the second composite OAM message.
  • the V field includes the above-mentioned eight fields of the twenty-seventh field to the thirty-fourth field.
  • the first composite OAM message is used for both packet loss detection and delay detection and/or delay jitter measurement.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second The reply mode field the second reply mode field is used to indicate the way of replying to the first composite OAM message; the type-length-value TLV field; a reserved field for function extension; and the above-mentioned twenty-second to twenty-sixth fields field.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second Reply mode field the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet detection; and the above-mentioned twenty-seventh to thirtieth fields.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second Reply mode field the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is over delay detection; and the above-mentioned thirty-first field to thirty-fourth field.
  • the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sender;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender;
  • the second Reply mode field the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet delay detection; and the aforementioned twenty-seventh to thirty-fourth fields.
  • the V field is composed of the following fields: a thirty-fifth field, used to indicate the value of the composite OAM detection session established between the sender and the receiver. state; the thirty-sixth field is used to indicate the minimum sending interval for the sending end to send the first composite OAM message; the thirty-seventh field is used to indicate the minimum receiving interval for the sending end to receive the second composite OAM message sent by the receiving end; The thirty-eighth field is used to indicate the minimum receiving interval for the sender to receive the response message sent by the receiver; the thirty-ninth field is used to indicate the reason for the state change of the last session; the fortieth field is used to provide the detection time multiplication
  • the detection time multiplier is used to calculate the detection time in the asynchronous mode; the forty-first field, the seventh field includes the query request flag Demand, the polling flag Poll and the termination flag Final; the forty-second field is used to carry the The statistical quantity of the fifth data
  • Statistical quantity of data packets forty-fifth field: used to carry the statistical quantity of the sixth data packet received by the sender; forty-sixth field, used to carry the sending time of the first composite OAM message sent by the sender.
  • the forty-seventh field is used to carry the receiving time stamp of the receiving end receiving the first composite OAM message; the forty-eighth field is used to carry the sending time stamp of the receiving end sending the second composite OAM message; the forty-ninth field field, which is used to carry the receiving timestamp when the sender receives the second composite OAM message.
  • the IPv6 extension header duplicates the BIER header for the destination option header DoH or segment routing header SRH or bit index display.
  • the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  • the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
  • the first IPv6 packet further includes a unified session identifier of the first OAM message, and the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
  • the application embodiments provide a system for OAM detection of operation, maintenance and management, the system includes a sending end and a receiving end, wherein the sending end is used to send a first IPv6 packet, and the IPv6 address of the first IPv6 packet is
  • the extension header carries the first OAM message
  • the first OAM message includes a type T field and a value V field
  • the T field indicates the type of the first OAM message
  • the V field carries the content of the first OAM message
  • the receiving end is used to receive the first IPv6 message.
  • the second IPv6 message obtains a second IPv6 message according to the first IPv6 message, and send the second IPv6 message to the sender, where the second IPv6 message includes a second OAM message, and the second OAM message is a response to the first OAM message.
  • the first OAM message does not include protocol version information.
  • the T field indicates that the first OAM message is an echo message.
  • the first OAM message does not include protocol version information and timestamp information.
  • the T field indicates that the first OAM message is an active connectivity detection message.
  • the first OAM message does not include protocol version information, local identifier and remote identifier.
  • the T field indicates that the first OAM message is a performance detection message.
  • the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  • the IPv6 extension header duplicates the BIER header for the destination option header DoH or segment routing header SRH or bit index display.
  • the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  • the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
  • the first IPv6 packet further includes a unified session identifier, and the unified session identifier is used by the sender to match the first OAM message and the second OAM message.
  • an embodiment of the present application provides an apparatus, the apparatus includes a processor and a memory; wherein, the memory is used to store program instructions; the processor calls the program instructions in the memory, so that the apparatus executes the first The method in one aspect or any possible implementation of the first aspect.
  • embodiments of the present application provide a computer-readable storage medium, including instructions that, when the instructions are executed by a computer, implement part of the method in the first aspect or any possible implementation manner of the first aspect or All operations.
  • an embodiment of the present application provides a computer program product
  • the computer program software product includes a program, when the program is executed by a processor, the first aspect or any possible embodiment of the first aspect is implemented. some or all of the operations of the method.
  • the computer program product may be a software installation package, and if the method provided by any of the possible designs of the first aspect needs to be used, the computer program product may be downloaded and executed on the device to achieve The method in the first aspect or any possible embodiment of the first aspect.
  • Fig. 1 is a kind of schematic diagram of MPLS Ping message format
  • Fig. 2 is a kind of schematic diagram of ICMPv6 Ping message format
  • Fig. 3 is a kind of schematic diagram of BFD control message format
  • 4A is a schematic diagram of a STAMP sender measuring message
  • 4B is a schematic diagram of a STAMP reflection end measurement message
  • 4C is a schematic diagram of another STAMP sender measurement message
  • 4D is a schematic diagram of another STAMP reflection end measurement message
  • 5A is a schematic diagram of an MPLS packet loss measurement (LM) message
  • 5B is a schematic diagram of an MPLS Delay Measurement (DM) message
  • 5C is a schematic diagram of an MPLS packet loss delay measurement (LM-DM) message
  • FIG. 6 is a schematic diagram of a communication system provided by an embodiment of the present application.
  • FIG. 7 is a schematic diagram of a general format of an OAM message provided by an embodiment of the present application.
  • FIG. 8 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is an echo message;
  • FIG. 9 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is an active connectivity detection message
  • FIG. 10 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a performance detection message
  • FIG. 11 is a schematic diagram of another OAM message whose message type is a performance detection message provided by an embodiment of the present application;
  • FIG. 12A is a schematic diagram of an OAM message for packet loss detection provided by an embodiment of the present application.
  • FIG. 12B is a schematic diagram of an OAM message for delay detection provided by an embodiment of the present application.
  • 12C is a schematic diagram of an OAM message for packet loss delay detection provided by an embodiment of the present application.
  • FIG. 13 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a composite OAM message;
  • FIG. 14 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a composite OAM message;
  • 15 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a composite OAM message;
  • Fig. 16 is the encapsulation format of a kind of OAM message provided by the embodiment of the present application.
  • Fig. 17 is the encapsulation format of another OAM message provided by the embodiment of the present application.
  • Fig. 18 is the encapsulation format of another OAM message provided by the embodiment of the present application.
  • Fig. 19 is the encapsulation format of another OAM message provided by the embodiment of the present application.
  • Fig. 20 is the encapsulation format of another OAM message provided by the embodiment of the present application.
  • 21 is a flowchart of a method for OAM detection provided by an embodiment of the present application.
  • FIG. 23 is a schematic structural diagram of a device provided by an embodiment of the present application.
  • FIG. 24 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application.
  • OAM technology involves Continuity Check (CC)/Continuity Verification (CV) and Performance Measurement (PM).
  • CC Continuity Check
  • CV Continuous Verification
  • PM Performance Measurement
  • MPLS Multiprotocol Label Switching
  • BFD Bidirectional Forwarding Detection
  • TWAMP Two-Way Active Measurement Protocol
  • MPLS Ping protocol is a simple and effective way to detect data plane faults in MPLS Label Switching Path (LSP), mainly by sending MPLS Echo message, which defines a method called “MPLS echo request (MPLS echo request)". )" and a response message called “MPLS echo reply", MPLS echo reply is used to return the result of the probe.
  • MPLS Echo messages are encapsulated in IPv4 or IPv6 User Datagram Protocol (UDP) packets.
  • Figure 1 exemplarily shows a packet format of an MPLS Echo message. The following describes each field in Figure 1:
  • Version Number version number, the version number of MPLS Echo is currently 1;
  • Global Flags Global flags, which include:
  • V flag Validate FEC Stack flag (Validate FEC Stack flag, referred to as V flag): The V flag is set to 1 to indicate that the sender wants the receiver to perform Forwarding Equivalence Class (FEC) stack verification;
  • FEC Forwarding Equivalence Class
  • Validate Reverse Path flag (R flag for short): used to instruct the receiver to return reverse path FEC information;
  • T flag for short: The T flag is only set by the sender. If the T flag is set to 1 and the time-to-live value of the MPLS label (Time to Live, TTL) is greater than 1, then The receiver discards the MPLS echo request message;
  • Message Type message type, including MPLS echo request message and MPLS echo reply message;
  • Return Code Return code, the sender is set to 0, the receiver can set the corresponding value
  • the values of the return code are as follows:
  • Value 2 means that at least one variable-length field cannot be understood
  • Value 3 indicates that the answering router is the outgoing node of the FEC at the stack depth
  • Value 14 means refer to DDMAP TLV for the meaning of return code and return subcode
  • Sender's Handle The sender's handle, which is used to identify the MPLS echo request.
  • the receiver returns unmodified in the MPLS echo reply.
  • the sender uses this field to match the request with the response; a single LSP Ping operation can generate multiple MPLS echo request, but these multiple MPLS echo requests contain the same Sender's Handle;
  • Sequence Number The sequence number, matched by the sender, can be used to detect whether the response packet is lost; a single LSP Ping operation can generate multiple Sequence Numbers;
  • TimeStamp Sent sender timestamp, recording the sending time of MPLS echo request
  • TimeStamp Received Receiver timestamp, recording the receiving time of MPLS echo reply;
  • TLVs Type/Length/Value.
  • Internet Control Message Protocol version 6 (Internet Control Message Protocol for the IPv6, ICMPv6) is one of the basic protocols of IPv6. ICMPv6 is used to report errors in the process of transmitting IP packets to the destination to the source node, and perform other network interactions. Connect layer functions, eg, diagnostics (ICMPv6 "Ping"). Participating in Figure 2 exemplarily provides a message format of an ICMPv6 message, and each field in Figure 2 is described below:
  • the ICMPv6 message includes four parts: Type, Code, Checksum and ICMPv6 Data, where Type represents the message type, 0-127 represents the error message, 128-255 represents the indication message, and the indication message mainly includes the echo request message (Echo Request) and echo reply message (Echo Reply), these two kinds of messages are also commonly used Ping messages, where the Type field value of the echo request message is 128, the value of the Code field The value is 129, and the value of the Code field is 0; Code represents code, which is used to generate an additional layer of message granularity; Checksum represents checksum, which is used to detect data errors in ICMPv6 messages and IPv6 header parts; ICMPv6 Data further includes Identifier, Sequence Number and Data, where Identifier represents the identifier, which is used to help the echo response message match the identifier of the echo request message, Sequence Number represents the sequence number, and is used to help the echo response message match the sequence number of the echo request message, Data Can be 0 or more bytes
  • the BFD protocol is called a bidirectional forwarding detection protocol, and is used to quickly detect and monitor the forwarding connectivity of links or IP routes in the network.
  • the detection principle is as follows: a BFD session is established on a link between two nodes, and at least one of the two nodes sends a BFD control packet (a UDP packet in a specific format). If the BFD control packets sent to the peer end, the corresponding link is considered to be faulty.
  • BFD control packet a UDP packet in a specific format
  • FIG. 3 is a schematic diagram of a mandatory part of a BFD control message, and each field in FIG. 3 is described below:
  • Diag(Diagnostic) Diagnostic word, used to indicate the reason for the last session state change of the local BFD system
  • Sta(State) local BFD session state
  • P(Poll) Polling flag, P flag set to 1 means the sender requests to verify connectivity or parameter changes; P flag set to 0 means the sender does not request verification;
  • Termination flag the F flag must be set in the response message responding to the P flag.
  • the F flag is set to 1 to indicate that the sender responds to a BFD control message with the P flag of 1.
  • the F flag is set to 0 to indicate that the sender does not Respond to a BFD control packet with the P flag set to 1;
  • Control Plane Independent Forwarding control separation flag, set to 0 to indicate that BFD control packets are transmitted on the control plane, and set to 1 to indicate that BFD control packets are transmitted on the forwarding plane. Changes in the control plane do not affect BFD detection;
  • Multipoint Multipoint flag, a reserved bit for BFD to support point-to-multipoint expansion in the future;
  • Detected Mult The detection time multiplier, which is used to provide the peer end with the detection time in the asynchronous query mode;
  • Length the length of the BFD control packet
  • My Discriminator the local identifier of the BFD session, a unique non-zero identifier value generated by the transmission system, used to distinguish BFD sessions;
  • Your Discriminator The remote identifier of the BFD session, this field reflects the value received by the peer of My Discriminator, if the value is unknown, it is 0;
  • Desired Min TX Interval The minimum sending interval of BFD control packets supported locally;
  • Desired Min RX Interval The minimum receiving interval of locally supported BFD control packets
  • TWAMP-Light is a lightweight architecture of the TWAMP protocol, which includes a sender Controller and a reflector Responder.
  • the sender Controller integrates the roles of Control-Client, Server, and Session-Sender in the TWAMP standard framework. Send and receive, collect and calculate performance data and send the final results to the network management platform; the reflector Responder only includes the Session-Reflector role in the TWAMP standard framework, and is only responsible for measuring the reflection of session packets.
  • STAMP Simple Two-way Active Measurement Protocol
  • TWAMP Light informative in RFC5357
  • STAMP Session-Reflector After the instance is configured, the STAMP Session-Sender side and the STAMP Session-Reflector side pass through Send measurement Test packets to calculate performance data such as the packet loss rate, delay, and delay jitter of the network.
  • the encapsulation formats of Session-Sender Test packets and Session-Reflector Test packets can be subdivided into non-authentication mode and authentication mode. For specific packet formats, please refer to Figure 4A- Figure 4D:
  • FIG. 4A provides a measurement message format of STAMP Session-Sender in non-authentication mode. The following describes each field in FIG. 4A:
  • Sequence Number sequence number, the message sequence number generated by the Sender according to the transmission sequence
  • Timestamp Timestamp, indicating the sending time of the measurement packet sent by the Sender
  • Error Estimate Error detection field, specifying error detection and synchronization
  • MBZ must be filled with 0.
  • FIG. 4B provides a measurement message format of STAMP Session-Reflector in non-authentication mode. The following describes each field in FIG. 4B:
  • Sequence Number sequence number, the sequence number of the measurement message generated by Reflector
  • Timestamp timestamp, which is the sending time of the measurement packet sent by the Reflector
  • Receive Timestamp Receive timestamp, which is the time when the Reflector receives the measurement message
  • Sender Sequence Number The serial number of the Sender, which is the Sequence Number in Figure 4A;
  • Sender Timestamp The timestamp of the Sender, indicating the sending time of the measurement message sent by the Sender, which is the Timestamp in Figure 4A;
  • Sender Error Estimate Sender's error measurement, which is the Error Estimate in Figure 4A;
  • Sender TTL The time-to-live value of the measurement packet sent by the Sender
  • MBZ must be filled with 0.
  • Fig. 4C provides a measurement message format of STAMP Session-Sender in authentication mode, and each field in Fig. 4C is described below:
  • HMAC Hash operation message authentication code. In authentication mode, the block contained in the HMAC field is 16 bytes;
  • FIG. 4D provides a Test message format of STAMP Session-Reflector in authentication mode. The following describes each field in FIG. 4D:
  • HMAC Hash operation message authentication code. In authentication mode, the block contained in the HMAC field is 16 bytes;
  • the performance measurement of MPLS network includes packet loss measurement (Loss Measurement, LM) and delay measurement (Delay Measurement, DM).
  • LM packet loss measurement
  • DM delay measurement
  • One-way or two-way packet loss and delay measurement can be achieved through LM message query and DM message query.
  • Fig. 5A provides a format of an MPLS LM message, and each field in Fig. 5A is described below:
  • Flag bit 1) R-flag is set to 0 to indicate query, and 1 to response; 2) T-flag is set to 1 to indicate that the data packet of a specific traffic category is measured, and 0 to indicate non-specific traffic category; in T-flag When set to 1, the DS field indicates the measured traffic class;
  • Control Code Control code used to indicate query type or response type
  • Session Identifier session identifier, arbitrarily set in the query and copied in the response;
  • DS Differentiated Services: differentiated services flag, set to 1 to indicate that this field is set to the DSCP value, set to 0 to indicate that this field is an arbitrary value, and this field can be regarded as a part of the session identification;
  • Origin TimeStamp The initial timestamp, indicating the sending time of the query message
  • Counter1-Counter4 Counters 1-4, when A sends a query, counter 1 is set to A_TxP, and other counter fields are set to 0. When a query is received at B, counter 2 is set to B_RxP. At this point, B copies counter 1 to counter 3, counter 2 to counter 4, and reinitializes counter 1 and counter 2 to 0. When B sends a response, counter 1 is set to B_TxP. When a response is received at A, counter 2 is set to A_RxP.
  • TLV Block type-length-value, optional.
  • Fig. 5B provides a format of an MPLS DM message, and each field in Fig. 5B is described below:
  • Flag bit 1) R-flag is set to 0 to indicate query, and 1 to response; 2) T-flag is set to 1 to indicate that the data packet of a specific traffic category is measured, and 0 to indicate non-specific traffic category; in T-flag When set to 1, the DS field indicates the measured traffic class;
  • Control Code Control code used to indicate query type or response type
  • QTF Quantier Timestamp Format
  • RTF Responder Timestamp Format: The format of the responder's timestamp
  • RPTF Responder's Preferred Timestamp Format: the format of the responder's preferred timestamp
  • Session Identifier session identifier, arbitrarily set in the query and copied in the response;
  • the differentiated service flag is set to 1 to indicate that this field is set to the DSCP value, and set to 0 to indicate that this field is an arbitrary value, and this field can be regarded as part of the session ID;
  • Timestamp1-Timestamp4 Timestamp 1-4, when a query is sent from A, timestamp 1 is set to T1 and other timestamp fields are set to 0.
  • timestamp 2 is set to T2.
  • B copies timestamp 1 to timestamp 3, copies timestamp 2 to timestamp 4, and reinitializes timestamp 1 and timestamp 2 to 0.
  • timestamp 1 is set to T3.
  • timestamp 2 is set to T4.
  • TLV Block type-length-value block, optional.
  • Figure 5C provides a format of an MPLS LM-DM message.
  • the MPLS LM-DM message format shown in Figure 5C is a combination of the message formats in Figure 5A and Figure 5B, and its MPLS LM
  • the OTF field in the message has the same meaning as the QTF field in the MPLS DM message
  • the segment Origin Timestamp field in the MPLS LM message has the same meaning as the Timestamp 1 field in the MPLS DM message. Therefore, in Figure 5C, the QTF and Timestamp 1 fields have the same meaning. Replaces the OTF and Origin Timestamp fields of MPLS LM messages, respectively.
  • the other fields in FIG. 5C have the same meaning as the corresponding fields in FIG. 5A or FIG. 5B , and the description of each field in FIG. 5C can refer to the relevant descriptions in FIG. 5A and FIG. 5B . For the brevity of the description, It is not repeated here.
  • version number version of each protocol in the above prior art may also be referred to as protocol version information or protocol version number.
  • version in the BFD protocol may also be referred to as the protocol version information or protocol version number of the BFD protocol.
  • the multiple protocols involved in OAM are scattered and complex. Different protocols have different message formats and some protocol functions have high repetition. For example, the Timestamp Sent and Timestamp Received fields in the Ping message are the same as the Sender Timestamp, The Receive Timestamp field can be used for delay measurement.
  • the session identifiers of each protocol are complex. For example, the session identifiers of the Ping protocol are sender's Handle, the session identifiers of the BFD protocol are My Discriminator and Your Discriminator, and the session identifiers of the LM-DM protocol are Session Identifier, etc.
  • the message processing process is cumbersome. It can be seen that both BFD messages and STAMP messages are encapsulated in UDP format, and the encapsulation is deep, and only endpoint processing can be performed, so that the intermediate forwarding node cannot perceive the specific content of the message.
  • the embodiments of the present application propose a unified OAM message format, which can be used to support and execute various functions of OAM, such as connectivity detection, packet loss performance detection, delay performance detection, etc., which can improve message processing efficiency , to save costs.
  • FIG. 6 is a schematic diagram of a communication system provided by an embodiment of the present application, where the system is used to implement at least one of the functions of connectivity detection and performance detection between any two nodes in the network based on OAM messages.
  • the system at least includes a node A, a node B and at least one intermediate node, and the node A is connected with the node B in a wired or wireless manner through the at least one intermediate node.
  • the node A or the node B may be a computer (eg, a server, a personal computer, etc.), and at least one intermediate node includes at least one hardware such as a router, a switch, and a hub.
  • Node A sends IPv6 packet A to node B through at least one intermediate node.
  • the IPv6 extension header of IPv6 packet 1 carries OAM message A.
  • node B After receiving IPv6 packet A from node A, node B obtains the OAM message and generates IPv6 packet B, IPv6 packet B carries OAM message B, OAM message B is a response to OAM message A, node B sends IPv6 packet B to node A, so node A implements node A based on OAM message A and OAM message B At least one of connectivity detection/verification with Node B and performance detection.
  • the IPv6 extension header may be a Destination Options Header (DoH) or a Segment Routing Header (SRH). In some possible embodiments, the IPv6 extension header may also be a Hop-by-hop Options Header.
  • DoH Destination Options Header
  • SSRH Segment Routing Header
  • FIG. 7 is a schematic diagram of a general format of an OAM message provided by an embodiment of the present application.
  • the OAM message includes a message type and OAM message content, where the OAM message content corresponds to the message type.
  • the OAM message further includes a message length, and the message length is used to indicate the length of the OAM message contents.
  • the OAM message is located in the IPv6 extension header of the IPv6 packet, and the OAM message can be expressed in the form of TLV, where the T field is used to indicate the message type of the OAM message, the V field is used to carry the content of the OAM message, and the L The field is used to indicate the length of the content of the OAM message. It should be noted that, the OAM message provided in this embodiment of the present application does not include protocol version information.
  • the message types of the OAM message shown in FIG. 7 include 4 types, which are: (1) echo messages (including echo request Echo Req messages/echo response Echo Rep messages), (2) Active Connectivity Detection (Proactive CC) message, (3) Performance Detection (PM) message, (4) Hybrid OAM (Hybrid OAM) message.
  • echo messages including echo request Echo Req messages/echo response Echo Rep messages
  • Active Connectivity Detection Proactive CC
  • PM Performance Detection
  • Hybrid OAM Hybrid OAM
  • the T field indicates that the OAM message is an echo echo message, wherein the echo message includes an echo request message and an echo response message.
  • the echo request message and the echo reply message are used to detect and verify the connectivity between two nodes.
  • FIG. 8 is an OAM message provided by an embodiment of the present application when the message type is an echo message, wherein the dark part in FIG. 8 is the OAM message content corresponding to the message type echo message (the following Referred to as OAM message content 1), each field in the OAM message content 1 is described below:
  • Type used to indicate that the OAM message is an echo request message or an echo response message
  • Sequence Number The sequence number of the echo request message sent by the sender, which is used to match the echo request message and the echo response message to detect whether the echo response message is lost;
  • This field is used to carry the response result of the reflector to the echo request message sent by the sender; if the sender is set to 0, the reflector can set the corresponding value;
  • the value of the return code can be, for example:
  • Value 2 means that at least one variable-length field cannot be understood
  • the value of the reply mode can be, for example:
  • Value 3 means reply by an IPv6 packet with no payload
  • TLVs/sub-TLVs can be, for example, downstream detailed mapping TLVs (Downstream Detailed Mapping TLVs), padding TLVs (Padding TLVs), and the like.
  • the downstream detailed mapping TLV includes: a maximum transmission unit (Maximum Transmission Unit, MTU) field, an address type (Address Type) field, a downstream address (Downstream Address), a downstream interface address (Downstream Interface Address), a reserved field, and a type field and length fields.
  • MTU maximum transmission unit
  • Address Type Address
  • the address type field is used to determine the IP address type and length of the downstream interface
  • the address type field is set to 1 to indicate that IPv6 has a number
  • the address type field is set to 2 to indicate that IPv6 has no number. If the address type field is 1, the downstream address is set to the downstream interface address; if the address type field is 2, the downstream address is set to the IPv6 address of the downstream router, and the downstream interface address is set to the index assigned to the interface by the upstream router .
  • the function of the "type" field in FIG. 8 can also be replaced by the T field.
  • the T field takes the first value, indicating that the OAM message is an echo request message
  • the T field takes the second value, indicating that OAM messages are echo response messages.
  • the representation manner of the "type" field in FIG. 8 may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • the "Type” field in Figure 8 may be carried in the V field.
  • reserved bits may also be set in the T field to carry the "Type” field in FIG. 8 , which is not specifically limited in this embodiment of the present application.
  • the reserved bits, the reply mode, and the three fields of type-length-value/sub-type-length-value in FIG. 8 are optional, which are not specifically limited in this embodiment of the present application.
  • the content of the OAM message does not include the protocol version number and timestamp information, where the protocol version number can be the version number of MPLS Echo, and the timestamp information can be, for example, : The sending time stamp of the echo request message sent by the sender, the receiving time stamp of the echo request message received by the reflection end, etc.
  • the protocol version number may also be an ICMPv6 protocol number.
  • the OAM message shown in FIG. 8 is an improved example of the MPLS Echo message. Compared with the MPLS Echo message shown in FIG. 1 , the OAM message shown in FIG. Fields such as Version Number, Global Flags, Sender's Handle, TimeStamp Sent, and TimeStamp Received.
  • the OAM message in which the message type shown in FIG. 8 is the echo message can not only implement the connectivity detection function, but also the OAM message is more simplified, for example, each timestamp information and session identifier are omitted.
  • Node A generates IPv6 packet 1, and IPv6 packet 1 carries OAM message 1.
  • OAM message 1 includes each field shown in FIG. 8, wherein, in OAM message 1, the fields filled in by node A are: type, serial number and reply mode, wherein, the type is filled in as "echo request", and the other fields are filled in. (For example, the return code) is set to be empty, which is not specifically limited in this embodiment of the present application.
  • the OAM message 1 may also carry Downstream Detailed Mapping TLV and the like.
  • Node A sends IPv6 packet 1 to Node B.
  • Node B receives IPv6 packet 1, and generates IPv6 packet 2 according to IPv6 packet 1.
  • Node B generates an IPv6 packet 2 according to the received IPv6 packet 1, wherein the IPv6 packet 2 carries an OAM message 2, and the OAM message 2 is a response to the OAM message 1.
  • the OAM message 2 includes the one shown in FIG. 8 . of each field.
  • the fields filled in by node B are: serial number, return code and type, where the type is filled in as "echo response", and the serial number is the serial number in the copy OAM message 1.
  • Node B sends IPv6 packet 2 to Node A.
  • node B sends IPv6 packet 2 to node A.
  • node A receives IPv6 packet 2, and based on the return code in IPv6 packet 2, node A can determine the connectivity between itself and node B. For example, if the value of the return code in the IPv6 packet 2 is "3" in the above, it means that the node A and the node B communicate with each other.
  • node A receives a response packet of IPv6 packet 1, for example, the value of the return code in the response packet of IPv6 packet 1 is “7”, then the value shown in FIG. 6
  • the intermediate node encounters a failure in the process of forwarding IPv6 packet 1.
  • the response packet is sent to node A by the intermediate node between node A and node B. If IPv6 packet 1 does not reach node B, it means that node A and There is no connection between Node Bs.
  • the T field is used to indicate that the OAM message is an active connectivity detection message
  • the active connectivity detection message is used to detect the connectivity of the bidirectional path between the two forwarding engines.
  • FIG. 9 is an OAM message provided by an embodiment of the present application when the message type is an active connectivity detection message, wherein the dark part in FIG. 9 is the OAM corresponding to the message type active connectivity detection message
  • the message content hereinafter referred to as OAM message content 2
  • OAM message content 2 each field in the OAM message content 2 is described below:
  • State, Sta the state of the active connectivity detection session established between the sender and the receiver
  • the value of the local session state can be, for example, the following:
  • Value 0 means AdminDown, which means that the session can be kept closed in management
  • Value 1 means going offline (Down), means removing the active connectivity detection session;
  • Value 3 means going online (Up), indicating that the active connectivity detection session between the sender and the receiver has been successfully established, and the connection between the sender and the receiver is normal;
  • Diagnostic Diag: used to indicate the reason for the state change of the last session of the sender
  • the values of the diagnostic word are as follows:
  • Value 9-31 indicates that reserved bits are available for future use
  • Flag bit including the polling flag Poll(P), the termination flag Final(F) and the query request flag Demand(D); in some possible embodiments, the flag bit may also include the forwarding control separation flag Control Plane Independent(C) , the authentication mark Authentication Present(A) and the multipoint mark Multipoint(M);
  • the P flag when the P flag is set to 1, it means that the sender requests to verify connectivity or parameter changes and expects an active connectivity detection message with the F flag set as a reply, and the P flag is set to 0 to indicate that the sender does not request verification; for the F flag, if sending If the P flag in the active detection detection message received by the terminal is set, then the F flag in the next active connectivity detection message sent will be set as a response, that is, the F flag must be set in the response message responding to the P flag. 1;
  • the C flag can also be called the control plane independent flag. When the C flag is set to 1, it indicates that the active connectivity detection message is transmitted on the forwarding plane. The change of the control plane does not affect the active connectivity detection.
  • the A flag is set to 1 to indicate that the session needs to be authenticated;
  • the D flag can also be called the query request bit, the D flag is set to 1 to indicate that it is expected to work in the query mode, and the D flag is set to 0 to indicate that it does not want to work in the query mode or not.
  • Support query mode; M flag is used for the flag set for active connectivity detection to support point-to-multipoint expansion in the future;
  • Desired Min TX Interval The minimum sending interval between sending active connectivity detection messages supported by the sender
  • Minimum reception interval of active connectivity detection messages (Required Min RX Interval): the minimum reception interval between active connectivity detection messages sent by the receiving end supported by the sender;
  • Minimum receiving interval of active connectivity echo messages (Required Min Echo RX Interval): the minimum interval supported by the sender to receive response messages sent by the receiver;
  • Detection time multiplier used to negotiate the sending interval multiplied by the detection time multiplier to provide the receiving end (or remote end) with the detection time in asynchronous mode;
  • the reserved bits in FIG. 9 are optional, which are not specifically limited in this embodiment of the present application.
  • the content of the OAM message does not include the protocol version number, local identifier and remote identifier.
  • the protocol version number refers to the version number of the BFD protocol
  • the local identifier refers to My Discriminator in the BFD control packet
  • the remote identifier refers to the BFD control packet. Your Discriminator in the message.
  • the OAM message shown in FIG. 9 is an improved example of the BFD control message. Compared with the BFD control message shown in FIG. 3 , the OAM message shown in FIG. Vers, My Discriminator, Your Discriminator and other fields, the meaning and function of each field shown in Figure 9 can refer to the corresponding explanation of the same field in the BFD control message.
  • the OAM message in which the message type shown in FIG. 9 is the active connectivity detection message not only implements the connectivity detection function, but also becomes more lightweight.
  • an active connectivity detection session needs to be established between Node A and Node B in Figure 6 through a three-way handshake (below Referred to as "detection session"), after the detection session is established successfully, the detection session status of node A and node B are both "Up", and during this process, node A and node B both negotiate their own active connectivity detection at the same time.
  • Message detection time, sending interval and other parameters may also be referred to as the effective detection duration, which is not specifically limited in this application.
  • the negotiated sending interval on the node A side is between the Desired Min TX Interval of node A and the Required Min RX Interval of node B
  • the maximum value of , the detection time negotiated by the node A side is the Detect Mult in the active connectivity detection message sent by the node B multiplied by the negotiated sending interval of the node B. The same is true.
  • the sending interval negotiated on the Node B side is the maximum value between the Desired Min TX Interval of Node B and the Required Min RX Interval of Node A, and the negotiated detection time on the Node B side is the Detect in the active connectivity detection message sent by Node A. Mult times Node A's negotiated transmission interval.
  • the connectivity detection based on the OAM message shown in Figure 9 provides the following three ways:
  • Asynchronous mode The sender and the receiver periodically send active connectivity detection messages to each other at the sending interval negotiated by themselves. message, the detection session status of the sender and receiver is updated to Down, indicating that there is no communication between the sender and receiver; Then the detection session status of the sender and receiver remains UP, indicating that the sender and receiver are connected.
  • (2) Query mode After the establishment of the detection session is completed, the sender and the receiver stop sending active connectivity detection messages. If the sender needs to verify the connectivity, the sender periodically sends an active connectivity check message with the P flag set at the negotiated sending interval. If the active connectivity detection message with the F flag, the detection session status between the sender and the receiver remains UP, indicating that the sender and the receiver are connected; if the F setting is not received within the detection time corresponding to the sender If the active connectivity detection message is marked, the detection session status of the sender and receiver is updated to Down, indicating that there is no communication between the sender and receiver.
  • Echo mode The sender periodically sends a group of active connectivity detection messages to the receiver at the negotiated sending interval, and the receiver loops back the received active connectivity check messages to the sender without any modification. If the number of active connectivity detection messages not received by the sender within the detection time is greater than or equal to the preset threshold, the status of the detection session at the sender and receiver is updated to Down, indicating that there is no communication between the sender and the receiver. Connectivity; if the number of active connectivity detection messages not received by the sender within the detection time is less than the preset threshold, the detection session status of the sender and receiver remains UP, indicating that the sender and receiver are connected .
  • IPv6 packet 3 carries OAM message 3.
  • OAM message 3 includes each field shown in FIG. 9 , wherein, in OAM message 3, the fields filled in by node A are: local session state, detection time multiplier, diagnosis word, and minimum sending interval of active connectivity detection message and the minimum receiving interval of the active connectivity detection message. In addition, set the field of the minimum receiving interval of the active connectivity echo message to 0, and set both the D flag and the P flag in the flag bit to 1. It should be noted that the fields filled in by node A in OAM message 3 are all locally supported by node A.
  • the minimum sending interval of active connectivity detection messages refers to the minimum sending interval supported by node A for sending active performance detection messages.
  • the minimum receiving interval of the connectivity check message refers to the minimum sending interval supported by node A for receiving active performance check messages.
  • Node A sends IPv6 packet 3 to Node B.
  • Node B receives IPv6 packet 3, and generates IPv6 packet 4 according to IPv6 packet 3.
  • the Node B generates an IPv6 packet 4 according to the received IPv6 packet 3, wherein the IPv6 packet 4 carries an OAM message 4, the OAM message 4 is a response to the OAM message 3, and the OAM message 4 includes as shown in FIG. 9 . of each field.
  • the fields filled in by node B are: local session state, detection time multiplier, diagnosis word, minimum sending interval of active connectivity detection message and minimum receiving interval of active connectivity detection message.
  • the minimum receiving interval of the echo message is set to 0, and the D flag and the F flag in the flag bit are both set to 1.
  • the fields filled in by node B in OAM message 4 are all locally supported by node B.
  • the minimum sending interval of active connectivity detection messages refers to the minimum sending interval supported by node B for sending active performance detection messages.
  • the minimum receiving interval of the connectivity check message refers to the minimum sending interval for receiving the active performance check message supported by the Node B.
  • Node B sends IPv6 packet 4 to Node A.
  • node B sends IPv6 packet 4 to node A.
  • node A receives IPv6 packet 4 within the negotiated detection time, it means that node A and node B are connected to each other; if node A does not receive IPv6 packet 4 within the negotiated detection time, It means that there is no communication between node A and node B.
  • the third type is performance detection message
  • the T field is used to indicate that the OAM message is a performance detection message
  • the performance detection message is used to detect packet loss, delay and delay in the bidirectional path between the two forwarding engines One or more of jitter detection.
  • FIG. 10 is an OAM message provided by an embodiment of the present application when the message type is a performance detection message, wherein the dark part in FIG. 10 is the content of the OAM message corresponding to the message type of performance detection message (below Referred to as OAM message content 3), as can be seen from Figure 10, OAM message content 3 further includes:
  • the sequence number of the performance detection message sent by the sender (Sender Sequence Number);
  • the sequence number of the performance detection message sent by the reflector (Reflector Sequence Number);
  • Sending timestamp (Sender Timestamp) of the performance detection message sent by the sender
  • Reflector Receive Timestamp of the performance detection message received by the reflector
  • the sending timestamp of the performance detection message sent by the reflector (Reflector Timestamp);
  • the performance detection message sent by the reflector is a response to the performance detection message sent by the sender.
  • the OAM message shown in FIG. 10 further includes a variable-length field for filling, and filling the variable-length field is optional, which is not specifically limited in this embodiment of the present application.
  • the two sequence numbers in Figure 10 can be used for packet loss measurement between two forwarding engines, and the four timestamps in Figure 10 can be used for delay measurement and delay jitter between two forwarding engines. at least one of the measurements.
  • the sending timestamp of the performance test message sent by the sender and the receiving timestamp of the performance test message received by the reflector can be used to measure the delay of the path from the sender to the reflector
  • the sending timestamp of the performance test message sent by the reflector and The receiving timestamp of the receiving performance detection message at the sending end can be used to measure the delay of the path from the reflecting end to the sending end.
  • the two sequence numbers in FIG. 10 can also be distinguished by different sequence number field numbers.
  • the sequence number of the performance detection message sent by the sender can be expressed as Sequence Number1
  • the performance test message sent by the reflector The sequence number of the detection message can be represented as Sequence Number2.
  • the four timestamps in Figure 10 can also be distinguished by different timestamp field numbers.
  • the sending timestamp of the performance detection message sent by the sender is represented as Timestamp1
  • the reception timestamp of the performance detection message received by the reflector is represented as Timestamp2
  • the receiving timestamp of the performance detection message received by the sender is represented as Timestamp4.
  • the OAM message shown in FIG. 10 is an improved example of the STAMP measurement message. Compared with the measurement messages at the sending end and the measurement messages at the reflecting end shown in FIGS.
  • the OAM message shown omits fields such as Error Estimate and HMAC in Figures 4A-4D. For the meaning and function of each field shown in Figure 10, refer to the corresponding explanation of the same fields in the STAMP measurement message.
  • FIG. 10 provides an OAM message when the message type is a performance detection message.
  • the OAM message provided in FIG. The measurement packets at the end and the reflection end are combined and deleted, which makes the OAM message more lightweight when the message type is performance detection message.
  • Node A generates an IPv6 packet 5, and the IPv6 packet 5 carries an OAM message 5.
  • OAM message 5 includes the fields shown in FIG. 10, wherein, in OAM message 5, the fields filled in by node A are: the serial number of the performance detection message sent by the sender and the sending timestamp of the performance detection message sent by the sender, The remaining fields, such as the serial number of the performance test message sent by the reflector, the reception timestamp of the performance test message received by the reflector, the transmission timestamp of the performance test message sent by the reflector, and the reception timestamp of the performance test message received by the sender, are all Set to 0 or set to empty.
  • Node A sends IPv6 packet 5 to Node B.
  • Node B receives IPv6 packet 5, and generates IPv6 packet 6 according to IPv6 packet 5.
  • the Node B generates an IPv6 packet 6 according to the received IPv6 packet 5, wherein the IPv6 packet 6 carries an OAM message 6, and the OAM message 6 is a response to the OAM message 5.
  • the OAM message 6 includes the one shown in FIG. 10 . field.
  • the fields filled in by the node B are: the sequence number of the performance detection message sent by the reflector, the reception timestamp of the performance detection message received by the reflector, and the transmission timestamp of the performance detection message sent by the reflector.
  • the two fields, the serial number of the performance detection message sent by the sender and the sending timestamp of the performance detection message sent by the sender are copied by Node B from OAM message 5.
  • the sender receives the performance detection The message's reception timestamp is set to 0 or to null.
  • Node B sends IPv6 packet 6 to Node A.
  • node B sends IPv6 packet 6 to node A.
  • the node A can fill in the field of the reception timestamp of the sender's reception performance detection message in the OAM message 6.
  • steps A31-A34 an interaction of the active performance detection message between node A (ie the sender) and node B (ie the reflector) is completed, the values of each field in Figure 10 can be obtained, and the sender sends the performance
  • the sending time stamp of the test message is marked as T1
  • the receiving time stamp of the performance test message received by the reflector is marked as T2
  • the sending time stamp of the performance test message sent by the reflector is marked as T3
  • the reception time stamp of the performance test message received by the sender is marked as T4.
  • the fields shown in 10 may perform at least one of the following functional tests:
  • the sending end node A sends the active performance detection message with the generated sequence number.
  • the reflecting end node B does not generate the sequence number independently, but directly copies the received performance detection message.
  • the sequence number is used as its own response sequence number.
  • Node A will count the number N1 of active performance testing messages sent and the number N2 of active performance testing messages returned from node B.
  • the packet loss rate in a single sampling period is (N1-N2)/N1.
  • FIG. 11 is an OAM message when another message type provided by the embodiment of the present application is a performance detection message, wherein the colored part in FIG. 11 is the OAM message content corresponding to the message type as the performance detection message ( Hereinafter referred to as OAM message content 4), the OAM message content 4 includes the performance detection type and the message content corresponding to the performance detection type.
  • the performance detection type can be divided into three types, namely: 1) Loss Measurement, 2) Delay Measurement (Delay Measurement) , 3) Combined Loss Delay Measurement (Combined Loss Delay Measurement).
  • the OAM message content 4 may further include a field of length, which is used to indicate the length of the messages corresponding to the performance detection types.
  • the OAM message content 4 can be carried by at least one sub-TLV field, as shown in the following schematic diagrams in FIGS. 12A-12C , wherein a sub-type T field is used to indicate the performance detection type, a value V field It is used to carry the message content corresponding to the performance detection type, and a length L field is used to carry the length of the message corresponding to the performance detection type.
  • the performance detection type may also be indicated by an indicator bit.
  • the specific performance detection type may be indicated in the manner of bit mapping or in the manner of binary value. Taking the binary value as an example, for example, there are three types of performance detection types mentioned above, which can be indicated by 2 bits. Specifically, “00" indicates that the performance detection type is packet loss measurement, and "01" indicates performance detection. The type is delay measurement, and "10" indicates that the performance detection type is composite packet loss delay measurement. For another example, it can also be indicated by 3 bits, specifically, "100” indicates that the performance detection type is packet loss measurement, "010” indicates that the performance detection type is delay measurement, and "001" indicates that the performance detection type is composite loss measurement.
  • the packet delay measurement is not specifically limited in this embodiment of the present application.
  • the content of the message corresponding to the performance detection type includes: a field used to carry the statistical number of data packets sent by the sender, a field used to carry the data packets received by the reflector A field of statistical quantity, a field used to carry the statistical quantity of data packets sent by the reflecting end, and a field used to carry the statistical quantity of data packets received by the sending end.
  • the data packet sent by the reflector is a response to the data packet sent by the sender.
  • the OAM message shown in FIG. 12A is an improved example of the MPLS LM message. Compared with the MPLS LM message shown in FIG. 5A , the OAM message shown in FIG. 12A omits Version, Flags, Control Code, Session Identifier and other fields, the meaning and function of each field shown in Figure 12A can refer to the corresponding explanation of the same field in the MPLS LM message.
  • the message content corresponding to the performance detection type may also be the MPLS LM message content shown in FIG. 5A , which is not specifically limited in this embodiment of the present application.
  • IPv6 packet 7 carries OAM message 7.
  • the OAM message 7 includes the fields shown in FIG. 12A , wherein, in the OAM message 7, the fields filled in by node A are only the statistics of the data packets sent by the sender, and the other fields are, for example, the data packets sent by the reflector.
  • the statistics of the number of packets, the statistics of the data packets received by the sender, and the statistics of the data packets received by the reflector are all set to 0 or empty.
  • Node A sends IPv6 packet 7 to Node B.
  • Node B receives IPv6 packet 7, and generates IPv6 packet 8 according to IPv6 packet 7.
  • Node B generates an IPv6 packet 8 according to the received IPv6 packet 7, wherein the IPv6 packet 8 carries an OAM message 8, the OAM message 8 is a response to the OAM message 7, and the OAM message 8 includes the one shown in FIG. 12A . field.
  • the fields filled in by Node B are: the statistical quantity of data packets received by the reflector and the statistical quantity of data packets sent by the reflector.
  • the value of this field is the statistical number of data packets sent by the sender, and the value of this field is copied by Node B from OAM message 7.
  • the value of this field is set to 0 or 0. Set to empty.
  • Node B sends IPv6 packet 8 to Node A.
  • node B sends IPv6 packet 8 to node A.
  • the node A can fill in the field of the statistical number of data packets received by the sender in the OAM message 8.
  • node A ie, the sender
  • node B ie, the reflector
  • two rounds of communication between node A and node B have been completed.
  • the packets are transmitted to each other, the number of packets lost by node A (that is, the sender) and the number of packets lost by node B (that is, the reflector) can be calculated.
  • the statistics of the data packets sent by the reflector are denoted as B_RxP
  • the statistics of the data packets sent by the reflector are denoted as B_TxP
  • the statistics of the data packets received by the sender are denoted as A_RxP:
  • the number of packets lost on the Node B side (B_TxP[2]-B_TxP[1])-(B_RxP[2]-B_RxP[1]), B_TxP[2], B_RxP[2] correspond to the The statistical number of received data packets, B_TxP[1] and B_RxP[1] respectively correspond to the statistical number of data packets sent and received by Node B in the previous round.
  • the content of the message corresponding to the performance detection type includes: the sending timestamp of the performance detection message sent by the sender, the reception timestamp of the performance detection message received by the reflector, and the sending performance detection of the reflector.
  • the sending timestamp of the message and the receiving timestamp of the sender's receiving performance detection message is a response to the performance detection message sent by the sender.
  • the OAM message shown in FIG. 12B is an improved example of the MPLS DM message. Compared with the MPLS DM message shown in FIG. 5B , the OAM message shown in FIG. 12B omits Version, Flags, Control Code, Session Identifier and other fields, the meaning and function of each field shown in Figure 12B can refer to the corresponding explanation of the same field in the MPLS DM message.
  • the message content corresponding to the performance detection type may also be the MPLS DM message content shown in FIG. 5B , which is not specifically limited in this embodiment of the present application.
  • Node A generates an IPv6 packet 9, and the IPv6 packet 9 carries an OAM message 9.
  • the OAM message 9 includes the fields shown in FIG. 12B , wherein, in the OAM message 9, the fields filled in by node A are only: the sending timestamp of the performance detection message sent by the sender, and the remaining fields, for example, the receiving performance detection by the reflector
  • the receiving timestamp of the message, the sending timestamp of the performance testing message sent by the reflector, and the receiving timestamp of the performance testing message received by the sender are all set to 0 or empty.
  • Node A sends IPv6 packet 9 to Node B.
  • Node B receives IPv6 packet 9, and generates IPv6 packet 10 according to IPv6 packet 9.
  • Node B generates an IPv6 packet 10 according to the received IPv6 packet 9, wherein the IPv6 packet 10 carries an OAM message 10, the OAM message 10 is a response to the OAM message 9, and the OAM message 10 includes the one shown in FIG. 12B. field.
  • the fields filled in by the node B are: the receiving timestamp of the performance detection message received by the reflector and the sending timestamp of the performance detection message sent by the reflector.
  • the value of this field is the sending timestamp of the performance detection message sent by the sender, and the value of this field is copied by Node B from OAM message 9.
  • the reception timestamp of the performance detection message received by the sender in OAM message 10 is set to 0 or set to null.
  • Node B sends IPv6 packet 10 to Node A.
  • node B sends an IPv6 packet 10 to node A.
  • the node A can fill in the field of the reception timestamp of the receiving performance detection message of the sender in the OAM message 10.
  • node A ie, the sender
  • node B ie, the reflector
  • the four timestamps shown in FIG. 12B can be obtained.
  • the delay of the bidirectional link between node A and node B can be calculated.
  • T1 the sending time stamp of the performance test message sent by the sender
  • T2 the reception time stamp of the performance test message received by the reflector
  • T3 the transmission time stamp of the performance test message sent by the reflector
  • the reception time stamp of the performance test message received by the sender As T4, the following delay measurements and/or delay jitter measurements can be achieved:
  • One-way (node A-node B) delay (T2-T1);
  • the content of the message corresponding to the performance detection type includes: the statistical number of data packets sent by the sender, the statistical number of data packets received by the reflector, and the number of data packets received by the reflector.
  • Statistical number of sent data packets Statistical number of data packets received by the sender, sending timestamp of the performance test message sent by the sender, reception timestamp of the performance test message received by the reflector, sending of the performance test message sent by the reflector Timestamp and the receiving timestamp of the sender receiving the performance check message.
  • the data packet sent by the reflector is a response to the data packet sent by the sender.
  • the OAM message shown in FIG. 12C is an improved example of the MPLS DM message. Compared with the MPLS LM DM message shown in FIG. 5B , the OAM message shown in FIG. 12C omits the Version in FIG. 5C , Flags, Control Code, Session Identifier and other fields, the meaning and function of each field shown in Figure 12C can refer to the corresponding explanation of the same field in the MPLS LMDM message.
  • the message content corresponding to the performance detection type may also be the MPLS LM DM message content shown in FIG. 5C , which is not specifically limited in this embodiment of the present application.
  • both packet loss measurement between any two nodes in the network can be implemented, and at least one of delay and delay jitter measurement can be implemented.
  • the specific process can be implemented with reference to the above-mentioned FIGS. 12A and 12B . The related description of the process is not repeated here for the sake of brevity of the specification.
  • the message type is a composite OAM message
  • the composite OAM message can be used to implement at least two OAM functions, including connectivity detection and performance detection.
  • the V field of the composite OAM message includes a first flag and a second flag, where the first flag is used to indicate that the composite OAM message is used for connectivity detection, and the second flag is used to indicate that the composite OAM message is used for connectivity detection Performance testing.
  • the representation manner of the first identifier and the second identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • the first identification and the second identification may be carried in the V field.
  • reserved bits may also be set in the T field (ie, the "message type" field in Figs. 13-15 ) to carry the first identifier and the second identifier.
  • the format of the composite OAM message can be exemplified in three forms. This embodiment of the present application does not limit the format of the composite OAM message to only those shown in FIG. 13 to FIG. 15 .
  • FIG. 13 is a composite OAM message provided by an embodiment of the present application, as shown in FIG. 13 , wherein the non-white part in FIG. 13 is the content of the OAM message corresponding to the composite OAM message (hereinafter referred to as the content of the OAM message) 5).
  • the OAM message content 5 is obtained based on the combination of the OAM message content 1 in FIG. 8 and the OAM message content 4 in FIG. 11 .
  • OAM message content 5 specifically includes:
  • Type Indicates that the composite OAM message is a request message or a reply message
  • Sequence number Indicates the sequence number of the composite OAM message sent by the sender
  • Return code used to carry the response result of the reflection end to the composite OAM message sent by the sender.
  • the value of the return code please refer to the relevant description of the value of the return code in Figure 8;
  • Reply mode used to indicate the method of replying to the composite OAM message sent by the sender, the value of the reply mode can refer to the relevant description of the value of the reply mode in Figure 8;
  • Type-value-length/sub-type-value-length can be downstream detailed mapping TLV (Downstream Detailed Mapping TLV), padding TLV (Padding TLV), etc.;
  • type-value-length/sub-type-value-length fields are optional; it should be noted that type, serial number, return code, type-value-length/sub-type - Fields such as value-length make the composite OAM message have the function of connectivity detection or verification;
  • the OAM message content 5 also includes fields that support the performance detection function, that is, the message content corresponding to the performance detection type, length, and performance detection type. That is to say, the OAM message content 5 also includes the message content 4 in the above-mentioned FIG. 11 , because the performance detection Type is the subdivision of the performance detection function.
  • the performance detection type can be divided into three types, namely: 1) Loss Measurement, 2) Delay Measurement ), 3) composite packet loss delay measurement (Combined Loss Delay Measurement), then the message content corresponding to the performance detection type can specifically be the above-mentioned Figure 12A- Figure 12C, the meaning of the field supporting the performance detection function in Figure 13 can refer to Figure 12A - the meaning of the corresponding fields in Figure 12C, except that "Performance Detection Message" in Figures 12A-12C is replaced by "Composite OAM Message". It can be seen from this that the composite OAM message shown in FIG. 13 can be used for at least one of packet loss, delay and delay jitter performance detection.
  • the representation of the "Type” and "Performance Detection Type” fields in Fig. 13 may be in the form of bit mapping, or in the form of binary value or sub-TLV, which is not specified in this application. limit. This application does not specifically limit the manner in which the "type” and “performance detection type” fields in FIG. 13 are carried in the TLV field. In a specific implementation manner, the "type” and “performance detection type” fields in FIG. 13 may be carried in the V field. Of course, reserved bits may also be set in the T field (ie, the "message type” field in Fig. 13 ) to carry the "type” and "performance detection type” fields.
  • the content of the message corresponding to the performance detection type includes: the sending time for the sender to send the composite OAM message stamp, the receiving time stamp of the composite OAM message received by the reflecting end, the sending time stamp of the composite OAM message sent by the reflecting end, and the receiving time stamp of the sending end receiving the composite OAM message.
  • the composite OAM message sent by the reflector is a response to the composite OAM message sent by the sender.
  • the OAM message shown in FIG. 13 only describes the included fields, and the arrangement position of each field in the OAM message is not specifically limited.
  • the field type-length-value/sub-type-value-length can also be placed at the bottom, that is, placed below the message content corresponding to the performance detection type, which is not specifically limited in this application.
  • FIG. 14 is another composite OAM message provided by an embodiment of the present application, wherein the non-white part in FIG. 14 is the OAM message content corresponding to the composite OAM message (hereinafter referred to as OAM message content 6).
  • OAM message content 6 is obtained by splicing the OAM message content 1 in FIG. 8 and the OAM message content 3 in FIG. 10 .
  • OAM message content 6 specifically includes:
  • the receiving timestamp of the composite OAM message received by the sender The receiving timestamp of the composite OAM message received by the sender.
  • the composite OAM message sent by the reflector is a response to the composite OAM message sent by the sender.
  • fields such as type, sequence number, and return code make the composite OAM message have the function of connectivity detection or verification; sequence number, sequence number of the composite OAM message sent by the reflector, composite OAM sent by the sender.
  • sequence number sequence number of the composite OAM message sent by the reflector
  • composite OAM sent by the sender The fields of the sending timestamp of the message, the receiving timestamp of the composite OAM message received by the reflector, the sending timestamp of the composite OAM message sent by the reflector, and the receiving timestamp of the composite OAM message received by the sender.
  • These fields enable the composite OAM message to be used for performance testing.
  • the composite OAM message shown in Figure 14 can implement three performance detections of packet loss, delay and delay jitter.
  • Node A generates an IPv6 packet 11, and the IPv6 packet 11 carries the OAM message 11.
  • the OAM message 11 includes the fields shown in FIG. 14 , wherein, in the OAM message 11, the fields filled in by node A are: type, sequence number, reply mode, and the sending timestamp of the composite OAM message sent by the sender, wherein the type Fill in "request", other fields, such as: return code, serial number of the composite OAM message sent by the reflector, reception timestamp of the composite OAM message received by the reflector, sending timestamp of the composite OAM message sent by the reflector, and reception by the sender The receiving timestamp of the composite OAM message, both set to 0 or set to null.
  • the OAM message 11 may also carry TLVs or sub-TLVs.
  • Node A sends IPv6 packet 11 to Node B.
  • Node B receives IPv6 packet 11, and generates IPv6 packet 12 according to IPv6 packet 11.
  • the Node B generates an IPv6 packet 12 according to the received IPv6 packet 11, wherein the IPv6 packet 12 carries the OAM message 12, the OAM message 12 is a response to the OAM message 11, and the OAM message 12 includes the one shown in FIG. 14 . field.
  • the fields filled in by Node B are: type, return code, receiving timestamp of the composite OAM message received by the reflector, serial number of the composite OAM message sent by the reflector, and sending timestamp of the composite OAM message sent by the reflector , where Type is filled in as "Answer".
  • the values of the two fields, the sequence number in OAM message 12 and the sending timestamp of the composite OAM message sent by the sender, are copied by Node B from OAM message 11.
  • the sender receives the receiving timestamp of the composite OAM message. Set to 0 or set to empty.
  • Node B sends IPv6 packet 12 to Node A.
  • the node B sends the IPv6 packet 12 to the node A.
  • node A receives the IPv6 packet 12, and based on the return code in the IPv6 packet 2, node A can determine the connectivity between itself and node B. If the return code of IPv6 packet 12 does not indicate an error related to connectivity, for example, the value of the return code is "3", "0", "1", etc. in the above-mentioned embodiment of FIG. 8, then node A and node B They are connected to each other. In this case, node A can also record the reception timestamp of the received IPv6 packet 12 as the reception timestamp of the composite OAM message received by the sender in the OAM message 12. This parameter can be used in the following performance testing.
  • the response message is sent by the intermediate node between node A and node B to node A, and node A and node B There is a fault in the intermediate node between them, so there is no connection between node A and node B.
  • IPv6 packet 12 When the return code in IPv6 packet 12 does not indicate connectivity-related sequence or absence, that is, in the case of interworking between Node A and Node B, the following various performances can be performed based on the remaining fields in IPv6 packet 12 Detection:
  • the sending end node A sends the composite OAM message with the generated sequence number.
  • the reflecting end node B does not generate the sequence number independently, but directly copies the sequence of the received composite OAM message.
  • the number is used as its own response sequence number and the sequence number of the composite OAM message sent by itself. Therefore, in a single sampling period, node A will count the number N3 of composite OAM messages sent and the number N4 of composite OAM messages sent from node B, then the packet loss rate in a single sampling period is (N3- N4)/N3.
  • the fields in the composite OAM message for implementing the connectivity detection function may also use the fields in the active performance detection message shown in FIG. 9 , which are not specifically limited in this embodiment of the present application.
  • FIG. 15 is an example diagram of a message format of another composite OAM message provided by an embodiment of the present application, wherein the non-white part in FIG. 15 is the OAM message content corresponding to the composite OAM message (hereinafter referred to as OAM).
  • OAM composite OAM message
  • Message content 7 is obtained based on the splicing of the OAM message content 2 in FIG. 9 and the OAM message content in FIG. 12C .
  • OAM message content 7 specifically includes:
  • Local session status indicates the status of the composite OAM message session established by the sender and the reflector
  • Diagnostic word Indicates the reason for the state change of the last session
  • the minimum sending interval of composite OAM messages the minimum sending interval for sending composite OAM messages by the sender
  • Minimum receiving interval of composite OAM message the minimum receiving interval for the sender to receive the composite OAM message sent by the reflector
  • the minimum receiving interval of the composite OAM echo message the minimum receiving interval for the sender to receive the composite OAM message sent by itself;
  • Detection time multiplier used to calculate detection time in asynchronous mode
  • Flag bits including the query request flag Demand(D), the polling flag Poll(P) and the termination flag Final(F), where the P flag is set to 1 to indicate that the sender requests to verify connectivity or parameter changes, and the D flag is set to 1 to indicate sending The terminal expects to work in the query mode.
  • the F flag For the F flag, the F flag must be set to 1 in the response message responding to the P flag; in some possible embodiments, the flag bit may also include Control Plane Independent (C), authentication flag Authentication Present (A) and the multipoint flag Multipoint(M), the C flag is set to 1 to indicate that the composite OAM message is transmitted in the forwarding plane, the A flag is set to 1 to indicate that the session needs to be authenticated, and the M is used to support point-to-multipoint for connectivity detection in the future reserved space for expansion;
  • C Control Plane Independent
  • A authentication flag Authentication Present
  • M multipoint flag Multipoint
  • the receiving timestamp of the composite OAM message received by the sender The receiving timestamp of the composite OAM message received by the sender.
  • the composite OAM message sent by the reflector is a response to the composite OAM message sent by the sender.
  • the fields such as the local session state, the minimum sending interval of the composite OAM message, the minimum receiving interval of the composite OAM message, the detection time multiplier, and the flag bit make the composite OAM message have the function of connectivity detection; sending These four fields can be used for packet loss. Measurement; four fields are available: the sending timestamp of the composite OAM message sent by the sender, the reception timestamp of the composite OAM message received by the reflector, the sending timestamp of the composite OAM message sent by the reflector, and the reception timestamp of the composite OAM message received by the sender. at least one of delay measurement and delay jitter measurement.
  • the principle of connectivity detection based on fields such as the local session state, the minimum sending interval of the composite OAM message, the minimum receiving interval of the composite OAM message, the detection time multiplier, and the flag bit can refer to the relevant description of the embodiment in FIG. 9 . It is that the message transmitted by the sender and the receiver in FIG. 9 is called an active detection message, and the message transmitted by the sender and the reflector in FIG. 15 is called a composite OAM message. In addition, for the negotiation of the sending interval and detection time (or detection duration) on both sides of the transmitting end and the reflecting end when performing connectivity detection based on the composite OAM message shown in FIG.
  • the following takes the query mode as an example to illustrate the connectivity detection and performance detection process between node A and node B in FIG. 6 based on the composite OAM message shown in FIG. 15 :
  • Node A generates an IPv6 packet 13, and the IPv6 packet 13 carries the OAM message 13.
  • the OAM message 13 includes each field shown in FIG. 15 , wherein, in the OAM message 13, the fields filled in by node A are: local session state, detection time multiplier, diagnosis word, minimum sending interval of composite OAM messages, composite OAM message The minimum receiving interval of the OAM message, the statistical number of data packets sent by the sender, and the sending timestamp of the composite OAM message sent by the sender. In addition, set the value of the minimum receiving interval of the composite OAM echo message to 0 and set the flag bit Both the D flag and the P flag are set to 1.
  • Node A sends IPv6 packet 13 to Node B.
  • Node B receives IPv6 packet 13, and generates IPv6 packet 14 according to IPv6 packet 13.
  • Node B generates an IPv6 packet 14 according to the received IPv6 packet 13, wherein the IPv6 packet 14 carries an OAM message 14, the OAM message 14 is a response to the OAM message 13, and the OAM message 14 includes the one shown in FIG. 15 . of each field.
  • the fields filled in by Node B are: local session state, detection time multiplier, diagnostic word, minimum sending interval of composite OAM messages, minimum receiving interval of composite OAM messages, statistics of data packets received by the reflector The number, the statistical number of data packets sent by the reflector, the receiving timestamp of the composite OAM message received by the reflector, and the sending timestamp of the composite OAM message sent by the reflector.
  • Node B sends IPv6 packet 14 to Node A.
  • node B sends an IPv6 packet 14 to node A.
  • node A receives IPv6 packet 14 within the negotiated detection time, it means that node A and node B are connected to each other; if node A does not receive IPv6 packet 14 within the negotiated detection time, It means that there is no communication between node A and node B.
  • the following performance measurements can be performed based on the fields carrying statistical quantities and the fields carrying timestamps in FIG. 15 :
  • node A ie, the sender
  • node B ie, the reflector
  • the number of packets lost by node A ie, the sender
  • the number of packets lost by node B ie, the reflector
  • the statistical number of data packets sent by the sender can be recorded as A_TxP
  • the reflector The statistical number of received data packets is recorded as B_RxP
  • the statistical number of data packets sent by the reflector is recorded as B_TxP
  • the statistical number of data packets received by the sender is recorded as A_RxP:
  • the number of packets lost on the Node B side (B_TxP[2]-B_TxP[1])-(B_RxP[2]-B_RxP[1]), B_TxP[2], B_RxP[2] correspond to the The statistical number of received data packets, B_TxP[1] and B_RxP[1] respectively correspond to the statistical number of data packets sent and received by Node B in the previous round.
  • the four timestamps shown in FIG. 15 can be obtained, so that the delay of the bidirectional link between node A and node B can be calculated.
  • the sending timestamp of the composite OAM message sent by the sender as T9
  • the reception timestamp of the composite OAM message received by the reflector as T10
  • the sending timestamp of the composite OAM message sent by the reflector as T11
  • the reception timestamp of the composite OAM message received by the sender As T12, the following delay measurements and/or delay jitter measurements can be achieved:
  • the message format of the composite OAM message shown in FIG. 15 may delete the statistics of data packets sent by the sender, the statistics of data packets received by the reflector, and the data sent by the reflector.
  • the four fields of the statistical number of packets and the statistical number of data packets received by the sender, the composite OAM message composed of the remaining fields in Figure 15 can only implement connectivity detection and delay/delay jitter measurement.
  • the four fields of the sending time stamp of the message and the receiving time stamp of the sending end receiving the composite OAM message, the composite OAM message composed of the remaining fields in Figure 15 can only implement connectivity detection and packet loss measurement.
  • the V field may not have the “Type” field for indicating the type of the composite OAM message and the “Performance Detection Type” field for indicating the type of performance detection.
  • the message of the composite OAM message may be generated based on the OAM message content 2 in FIG. 9 and the OAM message content 3 in FIG. 10 , that is, the OAM message content corresponding to the composite OAM message includes the support in FIG. In addition to the connectivity detection field and the four fields used to carry the timestamp, it also includes the sequence number of the composite OAM message sent by the sender and the sequence number of the composite OAM message sent by the reflector. In this case, the composite OAM message can be used to implement connectivity detection and three performance detections of packet loss, delay and delay jitter measurements.
  • the embodiment of the present application provides the unified OAM message shown in FIG. 7 , and integrates the functions of the OAM message.
  • the OAM message may specifically be in the message format shown in FIG. 8 to FIG. 15 .
  • the OAM message provided by this embodiment of the present application does not include the existing session identifiers used by various protocols in the prior art.
  • the OAM message shown in FIG. Compared with the MPLS Echo message, the OAM message shown in FIG. Compared with the BFD control message, the OAM message has deleted the My Discriminator and Your Discriminator fields.
  • the OAM message shown in Figure 12A has deleted the Session Identifier field, but the subsequent OAM message is encapsulated using a unified session identifier.
  • the IPv6 packet also includes the unified session identifier of the OAM message, and the unified session identifier can be used for multiplexing of the above four types of OAM messages, thereby simplifying the negotiation process of the session identifier in the OAM detection process.
  • the unified session identifier is used for The sender matches the OAM message sent by the sender with the OAM message received by the sender from the peer.
  • the Path Segment field defined in the IPv6 segment routing SRv6 network is used as the unified session identifier of the OAM message, which is not only used to identify an SRv6 path as the object of the OAM function, but also can be used by the sender to match the OAM message sent by the sender and send The OAM message received by the peer from the peer. That is to say, the unified session identifier can be used to associate or match the forward OAM message and the reverse OAM message, that is, the sender can quickly match the response message to the OAM message sent by the sender.
  • node 1 there are two nodes in the network, namely node 1 and node 1, and send IPv6 packets to node 3, wherein the IPv6 packet 1' sent by node 1 includes Path Segment1 in addition to OAM message 1'.
  • the IPv6 packet 2' sent by 2 also includes Path Segment2.
  • Node 3 responds to IPv6 packet 1' from node 1 and IPv6 packet 2' from node 2 respectively.
  • the node 1 If the received response message includes Path Segment1, it means that the response message is a response to the IPv6 message 1' sent by node 1, that is, Path Segment1 makes node 1 match the response message of OAM message 1'; If the response packet received by node 1 does not include Path Segment1, it indicates that the response packet is not a response to IPv6 packet 1' sent by node 1. Similarly, Path Segment2 can be used for node 2 to match the response message of OAM message 2' in IPv6 packet 2'.
  • implementing the embodiments of the present application provides a unified OAM message, realizes the integration of OAM functions, makes the OAM message corresponding to the connectivity detection function or the performance detection function more lightweight, and is conducive to reducing network bandwidth s expenses.
  • a unified session identifier is set for the above-mentioned OAM message implementing various functions, which can effectively simplify the negotiation process of the session identifier, reduce the consumption of network bandwidth, and improve the processing efficiency of the OAM message.
  • the OAM message defined above is carried in the IPv6 extension header, which can be a Destination Options Header (DoH), a Segment Routing Header (SRH) or a Hop-by-Hop Options header (Hop-by- hop Options Header), etc.
  • the IPv6 extension header may further include an associated channel (Associated Channel, ACH), and the OAM message may be carried in the ACH.
  • the OAM message may also be carried in a newly added extension header of the IPv6 packet, which is not specifically limited in this embodiment of the present application. Encapsulating the unified OAM message provided by the present application in the IPv6 extension header can effectively reduce the encapsulation depth of the OAM message and improve the processing efficiency of the OAM message.
  • OAM messages can be applied to different networking and tunnel scenarios, such as IPv6 segment routing (Segment Routing IPv6, SRv6), IPv6-based bit indexed replication (Bit Indexed Explicit Replication using IPv6 Data Plane, BIERv6), etc.
  • IPv6 segment routing Segment Routing IPv6, SRv6
  • IPv6-based bit indexed replication Bit Indexed Explicit Replication using IPv6 Data Plane, BIERv6
  • the encapsulation methods of the OAM messages provided by the embodiments of the present application in different application scenarios are described.
  • SRv6 refers to using the SR IPv6 data plane to transmit IPv6 packets.
  • the OAM message provided by the embodiment of the present application is encapsulated in the IPv6 extension header, which replaces the original UDP or TCP encapsulation format, and the original control plane processing is converted to the data plane processing, which can realize the lower end of the SRv6 tunnel scenario.
  • the packet encapsulation format of the original SRv6 includes: IPv6 header, SRH, DoH and IPv6 Packet Payload, wherein the IPv6 header includes source address, destination address and downlink
  • the identification of a header, SRH includes a segment identification list (Segment ID List, SID), a path segment (Path Segment) and an option class-length-value (Option TLV), DoH can be used to carry only the destination node of the packet to check.
  • the IPv6 packet payload is used to carry specific IPv6 data packets. It should be noted that both SRH and DoH can be referred to as IPv6 extension headers.
  • FIG. 16 is a schematic diagram of encapsulation of an OAM message in an SRv6 scenario provided by an embodiment of the present application.
  • the above-mentioned OAM message is located in the DoH.
  • the DoH is the next header next to the SRH, and the OAM message can be carried in one or more TLVs of the DOH.
  • the DoH can also include: Next Header field, Hdr Ext Len field, Option Type field and Option Lenth field , where the Next Header field is used to indicate the type of the next header following the DoH, the Hdr Ext Len field is used to indicate the length of the option, the Option Type field is used to indicate that the option type is OAM, and the Option Lenth field is used to indicate the option length .
  • the OAM message is the OAM message provided in this embodiment of the present application, and may specifically be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application.
  • Mode B OAM message is located in SRH
  • FIG. 17 is a schematic diagram of encapsulation of another OAM message in an SRv6 scenario provided by an embodiment of the present application.
  • the above OAM message is located in the IPv6 extension header SRH. Since the SRH can carry one or more Option TLVs, the OAM can be carried by one or more Option TLVs in the SRH.
  • the specific format of the OAM message may be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application.
  • Mode C The OAM message is carried in the associated channel ACH
  • FIG. 18 is a schematic diagram of encapsulation of another OAM message in an SRv6 scenario provided by an embodiment of the present application.
  • the OAM message is carried in the ACH.
  • the IPv6 extension header DoH includes ACH
  • the ACH includes an option type (Option Type) field and a channel type (Channel Type) field
  • the option type field indicates the general associated channel G-ACH
  • the channel type field indicates the general associated channel G-ACH.
  • the specific format of the OAM message may be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application. It should be noted that, for the meanings of the remaining fields in FIG. 18 , reference may be made to the description of the corresponding fields in the above-mentioned FIG. 16 , which will not be repeated here.
  • FIG. 19 is a schematic diagram of encapsulation of another OAM message in an SRv6 scenario provided by an embodiment of the present application.
  • the OAM message is carried in the ACH.
  • the IPv6 extension header SRH includes an ACH
  • the ACH is carried in one or more option TLVs in the SRH.
  • the ACH includes an option type (Option Type) field and a channel type (Channel Type) field.
  • the option type field indicates the general associated channel G-ACH
  • the channel type field indicates that the general associated channel G-ACH carries an OAM message, wherein the specific OAM message is
  • the format may be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application. It should be noted that, for the meanings of the remaining fields in FIG. 18 , reference may be made to the descriptions of the corresponding fields above, which will not be repeated here.
  • BIERv6 is a new type of multicast technology based on bit index display replication (or called bit index display replication), which implements stateless forwarding in the multicast domain. It utilizes the IPv6 extension header, IPv6 address reachability and its programmable space, and implements the BIER multicast architecture in the form of native IPv6, providing better multicast deployment capabilities and the ability to expand the ability to support subsequent native IPv6 features.
  • the OAM message provided by the embodiment of this application is encapsulated in the IPv6 extension header, which replaces the original UDP or TCP encapsulation format, and the original control plane processing is converted to the data plane processing, which can realize the lower end of the BIERv6 multicast scenario.
  • the original BIERv6 packet encapsulation format includes: IPv6 header, destination option header DoH and IP Multicast Packet Payload, wherein, DoH carries the bit index display copy BIER header, and the BIER header includes BIER Necessary information required for forwarding, for example, Bit Index Forwarding Table (BIFT), Bit Forwarding Router-id, etc. It should be noted that DoH is an IPv6 extension header.
  • FIG. 20 is a schematic diagram of encapsulation of another OAM message provided in an embodiment of the present application in a BIERv6 scenario.
  • the above OAM message is located in the IPv6 extension header DoH
  • the DoH includes the BIER header
  • the OAM message can be carried in one or more option TLVs after the BIER header in the DoH
  • the specific format of the OAM message can be the above Figure 8 -Any one in FIG. 15, which is not specifically limited in this embodiment of the present application.
  • the option type field in the TLV is directly used as the Message Type in the OAM message.
  • one option type field in the TLV is used to indicate OAM, and the other type field is used as the Message Type in the OAM message, which is not specifically limited in this embodiment of the present application.
  • the DoH specifically includes: Next Header field, Hdr Ext Len field, Option Type field, Option Lenth field and Non-MPLS BIER header (Non-MPLS BIER Header) , where the Next Header field is used to indicate the type of the next header following the DoH, the Hdr Ext Len field is used to indicate the length of the option, and the Option Type field is used to indicate that the option type is BIER Option (BIER Option)
  • BIER Option BIER Option
  • the Option Lenth field is used for To indicate the option length
  • the non-MPLS BIER header includes the following fields in addition to carrying the above OAM message:
  • BIFT-id BIFT identifier, indicating a specific Bit Index Forwarding Table (BIFT), BIFT stores the mapping relationship between the egress node and other nodes in the multicast domain;
  • TTL Time to live, indicating the number of hops for the message to be forwarded and processed by BIERv6. After each BIERv6 forwarding node, the TTL value is reduced by 1. When the TTL is 0, the message is discarded;
  • Nibble nibble
  • BSL Bitstring Length, bit string length
  • Entropy entropy, used for load balancing
  • OAM Operation and maintenance management identification
  • DSCP Differentiated Services Code Point
  • Proto the next-layer protocol identifier, used to identify the payload type behind the BIERv6 header;
  • BFIR-id bit forwarding router identifier
  • BitString Bit string used to identify the set of destination nodes of multicast packets. Each bit of the BitString field represents a BFER node.
  • BIFD-id, BFIR-id and Entropy in Figure 20 can uniquely identify a multicast stream, and can also be used as a unified session identifier for OAM messages, which is used by the sender to quickly match the above-mentioned messages sent by the sender. Response message for OAM message.
  • the application of the above OAM message in the BIERv6 multicast scenario is implemented based on the format shown in FIG. 20, and one or more of the end-to-end performance detection and connectivity detection in the BIERv6 multicast scenario can be implemented. kind.
  • FIG. 21 shows an OAM detection method provided by an embodiment of the present application, which is applied to a first device, where the first device is a transmitting end or an initiating end of OAM detection.
  • the first device may be Node A or Node B in FIG. 6 .
  • the method includes but is not limited to the following steps:
  • the first device obtains a first IPv6 packet, where an IPv6 extension header of the first IPv6 packet carries a first OAM message.
  • acquiring the first IPv6 packet by the first device may be that the first device generates the first IPv6 packet, and the IPv6 extension header of the first IPv6 packet carries the first OAM message, where the first OAM message includes Type T field and value V field, where the V field is used to carry the content of the first OAM message, and the T field is used to carry the type of the first OAM message.
  • the T field corresponds to the message type in FIG. 7
  • the V field corresponds to the OAM message content in FIG. 7 .
  • the first OAM message does not include protocol version information.
  • the protocol version information may be version numbers of various protocols involved in the OAM function.
  • the T field indicates that the first OAM message is an echo message.
  • the value of the T field when the value of the T field is a first value, it indicates that the first OAM message is an echo request message, and when the value of the T field is a second value, it indicates that the first OAM message is an echo reply message.
  • the value of the T field is the third value, it indicates that the type of the first OAM message is an echo message, and in this case, the specific type of the echo message is not distinguished.
  • the specific type of the echo message is identified by adding an identification field to the TLV field.
  • the first identification field is used to identify the echo message as an echo request message
  • the second identification field is used to identify the echo message as an echo reply message.
  • the representation mode of the identification field may be a bit mapping mode or a binary value value mode, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field.
  • the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field. It should be noted that the identification field corresponds to the "type" in FIG. 8 .
  • the V field when the first OAM message is an echo message, the V field further includes one or more of the following fields: a sequence number field, which is used to carry the echo message sent by the sender (ie, the first device). serial number; return code return codes field, wherein the return codes field is used to carry the response result of the reflection end to the echo message sent by the sending end (that is, the first device); type-length-value TLV field, reserved field and first Reply mode field, wherein the TLV field can be downstream detailed mapping TLV, filling TLV, etc.
  • the reserved field is used for function expansion, and the first reply mode field is used to indicate the way of responding to the echo message.
  • the serial number field corresponds to the serial number in FIG.
  • the return code field corresponds to the return code in FIG. 8
  • the first reply mode field corresponds to the reply mode in FIG. 8
  • the reserved field corresponds to the one in FIG. 8 .
  • the reserved bits of , the type-length-value TLV field corresponds to the type-length-value/sub-type-length-value in FIG. 8 .
  • the V field consists of the following fields: an identification field, used to indicate the type of the echo message; a sequence number field, used to carry the sequence number of the echo message ; Return code return codes field, wherein the return codes field is used to carry the response result of the reflection end to the echo message sent by the sender; the first reply mode field, the first reply mode field is used to indicate the way to respond to the echo message; type- length-value TLV field; and reserved field for function extension.
  • the message format corresponding to this embodiment is the message format shown in FIG. 8 .
  • the first OAM message when the first OAM message is an echo message, the first OAM message does not include protocol version information and timestamp information, for example, the protocol version information may be the version number of the MPLS echo protocol or the protocol of ICMPv6echo
  • the version number and the timestamp information may be, for example, the sending timestamp of the echo request message sent by the first device, the reception timestamp of the echo request message received by the reflector, and the like.
  • the first IPv6 packet may be the above-mentioned IPv6 packet 1, and the first OAM message is the above-mentioned OAM message 1.
  • the T field indicates that the first OAM message is an active connectivity detection message.
  • the V field when the first OAM message is an active connectivity detection message, the V field includes a first field, which is used to indicate the status of the active connectivity detection session established between the sender and the receiver; the second field , used to indicate the minimum sending interval Desired Min TX Interval of the active connectivity detection message sent by the sender; the third field is used to indicate the minimum receiving interval Required Min RX Interval of the active connectivity check message sent by the sender to the receiver; The fourth field is used to indicate the minimum receiving interval Required Min Echo RX Interval for the sender to receive the response message sent by the receiver; the fifth field is used to indicate the reason for the state change of the last session; the sixth field is used to provide the detection time multiplier , the detection time multiplier is used to calculate the detection time in the asynchronous mode; the seventh field includes the query request flag Demand, the polling flag Poll and the termination flag Final.
  • the first field corresponds to the local session state in FIG. 9
  • the second field corresponds to the minimum sending interval of the active connectivity detection message in FIG. 9
  • the third field corresponds to the active connectivity detection message in FIG. 9 .
  • the fourth field corresponds to the minimum receiving interval of the active connectivity echo message in FIG. 9
  • the fifth field corresponds to the diagnostic word in FIG. 9
  • the sixth field corresponds to the detection time multiplier in FIG. 9
  • the seventh field corresponds to the flag bit in FIG. 9 .
  • the V field when the first OAM message is an active connectivity detection message, the V field further includes a reserved field, and the reserved field is used for function expansion. It should be noted that the reserved field corresponds to the reserved bits in Fig. 9, and the flag field corresponds to the flag bits in Fig. 9.
  • the first IPv6 message may also be the foregoing IPv6 message 3, and the first OAM message is the foregoing OAM message 3.
  • the first OAM message when the first OAM message is an active connectivity detection message, the first OAM message does not include the protocol version information, the local identifier and the remote identifier.
  • the protocol version information may be the version of the BFD protocol number
  • the local identifier is the My Discriminator field of the BFD session
  • the remote identifier is the Your Discriminator field of the BFD session.
  • the T field indicates that the first OAM message is a performance detection message.
  • the V field when the first OAM message is a performance detection message, the V field includes: an eighth field, which is used to carry the sequence number of the first performance detection message sent by the sender; the ninth field: used to carry the reflection The sequence number of the second performance detection message sent by the terminal, the second performance detection message is a response to the first performance detection message; the tenth field is used to carry the sending timestamp of the first performance detection message sent by the sender; the eleventh field field, which is used to carry the reception timestamp of the first performance detection message received by the reflector; the twelfth field is used to carry the transmission timestamp of the second performance detection message sent by the reflector; the thirteenth field is used to carry the transmission time stamp of the sender The reception timestamp of the second performance detection message.
  • the eighth field corresponds to the sequence number of the performance detection message sent by the sender in FIG. 10
  • the ninth field corresponds to the sequence number of the performance detection message sent by the reflector in FIG. 10
  • the tenth field corresponds to the sequence number of the performance detection message sent by the reflector in FIG. 10 corresponds to the sending time stamp of the performance detection message sent by the transmitting end
  • the eleventh field corresponds to the receiving time stamp of the receiving performance detection message of the reflecting end in Figure 10
  • the twelfth field corresponds to the sending performance detection of the reflecting end in Figure 10.
  • the thirteenth field corresponds to the receiving timestamp of the sending end receiving performance detection message in FIG. 10 .
  • the V field further includes: a padding variable-length field, which corresponds to the padding variable-length field in FIG. 10 .
  • the first IPv6 message may also be the foregoing IPv6 message 5, and the first OAM message is the foregoing OAM message 5.
  • the T field indicates that the first OAM message is a performance detection message
  • the T field is a fourth value
  • it indicates that the performance detection message is used for packet loss detection
  • the T field is a fifth value
  • the value of the T field is the sixth value, it indicates that the performance detection message is used for packet loss delay detection.
  • the T field may also only indicate that the first OAM message is a performance detection message, and the specific function of the performance detection message is identified by adding an identification field to the TLV field.
  • the third identification field is used to indicate that the performance detection message is used for packet loss detection
  • the fourth identification field is used to indicate that the performance detection message is used for delay detection
  • the fifth identification field is used to indicate that the performance detection message is used for packet loss delay detection.
  • the representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field.
  • the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field. It should be noted that the identification field in this embodiment corresponds to the "performance detection type" field in FIGS. 12A-12C .
  • the V field includes at least one sub-TLV field, the at least one sub-TLV field includes a first sub-TLV, and the first sub-TLV indicates a performance detection message for packet loss detection; the second sub-TLV, the second sub-TLV uses The third sub-TLV is used to indicate that the performance detection message is used for delay detection or delay jitter measurement; the third sub-TLV is used to indicate the performance detection message for packet loss delay detection.
  • the V field further includes: a fourteenth field, which is used to carry the statistical quantity of the first data packet sent by the sender; a fifteenth field, which is used to carry The statistical quantity of the first data packet received by the reflection end; the sixteenth field is used to carry the statistical quantity of the second data packet sent by the reflection terminal, and the second data packet is a response to the first data packet; The seventeenth field is used to carry the statistical quantity of the second data packet received by the sender.
  • the fourteenth field corresponds to the statistics of data packets sent by the sender in FIG. 12A or FIG. 12C
  • the fifteenth field corresponds to the statistics of data packets received by the reflector in FIG.
  • the sixteenth field corresponds to the statistics of the data packets sent by the reflecting end in Figure 12A or Figure 12C
  • the seventeenth field corresponds to the statistics of the data packets received by the transmitting end in Figure 12A or Figure 12C quantity corresponds.
  • the message format corresponding to this embodiment corresponds to the message format shown in FIG. 12A .
  • the first IPv6 message may also be the foregoing IPv6 message 7, and the first OAM message is the foregoing OAM message 7.
  • the V field further includes: an eighteenth field, which is used to carry the sending timestamp of the third performance detection message sent by the sender; the nineteenth field , which is used to carry the receiving timestamp of the third performance detection message received by the reflector; the twentieth field is used to carry the sending timestamp of the fourth performance detection message sent by the reflector.
  • the fourth performance detection message is a response to the third performance detection message. response; the twenty-first field is used to carry the receiving timestamp when the sender receives the fourth performance detection message.
  • the eighteenth field corresponds to the sending timestamp of the performance detection message sent by the sender in FIG. 12B or FIG.
  • the nineteenth field corresponds to the receiving time of the performance detection message received by the reflector in FIG. 12B or FIG. 12C .
  • the twentieth field corresponds to the sending timestamp of the performance detection message sent by the reflector in FIG. 12B or FIG. 12C
  • the twenty-first field corresponds to the receiving time of the performance detection message received by the transmitter in FIG. 12B or 12C corresponding to the stamp.
  • the message format corresponding to this embodiment corresponds to the message format shown in FIG. 12B .
  • the first IPv6 message may also be the foregoing IPv6 message 9, and the first OAM message is the foregoing OAM message 9.
  • the V field when the performance detection message is used for packet loss delay detection, the V field includes the contents of the above-mentioned eight fields of the fourteenth field to the twenty-first field, and this embodiment corresponds to the above-mentioned FIG. 12C .
  • the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  • at least two OAM functions include connectivity detection and performance measurement.
  • the V field when the first OAM message is a first composite OAM message, the V field includes a first identifier and a second identifier, the first identifier is used to indicate that the first composite OAM message is used for the first OAM detection, and the first identifier is used for the first OAM detection.
  • the second identifier is used to indicate that the first composite OAM message is used for the second OAM detection.
  • the first OAM detection is connectivity detection
  • the second OAM detection is performance detection.
  • the representation manner of the first identifier and the second identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • the first identification and the second identification may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the first identifier and the second identifier.
  • the first composite OAM message includes first indication information, and the first indication information indicates that the first composite OAM message is a request message or a response message.
  • the first indication information may be a T field, when the T field takes the seventh value, it indicates that the first composite OAM message is a request message, and when the T field takes the eighth value, it indicates that the first composite OAM message is a response message;
  • the first indication information may also be a newly added first detection flag, and the first detection flag takes a first value, indicating that the first composite OAM message is a In the request message, the first detection flag takes a second value, indicating that the first composite OAM message is a response message.
  • the representation manner of the first detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the first detection identifier in the TLV field.
  • the above-mentioned first detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned first detection identifier. It should be noted that the first detection identifier may correspond to the "type" field in FIG. 13 .
  • the first composite OAM message further includes second indication information, where the second indication information indicates a specific type of performance detection.
  • the third indication information may be a T field.
  • the T field takes the ninth value, it indicates that the type of performance detection is packet loss detection.
  • the T field takes the tenth value, it indicates that the type of performance detection is delay detection or delay jitter.
  • the second indication information may also be a new The added second detection flag, where the second detection flag takes a first value, indicates that the type of performance detection is packet loss detection, the second detection flag takes a second value, and indicates that the type of performance detection is delay detection or delay jitter measurement, The second detection flag takes a third value, indicating that the type of performance detection is packet loss delay detection.
  • the representation manner of the second detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application.
  • This application does not specifically limit the bearing manner of the second detection identifier in the TLV field.
  • the above-mentioned second detection identifier may be carried in the V field.
  • reserved bits may also be set in the T field to carry the above-mentioned second detection identifier.
  • the second detection identifier may correspond to the "performance detection type" field in FIG. 13 .
  • the field used for connectivity detection in the V field of the first composite OAM message further includes one or more of the following fields: a sequence number field, which is used to carry the first composite data sent by the sender (ie, the first device).
  • the sequence number of the OAM message ie, the first device.
  • the return code return codes field wherein the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender
  • the length-value TLV field for example, the TLV field may be the downstream detailed mapping TLV, the reserved field is used for function extension, and the second reply mode field is used to indicate the way of replying to the first composite OAM message.
  • serial number field corresponds to the serial number in FIG. 13 or FIG. 14
  • return code field corresponds to the return code in FIG. 13 or FIG. 14
  • reserved field corresponds to the reserved bit in FIG. 13 or FIG. 14
  • second reply mode field corresponds to the reply mode in FIG. 13 or FIG. 14
  • type-length-value TLV field corresponds to the type-length-value/sub-type-length-value in FIG. 13 or FIG. 14 .
  • the fields used for performance detection in the V field include: the twenty-second field: used to carry the sequence number of the second composite OAM message sent by the reflection end, the first The second composite OAM message is a response to the first composite OAM message; the 23rd field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the 24th field is used to carry the first composite OAM message received by the reflector The receiving timestamp of the composite OAM message; the twenty-fifth field is used to carry the sending timestamp of the second composite OAM message sent by the reflector; the twenty-sixth field is used to carry the receiving time of the sending end receiving the second composite OAM message stamp.
  • the V field also includes a reserved field for function extension.
  • the 22nd field corresponds to the sequence number of the composite OAM message sent by the reflector in FIG. 14
  • the 23rd field corresponds to the sending timestamp of the composite OAM message sent by the sender in FIG. 14
  • the first The twenty-fourth field corresponds to the receiving timestamp of the composite OAM message received by the reflecting end in FIG. 14
  • the twenty-fifth field corresponds to the sending timestamp of the composite OAM message sent by the reflecting end in FIG. 14
  • the twenty-sixth field is the same as that shown in FIG. 14 corresponds to the receiving timestamp of the composite OAM message received by the sender.
  • the first IPv6 packet may also be the above-mentioned IPv6 packet 11, and the first OAM message is the above-mentioned OAM message 11.
  • the V field when the second detection flag indicates that the performance detection is packet loss detection, includes: a twenty-seventh field, which is used to indicate the statistical quantity of the third data packet sent by the sender; a twenty-eighth field , which is used to indicate the statistical quantity of the third data packet received by the reflection end; the twenty-ninth field is used to indicate the statistical quantity of the fourth data packet sent by the reflection terminal.
  • the response of the message; the thirtieth field is used to indicate the statistical quantity of the fourth data message received by the sender.
  • the V field when the second detection identifier indicates that the performance detection is delay detection or delay jitter measurement, the V field includes: a thirty-first field, which is used to carry the sending timestamp of the first composite OAM message sent by the sending end; The thirty-second field is used to carry the receiving timestamp of the first composite OAM message received by the reflector; the thirty-third field is used to carry the sending timestamp of the second composite OAM message sent by the reflector.
  • the second composite OAM message is The response to the first composite OAM message; the thirty-fourth field is used to carry the receiving timestamp when the sender receives the second composite OAM message.
  • the V field when the second detection flag indicates that the performance detection is packet loss delay detection, the V field includes the above-mentioned eight fields of the twenty-seventh field to the thirty-fourth field.
  • the V field is composed of the following fields: the thirty-fifth field is used to indicate the composite OAM detection session established between the sender and the receiver The thirty-sixth field is used to indicate the minimum sending interval for the sender to send the first composite OAM message; the thirty-seventh field is used to indicate the minimum receiving interval for the sender to receive the second composite OAM message sent by the receiver ; The thirty-eighth field is used to indicate the minimum receiving interval for the sender to receive the response message sent by the receiver; the thirty-ninth field is used to indicate the reason for the state change of the last session; the fortieth field is used to provide the detection time Multiplier, the detection time multiplier is used to calculate the detection time in the asynchronous mode; the forty-first field, the seventh field includes the query request flag Demand, the polling flag Poll and the termination flag Final; the forty-second field is used for bears the statistical quantity of the fifth data packet sent
  • the thirty-fifth field corresponds to the local session state in FIG. 15
  • the thirty-sixth field corresponds to the minimum sending interval of the composite OAM message in FIG. 15
  • the thirty-seventh field corresponds to the composite OAM message in FIG. 15 .
  • the minimum reception interval of the OAM message corresponds to the minimum reception interval of the OAM message
  • the thirty-eighth field corresponds to the minimum reception interval of the composite OAM echo message in Figure 15
  • the thirty-ninth field corresponds to the diagnostic word in Figure 15
  • the fortieth field corresponds to the corresponding to the detection time multiplier of 15 corresponds to the statistical number of data packets received by the reflecting end
  • the forty-fourth field corresponds to the statistical number of data packets sent by the reflecting end in Figure 15
  • the forty-fifth field corresponds to the data packet received by the transmitting end in Figure 15
  • the forty-sixth field corresponds to the sending time stamp of the composite OAM message sent by the sender in Figure 15
  • the forty-seventh field corresponds to the receiving time of the composite OAM message received by the reflector in Figure 15
  • the forty-eighth field corresponds to the sending timestamp of the composite OAM message sent by the reflector in FIG. 15
  • the forty-ninth field correspond
  • the first IPv6 packet may also be the above-mentioned IPv6 packet 13, and the first OAM message is the above-mentioned OAM message 13.
  • the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sending end;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end;
  • Two reply mode fields the second reply mode field is used to indicate the way of replying to the first composite OAM message; type-length-value TLV field; reserved field for function extension; Six fields.
  • the message format corresponding to this embodiment corresponds to the message format shown in FIG. 14 .
  • the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sending end;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end;
  • Two reply mode fields the second reply mode field is used to indicate the way of responding to the first composite OAM message; the type-length-value TLV field; the reserved field is used for function extension;
  • the second detection flag is used to indicate that the performance detection is packet loss detection; and the above-mentioned twenty-seventh to thirtieth fields.
  • the message format corresponding to this embodiment corresponds to one of the message formats shown in FIG. 13 (that is, the performance detection type is packet loss detection).
  • the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sending end;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end;
  • Two reply mode fields the second reply mode field is used to indicate the way of responding to the first composite OAM message; the type-length-value TLV field; the reserved field is used for function extension;
  • the second detection flag is used to indicate that the performance detection is Delay detection; and the above-mentioned thirty-first field to thirty-fourth field.
  • the message format corresponding to this embodiment corresponds to one of the message formats shown in FIG. 13 (that is, the performance detection type is delay detection or delay jitter measurement).
  • the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ;
  • the serial number field is used to carry the serial number of the first composite OAM message sent by the sending end;
  • the return code return codes field the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end;
  • Two reply mode fields the second reply mode field is used to indicate the way of responding to the first composite OAM message; the type-length-value TLV field; the reserved field is used for function extension;
  • the second detection flag is used to indicate that the performance detection is packet loss delay detection; and the aforementioned twenty-seventh to thirty-fourth fields.
  • the message format corresponding to this embodiment corresponds to one of the message formats shown in FIG. 13 (that is, the performance detection type is packet loss delay detection).
  • the first IPv6 packet further includes a unified session identifier of the first OAM message, and the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
  • the unified session identifier may be the Path Segment field in FIG. 16-FIG. 19, or may be composed of the BIFD-id, BFIR-id, and Entropy fields in FIG. 20, which are not specifically limited in this embodiment of the present application.
  • the first device sends a first IPv6 packet.
  • the first device sends the first IPv6 packet, and the IPv6 extension header of the first IPv6 packet carries the first OAM message.
  • the first IPv6 packet may be IPv6 packet 1, IPv6 packet 3, IPv6 packet 5, IPv6 packet 7, IPv6 packet 9,
  • the first OAM message carried in the first IPv6 packet may refer to the relevant description of the corresponding packet above, which will not be repeated here.
  • the IPv6 extension header is the destination option header DoH.
  • DoH the destination option header
  • the IPv6 extension header is a segment routing header SRH.
  • SRH segment routing header
  • the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  • the associated channel ACH includes an option type field and a channel type field, wherein the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
  • the option type field indicates the associated channel
  • the channel type field indicates that the channel type carried by the ACH is an OAM channel
  • the OAM channel is used to carry the first OAM message.
  • the IPv6 extension header includes a bit index indicating duplicate BIER header.
  • bit index indicating duplicate BIER header For details of this embodiment, reference may be made to the related description in FIG. 20 .
  • the OAM message is uniformly expressed, the integration of the OAM function is realized, the OAM message is more lightweight, and the OAM message can be used for connectivity detection/verification and performance detection functions. at least one.
  • the encapsulation process of the OAM message is simplified, the OAM message is processed on the data plane, the processing efficiency of the OAM message is improved, and the network bandwidth overhead is reduced.
  • FIG. 22 shows an OAM detection method provided by an embodiment of the present application, which is applied to a second device, and the second device may be a receiving end or a reflecting end. It should be noted that the embodiment shown in FIG. 22 may be independent of the embodiment shown in FIG. 21 , or may be a supplement to the embodiment shown in FIG. 21 .
  • the method includes but is not limited to the following steps:
  • the second device receives a second IPv6 packet, where the second IPv6 packet includes a second OAM message.
  • the second IPv6 message is the first IPv6 message in S101 in FIG. 21
  • the second OAM message is the first OAM message in S101 in FIG. 21
  • the description of the second IPv6 message For the description of the first IPv6 message in S101, reference may be made to the description of the first OAM message in S101. For the brevity of the description, details are not repeated here.
  • the second IPv6 packet may be the IPv6 packet 1, the IPv6 packet 3, the IPv6 packet 5, the IPv6 packet 7, the IPv6 packet 9, the IPv6 packet 11 and the IPv6 packet in the above embodiment
  • the second OAM message is a corresponding one of OAM message 1, OAM message 3, OAM message 5, OAM message 7, OAM message 9, OAM message 11 and OAM message 13.
  • the second IPv6 packet is IPv6 packet 1
  • the second OAM message is OAM message 1.
  • the second device obtains the first IPv6 packet according to the second IPv6 packet, where the IPv6 extension header of the first IPv6 packet carries the first OAM message.
  • the second device after receiving the second IPv6 packet, the second device generates the first IPv6 packet according to the second IPv6 packet, where the first IPv6 packet carries the first OAM message, and the first OAM message is a pair of response to the second OAM message.
  • the second OAM message carried in the second IPv6 packet is an echo request message
  • the second device generates the first IPv6 packet according to the second IPv6 packet
  • the first IPv6 packet carried in the first IPv6 packet is the first OAM
  • the message is a response to the second OAM message, which is an echo response message.
  • the second OAM message carried in the second IPv6 packet is the first composite OAM message
  • the second device generates the first IPv6 packet according to the second IPv6 packet
  • the first IPv6 packet carried in the first IPv6 packet is the first IPv6 packet.
  • the OAM message is a response to the second OAM message.
  • the second IPv6 packet is the IPv6 packet 1 in the foregoing embodiment
  • the first IPv6 packet is the IPv6 packet 2 in the foregoing embodiment
  • the first OAM message is the OAM message 2 in the foregoing embodiment.
  • the first IPv6 packet is the IPv6 packet 4 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 4.
  • the first IPv6 packet is the IPv6 packet 6 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 6.
  • the first IPv6 packet is the IPv6 packet 8 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 8.
  • the second IPv6 packet is the IPv6 packet 9 in the foregoing embodiment
  • the first IPv6 packet is the IPv6 packet 10 in the foregoing embodiment
  • the first OAM message is the OAM message 10 in the foregoing embodiment.
  • the second IPv6 packet is the IPv6 packet 11 in the foregoing embodiment
  • the first IPv6 packet is the IPv6 packet 12 in the foregoing embodiment
  • the first OAM message is the OAM message 12 in the foregoing embodiment.
  • the first IPv6 packet is the IPv6 packet 14 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 14.
  • the second device sends the first IPv6 packet.
  • the second device sends the first IPv6 packet, and the first IPv6 packet carries the first OAM message.
  • the first IPv6 packet may be IPv6 packet 2, IPv6 packet 4, IPv6 packet 6, IPv6 packet 8, IPv6 packet 10, IPv6 packet 12, and IPv6 packet in the foregoing embodiment
  • the first OAM message is a corresponding one of OAM message 2, OAM message 4, OAM message 6, OAM message 8, OAM message 10, OAM message 12 and OAM message 14.
  • the IPv6 extension header is the destination option header DoH.
  • DoH the destination option header
  • the IPv6 extension header is a segment routing header SRH.
  • SRH segment routing header
  • the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  • the associated channel ACH includes an option type field and a channel type field, wherein the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
  • the option type field indicates the associated channel
  • the channel type field indicates that the channel type carried by the ACH is an OAM channel
  • the OAM channel is used to carry the first OAM message.
  • the IPv6 extension header includes a bit index indicating duplicate BIER header.
  • bit index indicating duplicate BIER header For details of this embodiment, reference may be made to the related description in FIG. 20 .
  • the first IPv6 packet further includes a unified session identifier of the first OAM message, where the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
  • the unified session identifier may be the Path Segment field in FIG. 16-FIG. 19, or may be composed of the BIFD-id, BFIR-id, and Entropy fields in FIG. 20, which is not specifically limited in this embodiment of the present application.
  • the OAM message is uniformly expressed, the integration of the OAM function is realized, the OAM message is more lightweight, and the OAM message can be used for connectivity detection/verification and performance detection functions. at least one.
  • the encapsulation process of the OAM message is simplified, the OAM message is processed on the data plane, the processing efficiency of the OAM message is improved, and the network bandwidth overhead is reduced.
  • FIG. 23 is a schematic structural diagram of an apparatus 30 provided by an embodiment of the present application, and the apparatus 30 can be used to implement the methods described in the above embodiments of the present application.
  • the apparatus 30 may be a network device such as a router, a switch, or the like, or may be a component for the above-mentioned network device that can implement the above-mentioned method, such as a single board, a chip, a line card, and the like.
  • Apparatus 30 includes at least one processor 110 , memory 111 and transceiver 112 .
  • the device 30 may be the first device in FIG. 21 or the second device in FIG. 22 , which is not specifically limited in this application.
  • the processor 110 is configured to generate a first IPv6 packet, where the IPv6 extension header of the first IPv6 packet carries the first OAM message.
  • the processor 110 may be composed of one or more processors, such as a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP for short), or a combination of a CPU and a hardware chip.
  • the above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof.
  • the above-mentioned PLD can be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a field programmable gate array (Field-Programmable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.
  • CPLD Complex Programmable Logic Device
  • FPGA Field-Programmable Gate Array
  • GAL General array logic
  • the transceiver 112 may be, for example, a communication interface or an optical module or the like.
  • the transceiver 112 is configured to send the first IPv6 message, in this case, the first IPv6 message is a request.
  • the transceiver 112 is used to receive the second IPv6 message, and the second IPv6 message includes the second OAM message,
  • the first OAM message carried in the first IPv6 packet is a response to the second OAM message.
  • the memory 111 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be a random access memory (RAM) or can store information and instructions. Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto.
  • the memory 111 may exist independently, or may be integrated with the processor 110 . The number of memory 111 may be one or more than one.
  • the memory 111 stores a processing unit and a transceiver unit, wherein the transceiver unit is used to store the transceiver 112 to perform the above operations, for example, programs and data required by S102, S201 or S203, and the processing unit is used to store the processor 110 to perform the above operations. , for example, programs and data required for S101 or S202.
  • the apparatus 30 may correspond to the transmitting end in the foregoing method embodiment and the first apparatus in the embodiment shown in FIG. 21 , and each module in the apparatus 30 may be used to implement each step in the embodiment shown in FIG. 21 . , and the specific details can be found in the relevant description of the above-mentioned embodiment in FIG. 21 , which is not repeated here for brevity.
  • the device 30 may correspond to the reflection end in the above method embodiment and the second device in the embodiment shown in FIG. 22 , and each module in the device 30 may be used to implement each step in the embodiment shown in FIG. 22 . , and the specific details can be found in the relevant description of the above-mentioned embodiment in FIG. 22 , which is not repeated here for brevity.
  • FIG. 24 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application.
  • the apparatus 41 includes a processing unit 411 and a transceiver unit 412 .
  • the transceiving unit 412 is configured to perform the transceiving-related operations involved in the above method embodiments of the present application
  • the processing unit 411 is configured to perform operations other than the transceiving-related operations involved in the above-mentioned method embodiments of the present application.
  • the device 41 can be implemented by hardware, software or a combination of software and hardware.
  • the processing unit 411 is configured to obtain the first IPv6 packet, the IPv6 extension header of the first IPv6 packet carries the first OAM message, the first OAM message includes a type T field and a value V field, and the T field indicates the first OAM message.
  • the type of the OAM message, and the V field carries the content of the first OAM message;
  • the transceiver unit 412 is configured to send the first IPv6 message.
  • the transceiver unit 412 is configured to receive the second IPv6 packet, and the second IPv6 packet carries the second OAM message; the processing unit 411 obtains the first IPv6 packet according to the second IPv6 packet, the first IPv6 packet.
  • the IPv6 extension header of the IPv6 extension carries the first OAM message, and the first OAM message is a response to the second OAM message; the transceiver unit 412 is further configured to send the first IPv6 message.
  • Each functional module of the apparatus 41 can be used to implement the method described in the embodiment of FIG. 21 or the embodiment of FIG. 22 .
  • the processing unit 411 can be used to execute S101, and the transceiver unit 412 can be used to execute S102.
  • the processing unit 411 can be used to execute S202, and the transceiver unit 412 can be used to execute S201 and S203.
  • the embodiment of the present application also provides a system for OAM detection, the system includes a sending end and a receiving end.
  • the communication system is used to execute the methods described in the above embodiments of the present application.
  • the sending end and the reflecting end described in this application may be network devices such as routers and switches, or may be components applied to the above network devices that can execute corresponding method steps, such as single boards, line cards, chips, and the like.
  • the sending end is used to send the first IPv6 packet
  • the IPv6 extension header of the first IPv6 packet carries the first OAM message
  • the first OAM message includes a type T field and a value V field
  • the T field indicates Type of the first OAM message
  • the V field carries the content of the first OAM message
  • the receiving end is used to receive the first IPv6 message, obtain the second IPv6 message according to the first IPv6 message, and send the second IPv6 message to the sending end
  • the second IPv6 packet includes a second OAM message
  • the second OAM message is a response to the first OAM message.
  • the first IPv6 packet is the IPv6 packet 1 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 1
  • the second IPv6 packet is the IPv6 packet 2 in the above-mentioned embodiment
  • the second OAM message is the OAM message 2 in the above.
  • the first IPv6 packet is the IPv6 packet 3 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 3
  • the second IPv6 packet is the IPv6 packet 4 in the above-mentioned embodiment
  • the second OAM message is the OAM message 4 in the above.
  • the first IPv6 packet is the IPv6 packet 5 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 5
  • the second IPv6 packet is the IPv6 packet 6 in the above-mentioned embodiment
  • the second OAM message is the OAM message 6 in the above.
  • the first IPv6 packet is the IPv6 packet 7 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 7
  • the second IPv6 packet is the IPv6 packet 8 in the above-mentioned embodiment
  • the second OAM message is the OAM message 8 in the above.
  • the first IPv6 packet is the IPv6 packet 9 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 9
  • the second IPv6 packet is the IPv6 packet 10 in the above-mentioned embodiment
  • the second OAM message is the OAM message 10 mentioned above.
  • the first IPv6 packet is the IPv6 packet 11 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 11
  • the second IPv6 packet is the IPv6 packet 12 in the above-mentioned embodiment
  • the second OAM message is the OAM message 12 in the above.
  • the first IPv6 packet is the IPv6 packet 13 in the above-mentioned embodiment
  • the first OAM message is the above-mentioned OAM message 13
  • the second IPv6 packet is the IPv6 packet 14 in the above-mentioned embodiment
  • the second OAM message is the OAM message 14 mentioned above.
  • the sending end may be the first device shown in FIG. 21, and the receiving end may be the second device shown in FIG. 22.
  • the first IPv6 packet sent by the sending end is the method shown in FIG. 21.
  • the second IPv6 message sent by the receiving end is the first IPv6 message in the method embodiment of FIG. 22.
  • the IPv6 extension header is the destination option header DoH.
  • DoH the destination option header
  • the IPv6 extension header is a segment routing header SRH.
  • SRH segment routing header
  • the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  • the associated channel ACH includes an option type field and a channel type field, wherein the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
  • the option type field indicates the associated channel
  • the channel type field indicates that the channel type carried by the ACH is an OAM channel
  • the OAM channel is used to carry the first OAM message.
  • the IPv6 extension header includes a bit index indicating duplicate BIER header.
  • bit index indicating duplicate BIER header For details of this embodiment, reference may be made to the related description in FIG. 20 .
  • the first IPv6 packet further includes a unified session identifier of the first OAM message, where the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
  • the unified session identifier may be the Path Segment field in FIG. 16-FIG. 19, or may be composed of the BIFD-id, BFIR-id, and Entropy fields in FIG. 20, which is not specifically limited in this embodiment of the present application.
  • the storage medium includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory ( Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
  • Read-Only Memory Read-Only Memory
  • RAM Random Access Memory
  • PROM Programmable Read-only Memory
  • PROM Programmable Read-only Memory
  • EPROM Erasable Programmable Read Only Memory
  • OTPROM One-time Programmable Read-Only Memory
  • EEPROM Electronically-Erasable Programmable Read-Only Memory
  • CD-ROM Compact Disc Read-Only Memory
  • the technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or the whole or part of the technical solution.
  • the computer program product is stored in a storage medium, including a number of instructions for So that a device (which may be a personal computer, a server, or a network device, a robot, a single-chip microcomputer, a chip, a robot, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application.

Landscapes

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

Abstract

The present application discloses a method and apparatus for operation administration and maintenance management (OAM) detection, the method comprising: obtaining a first IPv6 message, the IPv6 extension header of the first IPv6 message carrying a first OAM message, the first OAM message comprising a type T field and a value V field, the T field indicating the type of the first OAM message, and the V field bearing the content of the first OAM message; and sending the first IPv6 message. By implementing the present application, data plane processing of an OAM message can be achieved, and the efficiency of processing OAM messages is improved.

Description

一种操作维护管理OAM检测方法及装置A kind of operation maintenance management OAM detection method and device
本申请要求于2021年04月21日提交中国知识产权局、申请号为202110431348.6、申请名称为“一种通信方法,设备和***”的中国专利申请的优先权,以及于2021年06月11日提交中国知识产权局、申请号为202110656611.1、申请名称为“一种操作维护管理OAM检测方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on April 21, 2021 with the application number 202110431348.6 and the application title is "a communication method, device and system", and filed on June 11, 2021 The priority of the Chinese patent application filed with the China Intellectual Property Office with the application number of 202110656611.1 and the application title of "An OAM Detection Method and Device for Operation, Maintenance and Management", the entire contents of which are incorporated in this application by reference.
技术领域technical field
本申请涉及通信领域,尤其涉及一种操作维护管理OAM检测方法及装置。The present application relates to the field of communications, and in particular, to an OAM detection method and device for operation maintenance management.
背景技术Background technique
操作维护管理(Operation Administration and Maintenance,OAM)是一种监控网络故障的工具,其主要功能有:链路性能监测(例如,丢包、时延等)、连通性检测等。用户通过在两个点到点连接的设备上启用以太网OAM功能,可以监控这两台设备之间的链路状态。Operation Administration and Maintenance (OAM) is a tool for monitoring network faults. Its main functions are: link performance monitoring (for example, packet loss, delay, etc.), connectivity detection, etc. By enabling the Ethernet OAM function on two point-to-point connected devices, users can monitor the link status between the two devices.
OAM技术涉及连通性检测(Continuity Check,CC)/连通性验证(Continuity Verification,CV)和性能检测(Performance Measurement,PM),现有OAM技术的实现需要多种协议,例如,用于CC的有多协议标签交换(Multiprotocol Label Switching,MPLS)Ping协议和双向转发检测(Bidirectional Forwarding Detection,BFD)协议,用于PM的双向主动测量(Two-Way Active Measurement Protocol,TWAMP)协议等。不同的协议具有不同的消息格式、会话标识、报文封装格式等,使得OAM技术的使用过程存在协议分散复杂、报文封装深导致消息处理效率低等缺点。OAM technology involves Continuity Check (CC)/Continuity Verification (CV) and Performance Measurement (PM). The implementation of existing OAM technology requires multiple protocols. Multiprotocol Label Switching (MPLS) Ping protocol and Bidirectional Forwarding Detection (BFD) protocol, Two-Way Active Measurement Protocol (TWAMP) protocol for PM, etc. Different protocols have different message formats, session identifiers, message encapsulation formats, etc., which make the use of OAM technology have disadvantages such as protocol dispersion and complexity, and deep message encapsulation leading to low message processing efficiency.
发明内容SUMMARY OF THE INVENTION
本申请实施例公开了一种操作维护管理OAM检测方法和装置,能够实现OAM消息的数据面处理,提高OAM消息的处理效率。The embodiments of the present application disclose an OAM detection method and device for operation, maintenance and management, which can realize data plane processing of OAM messages and improve the processing efficiency of OAM messages.
第一方面,本申请实施例提供了一种操作维护管理OAM检测方法,该方法包括:获取第一IPV6报文,第一IPV6报文的IPV6扩展头携带第一OAM消息,第一OAM消息包括类型T字段和值V字段,其中,V字段用于承载第一OAM消息的内容,T字段用于指示第一OAM消息的类型;发送第一IPV6报文。In a first aspect, an embodiment of the present application provides an OAM detection method for operation, maintenance and management. The method includes: acquiring a first IPV6 packet, where an IPv6 extension header of the first IPV6 packet carries a first OAM message, and the first OAM message includes Type T field and value V field, where the V field is used to carry the content of the first OAM message, and the T field is used to indicate the type of the first OAM message; the first IPV6 message is sent.
其中,OAM消息是一种操作维护管理消息,OAM消息可用于实现网络中任意两节点之间的性能测量和连通性检测功能中的一种或多种。上述方法中,通过IPV6扩展头携带OAM消息,实现OAM消息在数据面处理,提高了OAM消息的处理效率。另外,OAM消息中的T字段用于指示OAM消息的类型以及V字段用于承载OAM消息的内容,也就是说,对OAM消息的各种功能进行了整合,实现OAM消息的统一。The OAM message is an operation, maintenance and management message, and the OAM message can be used to implement one or more functions of performance measurement and connectivity detection between any two nodes in the network. In the above method, the OAM message is carried by the IPV6 extension header, so that the OAM message is processed on the data plane, and the processing efficiency of the OAM message is improved. In addition, the T field in the OAM message is used to indicate the type of the OAM message and the V field is used to carry the content of the OAM message, that is, various functions of the OAM message are integrated to realize the unification of the OAM message.
可选地,第一OAM消息不包括协议版本信息。Optionally, the first OAM message does not include protocol version information.
在现有技术中,基于不同协议的OAM检测报文,都分别携带各自的协议版本信息,协议分散复杂,报文封装深导致消息处理效率低,同时,网络设备需要维护多种协议,也增加了维护的难度。而根据本申请,由于采用了统一的OAM消息格式,因此在第一OAM消息 中无需包括协议版本信息,因此可有效简化协议封装,设备无需支持多种协议版本信息的解析,将多种协议统一到网络层上处理,无需维护多个协议,大大降低了对设备的要求。In the prior art, OAM detection packets based on different protocols all carry their own protocol version information, the protocols are scattered and complex, and the packet encapsulation is deep, resulting in low message processing efficiency. At the same time, network devices need to maintain multiple protocols, which increases the difficulty of maintenance. According to the present application, since a unified OAM message format is adopted, the first OAM message does not need to include protocol version information, so the protocol encapsulation can be effectively simplified, the device does not need to support the parsing of multiple protocol version information, and the multiple protocols are unified It is processed at the network layer, and there is no need to maintain multiple protocols, which greatly reduces the requirements for equipment.
可选地,T字段指示第一OAM消息为回显echo消息。Optionally, the T field indicates that the first OAM message is an echo message.
其中,回显echo消息包括回显请求echo request消息和回显应答echo reply消息,T字段指示第一OAM消息为回显消息,使得第一OAM消息可用于实现连通性检测。The echo echo message includes an echo request echo request message and an echo response echo reply message, and the T field indicates that the first OAM message is an echo message, so that the first OAM message can be used to implement connectivity detection.
可选地,T字段取值为第一值时,指示第一OAM消息为echo request消息,T字段取值为第二值时,指示第一OAM消息为echo reply消息。Optionally, when the value of the T field is the first value, it indicates that the first OAM message is an echo request message, and when the value of the T field is the second value, it indicates that the first OAM message is an echo reply message.
可选地,T字段取值为第三值时,指示第一OAM消息的类型为echo消息,此时不区分echo消息的具体类型。通过在TLV字段中增加标识字段,来标识echo消息的具体类型。例如,第一标识字段用于标识echo消息为echo request消息,第二标识字段用于标识echo消息为echo reply消息。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述标识字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述标识字段。Optionally, when the value of the T field is the third value, it indicates that the type of the first OAM message is an echo message, and in this case, the specific type of the echo message is not distinguished. The specific type of the echo message is identified by adding an identification field to the TLV field. For example, the first identification field is used to identify the echo message as an echo request message, and the second identification field is used to identify the echo message as an echo reply message. The representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field. In a specific implementation manner, the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field.
可选地,在获取第一IPv6报文之前,该方法还包括:接收第二IPv6报文,第二IPv6报文中包括第二OAM消息,第一OAM消息为第二OAM消息的响应;根据第二IPv6报文,获取第一IPv6报文。Optionally, before acquiring the first IPv6 message, the method further includes: receiving a second IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; For the second IPv6 packet, obtain the first IPv6 packet.
可以理解,在此情况下,上述第二OAM消息为回显请求消息,第一OAM消息为回显应答消息。It can be understood that, in this case, the above-mentioned second OAM message is an echo request message, and the first OAM message is an echo response message.
可选地,V字段还包括以下一个或多个字段:序列号字段,用于承载该echo消息的序列号;返回代码return codes字段,其中,return codes字段用于承载反射端对发送端发送的echo消息的响应结果;第一回复模式字段,第一回复模式字段用于指示应答echo消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。Optionally, the V field also includes one or more of the following fields: a sequence number field, which is used to carry the sequence number of the echo message; a return code return codes field, where the return codes field is used to carry the data sent by the reflection end to the sending end. The response result of the echo message; the first reply mode field, the first reply mode field is used to indicate the way of replying to the echo message; the type-length-value TLV field; and the reserved field, which is used for function extension.
实施上述方式,序列号字段可用于检测与回显请求消息对应的回显应答消息是否丢失,返回代码字段具体指示反射端对发送端发送的回显请求消息的响应结果,基于返回代码字段可实现网络中任意两节点之间的连通性检查及验证。另外,第一回复模式字段指示的应答方式例如可以是通过应用程序级别的控制通道进行回复、通过一个不带负载的IPv6数据包回复等。类型-长度-值TLV字段例如可以是下游详细映射TLV,利用下游详细映射TLV可使得源节点获取连通性检测过程中第一OAM消息经过的每一个节点的信息。Implementing the above method, the serial number field can be used to detect whether the echo response message corresponding to the echo request message is lost, and the return code field specifically indicates the response result of the reflector to the echo request message sent by the sender, which can be realized based on the return code field. Connectivity check and verification between any two nodes in the network. In addition, the reply mode indicated by the first reply mode field may be, for example, replying through an application-level control channel, replying through an IPv6 data packet without a load, and the like. The type-length-value TLV field may be, for example, a downstream detailed mapping TLV, and using the downstream detailed mapping TLV enables the source node to obtain information about each node that the first OAM message passes through in the connectivity detection process.
可选地,在T字段指示第一OAM消息为回显消息时,V字段由以下字段组成:标识字段,用于指示echo消息的类型;序列号字段,用于承载该echo消息的序列号;返回代码return codes字段,其中,return codes字段用于承载反射端对发送端发送的echo消息的响应结果;第一回复模式字段,第一回复模式字段用于指示应答echo消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。Optionally, when the T field indicates that the first OAM message is an echo message, the V field is composed of the following fields: an identification field, used to indicate the type of the echo message; a sequence number field, used to carry the sequence number of the echo message; Return code return codes field, where the return codes field is used to carry the response result of the reflector to the echo message sent by the sender; the first reply mode field, the first reply mode field is used to indicate the way to respond to the echo message; type-length - Value TLV field; and reserved field for function extension.
可选地,第一OAM消息不包括:时间戳信息。Optionally, the first OAM message does not include: timestamp information.
实施上述方式,在T字段指示第一OAM为回显消息时,第一OAM消息不包括协议版本信息和时间戳信息,协议版本信息例如可以是MPLS echo协议版本号或者ICMPv6 echo的协议版本号,时间戳信息例如可以是发送端发出回显请求消息的发送时间戳、反射端接收回显请求消息的接收时间戳等。第一OAM消息中省略时间戳信息使得用于连通性检测的第一 OAM消息更加轻量化,减小了报文传输过程中网络带宽的消耗。Implementing the above manner, when the T field indicates that the first OAM is an echo message, the first OAM message does not include the protocol version information and the timestamp information, and the protocol version information can be, for example, the MPLS echo protocol version number or the protocol version number of the ICMPv6 echo, The timestamp information may be, for example, the sending timestamp of the echo request message sent by the sender, the reception timestamp of the echo request message received by the reflector, and the like. Omitting the timestamp information in the first OAM message makes the first OAM message used for connectivity detection more lightweight, and reduces the consumption of network bandwidth in the process of message transmission.
可选地,T字段指示第一OAM消息为主动连通性检测消息,第一OAM消息可用于实现连通性检测的功能。Optionally, the T field indicates that the first OAM message is an active connectivity detection message, and the first OAM message may be used to implement the function of connectivity detection.
可选地,V字段包括:第一字段,用于指示发送端和接收端之间建立的主动连通性检测会话的状态;第二字段,用于指示发送端发送主动连通性检测消息的最小发送间隔;第三字段,用于指示发送端接收接收端发送的主动连通性检测消息的最小接收间隔;第四字段,用于指示发送端接收接收端发送的响应消息的最小接收间隔;第五字段,指示最近一次会话的状态改变的原因;第六字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;第七字段,第七字段包括查询请求标志Demand、轮询标志Poll和终止标志Final。Optionally, the V field includes: a first field, used to indicate the state of the active connectivity detection session established between the sender and the receiver; the second field, used to indicate the minimum sending of the active connectivity detection message by the sender. interval; the third field is used to indicate the minimum receiving interval for the sender to receive the active connectivity detection message sent by the receiver; the fourth field is used to indicate the minimum interval for the sender to receive the response message sent by the receiver; the fifth field , indicating the reason for the state change of the last session; the sixth field, used to provide the detection time multiplier, which is used to calculate the detection time in asynchronous mode; the seventh field, the seventh field includes the query request flag Demand , polling flag Poll and termination flag Final.
其中,查询请求标志置1表示期望工作在查询模式,查询请求标志置0表示不希望工作在查询模式或者不支持查询模式;轮询标志置1表示发送端请求验证连通性或参数更改并期待带有F标志置位的主动连通性检测消息作为回复,轮询标志置0表示发送端不请求验证;响应F标志的主动性能检测消息中的终止标志需置1。Among them, the query request flag is set to 1 to indicate that it is expected to work in the query mode, the query request flag to 0 indicates that it does not want to work in the query mode or does not support the query mode; the polling flag is set to 1 to indicate that the sender requests to verify connectivity or parameter changes and expects to bring The active connectivity detection message with the F flag set as a reply, the polling flag set to 0 indicates that the sender does not request verification; the termination flag in the active performance detection message responding to the F flag needs to be set to 1.
实施上述方式,在T字段指示第一OAM消息为主动连通性检测消息时,发送端和反射端基于第一OAM消息可实现网络中任意两个节点(或转发引擎)之间的双向路径中的连通性检测,支持双向的OAM检测。Implementing the above manner, when the T field indicates that the first OAM message is an active connectivity detection message, the sending end and the reflecting end can implement the bidirectional path between any two nodes (or forwarding engines) in the network based on the first OAM message. Connectivity detection, supports bidirectional OAM detection.
可选地,V字段还包括:用于功能扩展的预留字段。Optionally, the V field further includes: a reserved field for function extension.
可选地,第一OAM消息不包括:协议版本信息、本地标识符和远端标识符。Optionally, the first OAM message does not include: protocol version information, local identifier and remote identifier.
实施上述方式,第一OAM消息例如是基于BFD协议扩展的控制报文时,上述协议版本信息包括BFD协议的版本号,本地标识符例如可以是BFD控制报文中的My Discriminator,远端标识符例如可以是BFD控制报文中的Your Discriminator。第一OAM消息中省略协议版本信息能有效简化协议封装,第一OAM消息省略本地标识符和远端标识符使得第一OAM消息更加轻量化。Implementing the above-mentioned mode, when the first OAM message is, for example, a control message based on the BFD protocol extension, the above-mentioned protocol version information includes the version number of the BFD protocol, and the local identifier can be, for example, My Discriminator in the BFD control message, and the remote identifier. For example, it can be Your Discriminator in the BFD control packet. Omitting the protocol version information in the first OAM message can effectively simplify the protocol encapsulation, and omitting the local identifier and the remote identifier in the first OAM message makes the first OAM message more lightweight.
可选地,T字段指示第一OAM消息为性能检测消息,可用于实现性能检测的功能。Optionally, the T field indicates that the first OAM message is a performance detection message, which can be used to implement the function of performance detection.
可选地,V字段包括:第八字段,用于承载发送端发送的第一性能检测消息的序列号;第九字段:用于承载反射端发送的第二性能检测消息的序列号,第二性能检测消息是对第一性能检测消息的响应;第十字段,用于承载发送端发送第一性能检测消息的发送时间戳;第十一字段,用于承载反射端接收第一性能检测消息的接收时间戳;第十二字段,用于承载反射端发送第二性能检测消息的发送时间戳;第十三字段,用于承载发送端接收第二性能检测消息的接收时间戳。Optionally, the V field includes: the eighth field, which is used to carry the sequence number of the first performance detection message sent by the sending end; the ninth field is used to carry the sequence number of the second performance detection message sent by the reflecting end, and the second The performance detection message is a response to the first performance detection message; the tenth field is used to carry the sending timestamp of the sending end sending the first performance detection message; the eleventh field is used to carry the reflective end receiving the first performance detection message. Reception timestamp; the twelfth field is used to carry the sending timestamp of the second performance detection message sent by the reflector; the thirteenth field is used to carry the reception timestamp of the second performance detection message received by the sender.
实施上述方式,基于第八字段和第九字段可实现丢包测量的性能检测功能,基于第十字段、第十一字段、第十二字段和第十三字段可用于实现时延检测和时延抖动测量中的至少一种性能检测功能。Implementing the above manner, the performance detection function of packet loss measurement can be implemented based on the eighth field and the ninth field, and the tenth field, the eleventh field, the twelfth field and the thirteenth field can be used to implement delay detection and delay. At least one performance detection function in jitter measurement.
可选地,V字段还包括:填充变长字段。Optionally, the V field further includes: a padding variable-length field.
实施上述方式,在第一OAM消息为性能检测消息时,填充变长字段可用于固定第一OAM消息的长度,实现第一OAM消息的定长。In the implementation of the above manner, when the first OAM message is a performance detection message, the padding variable-length field can be used to fix the length of the first OAM message, so as to realize the fixed length of the first OAM message.
可选地,在T字段指示第一OAM消息为性能检测消息时,T字段取值为第四值时,指示性能检测消息用于丢包检测,T字段取值为第五值时,指示性能检测消息用于时延检测或时延抖动测量,T字段取值为第六值时,指示性能检测消息用于丢包时延检测。Optionally, when the T field indicates that the first OAM message is a performance detection message, when the T field is a fourth value, it indicates that the performance detection message is used for packet loss detection, and when the T field is a fifth value, it indicates the performance. The detection message is used for delay detection or delay jitter measurement. When the value of the T field is the sixth value, it indicates that the performance detection message is used for packet loss delay detection.
可选地,T字段也可以仅指示第一OAM消息为性能检测消息,通过在TLV字段中增加标识字段,来标识性能检测消息的具体功能。例如,第三标识字段用于指示性能检测消息用于丢包检测,第四标识字段用于指示性能检测消息用于时延检测,第五标识字段用于指示性能检测消息用于丢包时延检测。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述标识字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述标识字段。Optionally, the T field may also only indicate that the first OAM message is a performance detection message, and a specific function of the performance detection message is identified by adding an identification field to the TLV field. For example, the third identification field is used to indicate that the performance detection message is used for packet loss detection, the fourth identification field is used to indicate that the performance detection message is used for delay detection, and the fifth identification field is used to indicate that the performance detection message is used for packet loss delay detection. The representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field. In a specific implementation manner, the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field.
可选地,V字段包括至少一个子TLV字段,该至少一个子TLV字段包括第一子TLV,第一子TLV指示性能检测消息用于丢包检测;第二子TLV,第二子TLV用于指示性能检测消息用于时延检测或时延抖动测量;第三子TLV,第三子TLV用于指示性能检测消息用于丢包时延检测。Optionally, the V field includes at least one sub-TLV field, and the at least one sub-TLV field includes a first sub-TLV, and the first sub-TLV indicates that the performance detection message is used for packet loss detection; the second sub-TLV, the second sub-TLV is used for The indication performance detection message is used for delay detection or delay jitter measurement; the third sub-TLV, the third sub-TLV is used for the indication performance detection message for packet loss delay detection.
由此,性能检测消息可提供多种可选的性能检测功能,例如,丢包检测、时延检测和时延抖动测量,增加了性能检测功能的多样性,以适应OAM检测的不同需求。Therefore, the performance detection message can provide a variety of optional performance detection functions, such as packet loss detection, delay detection and delay jitter measurement, which increases the diversity of performance detection functions to meet different requirements of OAM detection.
可选地,在性能检测消息用于丢包检测时,V字段还包括:第十四字段,用于承载发送端发送的第一数据报文的统计数量;第十五字段,用于承载反射端接收到的第一数据报文的统计数量;第十六字段,用于承载反射端发送的第二数据报文的统计数量,第二数据报文是对第一数据报文的响应;第十七字段,用于承载发送端接收到的第二数据报文的统计数量。Optionally, when the performance detection message is used for packet loss detection, the V field further includes: a fourteenth field, used to carry the statistical quantity of the first data packet sent by the sender; a fifteenth field, used to carry the reflection The statistical quantity of the first data packet received by the end; the sixteenth field is used to carry the statistical quantity of the second data packet sent by the reflection end, and the second data packet is the response to the first data packet; The seventeenth field is used to carry the statistical quantity of the second data packet received by the sender.
可选地,在性能检测消息用于时延检测或时延抖动测量时,V字段还包括:第十八字段,用于承载发送端发送第三性能检测消息的发送时间戳;第十九字段,用于承载反射端接收第三性能检测消息的接收时间戳;第二十字段,用于承载反射端发送第四性能检测消息的发送时间戳,第四性能检测消息是对第三性能检测消息的响应;第二十一字段,用于承载发送端接收第四性能检测消息的接收时间戳。在此情况下,基于上述第十八字段至第二十一字段,性能检测消息可以用于时延检测和/或时延抖动测量。Optionally, when the performance detection message is used for delay detection or delay jitter measurement, the V field further includes: an eighteenth field, which is used to carry the sending timestamp of the third performance detection message sent by the sender; the nineteenth field , which is used to carry the receiving timestamp of the third performance detection message received by the reflector; the twentieth field is used to carry the sending timestamp of the fourth performance detection message sent by the reflector. The fourth performance detection message is a response to the third performance detection message. response; the twenty-first field is used to carry the receiving timestamp when the sender receives the fourth performance detection message. In this case, the performance detection message may be used for delay detection and/or delay jitter measurement based on the eighteenth to twenty-first fields described above.
可选地,在性能检测消息用于丢包时延检测时,V字段包括上述第十四字段至第二十一字段。在此情况下,性能检测消息既用于丢包检测,又用于时延检测和/或时延抖动测量。Optionally, when the performance detection message is used for packet loss delay detection, the V field includes the above-mentioned fourteenth field to twenty-first field. In this case, the performance detection message is used for both packet loss detection and delay detection and/or delay jitter measurement.
可选地,T字段指示第一OAM消息为第一复合OAM消息,第一复合OAM消息用于实现至少两种OAM功能。实施上述方式,在T字段指示第一OAM消息为第一复合OAM消息时,第一OAM可实现多种OAM功能。Optionally, the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions. In the implementation of the above manner, when the T field indicates that the first OAM message is the first composite OAM message, the first OAM may implement various OAM functions.
可选地,至少两种OAM功能包括:连通性检测和性能测量。可选地,V字段包括第一标识和第二标识,第一标识用于指示第一复合OAM消息用于第一OAM检测,第二标识用于指示第一复合OAM消息用于第二OAM检测。例如,第一OAM检测为连通性检测,第二OAM检测为性能检测。对于第一标识、第二标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。另外,第一标识和第二标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载第一标识和第二标识。Optionally, the at least two OAM functions include: connectivity detection and performance measurement. Optionally, the V field includes a first identification and a second identification, the first identification is used to indicate that the first composite OAM message is used for the first OAM detection, and the second identification is used to indicate that the first composite OAM message is used for the second OAM detection . For example, the first OAM detection is connectivity detection, and the second OAM detection is performance detection. The representation manner of the first identifier and the second identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. In addition, the first identification and the second identification may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the first identifier and the second identifier.
可选地,第一复合OAM消息包括第一指示信息,第一指示信息指示第一复合OAM消息为一个请求消息或一个响应消息。例如,第一指示信息可以是T字段,T字段取第七值时,指示第一复合OAM消息为一个请求消息,T字段取第八值时,指示第一复合OAM消息为一个应答消息;又例如,T字段仅指示第一OAM消息为第一复合OAM消息时,第一指示信息也可以是新增加的第一检测标识,第一检测标识取第一值,指示第一复合OAM消息是一个 请求消息,第一检测标识取第二值,指示第一复合OAM消息是一个应答消息。对于第一检测标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于第一检测标识在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述第一检测标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述第一检测标识。Optionally, the first composite OAM message includes first indication information, where the first indication information indicates that the first composite OAM message is a request message or a response message. For example, the first indication information may be a T field, when the T field takes the seventh value, it indicates that the first composite OAM message is a request message, and when the T field takes the eighth value, it indicates that the first composite OAM message is a response message; For example, when the T field only indicates that the first OAM message is the first composite OAM message, the first indication information may also be a newly added first detection flag, and the first detection flag takes a first value, indicating that the first composite OAM message is a In the request message, the first detection flag takes a second value, indicating that the first composite OAM message is a response message. The representation manner of the first detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the first detection identifier in the TLV field. In a specific implementation manner, the above-mentioned first detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned first detection identifier.
可选地,第一复合OAM消息还包括第二指示信息,第二指示信息指示性能检测的具体类型。例如,第三指示信息可以是T字段,T字段取第九值时,指示性能检测的类型为丢包检测,T字段取第十值时,指示性能检测的类型为时延检测或时延抖动检测,T字段取第十一值时,指示性能检测的类型为丢包时延检测;又例如,T字段仅指示第一OAM消息为第一复合OAM消息时,第二指示信息也可以是新增加的第二检测标识,第二检测标识取第一值,指示性能检测的类型为丢包检测,第二检测标识取第二值,指示性能检测的类型为时延检测或时延抖动测量,第二检测标识取第三值,指示性能检测的类型为丢包时延检测。对于第二检测标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于第二检测标识在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述第二检测标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述第二检测标识。Optionally, the first composite OAM message further includes second indication information, where the second indication information indicates a specific type of performance detection. For example, the third indication information may be a T field. When the T field takes the ninth value, it indicates that the type of performance detection is packet loss detection. When the T field takes the tenth value, it indicates that the type of performance detection is delay detection or delay jitter. Detection, when the T field takes the eleventh value, it indicates that the type of performance detection is packet loss delay detection; for another example, when the T field only indicates that the first OAM message is the first composite OAM message, the second indication information may also be a new The added second detection flag, where the second detection flag takes a first value, indicates that the type of performance detection is packet loss detection, the second detection flag takes a second value, and indicates that the type of performance detection is delay detection or delay jitter measurement, The second detection flag takes a third value, indicating that the type of performance detection is packet loss delay detection. The representation manner of the second detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the second detection identifier in the TLV field. In a specific implementation manner, the above-mentioned second detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned second detection identifier.
可选地,在获取第一IPv6报文之前,该方法还包括:接收第二IPv6报文,第二IPv6报文中包括第二OAM消息,第一OAM消息为第二OAM消息的响应;根据第二IPv6报文,获取第一IPv6报文。Optionally, before acquiring the first IPv6 message, the method further includes: receiving a second IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; For the second IPv6 packet, obtain the first IPv6 packet.
可选地,V字段中用于连通性检测的字段包括以下一个或多个字段:序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。Optionally, the field used for connectivity detection in the V field includes one or more of the following fields: a sequence number field, used to carry the sequence number of the first composite OAM message sent by the sender; return codes return codes field, return codes The field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; the type-length-value TLV field ; and reserved fields for functional expansion.
实施上述方式,基于序列号字段可检测第一复合OAM消息的响应消息是否丢失,返回代码字段可用于指示反射端对发送端发送的第一复合OAM消息的响应结果,基于该字段可用于实现网络中任意两节点之间的连通性检查及验证。第二回复模式字段指示的应答方式例如可以是通过应用程序级别的控制通道进行回复、通过一个不带负载的IPv6数据包回复等。类型-长度-值TLV字段例如可以是下游详细映射TLV,利用下游详细映射TLV可使得源节点获取连通性检测中第一复合OAM消息经过的每一个节点的信息。Implementing the above manner, based on the sequence number field, it can be detected whether the response message of the first composite OAM message is lost, and the return code field can be used to indicate the response result of the reflection end to the first composite OAM message sent by the sender. Connectivity check and verification between any two nodes in the The reply mode indicated by the second reply mode field may be, for example, replying through an application-level control channel, replying through an IPv6 data packet without a load, and the like. The type-length-value TLV field may be, for example, a downstream detailed mapping TLV, and using the downstream detailed mapping TLV enables the source node to obtain information about each node that the first composite OAM message passes through in the connectivity detection.
可选地,在第一复合OAM消息用于性能检测时,V字段中用于性能检测的字段包括:第二十二字段:用于承载反射端发送的第二复合OAM消息的序列号,第二复合OAM消息是对第一复合OAM消息的响应;第二十三字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第二十四字段,用于承载反射端接收第一复合OAM消息的接收时间戳;第二十五字段,用于承载反射端发送第二复合OAM消息的发送时间戳;第二十六字段,用于承载发送端接收第二复合OAM消息的接收时间戳。Optionally, when the first composite OAM message is used for performance detection, the fields used for performance detection in the V field include: the twenty-second field: used to carry the sequence number of the second composite OAM message sent by the reflection end, the first The second composite OAM message is a response to the first composite OAM message; the 23rd field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the 24th field is used to carry the first composite OAM message received by the reflector The receiving timestamp of the composite OAM message; the twenty-fifth field is used to carry the sending timestamp of the second composite OAM message sent by the reflector; the twenty-sixth field is used to carry the receiving time when the sender receives the second composite OAM message stamp.
实施上述方式,基于第一复合OAM消息中的序列号字段和第二十二字段可实现丢包检测,基于第二十三字段至第二十六字段这四个字段可用于实现时延检测和时延抖动测量中的至少一种性能检测功能。Implementing the above manner, packet loss detection can be implemented based on the sequence number field and the twenty-second field in the first composite OAM message, and the four fields based on the twenty-third field to the twenty-sixth field can be used to implement delay detection and detection. At least one performance detection function in delay jitter measurement.
可选地,V字段还包括用于功能扩展的预留字段。Optionally, the V field further includes a reserved field for function extension.
可选地,在第二检测标识指示性能检测为丢包检测时,V字段包括:第二十七字段,用于指示发送端发送的第三数据报文的统计数量;第二十八字段,用于指示反射端接收到的第三数据报文的统计数量;第二十九字段,用于指示反射端发送的第四数据报文的统计数量,第四数据报文是对第三数据报文的响应;第三十字段,用于指示发送端接收到的第四数据报文的统计数量。由此,上述第二十七字段至第三十字段这四个字段使得第一复合OAM消息能够用于丢包检测。Optionally, when the second detection identifier indicates that the performance detection is packet loss detection, the V field includes: a twenty-seventh field, used to indicate the statistical quantity of the third data packet sent by the sending end; a twenty-eighth field, It is used to indicate the statistical quantity of the third data packet received by the reflecting end; the twenty-ninth field is used to indicate the statistical quantity of the fourth data packet sent by the reflecting end. The response of the message; the thirtieth field is used to indicate the statistical quantity of the fourth data message received by the sender. Thus, the above-mentioned four fields of the twenty-seventh field to the thirtieth field enable the first composite OAM message to be used for packet loss detection.
可选地,在第二检测标识指示性能检测为时延检测或时延抖动测量时,V字段包括:第三十一字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第三十二字段,用于承载反射端接收第一复合OAM消息的接收时间戳;第三十三字段,用于承载反射端发送第二复合OAM消息的发送时间戳,第二复合OAM消息是对第一复合OAM消息的响应;第三十四字段,用于承载发送端接收第二复合OAM消息的接收时间戳。由此,上述第三十一字段至第三十四字段这四个字段使得第一复合OAM消息能够用于时延检测和/或时延抖动测量。Optionally, when the second detection identifier indicates that the performance detection is delay detection or delay jitter measurement, the V field includes: a thirty-first field, which is used to carry the sending timestamp of the first composite OAM message sent by the sending end; The thirty-two field is used to carry the receiving timestamp of the first composite OAM message received by the reflecting end; the thirty-third field is used to carry the sending time stamp of the second composite OAM message sent by the reflecting end, and the second composite OAM message is a pair of The response of the first composite OAM message; the thirty-fourth field is used to carry the receiving timestamp when the sender receives the second composite OAM message. Thus, the above-mentioned four fields, the thirty-first field to the thirty-fourth field, enable the first composite OAM message to be used for delay detection and/or delay jitter measurement.
可选地,在第二检测标识指示性能检测为丢包时延检测时,V字段包括上述第二十七字段至第三十四字段这八个字段。由此,第一复合OAM消息既用于丢包检测,又用于时延检测和/或时延抖动测量。Optionally, when the second detection identifier indicates that the performance detection is packet loss and delay detection, the V field includes the above-mentioned eight fields of the twenty-seventh field to the thirty-fourth field. Thus, the first composite OAM message is used for both packet loss detection and delay detection and/or delay jitter measurement.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;以及上述第二十二字段至第二十六字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second The reply mode field, the second reply mode field is used to indicate the way of replying to the first composite OAM message; the type-length-value TLV field; a reserved field for function extension; and the above-mentioned twenty-second to twenty-sixth fields field.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为丢包检测;以及上述第二十七字段至第三十字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second Reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet detection; and the above-mentioned twenty-seventh to thirtieth fields.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为时延检测;以及上述第三十一字段至第三十四字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second Reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is over delay detection; and the above-mentioned thirty-first field to thirty-fourth field.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return  codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为丢包时延检测;以及上述第二十七字段至第三十四字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second Reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet delay detection; and the aforementioned twenty-seventh to thirty-fourth fields.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:第三十五字段,用于指示发送端和接收端之间建立的复合OAM检测会话的状态;第三十六字段,用于指示发送端发送第一复合OAM消息的最小发送间隔;第三十七字段,用于指示发送端接收接收端发送的第二复合OAM消息的最小接收间隔;第三十八字段,用于指示发送端接收接收端发送的响应消息的最小接收间隔;第三十九字段,指示最近一次会话的状态改变的原因;第四十字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;第四十一字段包括查询请求标志Demand、轮询标志Poll和终止标志Final;第四十二字段,用于承载发送端发送的第五数据报文的统计数量;第四十三字段,用于承载接收端接收的第五数据报文的统计数量;第四十四字段,用于承载接收端接发送的第六数据报文的统计数量;第四十五字段:用于承载发送端接收的第六数据报文的统计数量;第四十六字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第四十七字段,用于承载接收端接收第一复合OAM消息的接收时间戳;第四十八字段,用于承载接收端发送第二复合OAM消息的发送时间戳;第四十九字段,用于承载发送端接收第二复合OAM消息的接收时间戳。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: a thirty-fifth field, used to indicate the value of the composite OAM detection session established between the sender and the receiver. state; the thirty-sixth field is used to indicate the minimum sending interval for the sending end to send the first composite OAM message; the thirty-seventh field is used to indicate the minimum receiving interval for the sending end to receive the second composite OAM message sent by the receiving end; The thirty-eighth field is used to indicate the minimum receiving interval for the sender to receive the response message sent by the receiver; the thirty-ninth field is used to indicate the reason for the state change of the last session; the fortieth field is used to provide the detection time multiplication The detection time multiplier is used to calculate the detection time in the asynchronous mode; the forty-first field includes the query request flag Demand, the polling flag Poll and the termination flag Final; the forty-second field is used to carry the The statistical quantity of the fifth data packet; the forty-third field is used to carry the statistical quantity of the fifth data packet received by the receiving end; the forty-fourth field is used to carry the sixth data packet sent by the receiving terminal The forty-fifth field is used to carry the statistical quantity of the sixth data packet received by the sender; the forty-sixth field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the fourth The seventeenth field is used to carry the receiving time stamp of the receiving end receiving the first composite OAM message; the forty-eighth field is used to carry the sending time stamp of the receiving end sending the second composite OAM message; the forty-ninth field is used to Bearing the receiving timestamp of the second composite OAM message received by the sending end.
实施上述方式,在T字段指示第一OAM消息为第一复合OAM消息时,V字段也可以只包括上述第三十五字段至第四十九字段这十五个字段,其中,第三十五字段至第四十一字段使得第一复合OAM消息能够用于主动连通性检测,第四十二字段至第四十九字段使得第一复合OAM消息能够用于性能检测。具体地,第四十二字段至第四十五字段使得第一复合OAM消息能够用于丢包测量,第四十六字段至第四十九字段使得第一复合OAM消息能够用于时延测量和/或时延抖动测量。In the implementation of the above manner, when the T field indicates that the first OAM message is the first composite OAM message, the V field may also only include the fifteen fields from the thirty-fifth field to the forty-ninth field, where the thirty-fifth field Fields to forty-first enable the first composite OAM message to be used for active connectivity detection, and fields forty-second to forty-ninth enable the first composite OAM message to be used for performance detection. Specifically, the forty-second field to the forty-fifth field enable the first composite OAM message to be used for packet loss measurement, and the forty-sixth field to the forty-ninth field enable the first composite OAM message to be used for delay measurement and/or delay jitter measurements.
可选地,IPv6扩展头为目的地选项头DoH或分段路由报头SRH或比特索引显示复制BIER头。Optionally, the IPv6 extension header duplicates the BIER header for the destination option header DoH or segment routing header SRH or bit index display.
实施上述方式,利用IPv6扩展头原生语义,实现第一OAM消息的数据面处理,减小了第一OAM消息的封装深度,提高了OAM检测的效率和准确度。在IPv6扩展头为分段路由报头SRH时,提供了SRv6场景下的OAM检测服务。在IPv6扩展头为BIER头时,提供了BIERv6组播下的OAM检测服务。By implementing the above manner, the native semantics of the IPv6 extension header is used to implement the data plane processing of the first OAM message, which reduces the encapsulation depth of the first OAM message and improves the efficiency and accuracy of OAM detection. When the IPv6 extension header is the segment routing header SRH, the OAM detection service in the SRv6 scenario is provided. When the IPv6 extension header is the BIER header, the OAM detection service under BIERv6 multicast is provided.
可选地,IPv6扩展头包括关联通道ACH,第一OAM消息承载于ACH中。Optionally, the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
可选地,关联通道ACH包括选项类型字段和通道类型字段,选项类型字段指示关联通道,通道类型字段指示ACH所承载的通道类型为OAM通道,该OAM通道用于承载第一OAM消息。Optionally, the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
可选地,第一IPv6报文还包括第一OAM消息的统一会话标识,统一会话标识用于第一OAM消息的发送端匹配第一OAM消息与发送端接收的来自对端的OAM消息。Optionally, the first IPv6 packet further includes a unified session identifier of the first OAM message, and the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
在现有技术中,不同协议的OAM检测报文,分别携带各自协议的会话标识,例如,Ping协议会话标识为sender’s Handle,BFD协议的会话标识为My Discriminator和Your Discriminator,LM-DM协议的会话标识为Session Identifier等,使得进行每个协议的OAM检 测时,都需要先基于该协议的会话标识执行会话协商过程,消息处理过程繁琐、OAM检测效率低,而根据本申请,为上述四种类型的第一OAM消息采用一个统一会话标识,实现四种类型的OAM消息复用该统一会话标识,有效简化了会话的协商过程,减小网络开销,提高OAM检测效率。另外,基于统一会话标识使得第一OAM消息的发送端能快速匹配到第一OAM消息的响应消息。In the prior art, OAM detection packets of different protocols carry session identifiers of their respective protocols. For example, the session identifier of the Ping protocol is sender's Handle, the session identifiers of the BFD protocol are My Discriminator and Your Discriminator, and the session identifier of the LM-DM protocol is The identifier is Session Identifier, etc., so that when OAM detection of each protocol is performed, the session negotiation process needs to be performed based on the session identifier of the protocol. The message processing process is cumbersome and the OAM detection efficiency is low. According to this application, the above four types are The first OAM message of the device adopts a unified session identifier, and realizes the multiplexing of the unified session identifier for four types of OAM messages, which effectively simplifies the negotiation process of the session, reduces the network overhead, and improves the OAM detection efficiency. In addition, based on the unified session identifier, the sender of the first OAM message can quickly match the response message of the first OAM message.
第二方面,本申请实施例提供了一种操作维护管理OAM检测装置,该装置包括:处理单元,用于获取第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息,第一OAM消息包括类型T字段和值V字段,T字段指示第一OAM消息的类型,V字段承载第一OAM消息的内容;收发单元,用于发送第一IPv6报文。In a second aspect, an embodiment of the present application provides an OAM detection device for operation, maintenance and management. The device includes: a processing unit configured to acquire a first IPv6 packet, where an IPv6 extension header of the first IPv6 packet carries the first OAM message, The first OAM message includes a type T field and a value V field, where the T field indicates the type of the first OAM message, and the V field carries the content of the first OAM message; the transceiver unit is used for sending the first IPv6 message.
需要说明的是,第二方面中第一OAM消息内各个字段的有益效果可参考上述第一方面中各个字段的有益效果的描述,在此不再赘述。It should be noted that, for the beneficial effect of each field in the first OAM message in the second aspect, reference may be made to the description of the beneficial effect of each field in the above-mentioned first aspect, which is not repeated here.
可选地,第一OAM消息不包括协议版本信息。Optionally, the first OAM message does not include protocol version information.
可选地,T字段指示第一OAM消息为回显echo消息。Optionally, the T field indicates that the first OAM message is an echo message.
可选地,T字段取值为第一值时,指示第一OAM消息为echo request消息,T字段取值为第二值时,指示第一OAM消息为echo reply消息。Optionally, when the value of the T field is the first value, it indicates that the first OAM message is an echo request message, and when the value of the T field is the second value, it indicates that the first OAM message is an echo reply message.
可选地,T字段取值为第三值时,指示第一OAM消息的类型为echo消息,此时不区分echo消息的具体类型。通过在TLV字段中增加标识字段,来标识echo消息的具体类型。例如,第一标识字段用于标识echo消息为echo request消息,第二标识字段用于标识echo消息为echo reply消息。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述标识字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述标识字段。Optionally, when the value of the T field is the third value, it indicates that the type of the first OAM message is an echo message, and in this case, the specific type of the echo message is not distinguished. The specific type of the echo message is identified by adding an identification field to the TLV field. For example, the first identification field is used to identify the echo message as an echo request message, and the second identification field is used to identify the echo message as an echo reply message. The representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field. In a specific implementation manner, the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field.
可选地,收发单元,还用于在获取第一IPv6报文之前接收第二IPv6报文,第二IPv6报文中包括第二OAM消息,第一OAM消息为第二OAM消息的响应;处理单元具体用于根据第二IPv6报文,获取第一IPv6报文。Optionally, the transceiver unit is further configured to receive a second IPv6 message before acquiring the first IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; processing The unit is specifically configured to acquire the first IPv6 packet according to the second IPv6 packet.
可选地,V字段还包括以下一个或多个字段:序列号字段,用于承载该echo消息的序列号;返回代码return codes字段,其中,return codes字段用于承载反射端对发送端发送的echo消息的响应结果;第一回复模式字段,第一回复模式字段用于指示应答echo消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。Optionally, the V field also includes one or more of the following fields: a sequence number field, which is used to carry the sequence number of the echo message; a return code return codes field, where the return codes field is used to carry the data sent by the reflection end to the sending end. The response result of the echo message; the first reply mode field, the first reply mode field is used to indicate the way of replying to the echo message; the type-length-value TLV field; and the reserved field, which is used for function extension.
可选地,在T字段指示第一OAM消息为回显消息时,V字段由以下字段组成:标识字段,用于指示echo消息的类型;序列号字段,用于承载该echo消息的序列号;返回代码return codes字段,其中,return codes字段用于承载反射端对发送端发送的echo消息的响应结果;第一回复模式字段,第一回复模式字段用于指示应答echo消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。Optionally, when the T field indicates that the first OAM message is an echo message, the V field is composed of the following fields: an identification field, used to indicate the type of the echo message; a sequence number field, used to carry the sequence number of the echo message; Return code return codes field, where the return codes field is used to carry the response result of the reflector to the echo message sent by the sender; the first reply mode field, the first reply mode field is used to indicate the way to respond to the echo message; type-length - Value TLV field; and reserved field for function extension.
可选地,第一OAM消息不包括:时间戳信息。Optionally, the first OAM message does not include: timestamp information.
可选地,T字段指示第一OAM消息为主动连通性检测消息。Optionally, the T field indicates that the first OAM message is an active connectivity detection message.
可选地,V字段包括:第一字段,用于指示发送端和接收端之间建立的主动连通性检测会话的状态;第二字段,用于指示发送端发送主动连通性检测消息的最小发送间隔;第三字段,用于指示发送端接收接收端发送的主动连通性检测消息的最小接收间隔;第四字段,用 于指示发送端接收接收端发送的响应消息的最小接收间隔;第五字段,指示最近一次会话的状态改变的原因;第六字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;第七字段,第七字段包括查询请求标志Demand、轮询标志Poll和终止标志Final。Optionally, the V field includes: a first field, used to indicate the state of the active connectivity detection session established between the sender and the receiver; the second field, used to indicate the minimum sending of the active connectivity detection message by the sender. interval; the third field is used to indicate the minimum receiving interval for the sender to receive the active connectivity detection message sent by the receiver; the fourth field is used to indicate the minimum interval for the sender to receive the response message sent by the receiver; the fifth field , indicating the reason for the state change of the last session; the sixth field, used to provide the detection time multiplier, which is used to calculate the detection time in asynchronous mode; the seventh field, the seventh field includes the query request flag Demand , polling flag Poll and termination flag Final.
可选地,V字段还包括:预留字段,预留字段用于功能扩展。Optionally, the V field further includes: a reserved field, where the reserved field is used for function expansion.
可选地,第一OAM消息不包括:协议版本信息、本地标识符和远端标识符。Optionally, the first OAM message does not include: protocol version information, local identifier and remote identifier.
可选地,T字段指示第一OAM消息为性能检测消息。Optionally, the T field indicates that the first OAM message is a performance detection message.
可选地,V字段包括:第八字段,用于承载发送端发送的第一性能检测消息的序列号;第九字段:用于承载反射端发送的第二性能检测消息的序列号,第二性能检测消息是对第一性能检测消息的响应;第十字段,用于承载发送端发送第一性能检测消息的发送时间戳;第十一字段,用于承载反射端接收第一性能检测消息的接收时间戳;第十二字段,用于承载反射端发送第二性能检测消息的发送时间戳;第十三字段,用于承载发送端接收第二性能检测消息的接收时间戳。Optionally, the V field includes: the eighth field, which is used to carry the sequence number of the first performance detection message sent by the sending end; the ninth field is used to carry the sequence number of the second performance detection message sent by the reflecting end, and the second The performance detection message is a response to the first performance detection message; the tenth field is used to carry the sending timestamp of the sending end sending the first performance detection message; the eleventh field is used to carry the reflective end receiving the first performance detection message. Reception timestamp; the twelfth field is used to carry the sending timestamp of the second performance detection message sent by the reflector; the thirteenth field is used to carry the reception timestamp of the second performance detection message received by the sender.
可选地,V字段还包括:填充变长字段。Optionally, the V field further includes: a padding variable-length field.
可选地,在T字段指示第一OAM消息为性能检测消息时,T字段取值为第四值时,指示性能检测消息用于丢包检测,T字段取值为第五值时,指示性能检测消息用于时延检测或时延抖动测量,T字段取值为第六值时,指示性能检测消息用于丢包时延检测。Optionally, when the T field indicates that the first OAM message is a performance detection message, when the T field is a fourth value, it indicates that the performance detection message is used for packet loss detection, and when the T field is a fifth value, it indicates the performance. The detection message is used for delay detection or delay jitter measurement. When the value of the T field is the sixth value, it indicates that the performance detection message is used for packet loss delay detection.
可选地,T字段也可以仅指示第一OAM消息为性能检测消息,通过在TLV字段中增加标识字段,来标识性能检测消息的具体功能。例如,第三标识字段用于指示性能检测消息用于丢包检测,第四标识字段用于指示性能检测消息用于时延检测,第五标识字段用于指示性能检测消息用于丢包时延检测。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述标识字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述标识字段。Optionally, the T field may also only indicate that the first OAM message is a performance detection message, and a specific function of the performance detection message is identified by adding an identification field to the TLV field. For example, the third identification field is used to indicate that the performance detection message is used for packet loss detection, the fourth identification field is used to indicate that the performance detection message is used for delay detection, and the fifth identification field is used to indicate that the performance detection message is used for packet loss delay detection. The representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field. In a specific implementation manner, the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field.
可选地,V字段包括至少一个子TLV字段,该至少一个子TLV字段包括第一子TLV,第一子TLV用于指示性能检测消息用于丢包检测;第二子TLV,第二子TLV用于指示性能检测消息用于时延检测或时延抖动测量;第三子TLV,第三子TLV用于指示性能检测消息用于丢包时延检测。Optionally, the V field includes at least one sub-TLV field, and the at least one sub-TLV field includes a first sub-TLV, and the first sub-TLV is used to indicate that the performance detection message is used for packet loss detection; the second sub-TLV, the second sub-TLV It is used to indicate that the performance detection message is used for delay detection or delay jitter measurement; the third sub-TLV, the third sub-TLV is used to indicate that the performance detection message is used for packet loss delay detection.
可选地,在性能检测消息用于丢包检测时,V字段还包括:第十四字段,用于承载发送端发送的第一数据报文的统计数量;第十五字段,用于承载反射端接收到的第一数据报文的统计数量;第十六字段,用于承载反射端发送的第二数据报文的统计数量,第二数据报文是对第一数据报文的响应;第十七字段,用于承载发送端接收到的第二数据报文的统计数量。Optionally, when the performance detection message is used for packet loss detection, the V field further includes: a fourteenth field, used to carry the statistical quantity of the first data packet sent by the sender; a fifteenth field, used to carry the reflection The statistical quantity of the first data packet received by the end; the sixteenth field is used to carry the statistical quantity of the second data packet sent by the reflection end, and the second data packet is the response to the first data packet; The seventeenth field is used to carry the statistical quantity of the second data packet received by the sender.
可选地,在性能检测消息用于时延检测或时延抖动测量时,V字段还包括:第十八字段,用于承载发送端发送第三性能检测消息的发送时间戳;第十九字段,用于承载反射端接收第三性能检测消息的接收时间戳;第二十字段,用于承载反射端发送第四性能检测消息的发送时间戳,第四性能检测消息是对第三性能检测消息的响应;第二十一字段,用于承载发送端接收第四性能检测消息的接收时间戳。Optionally, when the performance detection message is used for delay detection or delay jitter measurement, the V field further includes: an eighteenth field, which is used to carry the sending timestamp of the third performance detection message sent by the sender; the nineteenth field , which is used to carry the receiving timestamp of the third performance detection message received by the reflector; the twentieth field is used to carry the sending timestamp of the fourth performance detection message sent by the reflector. The fourth performance detection message is a response to the third performance detection message. response; the twenty-first field is used to carry the receiving timestamp when the sender receives the fourth performance detection message.
可选地,在性能检测消息用于丢包时延检测时,V字段包括上述第十四字段至第二十一字段。在此情况下,性能检测消息既用于丢包检测,又用于时延检测和/或时延抖动测量。Optionally, when the performance detection message is used for packet loss delay detection, the V field includes the above-mentioned fourteenth field to twenty-first field. In this case, the performance detection message is used for both packet loss detection and delay detection and/or delay jitter measurement.
可选地,T字段指示第一OAM消息为第一复合OAM消息,第一复合OAM消息用于实 现至少两种OAM功能。Optionally, the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
可选地,至少两种OAM功能包括:连通性检测和性能测量。Optionally, the at least two OAM functions include: connectivity detection and performance measurement.
可选地,V字段包括第一标识和第二标识,第一标识用于指示第一复合OAM消息用于第一OAM检测,第二标识用于指示第一复合OAM消息用于第二OAM检测。Optionally, the V field includes a first identification and a second identification, the first identification is used to indicate that the first composite OAM message is used for the first OAM detection, and the second identification is used to indicate that the first composite OAM message is used for the second OAM detection .
可选地,第一OAM检测为连通性检测,第二OAM检测为性能检测。Optionally, the first OAM detection is connectivity detection, and the second OAM detection is performance detection.
可选地,第一复合OAM消息包括第一指示信息,第一指示信息指示第一复合OAM消息为一个请求消息或一个响应消息。例如,第一指示信息可以是T字段,T字段取第七值时,指示第一复合OAM消息为一个请求消息,T字段取第八值时,指示第一复合OAM消息为一个应答消息;又例如,T字段仅指示第一OAM消息为第一复合OAM消息时,第一指示信息也可以是新增加的第一检测标识,第一检测标识取第一值,指示第一复合OAM消息是一个请求消息,第一检测标识取第二值,指示第一复合OAM消息是一个应答消息。对于第一检测标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于第一检测标识在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述第一检测标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述第一检测标识。Optionally, the first composite OAM message includes first indication information, where the first indication information indicates that the first composite OAM message is a request message or a response message. For example, the first indication information may be a T field, when the T field takes the seventh value, it indicates that the first composite OAM message is a request message, and when the T field takes the eighth value, it indicates that the first composite OAM message is a response message; For example, when the T field only indicates that the first OAM message is the first composite OAM message, the first indication information may also be a newly added first detection flag, and the first detection flag takes a first value, indicating that the first composite OAM message is a In the request message, the first detection flag takes a second value, indicating that the first composite OAM message is a response message. The representation manner of the first detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the first detection identifier in the TLV field. In a specific implementation manner, the above-mentioned first detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned first detection identifier.
可选地,第一复合OAM消息还包括第二指示信息,第二指示信息指示性能检测的具体类型。例如,第三指示信息可以是T字段,T字段取第九值时,指示性能检测的类型为丢包检测,T字段取第十值时,指示性能检测的类型为时延检测或时延抖动检测,T字段取第十一值时,指示性能检测的类型为丢包时延检测;又例如,T字段仅指示第一OAM消息为第一复合OAM消息时,第二指示信息也可以是新增加的第二检测标识,第二检测标识取第一值,指示性能检测的类型为丢包检测,第二检测标识取第二值,指示性能检测的类型为时延检测或时延抖动测量,第二检测标识取第三值,指示性能检测的类型为丢包时延检测。对于第二检测标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于第二检测标识在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述第二检测标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述第二检测标识。Optionally, the first composite OAM message further includes second indication information, where the second indication information indicates a specific type of performance detection. For example, the third indication information may be a T field. When the T field takes the ninth value, it indicates that the type of performance detection is packet loss detection. When the T field takes the tenth value, it indicates that the type of performance detection is delay detection or delay jitter. Detection, when the T field takes the eleventh value, it indicates that the type of performance detection is packet loss delay detection; for another example, when the T field only indicates that the first OAM message is the first composite OAM message, the second indication information may also be a new The added second detection flag, where the second detection flag takes a first value, indicates that the type of performance detection is packet loss detection, the second detection flag takes a second value, and indicates that the type of performance detection is delay detection or delay jitter measurement, The second detection flag takes a third value, indicating that the type of performance detection is packet loss delay detection. The representation manner of the second detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the second detection identifier in the TLV field. In a specific implementation manner, the above-mentioned second detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned second detection identifier.
可选地,收发单元还用于在获取第一IPv6报文之前接收第二IPv6报文,第二IPv6报文中包括第二OAM消息,第一OAM消息为第二OAM消息的响应;处理单元还用于根据第二IPv6报文,获取第一IPv6报文。Optionally, the transceiver unit is further configured to receive a second IPv6 message before acquiring the first IPv6 message, the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message; the processing unit It is also used to obtain the first IPv6 packet according to the second IPv6 packet.
可选地,V字段中用于连通性检测的字段包括以下一个或多个字段:序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。Optionally, the field used for connectivity detection in the V field includes one or more of the following fields: a sequence number field, used to carry the sequence number of the first composite OAM message sent by the sender; return codes return codes field, return codes The field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; the type-length-value TLV field ; and reserved fields for functional expansion.
可选地,在第一复合OAM消息用于性能检测时,V字段中用于性能检测的字段包括:第二十二字段:用于承载反射端发送的第二复合OAM消息的序列号,第二复合OAM消息是对第一复合OAM消息的响应;第二十三字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第二十四字段,用于承载反射端接收第一复合OAM消息的接收时间戳;第二十五字段,用于承载反射端发送第二复合OAM消息的发送时间戳;第二十六字段,用于 承载发送端接收第二复合OAM消息的接收时间戳。Optionally, when the first composite OAM message is used for performance detection, the fields used for performance detection in the V field include: the twenty-second field: used to carry the sequence number of the second composite OAM message sent by the reflection end, the first The second composite OAM message is a response to the first composite OAM message; the 23rd field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the 24th field is used to carry the first composite OAM message received by the reflector The receiving timestamp of the composite OAM message; the twenty-fifth field is used to carry the sending timestamp of the second composite OAM message sent by the reflector; the twenty-sixth field is used to carry the receiving time when the sender receives the second composite OAM message stamp.
可选地,V字段还包括用于功能扩展的预留字段。Optionally, the V field further includes a reserved field for function extension.
可选地,在第二检测标识指示性能检测为丢包检测时,V字段包括:第二十七字段,用于指示发送端发送的第三数据报文的统计数量;第二十八字段,用于指示反射端接收到的第三数据报文的统计数量;第二十九字段,用于指示反射端发送的第四数据报文的统计数量,第四数据报文是对第三数据报文的响应;第三十字段,用于指示发送端接收到的第四数据报文的统计数量。Optionally, when the second detection identifier indicates that the performance detection is packet loss detection, the V field includes: a twenty-seventh field, used to indicate the statistical quantity of the third data packet sent by the sending end; a twenty-eighth field, It is used to indicate the statistical quantity of the third data packet received by the reflecting end; the twenty-ninth field is used to indicate the statistical quantity of the fourth data packet sent by the reflecting end. The response of the message; the thirtieth field is used to indicate the statistical quantity of the fourth data message received by the sender.
可选地,在第二检测标识指示性能检测为时延检测或时延抖动测量时,V字段包括:第三十一字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第三十二字段,用于承载反射端接收第一复合OAM消息的接收时间戳;第三十三字段,用于承载反射端发送第二复合OAM消息的发送时间戳,第二复合OAM消息是对第一复合OAM消息的响应;第三十四字段,用于承载发送端接收第二复合OAM消息的接收时间戳。Optionally, when the second detection identifier indicates that the performance detection is delay detection or delay jitter measurement, the V field includes: a thirty-first field, which is used to carry the sending timestamp of the first composite OAM message sent by the sending end; The thirty-two field is used to carry the receiving timestamp of the first composite OAM message received by the reflecting end; the thirty-third field is used to carry the sending time stamp of the second composite OAM message sent by the reflecting end, and the second composite OAM message is a pair of The response of the first composite OAM message; the thirty-fourth field is used to carry the receiving timestamp when the sender receives the second composite OAM message.
可选地,在第二检测标识指示性能检测为丢包时延检测时,V字段包括上述第二十七字段至第三十四字段这八个字段。由此,第一复合OAM消息既用于丢包检测,又用于时延检测和/或时延抖动测量。Optionally, when the second detection identifier indicates that the performance detection is packet loss and delay detection, the V field includes the above-mentioned eight fields of the twenty-seventh field to the thirty-fourth field. Thus, the first composite OAM message is used for both packet loss detection and delay detection and/or delay jitter measurement.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;以及上述第二十二字段至第二十六字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second The reply mode field, the second reply mode field is used to indicate the way of replying to the first composite OAM message; the type-length-value TLV field; a reserved field for function extension; and the above-mentioned twenty-second to twenty-sixth fields field.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为丢包检测;以及上述第二十七字段至第三十字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second Reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet detection; and the above-mentioned twenty-seventh to thirtieth fields.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为时延检测;以及上述第三十一字段至第三十四字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second Reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is over delay detection; and the above-mentioned thirty-first field to thirty-fourth field.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字 段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为丢包时延检测;以及上述第二十七字段至第三十四字段。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message; The serial number field is used to carry the serial number of the first composite OAM message sent by the sender; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the second Reply mode field, the second reply mode field is used to indicate the way to respond to the first composite OAM message; type-length-value TLV field; reserved field, used for function extension; second detection flag, used to indicate that the performance detection is lost packet delay detection; and the aforementioned twenty-seventh to thirty-fourth fields.
可选地,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:第三十五字段,用于指示发送端和接收端之间建立的复合OAM检测会话的状态;第三十六字段,用于指示发送端发送第一复合OAM消息的最小发送间隔;第三十七字段,用于指示发送端接收接收端发送的第二复合OAM消息的最小接收间隔;第三十八字段,用于指示发送端接收接收端发送的响应消息的最小接收间隔;第三十九字段,指示最近一次会话的状态改变的原因;第四十字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;第四十一字段,第七字段包括查询请求标志Demand、轮询标志Poll和终止标志Final;第四十二字段,用于承载发送端发送的第五数据报文的统计数量;第四十三字段,用于承载接收端接收的第五数据报文的统计数量;第四十四字段,用于承载接收端接发送的第六数据报文的统计数量;第四十五字段:用于承载发送端接收的第六数据报文的统计数量;第四十六字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第四十七字段,用于承载接收端接收第一复合OAM消息的接收时间戳;第四十八字段,用于承载接收端发送第二复合OAM消息的发送时间戳;第四十九字段,用于承载发送端接收第二复合OAM消息的接收时间戳。Optionally, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: a thirty-fifth field, used to indicate the value of the composite OAM detection session established between the sender and the receiver. state; the thirty-sixth field is used to indicate the minimum sending interval for the sending end to send the first composite OAM message; the thirty-seventh field is used to indicate the minimum receiving interval for the sending end to receive the second composite OAM message sent by the receiving end; The thirty-eighth field is used to indicate the minimum receiving interval for the sender to receive the response message sent by the receiver; the thirty-ninth field is used to indicate the reason for the state change of the last session; the fortieth field is used to provide the detection time multiplication The detection time multiplier is used to calculate the detection time in the asynchronous mode; the forty-first field, the seventh field includes the query request flag Demand, the polling flag Poll and the termination flag Final; the forty-second field is used to carry the The statistical quantity of the fifth data packet sent by the sender; the forty-third field is used to carry the statistical quantity of the fifth data packet received by the receiver; the forty-fourth field is used to carry the 6. Statistical quantity of data packets; forty-fifth field: used to carry the statistical quantity of the sixth data packet received by the sender; forty-sixth field, used to carry the sending time of the first composite OAM message sent by the sender The forty-seventh field is used to carry the receiving time stamp of the receiving end receiving the first composite OAM message; the forty-eighth field is used to carry the sending time stamp of the receiving end sending the second composite OAM message; the forty-ninth field field, which is used to carry the receiving timestamp when the sender receives the second composite OAM message.
可选地,IPv6扩展头为目的地选项头DoH或分段路由报头SRH或比特索引显示复制BIER头。Optionally, the IPv6 extension header duplicates the BIER header for the destination option header DoH or segment routing header SRH or bit index display.
可选地,IPv6扩展头包括关联通道ACH,第一OAM消息承载于ACH中。Optionally, the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
可选地,关联通道ACH包括选项类型字段和通道类型字段,选项类型字段指示关联通道,通道类型字段指示ACH所承载的通道类型为OAM通道,该OAM通道用于承载第一OAM消息。Optionally, the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
可选地,第一IPv6报文还包括第一OAM消息的统一会话标识,统一会话标识用于第一OAM消息的发送端匹配第一OAM消息与发送端接收的来自对端的OAM消息。Optionally, the first IPv6 packet further includes a unified session identifier of the first OAM message, and the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end.
第三方面,申请实施例提供了一种用于操作维护管理OAM检测的***,该***包括发送端和接收端,其中,发送端用于发送第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息,第一OAM消息包括类型T字段和值V字段,T字段指示第一OAM消息的类型,V字段承载第一OAM消息的内容;接收端用于接收第一IPv6报文,根据第一IPv6报文获得第二IPv6报文,向发送端发送第二IPv6报文,第二IPv6报文包括第二OAM消息,第二OAM消息是对第一OAM消息的响应。In a third aspect, the application embodiments provide a system for OAM detection of operation, maintenance and management, the system includes a sending end and a receiving end, wherein the sending end is used to send a first IPv6 packet, and the IPv6 address of the first IPv6 packet is The extension header carries the first OAM message, the first OAM message includes a type T field and a value V field, the T field indicates the type of the first OAM message, and the V field carries the content of the first OAM message; the receiving end is used to receive the first IPv6 message. message, obtain a second IPv6 message according to the first IPv6 message, and send the second IPv6 message to the sender, where the second IPv6 message includes a second OAM message, and the second OAM message is a response to the first OAM message.
需要说明的是,下述各种类型的第一OAM消息的具体消息格式可参考上述第一方面中同种类型的第一OAM消息的具体消息格式。It should be noted that, for the specific message formats of the following various types of first OAM messages, reference may be made to the specific message formats of the first OAM messages of the same type in the foregoing first aspect.
可选地,第一OAM消息不包括协议版本信息。Optionally, the first OAM message does not include protocol version information.
可选地,T字段指示第一OAM消息为回显echo消息。在此情况下,第一OAM消息不包括协议版本信息和时间戳信息。Optionally, the T field indicates that the first OAM message is an echo message. In this case, the first OAM message does not include protocol version information and timestamp information.
可选地,T字段指示第一OAM消息为主动连通性检测消息。在此情况下,第一OAM消息不包括协议版本信息、本地标识符和远端标识符。Optionally, the T field indicates that the first OAM message is an active connectivity detection message. In this case, the first OAM message does not include protocol version information, local identifier and remote identifier.
可选地,T字段指示第一OAM消息为性能检测消息。Optionally, the T field indicates that the first OAM message is a performance detection message.
可选地,T字段指示第一OAM消息为第一复合OAM消息,第一复合OAM消息用于实现至少两种OAM功能。Optionally, the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
可选地,IPv6扩展头为目的地选项头DoH或分段路由报头SRH或比特索引显示复制BIER头。Optionally, the IPv6 extension header duplicates the BIER header for the destination option header DoH or segment routing header SRH or bit index display.
可选地,IPv6扩展头包括关联通道ACH,第一OAM消息承载于ACH中。Optionally, the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
可选地,关联通道ACH包括选项类型字段和通道类型字段,选项类型字段指示该关联通道,通道类型字段指示ACH所承载的通道类型为OAM通道,该OAM通道用于承载第一OAM消息。Optionally, the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message.
可选地,第一IPv6报文还包括统一会话标识,该统一会话标识被发送端用于匹配第一OAM消息与第二OAM消息。Optionally, the first IPv6 packet further includes a unified session identifier, and the unified session identifier is used by the sender to match the first OAM message and the second OAM message.
第四方面,本申请实施例提供了一种装置,该装置包括处理器和存储器;其中,存储器用于存储程序指令;所述处理器调用所述存储器中的程序指令,使得所述装置执行第一方面或者第一方面的任一可能的实现方式中的方法。In a fourth aspect, an embodiment of the present application provides an apparatus, the apparatus includes a processor and a memory; wherein, the memory is used to store program instructions; the processor calls the program instructions in the memory, so that the apparatus executes the first The method in one aspect or any possible implementation of the first aspect.
第五方面,本申请实施例提供了一种计算机可读存储介质,包括指令,当该指令被计算机执行时,实现第一方面或者第一方面的任一可能的实现方式中的方法的部分或全部操作。In a fifth aspect, embodiments of the present application provide a computer-readable storage medium, including instructions that, when the instructions are executed by a computer, implement part of the method in the first aspect or any possible implementation manner of the first aspect or All operations.
第六方面,本申请实施例提供了一种计算机程序产品,该计算机程序软件产品包括程序,当该程序被处理器执行时,实现前述第一方面或者第一方面的任一可能的实施例中的所述方法的部分或全部操作。该计算机程序产品可以为一个软件安装包,在需要使用前述第一方面的任一种可能的设计提供的方法的情况下,可以下载该计算机程序产品并在装置上执行该计算机程序产品,以实现第一方面或者第一方面的任一可能的实施例中的所述方法。In a sixth aspect, an embodiment of the present application provides a computer program product, the computer program software product includes a program, when the program is executed by a processor, the first aspect or any possible embodiment of the first aspect is implemented. some or all of the operations of the method. The computer program product may be a software installation package, and if the method provided by any of the possible designs of the first aspect needs to be used, the computer program product may be downloaded and executed on the device to achieve The method in the first aspect or any possible embodiment of the first aspect.
附图说明Description of drawings
为了更清楚地说明本申请实施例技术方案,下面将对实施例描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to explain the technical solutions of the embodiments of the present application more clearly, the following briefly introduces the accompanying drawings used in the description of the embodiments. For those of ordinary skill, other drawings can also be obtained from these drawings without any creative effort.
图1是一种MPLS Ping消息格式的示意图;Fig. 1 is a kind of schematic diagram of MPLS Ping message format;
图2是一种ICMPv6 Ping消息格式的示意图;Fig. 2 is a kind of schematic diagram of ICMPv6 Ping message format;
图3是一种BFD控制报文格式的示意图;Fig. 3 is a kind of schematic diagram of BFD control message format;
图4A是一种STAMP发送端测量报文的示意图;4A is a schematic diagram of a STAMP sender measuring message;
图4B是一种STAMP反射端测量报文的示意图;4B is a schematic diagram of a STAMP reflection end measurement message;
图4C是另一种STAMP发送端测量报文的示意图;4C is a schematic diagram of another STAMP sender measurement message;
图4D是另一种STAMP反射端测量报文的示意图;4D is a schematic diagram of another STAMP reflection end measurement message;
图5A是一种MPLS丢包测量(LM)报文的示意图;5A is a schematic diagram of an MPLS packet loss measurement (LM) message;
图5B是一种MPLS时延测量(DM)报文的示意图;5B is a schematic diagram of an MPLS Delay Measurement (DM) message;
图5C是一种MPLS丢包时延测量(LM-DM)报文的示意图;5C is a schematic diagram of an MPLS packet loss delay measurement (LM-DM) message;
图6是本申请实施例提供的一种通信***示意图;6 is a schematic diagram of a communication system provided by an embodiment of the present application;
图7是本申请实施例提供的一种OAM消息的通用格式示意图;7 is a schematic diagram of a general format of an OAM message provided by an embodiment of the present application;
图8是本申请实施例提供的一种消息类型为回显消息时的OAM消息的示意图;8 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is an echo message;
图9是本申请实施例提供的一种消息类型为主动连通性检测消息时的OAM消息的示意 图;9 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is an active connectivity detection message;
图10是本申请实施例提供的一种消息类型为性能检测消息时的OAM消息的示意图;10 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a performance detection message;
图11是本申请实施例提供的又一种消息类型为性能检测时消息的OAM消息的示意图;11 is a schematic diagram of another OAM message whose message type is a performance detection message provided by an embodiment of the present application;
图12A是本申请实施例提供的一种用于丢包检测的OAM消息的示意图;12A is a schematic diagram of an OAM message for packet loss detection provided by an embodiment of the present application;
图12B是本申请实施例提供的一种用于时延检测的OAM消息的示意图;12B is a schematic diagram of an OAM message for delay detection provided by an embodiment of the present application;
图12C是本申请实施例提供的一种用于丢包时延检测的OAM消息的示意图;12C is a schematic diagram of an OAM message for packet loss delay detection provided by an embodiment of the present application;
图13是本申请实施例提供的一种消息类型为复合OAM消息时的OAM消息的示意图;13 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a composite OAM message;
图14是本申请实施例提供的一种消息类型为复合OAM消息时的OAM消息的示意图;14 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a composite OAM message;
图15是本申请实施例提供的一种消息类型为复合OAM消息时的OAM消息的示意图;15 is a schematic diagram of an OAM message when a message type provided by an embodiment of the present application is a composite OAM message;
图16是本申请实施例提供的一种OAM消息的封装格式;Fig. 16 is the encapsulation format of a kind of OAM message provided by the embodiment of the present application;
图17是本申请实施例提供的又一种OAM消息的封装格式;Fig. 17 is the encapsulation format of another OAM message provided by the embodiment of the present application;
图18是本申请实施例提供的又一种OAM消息的封装格式;Fig. 18 is the encapsulation format of another OAM message provided by the embodiment of the present application;
图19是本申请实施例提供的又一种OAM消息的封装格式;Fig. 19 is the encapsulation format of another OAM message provided by the embodiment of the present application;
图20是本申请实施例提供的又一种OAM消息的封装格式;Fig. 20 is the encapsulation format of another OAM message provided by the embodiment of the present application;
图21是本申请实施例提供的一种OAM检测的方法流程图;21 is a flowchart of a method for OAM detection provided by an embodiment of the present application;
图22是本申请实施例提供的又一种OAM检测的方法流程图;22 is a flowchart of another method for OAM detection provided by an embodiment of the present application;
图23是本申请实施例提供的一种装置的结构示意图;23 is a schematic structural diagram of a device provided by an embodiment of the present application;
图24是本申请实施例提供的一种装置的功能结构示意图。FIG. 24 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application.
具体实施方式Detailed ways
在本申请实施例中使用的术语是仅仅出于描述特定实施例的目的,而非旨在限制本申请。本申请实施例中的说明书和权利要求书中的术语“第一”、“第二”等是用于区别不同对象,而不是用于描述特定顺序。The terms used in the embodiments of the present application are only for the purpose of describing specific embodiments, and are not intended to limit the present application. The terms "first", "second" and the like in the description and the claims in the embodiments of the present application are used to distinguish different objects, rather than to describe a specific order.
OAM技术涉及连通性检测(Continuity Check,CC)/连通性验证(Continuity Verification,CV)和性能检测(Performance Measurement,PM),现有OAM技术的实现需要多种协议,例如,用于CC的有多协议标签交换(Multiprotocol Label Switching,MPLS)Ping协议和双向转发检测(Bidirectional Forwarding Detection,BFD)协议,用于PM的双向主动测量(Two-Way Active Measurement Protocol,TWAMP)协议等。OAM technology involves Continuity Check (CC)/Continuity Verification (CV) and Performance Measurement (PM). The implementation of existing OAM technology requires multiple protocols. Multiprotocol Label Switching (MPLS) Ping protocol and Bidirectional Forwarding Detection (BFD) protocol, Two-Way Active Measurement Protocol (TWAMP) protocol for PM, etc.
在介绍本申请提供的OAM消息的通用格式前,先介绍一些涉及到的协议的格式:Before introducing the general format of the OAM message provided by this application, the format of some involved protocols is introduced:
(1)MPLS Ping协议(1) MPLS Ping protocol
MPLS Ping协议是一种简单有效的检测MPLS标签交换路径(Label Switching Path,LSP)中的数据面故障,主要通过发送MPLS Echo消息实现,其定义了一个称为“MPLS回显请求(MPLS echo request)”的探测报文和一个称为“MPLS回显应答(MPLS echo reply)”的响应消息,MPLS echo reply用于返回探测的结果。MPLS Echo消息封装在IPv4或IPv6的用户数据报协议(User Datagram Protocol,UDP)报文中。图1示例性地给出了一种MPLS Echo消息的报文格式,下面对图1中的各个字段进行相关说明:MPLS Ping protocol is a simple and effective way to detect data plane faults in MPLS Label Switching Path (LSP), mainly by sending MPLS Echo message, which defines a method called "MPLS echo request (MPLS echo request)". )" and a response message called "MPLS echo reply", MPLS echo reply is used to return the result of the probe. MPLS Echo messages are encapsulated in IPv4 or IPv6 User Datagram Protocol (UDP) packets. Figure 1 exemplarily shows a packet format of an MPLS Echo message. The following describes each field in Figure 1:
Version Number:版本号,MPLS Echo的版本号目前为1;Version Number: version number, the version number of MPLS Echo is currently 1;
Global Flags:全局标志,其包括:Global Flags: Global flags, which include:
验证FEC堆栈标志(Validate FEC Stack flag,简称V标志):V标志置1表示发 送者希望接收者执行转发等价类(Forwarding Equivalence Class,FEC)堆栈验证;Validate FEC Stack flag (Validate FEC Stack flag, referred to as V flag): The V flag is set to 1 to indicate that the sender wants the receiver to perform Forwarding Equivalence Class (FEC) stack verification;
验证返回路径标志(Validate Reverse Path flag,简称R标志):用于指示接收者返回反向路径FEC信息;Validate Reverse Path flag (R flag for short): used to instruct the receiver to return reverse path FEC information;
生存时长到期响应标志(Respond Only If TTL Expired flag,简称T标志):T标志仅由发送者设置,若T标志置1且MPLS标签的生存时间值(Time to Live,TTL)大于1,则接收者丢弃MPLS echo request消息;Respond Only If TTL Expired flag (T flag for short): The T flag is only set by the sender. If the T flag is set to 1 and the time-to-live value of the MPLS label (Time to Live, TTL) is greater than 1, then The receiver discards the MPLS echo request message;
Message Type:消息类型,包括MPLS echo request消息和MPLS echo reply消息;Message Type: message type, including MPLS echo request message and MPLS echo reply message;
Reply mode:回复模式,用于指定接收者对MPLS echo request报文的应答模式,具体地,Reply mode定义有四个值,value=1表示不回复,value=2表示通过一个IPv4或IPv6 UDP数据包进行回复,value=3表示通过一个带有路由器警报的IPv4或IPv6 UDP数据包进行回复,value=4表示通过应用程序级别的控制通道进行回复;Reply mode: reply mode, which is used to specify the reply mode of the receiver to the MPLS echo request message. Specifically, Reply mode defines four values, value=1 means no reply, value=2 means passing an IPv4 or IPv6 UDP data packet to reply, value=3 means reply through an IPv4 or IPv6 UDP packet with router alert, value=4 means reply through application level control channel;
Return Code:返回代码,发送者设置为0,接收者可以设置相应的值;Return Code: Return code, the sender is set to 0, the receiver can set the corresponding value;
具体地,返回代码的值具体有以下几种:Specifically, the values of the return code are as follows:
Value=0表示无返回代码;Value=0 means no return code;
Value=1表示接收到异常的回显请求;Value=1 indicates that an abnormal echo request is received;
Value=2表示至少一个可变长字段无法理解;Value=2 means that at least one variable-length field cannot be understood;
Value=3表示应答路由器是FEC在堆栈深度的出节点;Value=3 indicates that the answering router is the outgoing node of the FEC at the stack depth;
Value=4表示应答路由器在堆栈深度没有FEC的映射;Value=4 indicates that the answering router has no FEC mapping at the stack depth;
Value=5表示下游映射不匹配;Value=5 indicates that the downstream mapping does not match;
Value=6表示上游接口索引未知;Value=6 indicates that the upstream interface index is unknown;
Value=7表示预留位;Value=7 means reserved bit;
Value=8表示在堆栈深度执行了标签交换;Value=8 indicates that label switching is performed at the stack depth;
Value=9表示标签交换但在堆栈深度无MPLS转发;Value=9 means label switching but no MPLS forwarding at stack depth;
Value=10表示FEC的映射并不是堆栈深度给定的标签;Value=10 indicates that the mapping of FEC is not the label given by the stack depth;
Value=11表示堆栈深度无标签入口;Value=11 indicates that the stack depth has no label entry;
Value=12表示协议未与FEC堆栈深度的接口关联;Value=12 indicates that the protocol is not associated with the interface of the FEC stack depth;
Value=13表示标签堆叠缩小至单个标签导致Ping提前终止;Value=13 means that the tag stack is reduced to a single tag, resulting in early termination of Ping;
Value=14表示有关返回码和返回子码的含义参见DDMAP TLV;Value=14 means refer to DDMAP TLV for the meaning of return code and return subcode;
Value=15表示标签随FEC改变而切换;Value=15 indicates that the label is switched with the change of FEC;
Return Subcode(RSC):返回子代码,其包含标签堆栈的处理终止的点,如果RSC为0,表示报文没有携带标签,不需要处理标签;否则,报文携带了标签;Return Subcode(RSC): Return subcode, which includes the point at which the processing of the label stack is terminated. If RSC is 0, it means that the message does not carry a label and does not need to be processed; otherwise, the message carries a label;
Sender’s Handle:发送者句柄,用于标识MPLS echo request,接收者在MPLS echo reply中不加修改的返回,发送者通过该字段将请求与应答进行匹配;单次的LSP Ping操作可产生多个MPLS echo request,但这多个MPLS echo request包含的Sender’s Handle相同;Sender's Handle: The sender's handle, which is used to identify the MPLS echo request. The receiver returns unmodified in the MPLS echo reply. The sender uses this field to match the request with the response; a single LSP Ping operation can generate multiple MPLS echo request, but these multiple MPLS echo requests contain the same Sender's Handle;
Sequence Number:序列号,由发送者匹配,可用于检测应答报文是否丢失;单次的LSP Ping操作可产生多个Sequence Number;Sequence Number: The sequence number, matched by the sender, can be used to detect whether the response packet is lost; a single LSP Ping operation can generate multiple Sequence Numbers;
TimeStamp Sent:发送者时间戳,记录MPLS echo request的发送时间;TimeStamp Sent: sender timestamp, recording the sending time of MPLS echo request;
TimeStamp Received:接收者时间戳,记录MPLS echo reply的接收时间;TimeStamp Received: Receiver timestamp, recording the receiving time of MPLS echo reply;
TLVs:类型/长度/值。TLVs: Type/Length/Value.
(2)ICMPv6 based Ping协议(2) ICMPv6 based Ping protocol
互联网控制信息协议版本6(Internet Control Message Protocol for the IPv6,ICMPv6)是IPv6的基础协议之一,ICMPv6用于向源节点报告关于向目的地传输IP数据包过程中的错误,以及执行其他网络互连层功能,例如,诊断(ICMPv6“Ping”)。参加图2示例性地给出了一种ICMPv6消息的报文格式,下面对图2中的各个字段进行相关说明:Internet Control Message Protocol version 6 (Internet Control Message Protocol for the IPv6, ICMPv6) is one of the basic protocols of IPv6. ICMPv6 is used to report errors in the process of transmitting IP packets to the destination to the source node, and perform other network interactions. Connect layer functions, eg, diagnostics (ICMPv6 "Ping"). Participating in Figure 2 exemplarily provides a message format of an ICMPv6 message, and each field in Figure 2 is described below:
ICMPv6消息包括Type、Code、Checksum和ICMPv6 Data四个部分,其中,Type表示消息类型,其中,0-127表示出错消息,128-255表示指示消息,指示消息主要包括回显请求消息(Echo Request)和回显应答消息(Echo Reply),这两种消息也就是通常使用的Ping消息,其中,回显请求消息的Type字段值为128,Code字段的值为0,回显应答消息的Type字段的值为129,Code字段的值为0;Code表示代码,用于生成消息粒度的附加层;Checksum表示校验和,用于检测ICMPv6消息和IPv6首部部分中的数据错误;ICMPv6 Data进一步包括Identifier、Sequence Number和Data,其中,Identifier表示标识,用于帮助回显应答消息匹配回显请求消息的标识符,Sequence Number表示序列号,用于帮助回显应答消息匹配回显请求消息的序列号,Data可以是0或更多字节的任意数据。The ICMPv6 message includes four parts: Type, Code, Checksum and ICMPv6 Data, where Type represents the message type, 0-127 represents the error message, 128-255 represents the indication message, and the indication message mainly includes the echo request message (Echo Request) and echo reply message (Echo Reply), these two kinds of messages are also commonly used Ping messages, where the Type field value of the echo request message is 128, the value of the Code field The value is 129, and the value of the Code field is 0; Code represents code, which is used to generate an additional layer of message granularity; Checksum represents checksum, which is used to detect data errors in ICMPv6 messages and IPv6 header parts; ICMPv6 Data further includes Identifier, Sequence Number and Data, where Identifier represents the identifier, which is used to help the echo response message match the identifier of the echo request message, Sequence Number represents the sequence number, and is used to help the echo response message match the sequence number of the echo request message, Data Can be 0 or more bytes of arbitrary data.
(3)BFD协议(3) BFD protocol
BFD协议称为双向转发检测协议,用于快速检测、监控网络中链路或IP路由的转发连通情况。其检测原理为:在两个节点间的一条链路上建立一个BFD会话,两个节点中的至少一个节点发送BFD控制报文(一个特定格式的UDP报文),如果在检测时间内没有收到对端的BFD控制报文,则认为对应链路故障。BFD的检测模型有异步模式、查询模式和回声模式三种。The BFD protocol is called a bidirectional forwarding detection protocol, and is used to quickly detect and monitor the forwarding connectivity of links or IP routes in the network. The detection principle is as follows: a BFD session is established on a link between two nodes, and at least one of the two nodes sends a BFD control packet (a UDP packet in a specific format). If the BFD control packets sent to the peer end, the corresponding link is considered to be faulty. There are three detection models of BFD: asynchronous mode, query mode and echo mode.
BFD控制报文具有强制部分和可选的身份验证部分。身份验证部分的格式取决于使用的身份验证类型。图3是一种BFD控制报文的必选部分的示意图,下面对图3中的各个字段进行相关说明:BFD control packets have a mandatory part and an optional authentication part. The format of the authentication section depends on the type of authentication used. FIG. 3 is a schematic diagram of a mandatory part of a BFD control message, and each field in FIG. 3 is described below:
Vers(Version):版本号,BFD协议版本号目前为1;Vers(Version): version number, the BFD protocol version number is currently 1;
Diag(Diagnostic):诊断字,用于指示本地BFD***最近一次会话状态发生变化的原因;Diag(Diagnostic): Diagnostic word, used to indicate the reason for the last session state change of the local BFD system;
Sta(State):本地BFD会话状态;Sta(State): local BFD session state;
P(Poll):轮询标志,P标志置1表示发送者请求验证连接性或参数更改;P标志置0表示发送者不请求验证;P(Poll): Polling flag, P flag set to 1 means the sender requests to verify connectivity or parameter changes; P flag set to 0 means the sender does not request verification;
F(Final):终止标志,响应P标志的应答报文中须将F标志置位,F标志置1表示发送者响应一个P标志为1的BFD控制报文,F标志置0表示发送者不响应一个P标志为1的BFD控制报文;F(Final): Termination flag, the F flag must be set in the response message responding to the P flag. The F flag is set to 1 to indicate that the sender responds to a BFD control message with the P flag of 1. The F flag is set to 0 to indicate that the sender does not Respond to a BFD control packet with the P flag set to 1;
C(Control Plane Independent):转发控制分离标志,置0表示BFD控制报文在控制平面传输,置1表示BFD控制报文在转发平面传输,控制平面的变化不影响BFD检测;C (Control Plane Independent): Forwarding control separation flag, set to 0 to indicate that BFD control packets are transmitted on the control plane, and set to 1 to indicate that BFD control packets are transmitted on the forwarding plane. Changes in the control plane do not affect BFD detection;
A(Authentication Present):认证标志,置1表示需对会话进行身份认证;A (Authentication Present): Authentication flag, set to 1 to indicate that the session needs to be authenticated;
D(Demand):查询请求标志,置1表示希望工作在查询模式,置0表示不希望工作在查询模式;D(Demand): query request flag, set to 1 to indicate that you want to work in the query mode, and set to 0 to indicate that you do not want to work in the query mode;
M(Multipoint):多点标志,为BFD未来支持点对多点扩展而设的预留位;M (Multipoint): Multipoint flag, a reserved bit for BFD to support point-to-multipoint expansion in the future;
Detected Mult:检测时间乘数,用于为对端提供异步查询模式下的检测时间;Detected Mult: The detection time multiplier, which is used to provide the peer end with the detection time in the asynchronous query mode;
Length:BFD控制报文的长度;Length: the length of the BFD control packet;
My Discriminator:BFD会话的本地标识符,传输***生成的唯一的非零标识符值,用于区分BFD会话;My Discriminator: the local identifier of the BFD session, a unique non-zero identifier value generated by the transmission system, used to distinguish BFD sessions;
Your Discriminator:BFD会话的远端标识符,该字段反映了My Discriminator的对端接收值,若该值未知,则为0;Your Discriminator: The remote identifier of the BFD session, this field reflects the value received by the peer of My Discriminator, if the value is unknown, it is 0;
Desired Min TX Interval:本地支持的BFD控制报文的最小发送间隔;Desired Min TX Interval: The minimum sending interval of BFD control packets supported locally;
Desired Min RX Interval:本地支持的BFD控制报文的最小接收间隔;Desired Min RX Interval: The minimum receiving interval of locally supported BFD control packets;
Required Min Echo RX Interval:本地支持的BFD回显报文的最小接收间隔。Required Min Echo RX Interval: The minimum receiving interval of BFD echo packets supported locally.
(4)TWAMP-Light/STAMP协议(4) TWAMP-Light/STAMP protocol
TWAMP-Light是TWAMP协议的轻量级架构,其包括发送端Controller和反射端Responder,其中,发送端Controller集合了TWAMP标准框架中的Control-Client、Server和Session-Sender角色,在完成测量会话报文的发送接收、性能数据采集和计算并将最后结果上送给网管平台;反射端Responder仅包括TWAMP标准框架中的Session-Reflector角色,只负责测量会话报文的反射。TWAMP-Light is a lightweight architecture of the TWAMP protocol, which includes a sender Controller and a reflector Responder. The sender Controller integrates the roles of Control-Client, Server, and Session-Sender in the TWAMP standard framework. Send and receive, collect and calculate performance data and send the final results to the network management platform; the reflector Responder only includes the Session-Reflector role in the TWAMP standard framework, and is only responsible for measuring the reflection of session packets.
STAMP(Simple Two-way Active Measurement Protocol,简化的双向主动测量协议)是TWAMP Light(informative in RFC5357)在IETF IPPM组的标准化协议。在STAMP框架中,Configuration and Management(配置和管理)用于配置STAMP Session-Sender和STAMP Session-Reflector的统计的参数,待配置完实例后,STAMP Session-Sender端和STAMP Session-Reflector端之间通过发送测量Test报文来计算出该网络的丢包率、时延和时延抖动等性能数据。STAMP中,Session-Sender Test报文和Session-Reflector Test报文封装格式可细分为非认证模式和认证模式,具体报文格式可参考图4A-图4D:STAMP (Simple Two-way Active Measurement Protocol) is a standardized protocol of TWAMP Light (informative in RFC5357) in the IETF IPPM group. In the STAMP framework, Configuration and Management is used to configure the statistical parameters of STAMP Session-Sender and STAMP Session-Reflector. After the instance is configured, the STAMP Session-Sender side and the STAMP Session-Reflector side pass through Send measurement Test packets to calculate performance data such as the packet loss rate, delay, and delay jitter of the network. In STAMP, the encapsulation formats of Session-Sender Test packets and Session-Reflector Test packets can be subdivided into non-authentication mode and authentication mode. For specific packet formats, please refer to Figure 4A-Figure 4D:
参见图4A,图4A提供了一种STAMP Session-Sender在非认证模式下的测量报文格式,下面对图4A中的各个字段进行相关说明:Referring to FIG. 4A, FIG. 4A provides a measurement message format of STAMP Session-Sender in non-authentication mode. The following describes each field in FIG. 4A:
Sequence Number:序列号,Sender根据传输顺序生成的报文序列号;Sequence Number: sequence number, the message sequence number generated by the Sender according to the transmission sequence;
Timestamp:时间戳,表示Sender发送测量报文的发送时间;Timestamp: Timestamp, indicating the sending time of the measurement packet sent by the Sender;
Error Estimate:错误检测字段,指定了错误的检测和同步;Error Estimate: Error detection field, specifying error detection and synchronization;
MBZ:必须填为0。MBZ: must be filled with 0.
参见图4B,图4B提供了一种STAMP Session-Reflector在非认证模式下的测量报文格式,下面对图4B中的各个字段进行相关说明:Referring to FIG. 4B, FIG. 4B provides a measurement message format of STAMP Session-Reflector in non-authentication mode. The following describes each field in FIG. 4B:
Sequence Number:序列号,Reflector生成的测量报文的序列号;Sequence Number: sequence number, the sequence number of the measurement message generated by Reflector;
Timestamp:时间戳,为Reflector发送测量报文的发送时间;Timestamp: timestamp, which is the sending time of the measurement packet sent by the Reflector;
Error Estimate:Reflector的错误测量;Error Estimate: Reflector's error measurement;
Receive Timestamp:接收时间戳,为Reflector接收到测量报文的接收时间;Receive Timestamp: Receive timestamp, which is the time when the Reflector receives the measurement message;
Sender Sequence Number:Sender的序列号,即为图4A中Sequence Number;Sender Sequence Number: The serial number of the Sender, which is the Sequence Number in Figure 4A;
Sender Timestamp:Sender的时间戳,表示Sender发送测量报文的发送时间,即为图4A中的Timestamp;Sender Timestamp: The timestamp of the Sender, indicating the sending time of the measurement message sent by the Sender, which is the Timestamp in Figure 4A;
Sender Error Estimate:Sender的错误测量,即为图4A中的Error Estimate;Sender Error Estimate: Sender's error measurement, which is the Error Estimate in Figure 4A;
Sender TTL:Sender发送的测量报文的生存时间值;Sender TTL: The time-to-live value of the measurement packet sent by the Sender;
MBZ:必须填为0。MBZ: must be filled with 0.
参见图4C,图4C提供了一种STAMP Session-Sender在认证模式下的测量报文格式,下 面对图4C中的各个字段进行相关说明:Referring to Fig. 4C, Fig. 4C provides a measurement message format of STAMP Session-Sender in authentication mode, and each field in Fig. 4C is described below:
HMAC:哈希运算消息认证码,在认证模式下,HMAC字段包含的块为16字节;HMAC: Hash operation message authentication code. In authentication mode, the block contained in the HMAC field is 16 bytes;
图4C中的Sequence Number、Timestamp、Error Estimate、MBZ字段可参考图4A中的相关叙述,在此不再赘述。For the Sequence Number, Timestamp, Error Estimate, and MBZ fields in FIG. 4C, reference may be made to the relevant description in FIG. 4A, which will not be repeated here.
参见图4D,图4D提供了一种STAMP Session-Reflector在认证模式下的Test报文格式,下面对图4D中的各个字段进行相关说明:Referring to FIG. 4D, FIG. 4D provides a Test message format of STAMP Session-Reflector in authentication mode. The following describes each field in FIG. 4D:
HMAC:哈希运算消息认证码,在认证模式下,HMAC字段包含的块为16字节;HMAC: Hash operation message authentication code. In authentication mode, the block contained in the HMAC field is 16 bytes;
图4D中的Sequence Number、Timestamp、Error Estimate等其它字段可参考图4B中的相关叙述,在此不再赘述。For other fields such as Sequence Number, Timestamp, Error Estimate, etc. in FIG. 4D, reference may be made to the relevant description in FIG. 4B, and details are not repeated here.
(5)MPLS Loss and Delay Measurement(5) MPLS Loss and Delay Measurement
MPLS网络的性能测量包括丢包测量(Loss Measurement,LM)和时延测量(Delay Measurement,DM),通过LM消息查询和DM消息查询可实现单向或双向的丢包、时延测量。The performance measurement of MPLS network includes packet loss measurement (Loss Measurement, LM) and delay measurement (Delay Measurement, DM). One-way or two-way packet loss and delay measurement can be achieved through LM message query and DM message query.
参见图5A,图5A提供了一种MPLS LM消息的格式,下面对图5A中的各个字段进行相关说明:Referring to Fig. 5A, Fig. 5A provides a format of an MPLS LM message, and each field in Fig. 5A is described below:
Version:版本号;Version: version number;
Flags:标志位,1)R-flag置0表示查询,置1表示响应;2)T-flag置1表示测量的是特定流量类别的数据包,置0表示非特定流量类别;在T-flag置1时,DS字段表示测得的流量类别;Flags: Flag bit, 1) R-flag is set to 0 to indicate query, and 1 to response; 2) T-flag is set to 1 to indicate that the data packet of a specific traffic category is measured, and 0 to indicate non-specific traffic category; in T-flag When set to 1, the DS field indicates the measured traffic class;
Control Code:控制代码,用于指示查询类型或响应类型;Control Code: Control code used to indicate query type or response type;
Message Length:消息长度;Message Length: message length;
Dflags(Data Format Flags):数据标志;Dflags(Data Format Flags): data flags;
OTF(Origin Timestamp Format):时间戳格式;OTF(Origin Timestamp Format): Timestamp format;
Reserved:预留;Reserved: reserved;
Session Identifier:会话标识,在查询中任意设置并在响应中复制;Session Identifier: session identifier, arbitrarily set in the query and copied in the response;
DS(Differentiated Services):区分服务标志,置1表示此字段设置为DSCP值,置0表示此字段为任意值,且该字段可是视作会话标识的一部分;DS (Differentiated Services): differentiated services flag, set to 1 to indicate that this field is set to the DSCP value, set to 0 to indicate that this field is an arbitrary value, and this field can be regarded as a part of the session identification;
Origin TimeStamp:初始时间戳,表示查询消息的发送时间;Origin TimeStamp: The initial timestamp, indicating the sending time of the query message;
Counter1-Counter4:计数器1-4,当A发送查询时,计数器1设置为A_TxP,其他计数器字段设置为0。在B处接收到查询时,计数器2设置为B_RxP。此时,B将计数器1复制到计数器3,将计数器2复制到计数器4,并将计数器1和计数器2重新初始化为0。当B发送响应时,计数器1设置为B_TxP。当在A处收到响应时,计数器2设置为A_RxP。Counter1-Counter4: Counters 1-4, when A sends a query, counter 1 is set to A_TxP, and other counter fields are set to 0. When a query is received at B, counter 2 is set to B_RxP. At this point, B copies counter 1 to counter 3, counter 2 to counter 4, and reinitializes counter 1 and counter 2 to 0. When B sends a response, counter 1 is set to B_TxP. When a response is received at A, counter 2 is set to A_RxP.
TLV Block:类型-长度-值,可选的。TLV Block: type-length-value, optional.
参见图5B,图5B提供了一种MPLS DM消息的格式,下面对图5B中的各个字段进行相关说明:Referring to Fig. 5B, Fig. 5B provides a format of an MPLS DM message, and each field in Fig. 5B is described below:
Version:版本号;Version: version number;
Flags:标志位,1)R-flag置0表示查询,置1表示响应;2)T-flag置1表示测量的是特定流量类别的数据包,置0表示非特定流量类别;在T-flag置1时,DS字段表示测得的流量类别;Flags: Flag bit, 1) R-flag is set to 0 to indicate query, and 1 to response; 2) T-flag is set to 1 to indicate that the data packet of a specific traffic category is measured, and 0 to indicate non-specific traffic category; in T-flag When set to 1, the DS field indicates the measured traffic class;
Control Code:控制代码,用于指示查询类型或响应类型;Control Code: Control code used to indicate query type or response type;
Message Length:消息长度;Message Length: message length;
QTF(Querier Timestamp Format):查询器的时间戳的格式;QTF (Querier Timestamp Format): the format of the timestamp of the querier;
RTF(Responder Timestamp Format):响应器的时间戳的格式;RTF (Responder Timestamp Format): The format of the responder's timestamp;
RPTF(Responder’s Preferred Timestamp Format):响应器的首选时间戳的格式;RPTF (Responder's Preferred Timestamp Format): the format of the responder's preferred timestamp;
Reserved:预留位;Reserved: reserved bit;
Session Identifier:会话标识,在查询中任意设置并在响应中复制;Session Identifier: session identifier, arbitrarily set in the query and copied in the response;
DS(Differentiated Services):区分服务标志为,置1表示此字段设置为DSCP值,置0表示此字段为任意值,且该字段可是视作会话标识的一部分;DS (Differentiated Services): The differentiated service flag is set to 1 to indicate that this field is set to the DSCP value, and set to 0 to indicate that this field is an arbitrary value, and this field can be regarded as part of the session ID;
Timestamp1-Timestamp4:时间戳1-4,当从A发送查询时,时间戳1设置为T1,其他时间戳字段设置为0。在B处接收到查询时,时间戳2设置为T2。此时,B将时间戳1复制到时间戳3,将时间戳2复制到时间戳4,并将时间戳1和时间戳2重新初始化为0。当B发送响应时,时间戳1设置为T3。当在A处收到响应时,时间戳2设置为T4。Timestamp1-Timestamp4: Timestamp 1-4, when a query is sent from A, timestamp 1 is set to T1 and other timestamp fields are set to 0. When the query is received at B, timestamp 2 is set to T2. At this point, B copies timestamp 1 to timestamp 3, copies timestamp 2 to timestamp 4, and reinitializes timestamp 1 and timestamp 2 to 0. When B sends a response, timestamp 1 is set to T3. When the response is received at A, timestamp 2 is set to T4.
TLV Block:类型-长度-值块,可选的。TLV Block: type-length-value block, optional.
参见图5C,图5C提供了一种MPLS LM-DM消息的格式,可以看出,图5C所示的MPLS LM-DM消息格式是将图5A和图5B中的消息格式进行组合,其MPLS LM消息中的OTF字段与MPLS DM消息中的QTF字段的含义相同,MPLS LM消息中的段Origin Timestamp字段与MPLS DM消息中的Timestamp 1字段的含义相同,故在图5C中,QTF和Timestamp 1字段分别替代了MPLS LM消息的OTF和Origin Timestamp字段。需要说明的是,图5C中的其他字段与图5A或图5B中的相应字段具有相同的含义,图5C中各个字段的说明可参考图5A和图5B中的相关叙述,为了说明书的简洁,在此不再赘述。Referring to Figure 5C, Figure 5C provides a format of an MPLS LM-DM message. It can be seen that the MPLS LM-DM message format shown in Figure 5C is a combination of the message formats in Figure 5A and Figure 5B, and its MPLS LM The OTF field in the message has the same meaning as the QTF field in the MPLS DM message, and the segment Origin Timestamp field in the MPLS LM message has the same meaning as the Timestamp 1 field in the MPLS DM message. Therefore, in Figure 5C, the QTF and Timestamp 1 fields have the same meaning. Replaces the OTF and Origin Timestamp fields of MPLS LM messages, respectively. It should be noted that the other fields in FIG. 5C have the same meaning as the corresponding fields in FIG. 5A or FIG. 5B , and the description of each field in FIG. 5C can refer to the relevant descriptions in FIG. 5A and FIG. 5B . For the brevity of the description, It is not repeated here.
需要说明的是,上述现有技术中各个协议的版本号version也可以称为协议版本信息或协议版本号,例如,BFD协议中的version也可以称作BFD协议的协议版本信息或协议版本号。It should be noted that the version number version of each protocol in the above prior art may also be referred to as protocol version information or protocol version number. For example, the version in the BFD protocol may also be referred to as the protocol version information or protocol version number of the BFD protocol.
可以看出,OAM涉及的多个协议分散复杂,不同的协议具有不同的消息格式且部分协议功能的重复度高,例如,Ping消息中的Timestamp Sent、Timestamp Received字段与STAMP消息中的Sender Timestamp、Receive Timestamp字段均可用于时延测量。另外,各个协议的会话标识复杂,例如,Ping协议会话标识为sender’s Handle,BFD协议的会话标识为My Discriminator和Your Discriminator,LM-DM协议的会话标识为Session Identifier等,消息处理过程繁琐。可以看出,BFD消息和STAMP消息均以UDP格式封装,封装较深,只能进行端点处理导致中间转发节点无法感知消息的具体内容。It can be seen that the multiple protocols involved in OAM are scattered and complex. Different protocols have different message formats and some protocol functions have high repetition. For example, the Timestamp Sent and Timestamp Received fields in the Ping message are the same as the Sender Timestamp, The Receive Timestamp field can be used for delay measurement. In addition, the session identifiers of each protocol are complex. For example, the session identifiers of the Ping protocol are sender's Handle, the session identifiers of the BFD protocol are My Discriminator and Your Discriminator, and the session identifiers of the LM-DM protocol are Session Identifier, etc. The message processing process is cumbersome. It can be seen that both BFD messages and STAMP messages are encapsulated in UDP format, and the encapsulation is deep, and only endpoint processing can be performed, so that the intermediate forwarding node cannot perceive the specific content of the message.
也有人提出基于BFD检测报文扩展TLVs将时延、丢包性能检测合并获得一种综合的OAM(Integrated OAM,IntOAM)协议,这种综合OAM协议扩展了BFD报文,即增加了可变的TLVs字段用于丢包、时延的性能测量,违背了BFD报文的轻量级设计初衷,赋予BFD报文额外的时延、丢包检测会影响BFD协议亚秒级的故障检测性能,另外,由于BFD报文是周期性发送的,因此,BFD报文扩展后携带的多种TLVs字段会增加网络带宽的消耗。It has also been proposed to expand TLVs based on BFD detection packets to combine delay and packet loss performance detection to obtain a comprehensive OAM (Integrated OAM, IntOAM) protocol. This integrated OAM protocol extends BFD packets, that is, increases the variable The TLVs field is used for performance measurement of packet loss and delay, which violates the original intention of lightweight design of BFD packets. Adding extra delay and packet loss detection to BFD packets will affect the sub-second fault detection performance of the BFD protocol. , because BFD packets are sent periodically, the various TLVs fields carried in the expanded BFD packets will increase the consumption of network bandwidth.
针对上述问题,本申请实施例提出一种统一OAM消息格式,可用于支持和执行OAM的各种功能,例如,连通性检测、丢包性能检测、时延性能检测等,能够提高消息的处理效率,节省开销。In response to the above problems, the embodiments of the present application propose a unified OAM message format, which can be used to support and execute various functions of OAM, such as connectivity detection, packet loss performance detection, delay performance detection, etc., which can improve message processing efficiency , to save costs.
参见图6,图6是本申请实施例提供的一种通信***示意图,该***用于基于OAM消息实现网络中任意两节点之间的连通性检测和性能检测功能中的至少一种。如图6所示,该***至少包括及节点A、节点B和至少一个中间节点,节点A通过至少一个中间节点与节点B以有线或无线的方式进行连接。其中,节点A或节点B可以是计算机(例如、服务器、个人电脑等),至少一个中间节点包括至少一个路由器、交换机、集线器等硬件。Referring to FIG. 6, FIG. 6 is a schematic diagram of a communication system provided by an embodiment of the present application, where the system is used to implement at least one of the functions of connectivity detection and performance detection between any two nodes in the network based on OAM messages. As shown in FIG. 6 , the system at least includes a node A, a node B and at least one intermediate node, and the node A is connected with the node B in a wired or wireless manner through the at least one intermediate node. Wherein, the node A or the node B may be a computer (eg, a server, a personal computer, etc.), and at least one intermediate node includes at least one hardware such as a router, a switch, and a hub.
节点A通过至少一个中间节点向节点B发送IPv6报文A,IPv6报文1的IPv6扩展头携带OAM消息A,节点B在接收到来自节点A的IPv6报文A后,获取OAM消息并生成IPv6报文B,IPv6报文B携带OAM消息B,OAM消息B是对OAM消息A的响应,节点B将IPv6报文B发送给节点A,从而节点A基于OAM消息A以及OAM消息B实现节点A与节点B之间的连通性检测/验证以及性能检测中的至少一种。Node A sends IPv6 packet A to node B through at least one intermediate node. The IPv6 extension header of IPv6 packet 1 carries OAM message A. After receiving IPv6 packet A from node A, node B obtains the OAM message and generates IPv6 packet B, IPv6 packet B carries OAM message B, OAM message B is a response to OAM message A, node B sends IPv6 packet B to node A, so node A implements node A based on OAM message A and OAM message B At least one of connectivity detection/verification with Node B and performance detection.
需要说明的是,IPv6扩展头可以是目的地选项头(Destination Options Header,DoH)或分段路由报头(Segmant Routing Header,SRH)。在一些可能的实施例中,IPv6扩展头也可以是逐跳选项头(Hop-by-hop Options Header)。It should be noted that the IPv6 extension header may be a Destination Options Header (DoH) or a Segment Routing Header (SRH). In some possible embodiments, the IPv6 extension header may also be a Hop-by-hop Options Header.
本申请实施例定义了一种OAM消息,能够实现两节点之间的连通性检测和性能测量中的一种或多种。参见图7,图7是本申请实施例提供的一种OAM消息的通用格式示意图,如图7,OAM消息包括消息类型和OAM消息内容,其中,OAM消息内容与消息类型对应。在一些可能的实施例中,若不同的消息类型对应的OAM消息内容的长度不同,则OAM消息还包括消息长度,消息长度用于指示OAM消息内容的长度。需要说明的是,OAM消息位于IPv6报文的IPv6扩展头中,OAM消息可以以TLV的形式表示,其中,T字段用于指示OAM消息的消息类型,V字段用于承载OAM消息的内容,L字段用于指示OAM消息的内容的长度。需要说明的是,本申请实施例提供的OAM消息不包括协议版本信息。The embodiment of the present application defines an OAM message, which can implement one or more of connectivity detection and performance measurement between two nodes. Referring to FIG. 7 , FIG. 7 is a schematic diagram of a general format of an OAM message provided by an embodiment of the present application. As shown in FIG. 7 , the OAM message includes a message type and OAM message content, where the OAM message content corresponds to the message type. In some possible embodiments, if the lengths of the OAM message contents corresponding to different message types are different, the OAM message further includes a message length, and the message length is used to indicate the length of the OAM message contents. It should be noted that the OAM message is located in the IPv6 extension header of the IPv6 packet, and the OAM message can be expressed in the form of TLV, where the T field is used to indicate the message type of the OAM message, the V field is used to carry the content of the OAM message, and the L The field is used to indicate the length of the content of the OAM message. It should be noted that, the OAM message provided in this embodiment of the present application does not include protocol version information.
在本申请实施例中,图7中所示OAM消息的消息类型包括4种,分别为:(1)回显消息(包括回显请求Echo Req消息/回显应答Echo Rep消息),(2)主动连通性检测(Proactive CC)消息,(3)性能检测(PM)消息,(4)复合OAM(Hybrid OAM)消息。需要说明的是,第一种和第二种均可实现连通性检测功能,第三种可实现性能检测功能,第四种可实现连通性检测和性能检测功能。In the embodiment of the present application, the message types of the OAM message shown in FIG. 7 include 4 types, which are: (1) echo messages (including echo request Echo Req messages/echo response Echo Rep messages), (2) Active Connectivity Detection (Proactive CC) message, (3) Performance Detection (PM) message, (4) Hybrid OAM (Hybrid OAM) message. It should be noted that both the first and second types can implement the connectivity detection function, the third type can implement the performance detection function, and the fourth type can implement the connectivity detection and performance detection functions.
下面分别介绍这四种消息类型对应的OAM消息内容的具体形式:The following describes the specific forms of the OAM message content corresponding to these four message types:
第一种:消息类型为回显消息The first: the message type is echo message
在OAM消息的消息类型为回显消息时,即T字段指示OAM消息为回显echo消息,其中,echo消息包括回显请求消息和回显应答消息。回显请求消息和回显应答消息用于实现对两节点之间的连通性的检测及验证。When the message type of the OAM message is an echo message, that is, the T field indicates that the OAM message is an echo echo message, wherein the echo message includes an echo request message and an echo response message. The echo request message and the echo reply message are used to detect and verify the connectivity between two nodes.
参见图8,图8是本申请实施例提供的一种消息类型为回显消息时的OAM消息,其中,图8中的深色部分即为消息类型为回显消息对应的OAM消息内容(下文简称OAM消息内容1),下面对OAM消息内容1中的各个字段进行说明:Referring to FIG. 8, FIG. 8 is an OAM message provided by an embodiment of the present application when the message type is an echo message, wherein the dark part in FIG. 8 is the OAM message content corresponding to the message type echo message (the following Referred to as OAM message content 1), each field in the OAM message content 1 is described below:
类型(Type):用于指示OAM消息为回显请求消息或回显应答消息;Type (Type): used to indicate that the OAM message is an echo request message or an echo response message;
序列号(Sequence Number):发送端发送的回显请求消息的序列号,用于匹配回显请求消息与回显应答消息以检测回显应答消息是否丢失;Sequence Number: The sequence number of the echo request message sent by the sender, which is used to match the echo request message and the echo response message to detect whether the echo response message is lost;
返回代码(Return Code):该字段用于承载反射端对发送端发送的回显请求消息的响应结 果;发送端设置为0,反射端可以设置相应的值;Return Code: This field is used to carry the response result of the reflector to the echo request message sent by the sender; if the sender is set to 0, the reflector can set the corresponding value;
具体地,返回代码的值例如可以是:Specifically, the value of the return code can be, for example:
Value=0表示无返回代码;Value=0 means no return code;
Value=1表示接收到异常的回显请求;Value=1 indicates that an abnormal echo request is received;
Value=2表示至少一个可变长字段无法理解;Value=2 means that at least one variable-length field cannot be understood;
Value=3表示数据包转发成功;Value=3 indicates that the packet is forwarded successfully;
Value=4表示没有到达目的地的路由;Value=4 indicates that there is no route to the destination;
Value=5表示行政上禁止与目的地通信;Value=5 means that communication with the destination is administratively prohibited;
Value=6表示超出源地址范围;Value=6 means beyond the source address range;
Value=7表示地址不可达;Value=7 indicates that the address is unreachable;
Value=8表示端口不可达;Value=8 indicates that the port is unreachable;
Value=9表示源地址失败的入口/出口策略;Value=9 indicates the entry/exit policy of the source address failure;
Value=10表示拒绝达到目的地的路由;Value=10 indicates that the route to the destination is rejected;
Value=11表示超出IPv6最大传输单元的最小值;Value=11 means exceeding the minimum value of the IPv6 maximum transmission unit;
Value=12表示传输中超出跳数限制;Value=12 indicates that the hop limit is exceeded during transmission;
Value=13表示超出片段重组时间;Value=13 indicates that the fragment recombination time is exceeded;
Value=14表示遇到错误的头字段;Value=14 indicates that an error header field is encountered;
Value=15表示遇到无法识别的下一个头的类型;Value=15 indicates that the unrecognized next header type is encountered;
Value=16表示遇到无法识别的IPv6选项;Value=16 indicates that an unrecognized IPv6 option is encountered;
需要说明的是,上述返回代码的取值只是示例,还可以是其他的值或者上述值中的几种,本申请实施例不做具体限定;It should be noted that the value of the above-mentioned return code is only an example, and may also be other values or several of the above-mentioned values, which are not specifically limited in this embodiment of the present application;
预留位:用于后续功能的扩展;Reserved bit: used for expansion of subsequent functions;
回复模式(Reply Mode):用于指示应答回显请求消息的方式;Reply Mode: used to indicate the way to respond to the echo request message;
具体地,回复模式的值例如可以是:Specifically, the value of the reply mode can be, for example:
Value=1表示不回复;Value=1 means no reply;
Value=2表示通过一个IPv6 UDP数据包回复;Value=2 means reply by an IPv6 UDP packet;
Value=3表示通过一个不带负载的IPv6数据包回复;Value=3 means reply by an IPv6 packet with no payload;
Value=4表示通过应用程序级别的控制通道进行回复;Value=4 means to reply through the application-level control channel;
需要说明的是,上述回复模式的取值只是示例,还可以是其他的值或者上述值中的几种,本申请实施例不做具体限定;It should be noted that the value of the above reply mode is only an example, and may also be other values or several of the above values, which are not specifically limited in this embodiment of the present application;
类型-长度-值(TLV)或子-类型-长度-值(sub-TLVs):TLVs/sub-TLVs例如可以是下游详细映射TLV(Downstream Detailed Mapping TLV)、填充TLV(Padding TLV)等。Type-length-value (TLV) or sub-type-length-value (sub-TLVs): TLVs/sub-TLVs can be, for example, downstream detailed mapping TLVs (Downstream Detailed Mapping TLVs), padding TLVs (Padding TLVs), and the like.
例如,下游详细映射TLV包括:最大传输单元(Maximum Transmission Unit,MTU)字段、地址类型(Address Type)字段、下游地址(Downstream Address)、下游接口地址(Downstream Interface Address)、预留字段、类型字段和长度字段。其中,地址类型字段用于确定下游接口的IP地址类型和长度,地址类型字段置1表示IPv6有编号,地址类型字段置2表示IPv6无编号。若地址类型字段为1,则将下游地址设置为下游接口地址;若地址类型字段为2,则将下游地址设置为下游路由器的IPv6地址,并且下游接口地址设置为上游路由器分配给该接口的索引。For example, the downstream detailed mapping TLV includes: a maximum transmission unit (Maximum Transmission Unit, MTU) field, an address type (Address Type) field, a downstream address (Downstream Address), a downstream interface address (Downstream Interface Address), a reserved field, and a type field and length fields. Among them, the address type field is used to determine the IP address type and length of the downstream interface, the address type field is set to 1 to indicate that IPv6 has a number, and the address type field is set to 2 to indicate that IPv6 has no number. If the address type field is 1, the downstream address is set to the downstream interface address; if the address type field is 2, the downstream address is set to the IPv6 address of the downstream router, and the downstream interface address is set to the index assigned to the interface by the upstream router .
在一些可能的实施例中,图8中的“类型”字段的功能也可由T字段替代,例如,T字段取第一值,表示OAM消息为回显请求消息,T字段取第二值,表示OAM消息为回显应答消息。In some possible embodiments, the function of the "type" field in FIG. 8 can also be replaced by the T field. For example, the T field takes the first value, indicating that the OAM message is an echo request message, and the T field takes the second value, indicating that OAM messages are echo response messages.
在一些可能的实施例中,图8中的“类型”字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。图8中的“类型”字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载图8中的“类型”字段,本申请实施例不做具体限定。In some possible embodiments, the representation manner of the "type" field in FIG. 8 may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. The "Type" field in Figure 8 may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the "Type" field in FIG. 8 , which is not specifically limited in this embodiment of the present application.
在一些可能的实施例中,图8中的预留位、回复模式和类型-长度-值/子-类型-长度-值这三个字段是可选的,本申请实施例不做具体限定。In some possible embodiments, the reserved bits, the reply mode, and the three fields of type-length-value/sub-type-length-value in FIG. 8 are optional, which are not specifically limited in this embodiment of the present application.
在一些可能的实施例中,在消息类型为回显消息时,OAM消息内容中不包括协议版本号和时间戳信息,其中,协议版本号可以是MPLS Echo的版本号,时间戳信息例如可以是:发送端发送回显请求消息的发送时间戳、反射端接接收回显请求消息的接收时间戳等。在一些可能的实施例中,协议版本号也可以是ICMPv6协议号。In some possible embodiments, when the message type is an echo message, the content of the OAM message does not include the protocol version number and timestamp information, where the protocol version number can be the version number of MPLS Echo, and the timestamp information can be, for example, : The sending time stamp of the echo request message sent by the sender, the receiving time stamp of the echo request message received by the reflection end, etc. In some possible embodiments, the protocol version number may also be an ICMPv6 protocol number.
一具体实施中,图8所示的OAM消息是对MPLS Echo报文的一种改进示例,相较于图1所示的MPLS Echo报文,图8所示的OAM消息省略了图1中的Version Number、Global Flags、Sender’s Handle、TimeStamp Sent和TimeStamp Received等字段。In a specific implementation, the OAM message shown in FIG. 8 is an improved example of the MPLS Echo message. Compared with the MPLS Echo message shown in FIG. 1 , the OAM message shown in FIG. Fields such as Version Number, Global Flags, Sender's Handle, TimeStamp Sent, and TimeStamp Received.
可以看出,图8所示的消息类型为回显消息下的OAM消息不仅可实现连通性检测功能,该OAM消息也更加简化,例如,省略了各个时间戳信息以及会话标识。It can be seen that the OAM message in which the message type shown in FIG. 8 is the echo message can not only implement the connectivity detection function, but also the OAM message is more simplified, for example, each timestamp information and session identifier are omitted.
下面基于图8所示的OAM消息说明图6中节点A与节点B之间的连通性检测过程:The connectivity detection process between node A and node B in FIG. 6 is described below based on the OAM message shown in FIG. 8 :
A11:节点A生成IPv6报文1,IPv6报文1携带OAM消息1。A11: Node A generates IPv6 packet 1, and IPv6 packet 1 carries OAM message 1.
其中,OAM消息1包括图8所示的各个字段,其中,在OAM消息1中,节点A填写的字段有:类型、序列号和回复模式,其中,类型填写为“回显请求”,其余字段(例如,返回代码)设置为空,本申请实施例不做具体限定。在一些可能的实施例中,OAM消息1还可以携带Downstream Detailed Mapping TLV等。Among them, OAM message 1 includes each field shown in FIG. 8, wherein, in OAM message 1, the fields filled in by node A are: type, serial number and reply mode, wherein, the type is filled in as "echo request", and the other fields are filled in. (For example, the return code) is set to be empty, which is not specifically limited in this embodiment of the present application. In some possible embodiments, the OAM message 1 may also carry Downstream Detailed Mapping TLV and the like.
A12:节点A向节点B发送IPv6报文1。A12: Node A sends IPv6 packet 1 to Node B.
A13:节点B接收IPv6报文1,根据IPv6报文1生成IPv6报文2。A13: Node B receives IPv6 packet 1, and generates IPv6 packet 2 according to IPv6 packet 1.
具体地,节点B根据接收到的IPv6报文1生成IPv6报文2,其中,IPv6报文2携带有OAM消息2,OAM消息2是对OAM消息1的响应,OAM消息2包括图8所示的各个字段。在OAM消息2中,节点B填写的字段有:序列号、返回代码和类型,其中,类型填写为“回显应答”,序列号是拷贝OAM消息1中的序列号。Specifically, Node B generates an IPv6 packet 2 according to the received IPv6 packet 1, wherein the IPv6 packet 2 carries an OAM message 2, and the OAM message 2 is a response to the OAM message 1. The OAM message 2 includes the one shown in FIG. 8 . of each field. In OAM message 2, the fields filled in by node B are: serial number, return code and type, where the type is filled in as "echo response", and the serial number is the serial number in the copy OAM message 1.
A14:节点B向节点A发送IPv6报文2。A14: Node B sends IPv6 packet 2 to Node A.
具体地,节点B向节点A发送IPv6报文2。相应地,节点A接收到IPv6报文2,基于IPv6报文2中的返回代码,节点A可以判断自身与节点B之间的连通性。例如,若IPv6报文2中的返回代码值为上述中的“3”时,则说明节点A与节点B之间是互通的。在一些可能的实施例中,若节点A接收到IPv6报文1的响应报文,例如,IPv6报文1的响应报文中的返回代码的值为“7”,则说明图6中所示的中间节点转发IPv6报文1过程中遇到故障,该响应报文是由节点A与节点B之间的中间节点发送给节点A的,IPv6报文1未达到节点B,则说明节点A与节点B之间不连通。Specifically, node B sends IPv6 packet 2 to node A. Correspondingly, node A receives IPv6 packet 2, and based on the return code in IPv6 packet 2, node A can determine the connectivity between itself and node B. For example, if the value of the return code in the IPv6 packet 2 is "3" in the above, it means that the node A and the node B communicate with each other. In some possible embodiments, if node A receives a response packet of IPv6 packet 1, for example, the value of the return code in the response packet of IPv6 packet 1 is “7”, then the value shown in FIG. 6 The intermediate node encounters a failure in the process of forwarding IPv6 packet 1. The response packet is sent to node A by the intermediate node between node A and node B. If IPv6 packet 1 does not reach node B, it means that node A and There is no connection between Node Bs.
第二种:消息类型为主动连通性检测消息The second: the message type is active connectivity detection message
在OAM消息的消息类型为主动连通性检测消息时,即T字段用于指示OAM消息为主动连通性检测消息,主动连通性检测消息用于检测两个转发引擎之间的双向路径的连通性。When the message type of the OAM message is an active connectivity detection message, that is, the T field is used to indicate that the OAM message is an active connectivity detection message, and the active connectivity detection message is used to detect the connectivity of the bidirectional path between the two forwarding engines.
参见图9,图9是本申请实施例提供的一种消息类型为主动连通性检测消息时的OAM消息,其中,图9中的深色部分即为消息类型为主动连通性检测消息对应的OAM消息内容(下文简称OAM消息内容2),下面对OAM消息内容2中的各个字段进行说明:Referring to FIG. 9, FIG. 9 is an OAM message provided by an embodiment of the present application when the message type is an active connectivity detection message, wherein the dark part in FIG. 9 is the OAM corresponding to the message type active connectivity detection message The message content (hereinafter referred to as OAM message content 2), each field in the OAM message content 2 is described below:
本地会话状态(State,Sta):发送端与接收端之间建立的主动连通性检测会话的状态;Local session state (State, Sta): the state of the active connectivity detection session established between the sender and the receiver;
具体地,本地会话状态的值例如可以是以下几种:Specifically, the value of the local session state can be, for example, the following:
Value=0表示管理下线(AdminDown),表示会话可以在管理上保持关闭状态;Value=0 means AdminDown, which means that the session can be kept closed in management;
Value=1表示下线(Down),表示拆除主动连通性检测会话;Value=1 means going offline (Down), means removing the active connectivity detection session;
Value=2表示初始(Init),表示发送端正与接收端处在通信协商中;Value=2 indicates the initial (Init), indicating that the sender is in communication negotiation with the receiver;
Value=3表示上线(Up),表示发送端与接收端之间的主动连通性检测会话已成功建立,发送端与接收端之间连接正常;Value=3 means going online (Up), indicating that the active connectivity detection session between the sender and the receiver has been successfully established, and the connection between the sender and the receiver is normal;
诊断字(Diagnostic,Diag):用于指示发送端最近一次会话的状态改变的原因;Diagnostic word (Diagnostic, Diag): used to indicate the reason for the state change of the last session of the sender;
具体地,诊断字的值具体有以下几种:Specifically, the values of the diagnostic word are as follows:
Value=0表示无诊断字;Value=0 means no diagnostic word;
Value=1表示控制检测时间到期;Value=1 indicates that the control detection time expires;
Value=2表示回显功能失败;Value=2 indicates that the echo function fails;
Value=3表示邻居通知会话失效;Value=3 indicates that the neighbor notification session is invalid;
Value=4表示转发平面重启;Value=4 indicates that the forwarding plane is restarted;
Value=5表示通道失效;Value=5 indicates that the channel is invalid;
Value=6表示连接通道失效;Value=6 indicates that the connection channel is invalid;
Value=7表示管理性关闭;Value=7 means administrative shutdown;
Value=8表示反向连接通道失效;Value=8 indicates that the reverse connection channel is invalid;
Value=9-31表示保留位可供未来使用;Value=9-31 indicates that reserved bits are available for future use;
标志位:包括轮询标志Poll(P)、终止标志Final(F)和查询请求标志Demand(D);在一些可能的实施例中,标志位还可以包括转发控制分离标志Control Plane Independent(C)、认证标志Authentication Present(A)和多点标志Multipoint(M);Flag bit: including the polling flag Poll(P), the termination flag Final(F) and the query request flag Demand(D); in some possible embodiments, the flag bit may also include the forwarding control separation flag Control Plane Independent(C) , the authentication mark Authentication Present(A) and the multipoint mark Multipoint(M);
其中,P标志置1表示发送端请求验证连通性或参数更改并期待带有F标志置位的主动连通性检测消息作为回复,P标志置0表示发送端不请求验证;对于F标志,若发送端接收到的主动检测性检测消息中的P标志置位,则将下一个发送的主动连通性检测消息中的F标志置位作为应答,即响应P标志的应答报文中须将F标志置1;C标志也可称为控制平面独立标志,C标志置1表示主动连通性检测消息在转发平面传输,控制平面的变化不影响主动连通性检测,C标志置0表示主动连通性检测消息在控制平面传输;A标志置1表示需对会话进行身份认证;D标志也可称作查询请求位,D标志置1表示期望工作在查询模式,D标志置0表示不希望工作在查询模式或者不支持查询模式;M标志用于为主动连通性检测未来支持点对多点扩展而设的标志位;Among them, when the P flag is set to 1, it means that the sender requests to verify connectivity or parameter changes and expects an active connectivity detection message with the F flag set as a reply, and the P flag is set to 0 to indicate that the sender does not request verification; for the F flag, if sending If the P flag in the active detection detection message received by the terminal is set, then the F flag in the next active connectivity detection message sent will be set as a response, that is, the F flag must be set in the response message responding to the P flag. 1; The C flag can also be called the control plane independent flag. When the C flag is set to 1, it indicates that the active connectivity detection message is transmitted on the forwarding plane. The change of the control plane does not affect the active connectivity detection. Control plane transmission; the A flag is set to 1 to indicate that the session needs to be authenticated; the D flag can also be called the query request bit, the D flag is set to 1 to indicate that it is expected to work in the query mode, and the D flag is set to 0 to indicate that it does not want to work in the query mode or not. Support query mode; M flag is used for the flag set for active connectivity detection to support point-to-multipoint expansion in the future;
主动连通性检测消息的最小发送间隔(Desired Min TX Interval):发送端支持的发送主动连通性检测消息之间的最小发送间隔;Desired Min TX Interval: The minimum sending interval between sending active connectivity detection messages supported by the sender;
主动连通性检测消息的最小接收间隔(Required Min RX Interval):发送端支持的接收接 收端发送的主动连通性检测消息之间的最小接收间隔;Minimum reception interval of active connectivity detection messages (Required Min RX Interval): the minimum reception interval between active connectivity detection messages sent by the receiving end supported by the sender;
主动连通性回声消息的最小接收间隔(Required Min Echo RX Interval):发送端支持的接收接收端发送的响应消息之间的最小间隔;Minimum receiving interval of active connectivity echo messages (Required Min Echo RX Interval): the minimum interval supported by the sender to receive response messages sent by the receiver;
检测时间乘数(Detect Mult):用于协商发送间隔乘以检测时间乘数为接收端(或称为远端)提供异步模式下的检测时间;Detection time multiplier (Detect Mult): used to negotiate the sending interval multiplied by the detection time multiplier to provide the receiving end (or remote end) with the detection time in asynchronous mode;
预留位:用于后续功能的扩展。Reserved bits: used for expansion of subsequent functions.
在一些可能的实施例中,图9中的预留位是可选的,本申请实施例不做具体限定。In some possible embodiments, the reserved bits in FIG. 9 are optional, which are not specifically limited in this embodiment of the present application.
在一些可能的实施例中,在消息类型为主动连通性检测时,OAM消息内容中不包括协议版本号、本地标识符和远端标识符。例如,当OAM是基于现有的BFD协议改造的消息时,该协议版本号是指BFD协议的版本号,本地标识符是指BFD控制报文中的My Discriminator,远端标识符是指BFD控制报文中的Your Discriminator。In some possible embodiments, when the message type is active connectivity detection, the content of the OAM message does not include the protocol version number, local identifier and remote identifier. For example, when OAM is a message modified based on the existing BFD protocol, the protocol version number refers to the version number of the BFD protocol, the local identifier refers to My Discriminator in the BFD control packet, and the remote identifier refers to the BFD control packet. Your Discriminator in the message.
一具体实施中,图9所示的OAM消息是对BFD控制报文的一种改进示例,相较于图3所示的BFD控制报文,图9所示的OAM消息省略了图3中的Vers、My Discriminator、Your Discriminator等字段,图9所示的各字段的含义以及功能可参考BFD控制报文中相同字段对应的解释。In a specific implementation, the OAM message shown in FIG. 9 is an improved example of the BFD control message. Compared with the BFD control message shown in FIG. 3 , the OAM message shown in FIG. Vers, My Discriminator, Your Discriminator and other fields, the meaning and function of each field shown in Figure 9 can refer to the corresponding explanation of the same field in the BFD control message.
可以看出,图9所示的消息类型为主动连通性检测消息下的OAM消息不仅实现了连通性检测功能,该OAM消息也变得更加轻量化。It can be seen that the OAM message in which the message type shown in FIG. 9 is the active connectivity detection message not only implements the connectivity detection function, but also becomes more lightweight.
在介绍基于图9所示OAM消息进行图6中节点A与节点B之间的连通性检测前,图6中的节点A和节点B之间需先通过三次握手建立主动连通性检测会话(下文简称为“检测会话”),检测会话建立成功后,节点A和节点B两端的检测会话状态均为“Up”,同时在此过程中节点A和节点B双方同时协商好各自的主动连通性检测消息的检测时间、发送间隔等参数。需要说明的是,检测时间也可以称作有效检测时长,本申请不做具体限定。Before introducing the connectivity detection between Node A and Node B in Figure 6 based on the OAM message shown in Figure 9, an active connectivity detection session needs to be established between Node A and Node B in Figure 6 through a three-way handshake (below Referred to as "detection session"), after the detection session is established successfully, the detection session status of node A and node B are both "Up", and during this process, node A and node B both negotiate their own active connectivity detection at the same time. Message detection time, sending interval and other parameters. It should be noted that the detection time may also be referred to as the effective detection duration, which is not specifically limited in this application.
以节点A为例说明节点A侧的主动连通性检测消息的发送间隔、检测时间的协商过程:节点A侧协商的发送间隔为节点A的Desired Min TX Interval与节点B的Required Min RX Interval之中的最大值,节点A侧协商的检测时间为节点B发送的主动连通性检测消息中的Detect Mult乘以节点B的协商好的发送间隔。同理。节点B侧协商的发送间隔为节点B的Desired Min TX Interval与节点A的Required Min RX Interval之中的最大值,节点B侧的协商的检测时间为节点A发送的主动连通性检测消息中的Detect Mult乘以节点A的协商后的发送间隔。Take node A as an example to illustrate the negotiation process of the sending interval and detection time of the active connectivity detection message on the node A side: the negotiated sending interval on the node A side is between the Desired Min TX Interval of node A and the Required Min RX Interval of node B The maximum value of , the detection time negotiated by the node A side is the Detect Mult in the active connectivity detection message sent by the node B multiplied by the negotiated sending interval of the node B. The same is true. The sending interval negotiated on the Node B side is the maximum value between the Desired Min TX Interval of Node B and the Required Min RX Interval of Node A, and the negotiated detection time on the Node B side is the Detect in the active connectivity detection message sent by Node A. Mult times Node A's negotiated transmission interval.
基于图9所示的OAM消息的连通性检测提供了下述三种方式:The connectivity detection based on the OAM message shown in Figure 9 provides the following three ways:
(1)异步模式:发送端和接收端以自身协商后的发送间隔周期性地互相发送主动连通性检测消息,如果在本地对应的协商的检测时间内没有接收到对端发送的主动连通性检测消息,则发送端和接收端两端的检测会话状态更新为Down,说明发送端与接收端之间不连通;若在本地对应的协商的检测时间内接收到对端发送的主动连通性检测消息,则发送端和接收端两端的检测会话状态保持为UP,说明发送端与接收端之间连通。(1) Asynchronous mode: The sender and the receiver periodically send active connectivity detection messages to each other at the sending interval negotiated by themselves. message, the detection session status of the sender and receiver is updated to Down, indicating that there is no communication between the sender and receiver; Then the detection session status of the sender and receiver remains UP, indicating that the sender and receiver are connected.
(2)查询模式:在检测会话建立完成后,发送端和接收端停止发送主动连通性检测消息。若发送端需要验证连通性,则发送端以协商的发送间隔周期性地发送设置了P标志的主动连通性检测消息,接收端接收到发送端发送的主动连通性检测消息后会返回一个设置了F标志的主动连通性检测消息,则发送端与接收端之间的检测会话状态保持为UP,说明发送端与接 收端之间连通;若在发送端对应的检测时间内未收到设置了F标志的主动连通性检测消息,则发送端和接收端两端的检测会话状态更新为Down,说明发送端与接收端之间不连通。(2) Query mode: After the establishment of the detection session is completed, the sender and the receiver stop sending active connectivity detection messages. If the sender needs to verify the connectivity, the sender periodically sends an active connectivity check message with the P flag set at the negotiated sending interval. If the active connectivity detection message with the F flag, the detection session status between the sender and the receiver remains UP, indicating that the sender and the receiver are connected; if the F setting is not received within the detection time corresponding to the sender If the active connectivity detection message is marked, the detection session status of the sender and receiver is updated to Down, indicating that there is no communication between the sender and receiver.
(3)回声模式:发送端以协商后的发送间隔周期性地向接收端发送一组主动连通性检测消息,接收端将接收到的主动连通性检测消息不做任何修改地环回给发送端,若发送端在检测时间内未接收到的主动连通性检测消息的个数大于等于预设阈值,则发送端和接收端两端的检测会话状态更新为Down,说明发送端与接收端之间不连通;若发送端在检测时间内未接收到的主动连通性检测消息的个数小于预设阈值,则发送端和接收端两端的检测会话状态保持为UP,说明发送端与接收端之间连通。(3) Echo mode: The sender periodically sends a group of active connectivity detection messages to the receiver at the negotiated sending interval, and the receiver loops back the received active connectivity check messages to the sender without any modification. If the number of active connectivity detection messages not received by the sender within the detection time is greater than or equal to the preset threshold, the status of the detection session at the sender and receiver is updated to Down, indicating that there is no communication between the sender and the receiver. Connectivity; if the number of active connectivity detection messages not received by the sender within the detection time is less than the preset threshold, the detection session status of the sender and receiver remains UP, indicating that the sender and receiver are connected .
下面以上述查询模式为例基于图9所示的OAM消息说明图6中节点A与节点B之间的连通性检测过程:The following takes the above query mode as an example to illustrate the connectivity detection process between node A and node B in FIG. 6 based on the OAM message shown in FIG. 9 :
A21:节点A生成IPv6报文3,IPv6报文3携带OAM消息3。A21: Node A generates IPv6 packet 3, and IPv6 packet 3 carries OAM message 3.
其中,OAM消息3包括图9所示的各个字段,其中,在OAM消息3中,节点A填写的字段有:本地会话状态、检测时间乘数、诊断字、主动连通性检测消息的最小发送间隔和主动连通性检测消息的最小接收间隔,另外,将主动连通性回显消息的最小接收间隔这个字段置0以及将标志位中的D标志和P标志均置1。需要说明的是,OAM消息3中节点A填写的字段均为节点A本地支持的,例如,主动连通性检测消息的最小发送间隔是指节点A支持的发送主动性能检测消息的最小发送间隔,主动连通性检测消息的最小接收间隔是指节点A支持的接收主动性能检测消息的最小发送间隔。Wherein, OAM message 3 includes each field shown in FIG. 9 , wherein, in OAM message 3, the fields filled in by node A are: local session state, detection time multiplier, diagnosis word, and minimum sending interval of active connectivity detection message and the minimum receiving interval of the active connectivity detection message. In addition, set the field of the minimum receiving interval of the active connectivity echo message to 0, and set both the D flag and the P flag in the flag bit to 1. It should be noted that the fields filled in by node A in OAM message 3 are all locally supported by node A. For example, the minimum sending interval of active connectivity detection messages refers to the minimum sending interval supported by node A for sending active performance detection messages. The minimum receiving interval of the connectivity check message refers to the minimum sending interval supported by node A for receiving active performance check messages.
A22:节点A向节点B发送IPv6报文3。A22: Node A sends IPv6 packet 3 to Node B.
A23:节点B接收IPv6报文3,根据IPv6报文3生成IPv6报文4。A23: Node B receives IPv6 packet 3, and generates IPv6 packet 4 according to IPv6 packet 3.
具体地,节点B根据接收到的IPv6报文3生成IPv6报文4,其中,IPv6报文4携带有OAM消息4,OAM消息4是对OAM消息3的响应,OAM消息4包括图9所示的各个字段。在OAM消息4中,节点B填写的字段有:本地会话状态、检测时间乘数、诊断字、主动连通性检测消息的最小发送间隔和主动连通性检测消息的最小接收间隔,另外,将主动连通性回显消息的最小接收间隔置0以及将标志位中的D标志和F标志均置1。需要说明的是,OAM消息4中节点B填写的字段均为节点B本地支持的,例如,主动连通性检测消息的最小发送间隔是指节点B支持的发送主动性能检测消息的最小发送间隔,主动连通性检测消息的最小接收间隔是指节点B支持的接收主动性能检测消息的最小发送间隔。Specifically, the Node B generates an IPv6 packet 4 according to the received IPv6 packet 3, wherein the IPv6 packet 4 carries an OAM message 4, the OAM message 4 is a response to the OAM message 3, and the OAM message 4 includes as shown in FIG. 9 . of each field. In OAM message 4, the fields filled in by node B are: local session state, detection time multiplier, diagnosis word, minimum sending interval of active connectivity detection message and minimum receiving interval of active connectivity detection message. The minimum receiving interval of the echo message is set to 0, and the D flag and the F flag in the flag bit are both set to 1. It should be noted that the fields filled in by node B in OAM message 4 are all locally supported by node B. For example, the minimum sending interval of active connectivity detection messages refers to the minimum sending interval supported by node B for sending active performance detection messages. The minimum receiving interval of the connectivity check message refers to the minimum sending interval for receiving the active performance check message supported by the Node B.
A24:节点B向节点A发送IPv6报文4。A24: Node B sends IPv6 packet 4 to Node A.
具体地,节点B向节点A发送IPv6报文4。相应地,若节点A在协商的检测时间内接收到IPv6报文4,则说明节点A与节点B之间是互相连通的;若节点A在协商的检测时间内未接收到IPv6报文4,则说明节点A与节点B之间不连通。Specifically, node B sends IPv6 packet 4 to node A. Correspondingly, if node A receives IPv6 packet 4 within the negotiated detection time, it means that node A and node B are connected to each other; if node A does not receive IPv6 packet 4 within the negotiated detection time, It means that there is no communication between node A and node B.
第三种:消息类型为性能检测消息The third type: the message type is performance detection message
在OAM消息的消息类型为性能检测消息时,即T字段用于指示OAM消息为性能检测消息,性能检测消息用于检测两个转发引擎之间的双向路径中的丢包、时延和时延抖动检测中的一种或多种。When the message type of the OAM message is a performance detection message, that is, the T field is used to indicate that the OAM message is a performance detection message, and the performance detection message is used to detect packet loss, delay and delay in the bidirectional path between the two forwarding engines One or more of jitter detection.
参见图10,图10是本申请实施例提供的一种消息类型为性能检测消息时的OAM消息,其中,图10中的深色部分即为消息类型为性能检测消息对应的OAM消息内容(下文简称OAM消息内容3),由图10可以看出,OAM消息内容3进一步包括:Referring to FIG. 10, FIG. 10 is an OAM message provided by an embodiment of the present application when the message type is a performance detection message, wherein the dark part in FIG. 10 is the content of the OAM message corresponding to the message type of performance detection message (below Referred to as OAM message content 3), as can be seen from Figure 10, OAM message content 3 further includes:
发送端发送的性能检测消息的序列号(Sender Sequence Number);The sequence number of the performance detection message sent by the sender (Sender Sequence Number);
反射端发送的性能检测消息的序列号(Reflector Sequence Number);The sequence number of the performance detection message sent by the reflector (Reflector Sequence Number);
发送端发送性能检测消息的发送时间戳(Sender Timestamp);Sending timestamp (Sender Timestamp) of the performance detection message sent by the sender;
反射端接收性能检测消息的接收时间戳(Reflector Receive Timestamp);Reflector Receive Timestamp of the performance detection message received by the reflector;
反射端发送性能检测消息的发送时间戳(Reflector Timestamp);The sending timestamp of the performance detection message sent by the reflector (Reflector Timestamp);
发送端接收性能检测消息的接收时间戳(Sender Receive Timestamp)。Sender Receive Timestamp of the sender receiving the performance check message.
需要说明的是,上述反射端发送的性能检测消息是对发送端发送的性能检测消息的响应。It should be noted that, the performance detection message sent by the reflector is a response to the performance detection message sent by the sender.
在一些可能的实施例中,图10所示OAM消息还包括用于填充变长字段,且填充变长字段是可选的,本申请实施例不做具体限定。In some possible embodiments, the OAM message shown in FIG. 10 further includes a variable-length field for filling, and filling the variable-length field is optional, which is not specifically limited in this embodiment of the present application.
需要说明的是,图10中的两个序列号可用于两个转发引擎之间的丢包测量,图10中的四个时间戳可用于两个转发引擎之间的时延测量和时延抖动测量中的至少一种。例如,发送端发送的性能检测消息的发送时间戳和反射端接收性能检测消息的接收时间戳可用于测量发送端至反射端这条路径的时延,反射端发送性能检测消息的发送时间戳和发送端接收性能检测消息的接收时间戳可用于测量反射端至发送端这条路径的时延。It should be noted that the two sequence numbers in Figure 10 can be used for packet loss measurement between two forwarding engines, and the four timestamps in Figure 10 can be used for delay measurement and delay jitter between two forwarding engines. at least one of the measurements. For example, the sending timestamp of the performance test message sent by the sender and the receiving timestamp of the performance test message received by the reflector can be used to measure the delay of the path from the sender to the reflector, and the sending timestamp of the performance test message sent by the reflector and The receiving timestamp of the receiving performance detection message at the sending end can be used to measure the delay of the path from the reflecting end to the sending end.
在一些可能的实施例中,图10中的两个序列号也可以通过不同的序列号字段编号区分,例如,发送端发送的性能检测消息的序列号可表示为Sequence Number1,反射端发送的性能检测消息的序列号可表示为Sequence Number2。另外,图10中的四个时间戳也可以通过不同的时间戳字段编号区分,例如,发送端发送性能检测消息的发送时间戳表示为Timestamp1,反射端接收性能检测消息的接收时间戳表示为Timestamp2,…,发送端接收性能检测消息的接收时间戳表示为Timestamp4。In some possible embodiments, the two sequence numbers in FIG. 10 can also be distinguished by different sequence number field numbers. For example, the sequence number of the performance detection message sent by the sender can be expressed as Sequence Number1, and the performance test message sent by the reflector The sequence number of the detection message can be represented as Sequence Number2. In addition, the four timestamps in Figure 10 can also be distinguished by different timestamp field numbers. For example, the sending timestamp of the performance detection message sent by the sender is represented as Timestamp1, and the reception timestamp of the performance detection message received by the reflector is represented as Timestamp2 , ..., the receiving timestamp of the performance detection message received by the sender is represented as Timestamp4.
一具体实施中,图10所示的OAM消息是对STAMP测量报文的一种改进示例,相较于图4A-图4D所示的发送端的测量报文和反射端的测量报文,图10所示的OAM消息省略了图4A-图4D中的Error Estimate、HMAC等字段,图10所示的各字段的含义以及功能可参考STAMP测量报文中相同字段对应的解释。In a specific implementation, the OAM message shown in FIG. 10 is an improved example of the STAMP measurement message. Compared with the measurement messages at the sending end and the measurement messages at the reflecting end shown in FIGS. The OAM message shown omits fields such as Error Estimate and HMAC in Figures 4A-4D. For the meaning and function of each field shown in Figure 10, refer to the corresponding explanation of the same fields in the STAMP measurement message.
可以看出,图10提供了一种消息类型为性能检测消息时的OAM消息,相较于图4A-图4D所示的STMAP的测量报文,且图10提供的OAM消息对STAMP涉及的发送端和反射端两端的测量报文进行了合并和删减,使得消息类型为性能检测消息时的OAM消息更加轻量化。It can be seen that FIG. 10 provides an OAM message when the message type is a performance detection message. Compared with the STMAP measurement message shown in FIG. 4A to FIG. 4D , the OAM message provided in FIG. The measurement packets at the end and the reflection end are combined and deleted, which makes the OAM message more lightweight when the message type is performance detection message.
下面以图10所示的OAM消息说明图6中节点A与节点B之间的性能检测过程:The following describes the performance detection process between node A and node B in Figure 6 with the OAM message shown in Figure 10:
A31:节点A生成IPv6报文5,IPv6报文5携带OAM消息5。A31: Node A generates an IPv6 packet 5, and the IPv6 packet 5 carries an OAM message 5.
其中,OAM消息5包括图10所示的字段,其中,在OAM消息5中,节点A填写的字段有:发送端发送的性能检测消息的序列号和发送端发送性能检测消息的发送时间戳,其余字段,例如:反射端发送的性能检测消息的序列号、反射端接收性能检测消息的接收时间戳、反射端发送性能检测消息的发送时间戳和发送端接收性能检测消息的接收时间戳,均置0或设置为空。Wherein, OAM message 5 includes the fields shown in FIG. 10, wherein, in OAM message 5, the fields filled in by node A are: the serial number of the performance detection message sent by the sender and the sending timestamp of the performance detection message sent by the sender, The remaining fields, such as the serial number of the performance test message sent by the reflector, the reception timestamp of the performance test message received by the reflector, the transmission timestamp of the performance test message sent by the reflector, and the reception timestamp of the performance test message received by the sender, are all Set to 0 or set to empty.
A32:节点A向节点B发送IPv6报文5。A32: Node A sends IPv6 packet 5 to Node B.
A33:节点B接收IPv6报文5,根据IPv6报文5生成IPv6报文6。A33: Node B receives IPv6 packet 5, and generates IPv6 packet 6 according to IPv6 packet 5.
具体地,节点B根据接收到的IPv6报文5生成IPv6报文6,其中,IPv6报文6携带有OAM消息6,OAM消息6是对OAM消息5的响应,OAM消息6包括图10所示的字段。 在OAM消息6中,节点B填写的字段有:反射端发送的性能检测消息的序列号、反射端接收性能检测消息的接收时间戳、反射端发送性能检测消息的发送时间戳。另外,OAM消息6中发送端发送的性能检测消息的序列号和发送端发送性能检测消息的发送时间戳这两个字段为节点B从OAM消息5拷贝的,OAM消息6中发送端接收性能检测消息的接收时间戳置0或设置为空。Specifically, the Node B generates an IPv6 packet 6 according to the received IPv6 packet 5, wherein the IPv6 packet 6 carries an OAM message 6, and the OAM message 6 is a response to the OAM message 5. The OAM message 6 includes the one shown in FIG. 10 . field. In OAM message 6, the fields filled in by the node B are: the sequence number of the performance detection message sent by the reflector, the reception timestamp of the performance detection message received by the reflector, and the transmission timestamp of the performance detection message sent by the reflector. In addition, in OAM message 6, the two fields, the serial number of the performance detection message sent by the sender and the sending timestamp of the performance detection message sent by the sender, are copied by Node B from OAM message 5. In OAM message 6, the sender receives the performance detection The message's reception timestamp is set to 0 or to null.
A34:节点B向节点A发送IPv6报文6。A34: Node B sends IPv6 packet 6 to Node A.
具体地,节点B向节点A发送IPv6报文6。相应地,节点A在接收到IPv6报文6后,可填写OAM消息6中发送端接收性能检测消息的接收时间戳这个字段。Specifically, node B sends IPv6 packet 6 to node A. Correspondingly, after receiving the IPv6 message 6, the node A can fill in the field of the reception timestamp of the sender's reception performance detection message in the OAM message 6.
经过步骤A31-A34即完成了节点A(即发送端)与节点B(即反射端)之间的主动性能检测消息的一次交互,可获取图10中各个字段的取值,将发送端发送性能检测消息的发送时间戳记作T1,反射端接收性能检测消息的接收时间戳记作T2,反射端发送性能检测消息的发送时间戳记作T3,发送端接收性能检测消息的接收时间戳记作T4,基于图10中所示的字段可执行下述功能检测中的至少一种:After steps A31-A34, an interaction of the active performance detection message between node A (ie the sender) and node B (ie the reflector) is completed, the values of each field in Figure 10 can be obtained, and the sender sends the performance The sending time stamp of the test message is marked as T1, the receiving time stamp of the performance test message received by the reflector is marked as T2, the sending time stamp of the performance test message sent by the reflector is marked as T3, and the reception time stamp of the performance test message received by the sender is marked as T4. The fields shown in 10 may perform at least one of the following functional tests:
时延测量:Delay measurement:
双向链路(节点A-节点B-节点A)的时延=(T4-T1)-(T3-T2);Delay of bidirectional link (node A-node B-node A)=(T4-T1)-(T3-T2);
前向链路(节点A-节点B)的时延=(T2-T1);Delay of forward link (Node A-Node B)=(T2-T1);
反向链路(节点B-节点A)的时延=(T4-T3);Delay of reverse link (Node B-Node A) = (T4-T3);
时延抖动测量:Delay Jitter Measurement:
时延抖动表示本次时延与上次时延之间的差值的绝对值。例如,节点A在本次的双向链路时延为S0,节点A在上次的双向链路时延值为S1,则时延抖动=|S0-S1|;The delay jitter represents the absolute value of the difference between the current delay and the last delay. For example, node A’s current bidirectional link delay is S0, and node A’s last bidirectional link delay is S1, then delay jitter=|S0-S1|;
丢包测量:Packet Loss Measurement:
对于丢包测量,在单个采样周期内,发送端节点A发送主动性能检测消息时携带有生成的序列号,反射端节点B不会独立生成序列号,而是直接复制接收到的性能检测消息的序列号作为自身的应答序列号,节点A会统计发出的主动性能检测消息的消息个数N1以及从节点B返回的主动性能检测消息的消息个数N2,则单个采样周期内的丢包率为(N1-N2)/N1。For packet loss measurement, in a single sampling period, the sending end node A sends the active performance detection message with the generated sequence number. The reflecting end node B does not generate the sequence number independently, but directly copies the received performance detection message. The sequence number is used as its own response sequence number. Node A will count the number N1 of active performance testing messages sent and the number N2 of active performance testing messages returned from node B. The packet loss rate in a single sampling period is (N1-N2)/N1.
参见图11,图11是本申请实施例提供的另一种消息类型为性能检测消息时的OAM消息,其中,图11中的带颜色部分即为消息类型为性能检测消息对应的OAM消息内容(下文简称OAM消息内容4),OAM消息内容4包括性能检测类型和性能检测类型对应的消息内容。其中,性能检测类型是对“消息类型=性能检测”的细分类型,性能检测类型可分为三种,分别为:1)丢包测量(Loss Measurement),2)时延测量(Delay Measurement),3)复合丢包时延测量(Combined Loss Delay Measurement)。性能检测类型对应的消息内容具体可参见下述图12A-图12C的描述。在一些可能的实施例中,在不同性能检测类型对应的消息的长度不同时,OAM消息内容4还可以包括长度这个字段,用于指示性能检测类型对应的消息的长度。Referring to FIG. 11, FIG. 11 is an OAM message when another message type provided by the embodiment of the present application is a performance detection message, wherein the colored part in FIG. 11 is the OAM message content corresponding to the message type as the performance detection message ( Hereinafter referred to as OAM message content 4), the OAM message content 4 includes the performance detection type and the message content corresponding to the performance detection type. Among them, the performance detection type is a subdivision type of "message type = performance detection", and the performance detection type can be divided into three types, namely: 1) Loss Measurement, 2) Delay Measurement (Delay Measurement) , 3) Combined Loss Delay Measurement (Combined Loss Delay Measurement). For details of the message content corresponding to the performance detection type, refer to the descriptions of FIGS. 12A-12C below. In some possible embodiments, when the lengths of the messages corresponding to different performance detection types are different, the OAM message content 4 may further include a field of length, which is used to indicate the length of the messages corresponding to the performance detection types.
一具体实施中,OAM消息内容4可通过至少一个子TLV字段承载,可参见下述图12A-图12C所示的示意图,其中,一个子类型T字段用于指示性能检测类型,一个值V字段用于承载性能检测类型对应的消息内容,一个长度L字段用于承载性能检测类型对应的消息的长度。In a specific implementation, the OAM message content 4 can be carried by at least one sub-TLV field, as shown in the following schematic diagrams in FIGS. 12A-12C , wherein a sub-type T field is used to indicate the performance detection type, a value V field It is used to carry the message content corresponding to the performance detection type, and a length L field is used to carry the length of the message corresponding to the performance detection type.
一具体实施中,也可以通过指示位指示性能检测类型。作为示例,可以通过比特映射的方式,也可以通过二进制取值的方式来指示具体的性能检测类型。以二进制取值为例,例如, 由上述可以性能检测类型共有3种,则可通过2个比特位来指示,具体地,“00”表示性能检测类型为丢包测量,“01”表示性能检测类型为时延测量,“10”表示性能检测类型为复合丢包时延测量。又例如,也可以通过3个比特位来指示,具体地,“100”表示性能检测类型为丢包测量,“010”表示性能检测类型为时延测量,“001”表示性能检测类型为复合丢包时延测量,本申请实施例不做具体限定。In a specific implementation, the performance detection type may also be indicated by an indicator bit. As an example, the specific performance detection type may be indicated in the manner of bit mapping or in the manner of binary value. Taking the binary value as an example, for example, there are three types of performance detection types mentioned above, which can be indicated by 2 bits. Specifically, "00" indicates that the performance detection type is packet loss measurement, and "01" indicates performance detection. The type is delay measurement, and "10" indicates that the performance detection type is composite packet loss delay measurement. For another example, it can also be indicated by 3 bits, specifically, "100" indicates that the performance detection type is packet loss measurement, "010" indicates that the performance detection type is delay measurement, and "001" indicates that the performance detection type is composite loss measurement. The packet delay measurement is not specifically limited in this embodiment of the present application.
参见图12A,在性能检测类型为丢包测量时,性能检测类型对应的消息内容包括:用于承载发送端发送的数据报文的统计数量的字段、用于承载反射端接收的数据报文的统计数量的字段、用于承载反射端发送的数据报文的统计数量的字段和用于承载发送端接收的数据报文的统计数量的字段。需要说明的是,反射端发送的数据报文是对发送端发送的数据报文的响应。Referring to FIG. 12A , when the performance detection type is packet loss measurement, the content of the message corresponding to the performance detection type includes: a field used to carry the statistical number of data packets sent by the sender, a field used to carry the data packets received by the reflector A field of statistical quantity, a field used to carry the statistical quantity of data packets sent by the reflecting end, and a field used to carry the statistical quantity of data packets received by the sending end. It should be noted that the data packet sent by the reflector is a response to the data packet sent by the sender.
一具体实施中,图12A所示的OAM消息是对MPLS LM消息的一种改进示例,相较于图5A所示的MPLS LM消息,图12A所示的OAM消息省略了图5A中的Version、Flags、Control Code、Session Identifier等字段,图12A所示的各字段的含义以及功能可参考MPLS LM消息中相同字段对应的解释。In a specific implementation, the OAM message shown in FIG. 12A is an improved example of the MPLS LM message. Compared with the MPLS LM message shown in FIG. 5A , the OAM message shown in FIG. 12A omits Version, Flags, Control Code, Session Identifier and other fields, the meaning and function of each field shown in Figure 12A can refer to the corresponding explanation of the same field in the MPLS LM message.
一具体实施中,在性能检测类型为丢包测量时,性能检测类型对应的消息内容也可以是图5A所示的MPLS LM消息内容,本申请实施例不做具体限定。In a specific implementation, when the performance detection type is packet loss measurement, the message content corresponding to the performance detection type may also be the MPLS LM message content shown in FIG. 5A , which is not specifically limited in this embodiment of the present application.
下面以图12A所示的OAM消息说明图6中节点A与节点B之间的丢包测量过程:The packet loss measurement process between node A and node B in FIG. 6 is described below with the OAM message shown in FIG. 12A :
A41:节点A生成IPv6报文7,IPv6报文7携带OAM消息7。A41: Node A generates IPv6 packet 7, and IPv6 packet 7 carries OAM message 7.
其中,OAM消息7包括图12A所示的字段,其中,在OAM消息7中,节点A填写的字段仅为发送端发送的数据报文的统计数量,其余字段,例如:反射端发送的数据报文的统计数量、发送端接收的数据报文的统计数量和反射端接收的数据报文的统计数量,均置0或设置为空。Wherein, the OAM message 7 includes the fields shown in FIG. 12A , wherein, in the OAM message 7, the fields filled in by node A are only the statistics of the data packets sent by the sender, and the other fields are, for example, the data packets sent by the reflector. The statistics of the number of packets, the statistics of the data packets received by the sender, and the statistics of the data packets received by the reflector are all set to 0 or empty.
A42:节点A向节点B发送IPv6报文7。A42: Node A sends IPv6 packet 7 to Node B.
A43:节点B接收IPv6报文7,根据IPv6报文7生成IPv6报文8。A43: Node B receives IPv6 packet 7, and generates IPv6 packet 8 according to IPv6 packet 7.
具体地,节点B根据接收到的IPv6报文7生成IPv6报文8,其中,IPv6报文8携带有OAM消息8,OAM消息8是对OAM消息7的响应,OAM消息8包括图12A所示的字段。在OAM消息8中,节点B填写的字段有:反射端接收的数据报文的统计数量和反射端发送的数据报文的统计数量。另外,OAM消息8中发送端发送的数据报文的统计数量这个字段的值为节点B从OAM消息7中拷贝的,OAM消息8中发送端接收的数据报文的统计数量这个字段置0或设置为空。Specifically, Node B generates an IPv6 packet 8 according to the received IPv6 packet 7, wherein the IPv6 packet 8 carries an OAM message 8, the OAM message 8 is a response to the OAM message 7, and the OAM message 8 includes the one shown in FIG. 12A . field. In OAM message 8, the fields filled in by Node B are: the statistical quantity of data packets received by the reflector and the statistical quantity of data packets sent by the reflector. In addition, in OAM message 8, the value of this field is the statistical number of data packets sent by the sender, and the value of this field is copied by Node B from OAM message 7. In OAM message 8, the value of this field is set to 0 or 0. Set to empty.
A44:节点B向节点A发送IPv6报文8。A44: Node B sends IPv6 packet 8 to Node A.
具体地,节点B向节点A发送IPv6报文8。相应地,节点A在接收到IPv6报文8后,可填写OAM消息8中发送端接收的数据报文的统计数量这个字段。Specifically, node B sends IPv6 packet 8 to node A. Correspondingly, after receiving the IPv6 packet 8, the node A can fill in the field of the statistical number of data packets received by the sender in the OAM message 8.
经过步骤A41-A44即说明节点A(即发送端)与节点B(即反射端)之间完成了一个回合的携带OAM消息的报文互传,节点A与节点B之间经过两个回合的报文互传后,可计算节点A(即发送端)的丢包数以及节点B(即反射端)的丢包数,将发送端发送的数据报文的统计数量记作A_TxP,反射端接收的数据报文的统计数量记作B_RxP,反射端发送的数据报文的统计数量记作B_TxP、发送端接收的数据报文的统计数量记作A_RxP:After steps A41-A44, it means that node A (ie, the sender) and node B (ie, the reflector) have completed a round of mutual transmission of messages carrying OAM messages, and two rounds of communication between node A and node B have been completed. After the packets are transmitted to each other, the number of packets lost by node A (that is, the sender) and the number of packets lost by node B (that is, the reflector) can be calculated. The statistics of the data packets sent by the reflector are denoted as B_RxP, the statistics of the data packets sent by the reflector are denoted as B_TxP, and the statistics of the data packets received by the sender are denoted as A_RxP:
则节点A侧的丢包数=(A_TxP[2]-A_TxP[1])-(A_RxP[2]-A_RxP[1]),其中,A_TxP[2]、 A_RxP[2]分别对应当前回合中节点A发送的、接收的数据报文的统计数量,A_TxP[1]、A_RxP[1]分别对应上一回合中节点A发送的、接收的数据报文的统计数量;Then the number of packets lost on the node A side = (A_TxP[2]-A_TxP[1])-(A_RxP[2]-A_RxP[1]), where A_TxP[2] and A_RxP[2] correspond to the nodes in the current round respectively The statistical number of data packets sent and received by A, A_TxP[1] and A_RxP[1] respectively correspond to the statistical number of data packets sent and received by node A in the previous round;
节点B侧的丢包数=(B_TxP[2]-B_TxP[1])-(B_RxP[2]-B_RxP[1]),B_TxP[2]、B_RxP[2]分别对应当前回合节点B发送的、接收的数据报文的统计数量,B_TxP[1]、B_RxP[1]分别对应上一回合节点B发送的、接收的数据报文的统计数量。The number of packets lost on the Node B side = (B_TxP[2]-B_TxP[1])-(B_RxP[2]-B_RxP[1]), B_TxP[2], B_RxP[2] correspond to the The statistical number of received data packets, B_TxP[1] and B_RxP[1] respectively correspond to the statistical number of data packets sent and received by Node B in the previous round.
参见图12B,在性能检测类型为时延测量时,性能检测类型对应的消息内容包括:发送端发送性能检测消息的发送时间戳、反射端接收性能检测消息的接收时间戳、反射端发送性能检测消息的发送时间戳和发送端接收性能检测消息的接收时间戳。需要说明的是,反射端发送的性能检测消息是对发送端发送的性能检测消息的响应。Referring to FIG. 12B , when the performance detection type is delay measurement, the content of the message corresponding to the performance detection type includes: the sending timestamp of the performance detection message sent by the sender, the reception timestamp of the performance detection message received by the reflector, and the sending performance detection of the reflector. The sending timestamp of the message and the receiving timestamp of the sender's receiving performance detection message. It should be noted that the performance detection message sent by the reflector is a response to the performance detection message sent by the sender.
一具体实施中,图12B所示的OAM消息是对MPLS DM消息的一种改进示例,相较于图5B所示的MPLS DM消息,图12B所示的OAM消息省略了图5B中的Version、Flags、Control Code、Session Identifier等字段,图12B所示的各字段的含义以及功能可参考MPLS DM消息中相同字段对应的解释。In a specific implementation, the OAM message shown in FIG. 12B is an improved example of the MPLS DM message. Compared with the MPLS DM message shown in FIG. 5B , the OAM message shown in FIG. 12B omits Version, Flags, Control Code, Session Identifier and other fields, the meaning and function of each field shown in Figure 12B can refer to the corresponding explanation of the same field in the MPLS DM message.
一具体实施中,在性能检测类型为时延测量时,性能检测类型对应的消息内容也可以是图5B所示的MPLS DM消息内容,本申请实施例不做具体限定。In a specific implementation, when the performance detection type is delay measurement, the message content corresponding to the performance detection type may also be the MPLS DM message content shown in FIG. 5B , which is not specifically limited in this embodiment of the present application.
下面以图12B所示的OAM消息说明图6中节点A与节点B之间的时延或抖动测量过程:The time delay or jitter measurement process between node A and node B in FIG. 6 is described below with the OAM message shown in FIG. 12B :
A51:节点A生成IPv6报文9,IPv6报文9携带OAM消息9。A51: Node A generates an IPv6 packet 9, and the IPv6 packet 9 carries an OAM message 9.
其中,OAM消息9包括图12B所示的字段,其中,在OAM消息9中,节点A填写的字段仅为:发送端发送性能检测消息的发送时间戳,其余字段,例如,反射端接收性能检测消息的接收时间戳、反射端发送性能检测消息的发送时间戳和发送端接收性能检测消息的接收时间戳,均置0或设置为空。Wherein, the OAM message 9 includes the fields shown in FIG. 12B , wherein, in the OAM message 9, the fields filled in by node A are only: the sending timestamp of the performance detection message sent by the sender, and the remaining fields, for example, the receiving performance detection by the reflector The receiving timestamp of the message, the sending timestamp of the performance testing message sent by the reflector, and the receiving timestamp of the performance testing message received by the sender, are all set to 0 or empty.
A52:节点A向节点B发送IPv6报文9。A52: Node A sends IPv6 packet 9 to Node B.
A53:节点B接收IPv6报文9,根据IPv6报文9生成IPv6报文10。A53: Node B receives IPv6 packet 9, and generates IPv6 packet 10 according to IPv6 packet 9.
具体地,节点B根据接收到的IPv6报文9生成IPv6报文10,其中,IPv6报文10携带有OAM消息10,OAM消息10是对OAM消息9的响应,OAM消息10包括图12B所示的字段。在OAM消息10中,节点B填写的字段有:反射端接收性能检测消息的接收时间戳和反射端发送性能检测消息的发送时间戳。另外,OAM消息10中发送端发送性能检测消息的发送时间戳这个字段的值为节点B从OAM消息9中拷贝的,OAM消息10中发送端接收性能检测消息的接收时间戳置0或设置为空。Specifically, Node B generates an IPv6 packet 10 according to the received IPv6 packet 9, wherein the IPv6 packet 10 carries an OAM message 10, the OAM message 10 is a response to the OAM message 9, and the OAM message 10 includes the one shown in FIG. 12B. field. In the OAM message 10, the fields filled in by the node B are: the receiving timestamp of the performance detection message received by the reflector and the sending timestamp of the performance detection message sent by the reflector. In addition, in OAM message 10, the value of this field is the sending timestamp of the performance detection message sent by the sender, and the value of this field is copied by Node B from OAM message 9. In OAM message 10, the reception timestamp of the performance detection message received by the sender in OAM message 10 is set to 0 or set to null.
A54:节点B向节点A发送IPv6报文10。A54: Node B sends IPv6 packet 10 to Node A.
具体地,节点B向节点A发送IPv6报文10。相应地,节点A在接收到IPv6报文10后,可填写OAM消息10中发送端接收性能检测消息的接收时间戳这个字段。Specifically, node B sends an IPv6 packet 10 to node A. Correspondingly, after receiving the IPv6 message 10, the node A can fill in the field of the reception timestamp of the receiving performance detection message of the sender in the OAM message 10.
经过步骤A51-A54即说明节点A(即发送端)与节点B(即反射端)之间完成了一个回合的携带OAM消息的报文互传,可获得图12B中所示的四个时间戳,从而可计算节点A与节点B之间双向链路的时延。将发送端发送性能检测消息的发送时间戳记作T1,反射端接收性能检测消息的接收时间戳记作T2,反射端发送性能检测消息的发送时间戳记作T3,发送端接收性能检测消息的接收时间戳记作T4,可实现下述时延测量和/或时延抖动测量:After steps A51-A54, it means that node A (ie, the sender) and node B (ie, the reflector) have completed a round of mutual transmission of messages carrying OAM messages, and the four timestamps shown in FIG. 12B can be obtained. , so that the delay of the bidirectional link between node A and node B can be calculated. Denote the sending time stamp of the performance test message sent by the sender as T1, the reception time stamp of the performance test message received by the reflector as T2, the transmission time stamp of the performance test message sent by the reflector as T3, and the reception time stamp of the performance test message received by the sender. As T4, the following delay measurements and/or delay jitter measurements can be achieved:
时延测量:Delay measurement:
双向链路的时延=(T4-T1)-(T3-T2);Delay of bidirectional link=(T4-T1)-(T3-T2);
单向(节点A-节点B)的时延=(T2-T1);One-way (node A-node B) delay=(T2-T1);
单向(节点B-节点A)的时延=(T4-T3);One-way (Node B-Node A) delay=(T4-T3);
时延抖动测量:Delay Jitter Measurement:
时延抖动表示本次时延与上次时延之间的差值的绝对值。例如,节点A在本次的双向链路时延为S2,节点A在上次的双向链路时延值为S3,则时延抖动=|S2-S3|。The delay jitter represents the absolute value of the difference between the current delay and the last delay. For example, if the current time delay of node A is S2, and the last time delay value of node A is S3, then delay jitter=|S2-S3|.
参见图12C,在性能检测类型为复合丢包时延测量时,性能检测类型对应的消息内容包括:发送端发送的数据报文的统计数量、反射端接收的数据报文的统计数量、反射端发送的数据报文的统计数量、发送端接收的数据报文的统计数量、发送端发送性能检测消息的发送时间戳、反射端接收性能检测消息的接收时间戳、反射端发送性能检测消息的发送时间戳和发送端接收性能检测消息的接收时间戳。需要说明的是,反射端发送的数据报文是对发送端发送的数据报文的响应。Referring to Fig. 12C, when the performance detection type is composite packet loss delay measurement, the content of the message corresponding to the performance detection type includes: the statistical number of data packets sent by the sender, the statistical number of data packets received by the reflector, and the number of data packets received by the reflector. Statistical number of sent data packets, Statistical number of data packets received by the sender, sending timestamp of the performance test message sent by the sender, reception timestamp of the performance test message received by the reflector, sending of the performance test message sent by the reflector Timestamp and the receiving timestamp of the sender receiving the performance check message. It should be noted that the data packet sent by the reflector is a response to the data packet sent by the sender.
一具体实施中,图12C所示的OAM消息是对MPLS DM消息的一种改进示例,相较于图5B所示的MPLS LM DM消息,图12C所示的OAM消息省略了图5C中的Version、Flags、Control Code、Session Identifier等字段,图12C所示的各字段的含义以及功能可参考MPLS LMDM消息中相同字段对应的解释。In a specific implementation, the OAM message shown in FIG. 12C is an improved example of the MPLS DM message. Compared with the MPLS LM DM message shown in FIG. 5B , the OAM message shown in FIG. 12C omits the Version in FIG. 5C , Flags, Control Code, Session Identifier and other fields, the meaning and function of each field shown in Figure 12C can refer to the corresponding explanation of the same field in the MPLS LMDM message.
一具体实施中,在性能检测类型为复合丢包时延测量时,性能检测类型对应的消息内容也可以是图5C所示的MPLS LM DM消息内容,本申请实施例不做具体限定。In a specific implementation, when the performance detection type is composite packet loss delay measurement, the message content corresponding to the performance detection type may also be the MPLS LM DM message content shown in FIG. 5C , which is not specifically limited in this embodiment of the present application.
基于图12C所示的OAM消息既可实现网络中任意两节点之间的丢包测量又可实现时延、时延抖动测量中的至少一种,其具体过程可参考上述图12A和图12B实施过程的相关叙述,为了说明书的简洁,在此不再赘述。Based on the OAM message shown in FIG. 12C , both packet loss measurement between any two nodes in the network can be implemented, and at least one of delay and delay jitter measurement can be implemented. The specific process can be implemented with reference to the above-mentioned FIGS. 12A and 12B . The related description of the process is not repeated here for the sake of brevity of the specification.
可以看出,采用图11所示的OAM消息的格式,可以实现丢包、时延和时延抖动检测中的一种或多种,增加了性能检测选择的多样性。It can be seen that, by using the OAM message format shown in FIG. 11 , one or more of packet loss, delay and delay jitter detection can be implemented, increasing the diversity of performance detection options.
第四种:消息类型为复合OAM消息Fourth: The message type is a composite OAM message
在OAM消息的消息类型为复合OAM消息时,即T字段用于指示OAM消息为复合OAM消息,复合OAM消息可用于实现至少两种OAM功能,至少两种OAM功能包括连通性检测和性能检测。When the message type of the OAM message is a composite OAM message, that is, the T field is used to indicate that the OAM message is a composite OAM message, the composite OAM message can be used to implement at least two OAM functions, including connectivity detection and performance detection.
在一些可能的实施中,复合OAM消息的V字段包括第一标识和第二标识,其中,第一标识用于指示复合OAM消息用于连通性检测,第二标识用于指示复合OAM消息用于性能检测。对于第一标识、第二标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。另外,第一标识和第二标识可以承载在V字段中。当然,也可以在T字段(即图13-图15中的“消息类型”字段)中设置预留的比特位,用于承载第一标识和第二标识。In some possible implementations, the V field of the composite OAM message includes a first flag and a second flag, where the first flag is used to indicate that the composite OAM message is used for connectivity detection, and the second flag is used to indicate that the composite OAM message is used for connectivity detection Performance testing. The representation manner of the first identifier and the second identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. In addition, the first identification and the second identification may be carried in the V field. Of course, reserved bits may also be set in the T field (ie, the "message type" field in Figs. 13-15 ) to carry the first identifier and the second identifier.
基于上述实施例中用于连通性检测的OAM消息格式以及用于性能检测的OAM消息格式进行组合,复合OAM消息的格式例举的有三种形式,具体可参考图13-图15的描述,但本申请实施例并不限定复合OAM消息的格式仅为图13-图15所示。Based on the combination of the OAM message format used for connectivity detection and the OAM message format used for performance detection in the foregoing embodiment, the format of the composite OAM message can be exemplified in three forms. This embodiment of the present application does not limit the format of the composite OAM message to only those shown in FIG. 13 to FIG. 15 .
参见图13,图13是本申请实施例提供的一种复合OAM消息,如图13所示,其中,图13中的非白色部分即为复合OAM消息对应的OAM消息内容(下文简称OAM消息内容5)。需要说明的是,OAM消息内容5基于上述图8的OAM消息内容1和图11的OAM消息内容4进行组合获得的。OAM消息内容5具体包括:Referring to FIG. 13 , FIG. 13 is a composite OAM message provided by an embodiment of the present application, as shown in FIG. 13 , wherein the non-white part in FIG. 13 is the content of the OAM message corresponding to the composite OAM message (hereinafter referred to as the content of the OAM message) 5). It should be noted that the OAM message content 5 is obtained based on the combination of the OAM message content 1 in FIG. 8 and the OAM message content 4 in FIG. 11 . OAM message content 5 specifically includes:
类型:指示复合OAM消息为请求消息或应答消息;Type: Indicates that the composite OAM message is a request message or a reply message;
序列号:表示发送端发送的复合OAM消息的序列号;Sequence number: Indicates the sequence number of the composite OAM message sent by the sender;
返回代码:用于承载反射端对发送端发送的复合OAM消息的响应结果,返回代码的值可参考图8中返回代码的值的相关叙述;Return code: used to carry the response result of the reflection end to the composite OAM message sent by the sender. For the value of the return code, please refer to the relevant description of the value of the return code in Figure 8;
回复模式:用于指示应答发送端发送的复合OAM消息的方式,回复模式的值可参考图8中回复模式的值的相关叙述;Reply mode: used to indicate the method of replying to the composite OAM message sent by the sender, the value of the reply mode can refer to the relevant description of the value of the reply mode in Figure 8;
类型-值-长度/子-类型-值-长度:可以是下游详细映射TLV(Downstream Detailed Mapping TLV)、填充TLV(Padding TLV)等;Type-value-length/sub-type-value-length: can be downstream detailed mapping TLV (Downstream Detailed Mapping TLV), padding TLV (Padding TLV), etc.;
预留位:用于功能扩展;Reserved bit: used for function expansion;
其中,预留位、回复模式、类型-值-长度/子-类型-值-长度字段是可选的;需要说明的是,类型、序列号、返回代码、类型-值-长度/子-类型-值-长度等字段使得复合OAM消息具备连通性检测或验证的功能;Among them, reserved bits, reply mode, type-value-length/sub-type-value-length fields are optional; it should be noted that type, serial number, return code, type-value-length/sub-type - Fields such as value-length make the composite OAM message have the function of connectivity detection or verification;
OAM消息内容5还包括支持性能检测功能的字段,即性能检测类型、长度和性能检测类型对应的消息内容,也就是说,OAM消息内容5还包括上述图11中的消息内容4,由于性能检测类型是对性能检测功能的细分,参考上述图11中的相关描述,可知性能检测类型可分为三种,分别为:1)丢包测量(Loss Measurement),2)时延测量(Delay Measurement),3)复合丢包时延测量(Combined Loss Delay Measurement),则性能检测类型对应的消息内容具体可以是上述图12A-图12C,图13中支持性能检测功能的字段的含义可参考图12A-图12C中的相应字段的含义,但图12A-图12C中“性能检测消息”替换为“复合OAM消息”。由此可以看出,图13所示的复合OAM消息可用于丢包、时延和时延抖动性能检测中的至少一种。The OAM message content 5 also includes fields that support the performance detection function, that is, the message content corresponding to the performance detection type, length, and performance detection type. That is to say, the OAM message content 5 also includes the message content 4 in the above-mentioned FIG. 11 , because the performance detection Type is the subdivision of the performance detection function. Referring to the relevant description in Figure 11 above, it can be seen that the performance detection type can be divided into three types, namely: 1) Loss Measurement, 2) Delay Measurement ), 3) composite packet loss delay measurement (Combined Loss Delay Measurement), then the message content corresponding to the performance detection type can specifically be the above-mentioned Figure 12A-Figure 12C, the meaning of the field supporting the performance detection function in Figure 13 can refer to Figure 12A - the meaning of the corresponding fields in Figure 12C, except that "Performance Detection Message" in Figures 12A-12C is replaced by "Composite OAM Message". It can be seen from this that the composite OAM message shown in FIG. 13 can be used for at least one of packet loss, delay and delay jitter performance detection.
在一些可能的实施例中,图13中的“类型”、“性能检测类型”字段的表示方式,可以是比特映射的方式,也可以采用二进制取值或者子TLV的方式,本申请不做具体限制。关于图13中的“类型”、“性能检测类型”字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,图13中的“类型”和“性能检测类型”字段可以承载在V字段中。当然,也可以在T字段(即图13中的“消息类型”字段)中设置预留的比特位,用于承载“类型”和“性能检测类型”字段。In some possible embodiments, the representation of the "Type" and "Performance Detection Type" fields in Fig. 13 may be in the form of bit mapping, or in the form of binary value or sub-TLV, which is not specified in this application. limit. This application does not specifically limit the manner in which the "type" and "performance detection type" fields in FIG. 13 are carried in the TLV field. In a specific implementation manner, the "type" and "performance detection type" fields in FIG. 13 may be carried in the V field. Of course, reserved bits may also be set in the T field (ie, the "message type" field in Fig. 13 ) to carry the "type" and "performance detection type" fields.
以性能检测类型为时延测量为例,参考图12B,在图13中,在性能检测类型为时延测量的情况下,性能检测类型对应的消息内容包括:发送端发送复合OAM消息的发送时间戳、反射端接收复合OAM消息的接收时间戳、反射端发送复合OAM消息的发送时间戳和发送端接收复合OAM消息的接收时间戳。需要说明的是,反射端发送的复合OAM消息是对发送端发送的复合OAM消息的响应。Taking the performance detection type as the delay measurement as an example, referring to FIG. 12B , in FIG. 13 , in the case where the performance detection type is the delay measurement, the content of the message corresponding to the performance detection type includes: the sending time for the sender to send the composite OAM message stamp, the receiving time stamp of the composite OAM message received by the reflecting end, the sending time stamp of the composite OAM message sent by the reflecting end, and the receiving time stamp of the sending end receiving the composite OAM message. It should be noted that the composite OAM message sent by the reflector is a response to the composite OAM message sent by the sender.
需要说明的是,图13所示的OAM消息仅说明包含的字段,而对于OAM消息内各字段的排列位置不做具体限定。例如,类型-长度-值/子-类型-值-长度这个字段也可以放置在最下方,即放置在性能检测类型对应的消息内容的下方,本申请不做具体限定。It should be noted that the OAM message shown in FIG. 13 only describes the included fields, and the arrangement position of each field in the OAM message is not specifically limited. For example, the field type-length-value/sub-type-value-length can also be placed at the bottom, that is, placed below the message content corresponding to the performance detection type, which is not specifically limited in this application.
参见图14,图14是本申请实施例提供的又一种复合OAM消息,其中,图14中的非白色部分即为复合OAM消息对应的OAM消息内容(下文简称OAM消息内容6)。需要说明的是,OAM消息内容6是基于图8的OAM消息内容1和图10的OAM消息内容3拼接获得的。OAM消息内容6具体包括:Referring to FIG. 14, FIG. 14 is another composite OAM message provided by an embodiment of the present application, wherein the non-white part in FIG. 14 is the OAM message content corresponding to the composite OAM message (hereinafter referred to as OAM message content 6). It should be noted that the OAM message content 6 is obtained by splicing the OAM message content 1 in FIG. 8 and the OAM message content 3 in FIG. 10 . OAM message content 6 specifically includes:
类型、序列号、返回代码、回复模式(可选的)、类型-值-长度/子-类型-值-长度(可选的) 和预留位(可选的);这些字段的具体含义与图13中的类型、序列号、返回代码、回复模式、类型-值-长度/子-类型-值-长度以及预留位中各字段的含义相同,具体可参考图13中对应字段的说明;type, serial number, return code, reply mode (optional), type-value-length/sub-type-value-length (optional), and reserved bits (optional); the specific meanings of these fields are the same as The type, serial number, return code, reply mode, type-value-length/sub-type-value-length and the fields in the reserved bits in Figure 13 have the same meaning, for details, please refer to the description of the corresponding field in Figure 13;
反射端发送的复合OAM消息的序列号;The sequence number of the composite OAM message sent by the reflector;
发送端发送复合OAM消息的发送时间戳;The sending timestamp of the composite OAM message sent by the sender;
反射端接收复合OAM消息的接收时间戳;The receiving timestamp of the composite OAM message received by the reflector;
反射端发送复合OAM消息的发送时间戳;The sending timestamp of the composite OAM message sent by the reflector;
发送端接收复合OAM消息的接收时间戳。The receiving timestamp of the composite OAM message received by the sender.
其中,反射端发送的复合OAM消息是对发送端发送的复合OAM消息的响应。The composite OAM message sent by the reflector is a response to the composite OAM message sent by the sender.
在图14所示的字段中,类型、序列号、返回代码等字段使得复合OAM消息具备连通性检测或验证的功能;序列号、反射端发送的复合OAM消息的序列号、发送端发送复合OAM消息的发送时间戳、反射端接收复合OAM消息的接收时间戳、反射端发送复合OAM消息的发送时间戳和发送端接收复合OAM消息的接收时间戳这些字段使得复合OAM消息能够用于性能检测,且图14所示的复合OAM消息可实现丢包、时延和时延抖动这三种性能检测。In the fields shown in Figure 14, fields such as type, sequence number, and return code make the composite OAM message have the function of connectivity detection or verification; sequence number, sequence number of the composite OAM message sent by the reflector, composite OAM sent by the sender The fields of the sending timestamp of the message, the receiving timestamp of the composite OAM message received by the reflector, the sending timestamp of the composite OAM message sent by the reflector, and the receiving timestamp of the composite OAM message received by the sender. These fields enable the composite OAM message to be used for performance testing. And the composite OAM message shown in Figure 14 can implement three performance detections of packet loss, delay and delay jitter.
下面以图14所示的复合OAM消息说明图6中节点A与节点B之间的连通性检测和性能检测过程:The following describes the connectivity detection and performance detection process between node A and node B in FIG. 6 with the composite OAM message shown in FIG. 14 :
A61:节点A生成IPv6报文11,IPv6报文11携带OAM消息11。A61: Node A generates an IPv6 packet 11, and the IPv6 packet 11 carries the OAM message 11.
其中,OAM消息11包括图14所示的字段,其中,在OAM消息11中,节点A填写的字段有:类型、序列号、回复模式和发送端发送复合OAM消息的发送时间戳,其中,类型填写为“请求”,其余字段,例如:返回代码、反射端发送的复合OAM消息的序列号、反射端接收复合OAM消息的接收时间戳、反射端发送复合OAM消息的发送时间戳和发送端接收复合OAM消息的接收时间戳,均置0或设置为空。在一些可能的实施例中,OAM消息11还可以携带TLV或子TLV。Among them, the OAM message 11 includes the fields shown in FIG. 14 , wherein, in the OAM message 11, the fields filled in by node A are: type, sequence number, reply mode, and the sending timestamp of the composite OAM message sent by the sender, wherein the type Fill in "request", other fields, such as: return code, serial number of the composite OAM message sent by the reflector, reception timestamp of the composite OAM message received by the reflector, sending timestamp of the composite OAM message sent by the reflector, and reception by the sender The receiving timestamp of the composite OAM message, both set to 0 or set to null. In some possible embodiments, the OAM message 11 may also carry TLVs or sub-TLVs.
A62:节点A向节点B发送IPv6报文11。A62: Node A sends IPv6 packet 11 to Node B.
A63:节点B接收IPv6报文11,根据IPv6报文11生成IPv6报文12。A63: Node B receives IPv6 packet 11, and generates IPv6 packet 12 according to IPv6 packet 11.
具体地,节点B根据接收到的IPv6报文11生成IPv6报文12,其中,IPv6报文12携带有OAM消息12,OAM消息12是对OAM消息11的响应,OAM消息12包括图14所示的字段。在OAM消息12中,节点B填写的字段有:类型、返回代码、反射端接收复合OAM消息的接收时间戳、反射端发送的复合OAM消息的序列号和反射端发送复合OAM消息的发送时间戳,其中,类型填写为“应答”。另外,OAM消息12中的序列号和发送端发送复合OAM消息的发送时间戳这两个字段的值为节点B从OAM消息11拷贝的,OAM消息12中发送端接收复合OAM消息的接收时间戳置0或设置为空。Specifically, the Node B generates an IPv6 packet 12 according to the received IPv6 packet 11, wherein the IPv6 packet 12 carries the OAM message 12, the OAM message 12 is a response to the OAM message 11, and the OAM message 12 includes the one shown in FIG. 14 . field. In OAM message 12, the fields filled in by Node B are: type, return code, receiving timestamp of the composite OAM message received by the reflector, serial number of the composite OAM message sent by the reflector, and sending timestamp of the composite OAM message sent by the reflector , where Type is filled in as "Answer". In addition, the values of the two fields, the sequence number in OAM message 12 and the sending timestamp of the composite OAM message sent by the sender, are copied by Node B from OAM message 11. In OAM message 12, the sender receives the receiving timestamp of the composite OAM message. Set to 0 or set to empty.
A64:节点B向节点A发送IPv6报文12。A64: Node B sends IPv6 packet 12 to Node A.
具体地,节点B向节点A发送IPv6报文12。相应地,节点A接收到IPv6报文12,基于IPv6报文2中的返回代码,节点A可以判断自身与节点B之间的连通性。若IPv6报文12的返回代码未指示与连通性相关的错误,例如,返回代码的值为上述图8实施例中的“3”、“0”、“1”等,则节点A与节点B之间是互相连通的,在此情况下,节点A还可以记录接收IPv6报文12的接收时间戳,作为OAM消息12中发送端接收复合OAM消息的接收时间戳,该参数可用于下述中的性能检测。在一些可能的实施例中,若节点A接收到IPv6报文11的响应 报文,但IPv6报文11的响应报文中的返回代码指示的是与连通性相关的错误,例如,返回代码的值为上述图8实施例中的“7”、“8”、“10”等,则该响应报文是由节点A与节点B之间的中间节点发送给节点A的,节点A与节点B之间的中间节点存在故障,故节点A与节点B之间不连通。Specifically, the node B sends the IPv6 packet 12 to the node A. Correspondingly, node A receives the IPv6 packet 12, and based on the return code in the IPv6 packet 2, node A can determine the connectivity between itself and node B. If the return code of IPv6 packet 12 does not indicate an error related to connectivity, for example, the value of the return code is "3", "0", "1", etc. in the above-mentioned embodiment of FIG. 8, then node A and node B They are connected to each other. In this case, node A can also record the reception timestamp of the received IPv6 packet 12 as the reception timestamp of the composite OAM message received by the sender in the OAM message 12. This parameter can be used in the following performance testing. In some possible embodiments, if node A receives a response packet of IPv6 packet 11, but the return code in the response packet of IPv6 packet 11 indicates a connectivity-related error, for example, the return code of If the value is "7", "8", "10", etc. in the above-mentioned embodiment of Fig. 8, the response message is sent by the intermediate node between node A and node B to node A, and node A and node B There is a fault in the intermediate node between them, so there is no connection between node A and node B.
在IPv6报文12中的返回代码未指示与连通性相关的序偶无时,即节点A与节点B之间互通的情况下,可以基于IPv6报文12中剩余的字段执行下述各种性能检测:When the return code in IPv6 packet 12 does not indicate connectivity-related sequence or absence, that is, in the case of interworking between Node A and Node B, the following various performances can be performed based on the remaining fields in IPv6 packet 12 Detection:
时延测量:Delay measurement:
将发送端发送复合OAM消息的发送时间戳记作T5,反射端接收复合OAM消息的接收时间戳记作T6,反射端发送复合OAM消息的发送时间戳记作T7,发送端接收复合OAM消息的接收时间戳记作T8,Denote the sending timestamp of the composite OAM message sent by the sender as T5, the reception timestamp of the composite OAM message received by the reflector as T6, the sending timestamp of the composite OAM message sent by the reflector as T7, and the reception timestamp of the composite OAM message received by the sender. make T8,
双向链路(节点A-节点B-节点A)的时延=(T8-T5)-(T7-T6);Delay of bidirectional link (node A-node B-node A)=(T8-T5)-(T7-T6);
前向链路(节点A-节点B)的时延=(T6-T5);Delay of forward link (Node A-Node B)=(T6-T5);
反向链路(节点B-节点A)的时延=(T8-T7);Delay of reverse link (Node B-Node A) = (T8-T7);
时延抖动测量:Delay Jitter Measurement:
时延抖动表示本次时延与上次时延之间的差值的绝对值。例如,节点A在本次的双向链路时延为S4,节点A在上次的双向链路时延值为S5,则时延抖动=|S4-S5|;The delay jitter represents the absolute value of the difference between the current delay and the last delay. For example, node A’s current bidirectional link delay is S4, and node A’s last bidirectional link delay is S5, then delay jitter=|S4-S5|;
丢包测量:Packet Loss Measurement:
对于丢包测量,在单个采样周期内,发送端节点A发送复合OAM消息时携带有生成的序列号,反射端节点B不会独立生成序列号,而是直接复制接收到的复合OAM消息的序列号作为自身的应答序列号和自身发出的复合OAM消息的序列号。因此,在单个采样周期内,节点A会统计发出的复合OAM消息的消息个数N3以及从节点B发送的复合OAM消息的消息个数N4,则单个采样周期内的丢包率为(N3-N4)/N3。For packet loss measurement, in a single sampling period, the sending end node A sends the composite OAM message with the generated sequence number. The reflecting end node B does not generate the sequence number independently, but directly copies the sequence of the received composite OAM message. The number is used as its own response sequence number and the sequence number of the composite OAM message sent by itself. Therefore, in a single sampling period, node A will count the number N3 of composite OAM messages sent and the number N4 of composite OAM messages sent from node B, then the packet loss rate in a single sampling period is (N3- N4)/N3.
在一些可能的实施例中,复合OAM消息中用于实现连通性检测功能的字段也可以采用图9所示的主动性能检测消息中的字段,本申请实施例不做具体限定。In some possible embodiments, the fields in the composite OAM message for implementing the connectivity detection function may also use the fields in the active performance detection message shown in FIG. 9 , which are not specifically limited in this embodiment of the present application.
例如,参见图15,图15是本申请实施例提供的又一种复合OAM消息的消息格式示例图,其中,图15中的非白色部分即为复合OAM消息对应的OAM消息内容(下文简称OAM消息内容7)。需要说明的是,OAM消息内容7是基于图9的OAM消息内容2和图12C的OAM消息内容拼接获得的。OAM消息内容7具体包括:For example, referring to FIG. 15 , FIG. 15 is an example diagram of a message format of another composite OAM message provided by an embodiment of the present application, wherein the non-white part in FIG. 15 is the OAM message content corresponding to the composite OAM message (hereinafter referred to as OAM). Message content 7). It should be noted that the OAM message content 7 is obtained based on the splicing of the OAM message content 2 in FIG. 9 and the OAM message content in FIG. 12C . OAM message content 7 specifically includes:
本地会话状态:指示发送端与反射端建立的复合OAM消息会话的状态;Local session status: indicates the status of the composite OAM message session established by the sender and the reflector;
诊断字:指示最近一次会话的状态改变的原因;Diagnostic word: Indicates the reason for the state change of the last session;
复合OAM消息的最小发送间隔:发送端发送复合OAM消息的最小发送间隔;The minimum sending interval of composite OAM messages: the minimum sending interval for sending composite OAM messages by the sender;
复合OAM消息的最小接收间隔:发送端接收反射端发送的复合OAM消息的最小接收间隔;Minimum receiving interval of composite OAM message: the minimum receiving interval for the sender to receive the composite OAM message sent by the reflector;
复合OAM回声消息的最小接收间隔:发送端接收自身发出的复合OAM消息的最小接收间隔;The minimum receiving interval of the composite OAM echo message: the minimum receiving interval for the sender to receive the composite OAM message sent by itself;
检测时间乘数:用于在异步模式下计算检测时间;Detection time multiplier: used to calculate detection time in asynchronous mode;
标志位:包括查询请求标志Demand(D)、轮询标志Poll(P)和终止标志Final(F),其中,P标志置1表示发送端请求验证连通性或参数更改,D标志置1表示发送端期望工作在查询模式,对于F标志,响应P标志的应答报文中须将F标志置1;在一些可能的实施例中, 标志位还可以包括Control Plane Independent(C)、认证标志Authentication Present(A)和多点标志Multipoint(M),C标志置1表示复合OAM消息在转发平面传输,A标志置1表示需对会话进行身份认证,M用于为连通性检测未来支持点对多点扩展而设的预留位;Flag bits: including the query request flag Demand(D), the polling flag Poll(P) and the termination flag Final(F), where the P flag is set to 1 to indicate that the sender requests to verify connectivity or parameter changes, and the D flag is set to 1 to indicate sending The terminal expects to work in the query mode. For the F flag, the F flag must be set to 1 in the response message responding to the P flag; in some possible embodiments, the flag bit may also include Control Plane Independent (C), authentication flag Authentication Present (A) and the multipoint flag Multipoint(M), the C flag is set to 1 to indicate that the composite OAM message is transmitted in the forwarding plane, the A flag is set to 1 to indicate that the session needs to be authenticated, and the M is used to support point-to-multipoint for connectivity detection in the future reserved space for expansion;
预留位:用于功能扩展;Reserved bit: used for function expansion;
发送端发送的数据报文的统计数量;The statistical number of data packets sent by the sender;
反射端接收的数据报文的统计数量;Statistical number of data packets received by the reflector;
反射端发送的数据报文的统计数量;Statistical number of data packets sent by the reflector;
发送端接收的数据报文的统计数量;The statistical number of data packets received by the sender;
发送端发送复合OAM消息的发送时间戳;The sending timestamp of the composite OAM message sent by the sender;
反射端接收复合OAM消息的接收时间戳;The receiving timestamp of the composite OAM message received by the reflector;
反射端发送复合OAM消息的发送时间戳;The sending timestamp of the composite OAM message sent by the reflector;
发送端接收复合OAM消息的接收时间戳。The receiving timestamp of the composite OAM message received by the sender.
其中,反射端发送的复合OAM消息是对发送端发送的复合OAM消息的响应。The composite OAM message sent by the reflector is a response to the composite OAM message sent by the sender.
在图15所示的字段中,本地会话状态、复合OAM消息的最小发送间隔、复合OAM消息的最小接收间隔、检测时间乘数、标志位等字段使得复合OAM消息具备连通性检测的功能;发送端发送的数据报文的统计数量、反射端接收的数据报文的统计数量、反射端发送的数据报文的统计数量和发送端接收的数据报文的统计数量这四个字段可用于丢包测量;发送端发送复合OAM消息的发送时间戳、反射端接收复合OAM消息的接收时间戳、反射端发送复合OAM消息的发送时间戳和发送端接收复合OAM消息的接收时间戳这四个字段可用于时延测量、时延抖动测量中的至少一种。In the fields shown in Figure 15, the fields such as the local session state, the minimum sending interval of the composite OAM message, the minimum receiving interval of the composite OAM message, the detection time multiplier, and the flag bit make the composite OAM message have the function of connectivity detection; sending These four fields can be used for packet loss. Measurement; four fields are available: the sending timestamp of the composite OAM message sent by the sender, the reception timestamp of the composite OAM message received by the reflector, the sending timestamp of the composite OAM message sent by the reflector, and the reception timestamp of the composite OAM message received by the sender. at least one of delay measurement and delay jitter measurement.
图15中基于本地会话状态、复合OAM消息的最小发送间隔、复合OAM消息的最小接收间隔、检测时间乘数、标志位等字段进行连通性检测的原理可参考图9实施例的相关叙述,区别在于,图9中发送端与接收端互传的消息称作主动检测性消息,而图15中发送端与反射端互传的消息称作复合OAM消息。另外,基于图15所示的复合OAM消息进行连通性检测时发送端和反射端两侧的发送间隔、检测时间(或检测时长)的协商也可以参见图9实施例中的相关叙述。In FIG. 15 , the principle of connectivity detection based on fields such as the local session state, the minimum sending interval of the composite OAM message, the minimum receiving interval of the composite OAM message, the detection time multiplier, and the flag bit can refer to the relevant description of the embodiment in FIG. 9 . It is that the message transmitted by the sender and the receiver in FIG. 9 is called an active detection message, and the message transmitted by the sender and the reflector in FIG. 15 is called a composite OAM message. In addition, for the negotiation of the sending interval and detection time (or detection duration) on both sides of the transmitting end and the reflecting end when performing connectivity detection based on the composite OAM message shown in FIG.
下面以查询模式为例基于图15所示的复合OAM消息说明图6中节点A与节点B之间的连通性检测和性能检测过程:The following takes the query mode as an example to illustrate the connectivity detection and performance detection process between node A and node B in FIG. 6 based on the composite OAM message shown in FIG. 15 :
A71:节点A生成IPv6报文13,IPv6报文13携带OAM消息13。A71: Node A generates an IPv6 packet 13, and the IPv6 packet 13 carries the OAM message 13.
其中,OAM消息13包括图15所示的各个字段,其中,在OAM消息13中,节点A填写的字段有:本地会话状态、检测时间乘数、诊断字、复合OAM消息的最小发送间隔、复合OAM消息的最小接收间隔、发送端发送的数据报文的统计数量和发送端发送复合OAM消息的发送时间戳,另外,将复合OAM回声消息的最小接收间隔这个字段的值置0以及将标志位中的D标志和P标志均置1。Wherein, the OAM message 13 includes each field shown in FIG. 15 , wherein, in the OAM message 13, the fields filled in by node A are: local session state, detection time multiplier, diagnosis word, minimum sending interval of composite OAM messages, composite OAM message The minimum receiving interval of the OAM message, the statistical number of data packets sent by the sender, and the sending timestamp of the composite OAM message sent by the sender. In addition, set the value of the minimum receiving interval of the composite OAM echo message to 0 and set the flag bit Both the D flag and the P flag are set to 1.
A72:节点A向节点B发送IPv6报文13。A72: Node A sends IPv6 packet 13 to Node B.
A73:节点B接收IPv6报文13,根据IPv6报文13生成IPv6报文14。A73: Node B receives IPv6 packet 13, and generates IPv6 packet 14 according to IPv6 packet 13.
具体地,节点B根据接收到的IPv6报文13生成IPv6报文14,其中,IPv6报文14携带有OAM消息14,OAM消息14是对OAM消息13的响应,OAM消息14包括图15所示的各个字段。在OAM消息14中,节点B填写的字段有:本地会话状态、检测时间乘数、诊断 字、复合OAM消息的最小发送间隔、复合OAM消息的最小接收间隔、反射端接收的数据报文的统计数量、反射端发送的数据报文的统计数量、反射端接收复合OAM消息的接收时间戳和反射端发送复合OAM消息的发送时间戳。另外,将复合OAM回声消息的最小接收间隔字段的值置0以及将标志位中的D标志和F标志均置1,OAM消息14中的发送端发送的数据报文的统计数量和发送端发送复合OAM消息的发送时间戳这两个字段的值是从OAM消息13中拷贝的。Specifically, Node B generates an IPv6 packet 14 according to the received IPv6 packet 13, wherein the IPv6 packet 14 carries an OAM message 14, the OAM message 14 is a response to the OAM message 13, and the OAM message 14 includes the one shown in FIG. 15 . of each field. In OAM message 14, the fields filled in by Node B are: local session state, detection time multiplier, diagnostic word, minimum sending interval of composite OAM messages, minimum receiving interval of composite OAM messages, statistics of data packets received by the reflector The number, the statistical number of data packets sent by the reflector, the receiving timestamp of the composite OAM message received by the reflector, and the sending timestamp of the composite OAM message sent by the reflector. In addition, set the value of the minimum receiving interval field of the composite OAM echo message to 0 and set both the D flag and the F flag in the flag bit to 1. In the OAM message 14, the statistical number of data packets sent by the sender and the sender The values of the two fields of the transmission timestamp of the composite OAM message are copied from the OAM message 13 .
A74:节点B向节点A发送IPv6报文14。A74: Node B sends IPv6 packet 14 to Node A.
具体地,节点B向节点A发送IPv6报文14。相应地,若节点A在协商的检测时间内接收到IPv6报文14,则说明节点A与节点B之间是互相连通的;若节点A在协商的检测时间内未接收到IPv6报文14,则说明节点A与节点B之间不连通。在节点A与节点B互通的情况下,可基于图15中的承载统计数量的字段和承载时间戳的字段执行下述性能测量:Specifically, node B sends an IPv6 packet 14 to node A. Correspondingly, if node A receives IPv6 packet 14 within the negotiated detection time, it means that node A and node B are connected to each other; if node A does not receive IPv6 packet 14 within the negotiated detection time, It means that there is no communication between node A and node B. In the case of interworking between Node A and Node B, the following performance measurements can be performed based on the fields carrying statistical quantities and the fields carrying timestamps in FIG. 15 :
丢包测量:Packet Loss Measurement:
经过步骤A71-A74即说明节点A(即发送端)与节点B(即反射端)之间完成了一个回合的携带复合OAM消息的报文互传,节点A与节点B之间经过两个回合的报文互传后,可计算节点A(即发送端)的丢包数以及节点B(即反射端)的丢包数,将发送端发送的数据报文的统计数量记作A_TxP,反射端接收的数据报文的统计数量记作B_RxP,反射端发送的数据报文的统计数量记作B_TxP、发送端接收的数据报文的统计数量记作A_RxP:After steps A71-A74, it means that node A (ie, the sender) and node B (ie, the reflector) have completed a round of mutual transmission of messages carrying the composite OAM message, and two rounds have passed between node A and node B. After the packets are transmitted to each other, the number of packets lost by node A (ie, the sender) and the number of packets lost by node B (ie, the reflector) can be calculated, and the statistical number of data packets sent by the sender can be recorded as A_TxP, the reflector The statistical number of received data packets is recorded as B_RxP, the statistical number of data packets sent by the reflector is recorded as B_TxP, and the statistical number of data packets received by the sender is recorded as A_RxP:
则节点A侧的丢包数=(A_TxP[2]-A_TxP[1])-(A_RxP[2]-A_RxP[1]),其中,A_TxP[2]、A_RxP[2]分别对应当前回合中节点A发送的、接收的数据报文的统计数量,A_TxP[1]、A_RxP[1]分别对应上一回合中节点A发送的、接收的数据报文的统计数量;Then the number of packets lost on the node A side = (A_TxP[2]-A_TxP[1])-(A_RxP[2]-A_RxP[1]), where A_TxP[2] and A_RxP[2] correspond to the nodes in the current round respectively The statistical number of data packets sent and received by A, A_TxP[1] and A_RxP[1] respectively correspond to the statistical number of data packets sent and received by node A in the previous round;
节点B侧的丢包数=(B_TxP[2]-B_TxP[1])-(B_RxP[2]-B_RxP[1]),B_TxP[2]、B_RxP[2]分别对应当前回合节点B发送的、接收的数据报文的统计数量,B_TxP[1]、B_RxP[1]分别对应上一回合节点B发送的、接收的数据报文的统计数量。The number of packets lost on the Node B side = (B_TxP[2]-B_TxP[1])-(B_RxP[2]-B_RxP[1]), B_TxP[2], B_RxP[2] correspond to the The statistical number of received data packets, B_TxP[1] and B_RxP[1] respectively correspond to the statistical number of data packets sent and received by Node B in the previous round.
时延测量:Delay measurement:
在节点A与节点B之间经过一个回合的报文互传后,可获得图15中所示的四个时间戳,从而可计算节点A与节点B之间双向链路的时延。将发送端发送复合OAM消息的发送时间戳记作T9,反射端接收复合OAM消息的接收时间戳记作T10,反射端发送复合OAM消息的发送时间戳记作T11,发送端接收复合OAM消息的接收时间戳记作T12,可实现下述时延测量和/或时延抖动测量:After one round of message exchange between node A and node B, the four timestamps shown in FIG. 15 can be obtained, so that the delay of the bidirectional link between node A and node B can be calculated. Denote the sending timestamp of the composite OAM message sent by the sender as T9, the reception timestamp of the composite OAM message received by the reflector as T10, the sending timestamp of the composite OAM message sent by the reflector as T11, and the reception timestamp of the composite OAM message received by the sender. As T12, the following delay measurements and/or delay jitter measurements can be achieved:
双向链路的时延=(T12-T9)-(T11-T10);Delay of bidirectional link=(T12-T9)-(T11-T10);
单向(节点A-节点B)的时延=(T10-T9);One-way (node A-node B) delay = (T10-T9);
单向(节点B-节点A)的时延=(T12-T11);One-way (Node B-Node A) delay=(T12-T11);
时延抖动测量:Delay Jitter Measurement:
时延抖动表示本次时延与上次时延之间的差值的绝对值。例如,节点A在本次的双向链路时延为S6,节点A在上次的双向链路时延值为S7,则时延抖动=|S6-S7|。The delay jitter represents the absolute value of the difference between the current delay and the last delay. For example, node A's current bidirectional link delay is S6, and node A's last bidirectional link delay is S7, then delay jitter=|S6-S7|.
在一些可能的实施例中,图15中所示的复合OAM消息的消息格式中可以删除发送端发送的数据报文的统计数量、反射端接收的数据报文的统计数量、反射端发送的数据报文的统计数量和发送端接收的数据报文的统计数量这四个字段,则图15中剩余的字段组成的复合OAM消息只可实现连通性检测和时延/时延抖动测量。在一些可能的实施例中,图15中所示 的复合OAM消息的消息格式中可以删除发送端发送复合OAM消息的发送时间戳、反射端接收复合OAM消息的接收时间戳、反射端发送复合OAM消息的发送时间戳和发送端接收复合OAM消息的接收时间戳这四个字段,则图15中剩余的字段组成的复合OAM消息只可实现连通性检测和丢包测量。In some possible embodiments, the message format of the composite OAM message shown in FIG. 15 may delete the statistics of data packets sent by the sender, the statistics of data packets received by the reflector, and the data sent by the reflector. The four fields of the statistical number of packets and the statistical number of data packets received by the sender, the composite OAM message composed of the remaining fields in Figure 15 can only implement connectivity detection and delay/delay jitter measurement. In some possible embodiments, the message format of the composite OAM message shown in FIG. 15 may delete the sending time stamp of the sending end sending the composite OAM message, the receiving time stamp of the reflecting end receiving the composite OAM message, and the reflecting end sending the composite OAM message The four fields of the sending time stamp of the message and the receiving time stamp of the sending end receiving the composite OAM message, the composite OAM message composed of the remaining fields in Figure 15 can only implement connectivity detection and packet loss measurement.
可以看出,图15所示的复合OAM消息中,V字段也可以没有上述中用于指示复合OAM消息的类型的“类型”字段和用于指示性能检测的类型的“性能检测类型”字段。It can be seen that in the composite OAM message shown in FIG. 15 , the V field may not have the “Type” field for indicating the type of the composite OAM message and the “Performance Detection Type” field for indicating the type of performance detection.
在一些可能的实施例中,复合OAM消息的消息可以是基于图9中的OAM消息内容2和图10中的OAM消息内容3生成,即复合OAM消息对应的OAM消息内容除了包括图15中支持连通性检测的字段以及四个用于承载时间戳的字段外,还包括发送端发送的复合OAM消息的序列号、反射端发送的复合OAM消息的序列号。在此情况下,该复合OAM消息可用于实现连通性检测以及丢包、时延和时延抖动测量这三种性能检测。In some possible embodiments, the message of the composite OAM message may be generated based on the OAM message content 2 in FIG. 9 and the OAM message content 3 in FIG. 10 , that is, the OAM message content corresponding to the composite OAM message includes the support in FIG. In addition to the connectivity detection field and the four fields used to carry the timestamp, it also includes the sequence number of the composite OAM message sent by the sender and the sequence number of the composite OAM message sent by the reflector. In this case, the composite OAM message can be used to implement connectivity detection and three performance detections of packet loss, delay and delay jitter measurements.
需要说明的是,上述图8-图15所示的OAM消息仅用于说明包含的字段,而对于各字段在OAM消息内的排列位置不做具体限定。It should be noted that the above OAM messages shown in FIG. 8 to FIG. 15 are only used to describe the fields included, and the arrangement position of each field in the OAM message is not specifically limited.
综上,本申请实施例提供了图7所示的统一的OAM消息,对OAM消息的功能进行了整合,针对不同的检测功能,OAM消息具体可以是图8-图15所示的消息格式。本申请实施例提供的OAM消息中不包括现有技术中各个协议所采用的已有的会话标识,例如,图8所示OAM消息相较于MPLS Echo报文删除了Sender’s Handle字段、图9所示OAM消息相较于BFD控制报文删除了My Discriminator、Your Discriminator字段、图12A所示OAM消息相较于LM消息删除了Session Identifier字段,但后续对OAM消息进行封装时采用了统一的会话标识,即IPv6报文中还包括OAM消息的统一会话标识,该统一会话标识可供上述四种类型的OAM消息复用,从而可以简化OAM检测过程中会话标识的协商过程,该统一会话标识用于发送端匹配发送端发送的OAM消息与发送端接收的来自对端的OAM消息。例如,将IPv6段路由SRv6网络中定义的Path Segment字段作为OAM消息统一会话标识,其不仅用来标识一条SRv6路径作为OAM作用的对象,还可以用于发送端匹配发送端发送的OAM消息与发送端接收的来自对端的OAM消息。也就是说,统一会话标识可用于关联或匹配正向的OAM消息和反向的OAM消息,即使得发送端可以快速匹配到发送端发送的OAM消息的响应消息。To sum up, the embodiment of the present application provides the unified OAM message shown in FIG. 7 , and integrates the functions of the OAM message. For different detection functions, the OAM message may specifically be in the message format shown in FIG. 8 to FIG. 15 . The OAM message provided by this embodiment of the present application does not include the existing session identifiers used by various protocols in the prior art. For example, compared with the MPLS Echo message, the OAM message shown in FIG. Compared with the BFD control message, the OAM message has deleted the My Discriminator and Your Discriminator fields. Compared with the LM message, the OAM message shown in Figure 12A has deleted the Session Identifier field, but the subsequent OAM message is encapsulated using a unified session identifier. , that is, the IPv6 packet also includes the unified session identifier of the OAM message, and the unified session identifier can be used for multiplexing of the above four types of OAM messages, thereby simplifying the negotiation process of the session identifier in the OAM detection process. The unified session identifier is used for The sender matches the OAM message sent by the sender with the OAM message received by the sender from the peer. For example, the Path Segment field defined in the IPv6 segment routing SRv6 network is used as the unified session identifier of the OAM message, which is not only used to identify an SRv6 path as the object of the OAM function, but also can be used by the sender to match the OAM message sent by the sender and send The OAM message received by the peer from the peer. That is to say, the unified session identifier can be used to associate or match the forward OAM message and the reverse OAM message, that is, the sender can quickly match the response message to the OAM message sent by the sender.
例如,假设网络中有两个节点,即节点1和节点1,向节点3发送IPv6报文,其中,节点1发送的IPv6报文1’中除了携带OAM消息1’外还包括Path Segment1,节点2发送的IPv6报文2’中中除了携带OAM消息2’外还包括Path Segment2,节点3对来自节点1的IPv6报文1’和来自节点2的IPv6报文2’分别进行响应,若节点1接收到的响应报文中包括Path Segment1,则说明该响应报文是对节点1发送的IPv6报文1’的响应,也就是说Path Segment1使得节点1匹配到OAM消息1’的响应消息;若节点1接收到的响应报文中不包括Path Segment1,则说明该响应报文不是对节点1发送的IPv6报文1’的响应。同理,Path Segment2可用于节点2匹配IPv6报文2’中OAM消息2’的响应消息。For example, it is assumed that there are two nodes in the network, namely node 1 and node 1, and send IPv6 packets to node 3, wherein the IPv6 packet 1' sent by node 1 includes Path Segment1 in addition to OAM message 1'. In addition to carrying OAM message 2', the IPv6 packet 2' sent by 2 also includes Path Segment2. Node 3 responds to IPv6 packet 1' from node 1 and IPv6 packet 2' from node 2 respectively. If the node 1 If the received response message includes Path Segment1, it means that the response message is a response to the IPv6 message 1' sent by node 1, that is, Path Segment1 makes node 1 match the response message of OAM message 1'; If the response packet received by node 1 does not include Path Segment1, it indicates that the response packet is not a response to IPv6 packet 1' sent by node 1. Similarly, Path Segment2 can be used for node 2 to match the response message of OAM message 2' in IPv6 packet 2'.
可以看出,实施本申请实施例,提供了一种统一的OAM消息,实现了对OAM功能的整合,使得实现连通性检测功能或性能检测功能对应的OAM消息更加轻量化,有利于减少网络带宽的开销。另外,为上述实现各种功能的OAM消息设置了统一会话标识,能有效简化会话标识的协商过程,减小网络带宽的消耗,提高了OAM消息的处理效率。It can be seen that implementing the embodiments of the present application provides a unified OAM message, realizes the integration of OAM functions, makes the OAM message corresponding to the connectivity detection function or the performance detection function more lightweight, and is conducive to reducing network bandwidth s expenses. In addition, a unified session identifier is set for the above-mentioned OAM message implementing various functions, which can effectively simplify the negotiation process of the session identifier, reduce the consumption of network bandwidth, and improve the processing efficiency of the OAM message.
上述定义的OAM消息携带于IPv6扩展头中,IPv6扩展头可以是目的地选项头(Destination Options Header,DoH)、分段路由报头(Segmant Routing Header,SRH)或逐跳选项头(Hop-by-hop Options Header)等。在一些可能的实施例中,IPv6扩展头还可以包括关联通道(Associated Channel,ACH),OAM消息可以承载于ACH中。在一些可能的实施例中,OAM消息也可以携带于IPv6报文的一个新增扩展头中,本申请实施例不做具体限定。将本申请提供的统一的OAM消息封装于IPv6扩展头,能有效减小OAM消息的封装深度,提高OAM消息的处理效率。The OAM message defined above is carried in the IPv6 extension header, which can be a Destination Options Header (DoH), a Segment Routing Header (SRH) or a Hop-by-Hop Options header (Hop-by- hop Options Header), etc. In some possible embodiments, the IPv6 extension header may further include an associated channel (Associated Channel, ACH), and the OAM message may be carried in the ACH. In some possible embodiments, the OAM message may also be carried in a newly added extension header of the IPv6 packet, which is not specifically limited in this embodiment of the present application. Encapsulating the unified OAM message provided by the present application in the IPv6 extension header can effectively reduce the encapsulation depth of the OAM message and improve the processing efficiency of the OAM message.
OAM消息可应用于不同的组网和隧道场景中,例如,IPv6段路由(Segment Routing IPv6,SRv6)、基于IPv6的位索引显示复制(Bit Indexed Explicit Replication using IPv6 Data Plane,BIERv6)等,下面具体描述本申请实施例提供的OAM消息在不同应用场景下的封装方式。OAM messages can be applied to different networking and tunnel scenarios, such as IPv6 segment routing (Segment Routing IPv6, SRv6), IPv6-based bit indexed replication (Bit Indexed Explicit Replication using IPv6 Data Plane, BIERv6), etc. The encapsulation methods of the OAM messages provided by the embodiments of the present application in different application scenarios are described.
应用一:SRv6Application 1: SRv6
具体地,SRv6是指使用SR IPv6数据平面传送IPv6数据包。在SRv6场景下,将本申请实施例提供的OAM消息封装在IPv6扩展头中,替代了原始UDP或TCP的封装格式,从原始的控制面处理转为数据面处理,可实现SRv6隧道场景下端到端的连通性检测和性能检测中的一种或多种。Specifically, SRv6 refers to using the SR IPv6 data plane to transmit IPv6 packets. In the SRv6 scenario, the OAM message provided by the embodiment of the present application is encapsulated in the IPv6 extension header, which replaces the original UDP or TCP encapsulation format, and the original control plane processing is converted to the data plane processing, which can realize the lower end of the SRv6 tunnel scenario. One or more of endpoint connectivity detection and performance detection.
一般地,可参见图16-图19,原始SRv6的报文封装格式包括:IPv6头部、SRH、DoH和IPv6包负荷(IPv6 Packet Payload),其中,IPv6头部包括源地址、目的地址和下一个报头的标识,SRH包括分段标识列表(Segment ID List,SID)、路径段(Path Segment)和选项类-长度-值(Option TLV),DoH可用于携带只被封包的目的地节点检查的选项信息,IPv6包负荷用于携带具体IPv6数据包。需要说明的是,SRH和DoH均可称作IPv6扩展头。Generally, referring to Fig. 16-Fig. 19, the packet encapsulation format of the original SRv6 includes: IPv6 header, SRH, DoH and IPv6 Packet Payload, wherein the IPv6 header includes source address, destination address and downlink The identification of a header, SRH includes a segment identification list (Segment ID List, SID), a path segment (Path Segment) and an option class-length-value (Option TLV), DoH can be used to carry only the destination node of the packet to check. Option information, the IPv6 packet payload is used to carry specific IPv6 data packets. It should be noted that both SRH and DoH can be referred to as IPv6 extension headers.
方式A:OAM消息位于DoHMode A: OAM message is in DoH
参见图16,图16是本申请实施例提供的一种OAM消息在SRv6场景下的封装示意图。如图16所示,上述OAM消息位于DoH中。具体地,DoH为紧邻SRH的下一个报头,OAM消息可以承载于DOH的一个或多个TLV中,另外,DoH中还可以包括:Next Header字段、Hdr Ext Len字段、Option Type字段和Option Lenth字段,其中,Next Header字段用于指示紧随DoH的下一个报头的类型,Hdr Ext Len字段用于指示该选项的长度,Option Type字段用于指示选项类型为OAM,Option Lenth字段用于指示选项长度。需要说明的是,OAM消息即为本申请实施例提供的OAM消息,具体可以是上述图8-图15中的任意一种,本申请实施例不做具体限定。Referring to FIG. 16 , FIG. 16 is a schematic diagram of encapsulation of an OAM message in an SRv6 scenario provided by an embodiment of the present application. As shown in Figure 16, the above-mentioned OAM message is located in the DoH. Specifically, the DoH is the next header next to the SRH, and the OAM message can be carried in one or more TLVs of the DOH. In addition, the DoH can also include: Next Header field, Hdr Ext Len field, Option Type field and Option Lenth field , where the Next Header field is used to indicate the type of the next header following the DoH, the Hdr Ext Len field is used to indicate the length of the option, the Option Type field is used to indicate that the option type is OAM, and the Option Lenth field is used to indicate the option length . It should be noted that the OAM message is the OAM message provided in this embodiment of the present application, and may specifically be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application.
方式B:OAM消息位于SRHMode B: OAM message is located in SRH
参见图17,图17是本申请实施例提供的又一种OAM消息在SRv6场景下的封装示意图。如图17所示,上述OAM消息位于IPv6扩展头SRH中。由于SRH可携带一个或多个Option TLV,因此,OAM可由SRH中的一个或多个Option TLV承载。OAM消息的具体格式可为上述图8-图15中的任意一种,本申请实施例不做具体限定。Referring to FIG. 17 , FIG. 17 is a schematic diagram of encapsulation of another OAM message in an SRv6 scenario provided by an embodiment of the present application. As shown in Figure 17, the above OAM message is located in the IPv6 extension header SRH. Since the SRH can carry one or more Option TLVs, the OAM can be carried by one or more Option TLVs in the SRH. The specific format of the OAM message may be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application.
方式C:OAM消息承载于关联通道ACH中Mode C: The OAM message is carried in the associated channel ACH
参见图18,图18是本申请实施例提供的又一种OAM消息在SRv6场景下的封装示意图。如图18所示,OAM消息承载于ACH中。具体地,IPv6扩展头DoH包括ACH,ACH包括选项类型(Option Type)字段和通道类型(Channel Type)字段,选项类型字段指示通用关联 通道G-ACH,通道类型字段指示通用关联通道G-ACH中承载OAM消息,其中,OAM消息的具体格式可为上述图8-图15中的任意一种,本申请实施例不做具体限定。需要说明的是,图18中剩余字段的含义可参考上述图16中对应字段的说明,在此不再赘述。Referring to FIG. 18 , FIG. 18 is a schematic diagram of encapsulation of another OAM message in an SRv6 scenario provided by an embodiment of the present application. As shown in Figure 18, the OAM message is carried in the ACH. Specifically, the IPv6 extension header DoH includes ACH, the ACH includes an option type (Option Type) field and a channel type (Channel Type) field, the option type field indicates the general associated channel G-ACH, and the channel type field indicates the general associated channel G-ACH. Bearing an OAM message, where the specific format of the OAM message may be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application. It should be noted that, for the meanings of the remaining fields in FIG. 18 , reference may be made to the description of the corresponding fields in the above-mentioned FIG. 16 , which will not be repeated here.
参见图19,图19是本申请实施例提供的又一种OAM消息在SRv6场景下的封装示意图。如图19所示,OAM消息承载于ACH中。具体地,IPv6扩展头SRH包括ACH,ACH承载于SRH中的一个或多个选项TLV中。ACH包括选项类型(Option Type)字段和通道类型(Channel Type)字段,选项类型字段指示通用关联通道G-ACH,通道类型字段指示通用关联通道G-ACH中承载OAM消息,其中,OAM消息的具体格式可为上述图8-图15中的任意一种,本申请实施例不做具体限定。需要说明的是,图18中剩余字段的含义可参考上述对应字段的说明,在此不再赘述。Referring to FIG. 19 , FIG. 19 is a schematic diagram of encapsulation of another OAM message in an SRv6 scenario provided by an embodiment of the present application. As shown in Figure 19, the OAM message is carried in the ACH. Specifically, the IPv6 extension header SRH includes an ACH, and the ACH is carried in one or more option TLVs in the SRH. The ACH includes an option type (Option Type) field and a channel type (Channel Type) field. The option type field indicates the general associated channel G-ACH, and the channel type field indicates that the general associated channel G-ACH carries an OAM message, wherein the specific OAM message is The format may be any one of the foregoing FIG. 8 to FIG. 15 , which is not specifically limited in this embodiment of the present application. It should be noted that, for the meanings of the remaining fields in FIG. 18 , reference may be made to the descriptions of the corresponding fields above, which will not be repeated here.
可以看到,实施本申请实施例,基于图16-图19中的任意一种,可实现SRv6隧道场景下端到端的性能检测和连通性检测中的一种或多种。另外,将SRv6中定义的Path Segment字段作为本申请实施例提出的OAM消息中的统一会话标识和SRv6路径标识,采用这种统一的会话标识能有效简化性能检测或连通性检测过程中会话标识的协商过程,提高处理效率。It can be seen that, by implementing the embodiments of the present application, based on any one of FIGS. 16 to 19 , one or more of end-to-end performance detection and connectivity detection in the SRv6 tunnel scenario can be implemented. In addition, the Path Segment field defined in SRv6 is used as the unified session identifier and the SRv6 path identifier in the OAM message proposed in the embodiment of the present application, and the use of this unified session identifier can effectively simplify the performance detection or connectivity detection process. Negotiation process to improve processing efficiency.
应用二:BIERv6Application 2: BIERv6
具体地,BIERv6是一种基于比特索引显示复制(或称作位索引显示复制)的新型组播技术,实现在组播域中进行无状态转发。其利用IPv6扩展头、IPv6地址可达性及其可编程空间,以native IPv6的方式实现的BIER多播架构,提供更好的多播部署能力和扩展支持后续native IPv6特性的能力。在BIERv6场景下,将本申请实施例提供的OAM消息封装在IPv6扩展头中,替代了原始UDP或TCP的封装格式,从原始的控制面处理转为数据面处理,可实现BIERv6组播场景下端到端的连通性检测和性能检测中的一种或多种。Specifically, BIERv6 is a new type of multicast technology based on bit index display replication (or called bit index display replication), which implements stateless forwarding in the multicast domain. It utilizes the IPv6 extension header, IPv6 address reachability and its programmable space, and implements the BIER multicast architecture in the form of native IPv6, providing better multicast deployment capabilities and the ability to expand the ability to support subsequent native IPv6 features. In the BIERv6 scenario, the OAM message provided by the embodiment of this application is encapsulated in the IPv6 extension header, which replaces the original UDP or TCP encapsulation format, and the original control plane processing is converted to the data plane processing, which can realize the lower end of the BIERv6 multicast scenario. One or more of end-to-end connectivity testing and performance testing.
一般地,原始BIERv6的报文封装格式包括:IPv6头部、目的地选项报头DoH和IP多播包负荷(IP Multicast Packet Payload),其中,DoH承载了比特索引显示复制BIER头,BIER头包括BIER转发所需的必要信息,例如,位索引转发表(Bit Index Forwarding Table,BIFT)、位转发路由器标识(Bit Forwarding Router-id)等。需要说明的是,DoH是一个IPv6扩展头。Generally, the original BIERv6 packet encapsulation format includes: IPv6 header, destination option header DoH and IP Multicast Packet Payload, wherein, DoH carries the bit index display copy BIER header, and the BIER header includes BIER Necessary information required for forwarding, for example, Bit Index Forwarding Table (BIFT), Bit Forwarding Router-id, etc. It should be noted that DoH is an IPv6 extension header.
参见图20,图20是本申请实施例提供的又一种OAM消息在BIERv6场景下的封装示意图。如图17所示,上述OAM消息位于IPv6扩展头DoH中,DoH包括BIER头,OAM消息可承载于DoH中BIER头之后的一个或多个选项TLV中,OAM消息的具体格式可为上述图8-图15中的任意一种,本申请实施例不做具体限定。一具体实施中,TLV中的选项类型字段直接作为OAM消息中的Message Type。另一具体实施中,TLV中的一个选项类型字段用于指示OAM,另一个类型字段作为OAM消息中的Message Type,本申请实施例不做具体限定。Referring to FIG. 20 , FIG. 20 is a schematic diagram of encapsulation of another OAM message provided in an embodiment of the present application in a BIERv6 scenario. As shown in Figure 17, the above OAM message is located in the IPv6 extension header DoH, the DoH includes the BIER header, the OAM message can be carried in one or more option TLVs after the BIER header in the DoH, and the specific format of the OAM message can be the above Figure 8 -Any one in FIG. 15, which is not specifically limited in this embodiment of the present application. In a specific implementation, the option type field in the TLV is directly used as the Message Type in the OAM message. In another specific implementation, one option type field in the TLV is used to indicate OAM, and the other type field is used as the Message Type in the OAM message, which is not specifically limited in this embodiment of the present application.
下面对图20中的剩余字段进行简要说明,在图20中,DoH具体包括:Next Header字段、Hdr Ext Len字段、Option Type字段、Option Lenth字段和非MPLS BIER报头(Non-MPLS BIER Header),其中,Next Header字段用于指示紧随DoH的下一个报头的类型,Hdr Ext Len字段用于指示该选项的长度,Option Type字段用于指示选项类型为BIER选项(BIER Option)Option Lenth字段用于指示选项长度,而非MPLS BIER报头除了承载上述OAM消息外,还包括下述字段:The remaining fields in Figure 20 are briefly described below. In Figure 20, the DoH specifically includes: Next Header field, Hdr Ext Len field, Option Type field, Option Lenth field and Non-MPLS BIER header (Non-MPLS BIER Header) , where the Next Header field is used to indicate the type of the next header following the DoH, the Hdr Ext Len field is used to indicate the length of the option, and the Option Type field is used to indicate that the option type is BIER Option (BIER Option) The Option Lenth field is used for To indicate the option length, the non-MPLS BIER header includes the following fields in addition to carrying the above OAM message:
BIFT-id:BIFT标识,表示一个特定的位索引转发表(Bit Index Forwarding Table,BIFT), BIFT存储了组播域中出口节点与其他节点之间的映射关系;BIFT-id: BIFT identifier, indicating a specific Bit Index Forwarding Table (BIFT), BIFT stores the mapping relationship between the egress node and other nodes in the multicast domain;
TC:流量类别(Traffic Class);TC: Traffic Class;
S:栈底标识;S: stack bottom identification;
TTL:生存时长,表示消息经BIERv6转发处理的跳数,每经过一个BIERv6转发节点后,TTL值减1,当TTL为0时,报文被丢弃;TTL: Time to live, indicating the number of hops for the message to be forwarded and processed by BIERv6. After each BIERv6 forwarding node, the TTL value is reduced by 1. When the TTL is 0, the message is discarded;
Nibble:半字节;Nibble: nibble;
Ver:表示BIERv6报文格式版本;Ver: Indicates the BIERv6 message format version;
BSL:Bitstring Length,位串长度;BSL: Bitstring Length, bit string length;
Entropy:熵,用于负载平衡;Entropy: entropy, used for load balancing;
OAM:操作维护管理标识;OAM: Operation and maintenance management identification;
Rsv:预留位;Rsv: reserved bit;
DSCP:差分服务代码点;DSCP: Differentiated Services Code Point;
Proto:下一层协议标识,用于标识BIERv6报文头后面的Payload类型;Proto: the next-layer protocol identifier, used to identify the payload type behind the BIERv6 header;
BFIR-id:位转发路由器标识;BFIR-id: bit forwarding router identifier;
BitString:位串,用于标识组播报文目的节点的集合,BitString字段的每一位表示一个BFER节点。BitString: Bit string used to identify the set of destination nodes of multicast packets. Each bit of the BitString field represents a BFER node.
需要说明是,图20中的BIFD-id、BFIR-id和Entropy这三者可唯一标识一个组播流,其也可以作为OAM消息的统一会话标识,用于发送端快速匹配发送端发送的上述OAM消息的响应消息。It should be noted that BIFD-id, BFIR-id and Entropy in Figure 20 can uniquely identify a multicast stream, and can also be used as a unified session identifier for OAM messages, which is used by the sender to quickly match the above-mentioned messages sent by the sender. Response message for OAM message.
可以看到,实施本申请实施例,基于图20所示格式实现上述OAM消息在BIERv6组播场景下的应用,可实现BIERv6组播场景下端到端的性能检测和连通性检测中的一种或多种。It can be seen that, by implementing the embodiment of the present application, the application of the above OAM message in the BIERv6 multicast scenario is implemented based on the format shown in FIG. 20, and one or more of the end-to-end performance detection and connectivity detection in the BIERv6 multicast scenario can be implemented. kind.
参见图21,图21是本申请实施例提供的一种OAM检测方法,应用于第一装置,第一装置为发送端或OAM检测的发起端。第一装置可以是图6中的节点A或节点B。该方法包括但不限于以下步骤:Referring to FIG. 21 , FIG. 21 shows an OAM detection method provided by an embodiment of the present application, which is applied to a first device, where the first device is a transmitting end or an initiating end of OAM detection. The first device may be Node A or Node B in FIG. 6 . The method includes but is not limited to the following steps:
S101、第一装置获取第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息。S101. The first device obtains a first IPv6 packet, where an IPv6 extension header of the first IPv6 packet carries a first OAM message.
在本申请实施例中,第一装置获取第一IPv6报文可以是第一装置生成第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息,其中,第一OAM消息包括类型T字段和值V字段,V字段用于承载第一OAM消息的内容,T字段用于承载第一OAM消息的类型。需要说明的是,T字段与图7中的消息类型对应,V字段与图7中的OAM消息内容对应。In this embodiment of the present application, acquiring the first IPv6 packet by the first device may be that the first device generates the first IPv6 packet, and the IPv6 extension header of the first IPv6 packet carries the first OAM message, where the first OAM message includes Type T field and value V field, where the V field is used to carry the content of the first OAM message, and the T field is used to carry the type of the first OAM message. It should be noted that the T field corresponds to the message type in FIG. 7 , and the V field corresponds to the OAM message content in FIG. 7 .
一具体实施中,第一OAM消息不包括协议版本信息。例如,协议版本信息可以是OAM功能涉及的各种协议的版本号。In a specific implementation, the first OAM message does not include protocol version information. For example, the protocol version information may be version numbers of various protocols involved in the OAM function.
一具体实施中,T字段指示第一OAM消息为回显echo消息。In a specific implementation, the T field indicates that the first OAM message is an echo message.
一具体实施中,T字段取值为第一值时,指示第一OAM消息为echo request消息,T字段取值为第二值时,指示第一OAM消息为echo reply消息。In a specific implementation, when the value of the T field is a first value, it indicates that the first OAM message is an echo request message, and when the value of the T field is a second value, it indicates that the first OAM message is an echo reply message.
一具体实施中,T字段取值为第三值时,指示第一OAM消息的类型为echo消息,此时不区分echo消息的具体类型。通过在TLV字段中增加标识字段,来标识echo消息的具体类型。例如,第一标识字段用于标识echo消息为echo request消息,第二标识字段用于标识echo消息为echo reply消息。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二 进制取值的方式,本申请不做具体限制。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述标识字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述标识字段。需要说明的是,标识字段与图8中的“类型”对应。In a specific implementation, when the value of the T field is the third value, it indicates that the type of the first OAM message is an echo message, and in this case, the specific type of the echo message is not distinguished. The specific type of the echo message is identified by adding an identification field to the TLV field. For example, the first identification field is used to identify the echo message as an echo request message, and the second identification field is used to identify the echo message as an echo reply message. The representation mode of the identification field may be a bit mapping mode or a binary value value mode, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field. In a specific implementation manner, the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field. It should be noted that the identification field corresponds to the "type" in FIG. 8 .
一具体实施中,在第一OAM消息为回显echo消息的情况下,V字段还包括以下一个或多个字段:序列号字段,用于承载发送端(即第一装置)发送的echo消息的序列号;返回代码return codes字段,其中,return codes字段用于承载反射端对发送端(即第一装置)发送的echo消息的响应结果;类型-长度-值TLV字段、预留字段以及第一回复模式字段,其中,TLV字段可以是下游详细映射TLV、填充TLV等,预留字段用于功能扩展,第一回复模式字段用于指示应答回显消息的方式。需要说明的是,序列号字段与图8中的序列号对应,返回代码字段与图8中的返回代码对应,第一回复模式字段与图8中的回复模式对应,预留字段与图8中的预留位对应,类型-长度-值TLV字段与图8中的类型-长度-值/子-类型-长度-值对应。In a specific implementation, when the first OAM message is an echo message, the V field further includes one or more of the following fields: a sequence number field, which is used to carry the echo message sent by the sender (ie, the first device). serial number; return code return codes field, wherein the return codes field is used to carry the response result of the reflection end to the echo message sent by the sending end (that is, the first device); type-length-value TLV field, reserved field and first Reply mode field, wherein the TLV field can be downstream detailed mapping TLV, filling TLV, etc. The reserved field is used for function expansion, and the first reply mode field is used to indicate the way of responding to the echo message. It should be noted that the serial number field corresponds to the serial number in FIG. 8 , the return code field corresponds to the return code in FIG. 8 , the first reply mode field corresponds to the reply mode in FIG. 8 , and the reserved field corresponds to the one in FIG. 8 . The reserved bits of , the type-length-value TLV field corresponds to the type-length-value/sub-type-length-value in FIG. 8 .
一具体实施中,在第一OAM消息为回显echo消息的情况下,V字段由以下字段组成:标识字段,用于指示echo消息的类型;序列号字段,用于承载该echo消息的序列号;返回代码return codes字段,其中,return codes字段用于承载反射端对发送端发送的echo消息的响应结果;第一回复模式字段,第一回复模式字段用于指示应答echo消息的方式;类型-长度-值TLV字段;以及预留字段,用于功能扩展。需要说明的是,此实施方式对应的消息格式即为图8所示的消息格式。In a specific implementation, when the first OAM message is an echo message, the V field consists of the following fields: an identification field, used to indicate the type of the echo message; a sequence number field, used to carry the sequence number of the echo message ; Return code return codes field, wherein the return codes field is used to carry the response result of the reflection end to the echo message sent by the sender; the first reply mode field, the first reply mode field is used to indicate the way to respond to the echo message; type- length-value TLV field; and reserved field for function extension. It should be noted that the message format corresponding to this embodiment is the message format shown in FIG. 8 .
一具体实施中,在第一OAM消息为回显echo消息的情况下,第一OAM消息不包括协议版本信息和时间戳信息,例如,协议版本信息可以是MPLS echo协议的版本号或者ICMPv6echo的协议版本号,时间戳信息例如可以是第一装置发出回显请求消息的发送时间戳、反射端接收回显请求消息的接收时间戳等。In a specific implementation, when the first OAM message is an echo message, the first OAM message does not include protocol version information and timestamp information, for example, the protocol version information may be the version number of the MPLS echo protocol or the protocol of ICMPv6echo The version number and the timestamp information may be, for example, the sending timestamp of the echo request message sent by the first device, the reception timestamp of the echo request message received by the reflector, and the like.
示例性地,在第一OAM消息为回显请求消息的情况下,第一IPv6报文可以是上述IPv6报文1,则第一OAM消息为上述OAM消息1。Exemplarily, in the case where the first OAM message is an echo request message, the first IPv6 packet may be the above-mentioned IPv6 packet 1, and the first OAM message is the above-mentioned OAM message 1.
一具体实施中,T字段指示第一OAM消息为主动连通性检测消息。In a specific implementation, the T field indicates that the first OAM message is an active connectivity detection message.
一具体实施中,在第一OAM消息为主动连通性检测消息的情况下,V字段包括第一字段,用于指示发送端和接收端之间建立的主动连通性检测会话的状态;第二字段,用于指示发送端发送主动连通性检测消息的最小发送间隔Desired Min TX Interval;第三字段,用于指示发送端接收接收端发送的主动连通性检测消息的最小接收间隔Required Min RX Interval;第四字段,用于指示发送端接收接收端发送的响应消息的最小接收间隔Required Min Echo RX Interval;第五字段,指示最近一次会话的状态改变的原因;第六字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;第七字段,包括查询请求标志Demand、轮询标志Poll和终止标志Final。需要说明的是,第一字段与图9中的本地会话状态对应,第二字段与图9中的主动连通性检测消息的最小发送间隔对应,第三字段与图9中的主动连通性检测消息的最小接收间隔对应,第四字段与图9中的主动连通性回声消息的最小接收间隔对应,第五字段与图9中的诊断字对应,第六字段与图9中的检测时间乘数对应,第七字段与图9中的标志位对应。In a specific implementation, when the first OAM message is an active connectivity detection message, the V field includes a first field, which is used to indicate the status of the active connectivity detection session established between the sender and the receiver; the second field , used to indicate the minimum sending interval Desired Min TX Interval of the active connectivity detection message sent by the sender; the third field is used to indicate the minimum receiving interval Required Min RX Interval of the active connectivity check message sent by the sender to the receiver; The fourth field is used to indicate the minimum receiving interval Required Min Echo RX Interval for the sender to receive the response message sent by the receiver; the fifth field is used to indicate the reason for the state change of the last session; the sixth field is used to provide the detection time multiplier , the detection time multiplier is used to calculate the detection time in the asynchronous mode; the seventh field includes the query request flag Demand, the polling flag Poll and the termination flag Final. It should be noted that the first field corresponds to the local session state in FIG. 9 , the second field corresponds to the minimum sending interval of the active connectivity detection message in FIG. 9 , and the third field corresponds to the active connectivity detection message in FIG. 9 . corresponds to the minimum receiving interval of , the fourth field corresponds to the minimum receiving interval of the active connectivity echo message in FIG. 9 , the fifth field corresponds to the diagnostic word in FIG. 9 , and the sixth field corresponds to the detection time multiplier in FIG. 9 , and the seventh field corresponds to the flag bit in FIG. 9 .
一具体实施中,在第一OAM消息为主动连通性检测消息的情况下,V字段还包括预留字段,预留字段用于功能扩展。需要说明的是,预留字段与图9中的预留位对应,标志字段 与图9中的标志位对应。In a specific implementation, when the first OAM message is an active connectivity detection message, the V field further includes a reserved field, and the reserved field is used for function expansion. It should be noted that the reserved field corresponds to the reserved bits in Fig. 9, and the flag field corresponds to the flag bits in Fig. 9.
示例性地,在第一OAM消息为主动连通性检测消息的情况下,第一IPv6报文也可以是上述IPv6报文3,则第一OAM消息为上述OAM消息3。Exemplarily, in the case where the first OAM message is an active connectivity detection message, the first IPv6 message may also be the foregoing IPv6 message 3, and the first OAM message is the foregoing OAM message 3.
一具体实施中,在第一OAM消息为主动连通性检测消息的情况下,第一OAM消息不包括协议版本信息、本地标识符和远端标识符,例如,协议版本信息可以是BFD协议的版本号、本地标识符为BFD会话的My Discriminator字段,远端标识符为BFD会话的Your Discriminator字段。In a specific implementation, when the first OAM message is an active connectivity detection message, the first OAM message does not include the protocol version information, the local identifier and the remote identifier. For example, the protocol version information may be the version of the BFD protocol number, the local identifier is the My Discriminator field of the BFD session, and the remote identifier is the Your Discriminator field of the BFD session.
一具体实施中,T字段指示第一OAM消息为性能检测消息。In a specific implementation, the T field indicates that the first OAM message is a performance detection message.
一具体实施中,在第一OAM消息为性能检测消息的情况下,V字段包括:第八字段,用于承载发送端发送的第一性能检测消息的序列号;第九字段:用于承载反射端发送的第二性能检测消息的序列号,第二性能检测消息是对第一性能检测消息的响应;第十字段,用于承载发送端发送第一性能检测消息的发送时间戳;第十一字段,用于承载反射端接收第一性能检测消息的接收时间戳;第十二字段,用于承载反射端发送第二性能检测消息的发送时间戳;第十三字段,用于承载发送端接收第二性能检测消息的接收时间戳。需要说明的是,第八字段与图10中的发送端发送的性能检测消息的序列号对应,第九字段与图10中的反射端发送的性能检测消息的序列号对应,第十字段与图10中的发送端发送性能检测消息的发送时间戳对应,第十一字段与图10中的反射端接收性能检测消息的接收时间戳对应,第十二字段与图10中的反射端发送性能检测消息的发送时间戳对应;第十三字段于图10中的发送端接收性能检测消息的接收时间戳对应。In a specific implementation, when the first OAM message is a performance detection message, the V field includes: an eighth field, which is used to carry the sequence number of the first performance detection message sent by the sender; the ninth field: used to carry the reflection The sequence number of the second performance detection message sent by the terminal, the second performance detection message is a response to the first performance detection message; the tenth field is used to carry the sending timestamp of the first performance detection message sent by the sender; the eleventh field field, which is used to carry the reception timestamp of the first performance detection message received by the reflector; the twelfth field is used to carry the transmission timestamp of the second performance detection message sent by the reflector; the thirteenth field is used to carry the transmission time stamp of the sender The reception timestamp of the second performance detection message. It should be noted that the eighth field corresponds to the sequence number of the performance detection message sent by the sender in FIG. 10, the ninth field corresponds to the sequence number of the performance detection message sent by the reflector in FIG. 10, and the tenth field corresponds to the sequence number of the performance detection message sent by the reflector in FIG. 10 corresponds to the sending time stamp of the performance detection message sent by the transmitting end, the eleventh field corresponds to the receiving time stamp of the receiving performance detection message of the reflecting end in Figure 10, and the twelfth field corresponds to the sending performance detection of the reflecting end in Figure 10. Corresponds to the sending timestamp of the message; the thirteenth field corresponds to the receiving timestamp of the sending end receiving performance detection message in FIG. 10 .
一具体实施中,在第一OAM消息为性能检测消息的情况下,V字段还包括:填充变长字段,与图10中的填充变长字段对应。In a specific implementation, when the first OAM message is a performance detection message, the V field further includes: a padding variable-length field, which corresponds to the padding variable-length field in FIG. 10 .
示例性地,在第一OAM消息为性能检测消息的情况下,第一IPv6报文也可以是上述IPv6报文5,则第一OAM消息为上述OAM消息5。Exemplarily, in the case where the first OAM message is a performance detection message, the first IPv6 message may also be the foregoing IPv6 message 5, and the first OAM message is the foregoing OAM message 5.
一具体实施中,在T字段指示第一OAM消息为性能检测消息的情况下,T字段取值为第四值时,指示性能检测消息用于丢包检测,T字段取值为第五值时,指示性能检测消息用于时延检测或时延抖动测量,T字段取值为第六值时,指示性能检测消息用于丢包时延检测。In a specific implementation, when the T field indicates that the first OAM message is a performance detection message, when the T field is a fourth value, it indicates that the performance detection message is used for packet loss detection, and when the T field is a fifth value , indicating that the performance detection message is used for delay detection or delay jitter measurement. When the value of the T field is the sixth value, it indicates that the performance detection message is used for packet loss delay detection.
一具体实施中,T字段也可以仅指示第一OAM消息为性能检测消息,通过在TLV字段中增加标识字段,来标识性能检测消息的具体功能。例如,第三标识字段用于指示性能检测消息用于丢包检测,第四标识字段用于指示性能检测消息用于时延检测,第五标识字段用于指示性能检测消息用于丢包时延检测。对于标识字段的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于标识字段在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述标识字段可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述标识字段。需要说明的是,此实施方式中的标识字段与图12A-图12C中的“性能检测类型”字段对应。In a specific implementation, the T field may also only indicate that the first OAM message is a performance detection message, and the specific function of the performance detection message is identified by adding an identification field to the TLV field. For example, the third identification field is used to indicate that the performance detection message is used for packet loss detection, the fourth identification field is used to indicate that the performance detection message is used for delay detection, and the fifth identification field is used to indicate that the performance detection message is used for packet loss delay detection. The representation of the identification field may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the identification field in the TLV field. In a specific implementation manner, the above-mentioned identification field may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned identification field. It should be noted that the identification field in this embodiment corresponds to the "performance detection type" field in FIGS. 12A-12C .
一具体实施中,V字段包括至少一个子TLV字段,该至少一个子TLV字段包括第一子TLV,第一子TLV指示性能检测消息用于丢包检测;第二子TLV,第二子TLV用于指示性能检测消息用于时延检测或时延抖动测量;第三子TLV,第三子TLV用于指示性能检测消息用于丢包时延检测。In a specific implementation, the V field includes at least one sub-TLV field, the at least one sub-TLV field includes a first sub-TLV, and the first sub-TLV indicates a performance detection message for packet loss detection; the second sub-TLV, the second sub-TLV uses The third sub-TLV is used to indicate that the performance detection message is used for delay detection or delay jitter measurement; the third sub-TLV is used to indicate the performance detection message for packet loss delay detection.
一具体实施中,在性能检测消息用于丢包检测时,V字段还包括:第十四字段,用于承 载发送端发送的第一数据报文的统计数量;第十五字段,用于承载反射端接收到的第一数据报文的统计数量;第十六字段,用于承载反射端发送的第二数据报文的统计数量,第二数据报文是对第一数据报文的响应;第十七字段,用于承载发送端接收到的第二数据报文的统计数量。需要说明的是,第十四字段与图12A或图12C中的发送端发送的数据报文的统计数量对应,第十五字段与图12A或图12C中的反射端接收的数据报文的统计数量对应,第十六字段与图12A或图12C中的反射端发送的数据报文的统计数量对应,第十七字段,与图12A或图12C中的发送端接收到的数据报文的统计数量对应。且此实施例对应的消息格式对图12A所示的消息格式对应。In a specific implementation, when the performance detection message is used for packet loss detection, the V field further includes: a fourteenth field, which is used to carry the statistical quantity of the first data packet sent by the sender; a fifteenth field, which is used to carry The statistical quantity of the first data packet received by the reflection end; the sixteenth field is used to carry the statistical quantity of the second data packet sent by the reflection terminal, and the second data packet is a response to the first data packet; The seventeenth field is used to carry the statistical quantity of the second data packet received by the sender. It should be noted that the fourteenth field corresponds to the statistics of data packets sent by the sender in FIG. 12A or FIG. 12C , and the fifteenth field corresponds to the statistics of data packets received by the reflector in FIG. 12A or 12C The number corresponds, the sixteenth field corresponds to the statistics of the data packets sent by the reflecting end in Figure 12A or Figure 12C, and the seventeenth field corresponds to the statistics of the data packets received by the transmitting end in Figure 12A or Figure 12C quantity corresponds. And the message format corresponding to this embodiment corresponds to the message format shown in FIG. 12A .
示例性地,在第一OAM消息为性能检测消息的情况下,第一IPv6报文也可以是上述IPv6报文7,则第一OAM消息为上述OAM消息7。Exemplarily, in the case where the first OAM message is a performance detection message, the first IPv6 message may also be the foregoing IPv6 message 7, and the first OAM message is the foregoing OAM message 7.
一具体实施中,在性能检测用于时延检测或时延抖动测量时,V字段还包括:第十八字段,用于承载发送端发送第三性能检测消息的发送时间戳;第十九字段,用于承载反射端接收第三性能检测消息的接收时间戳;第二十字段,用于承载反射端发送第四性能检测消息的发送时间戳,第四性能检测消息是对第三性能检测消息的响应;第二十一字段,用于承载发送端接收第四性能检测消息的接收时间戳。需要说明的是,第十八字段与图12B或图12C中的发送端发送性能检测消息的发送时间戳对应,第十九字段与图12B或图12C中的反射端接收性能检测消息的接收时间戳对应,第二十字段与图12B或图12C中的反射端发送性能检测消息的发送时间戳对应,第二十一字段,与图12B或图12C中的发送端接收性能检测消息的接收时间戳对应。且此实施例对应的消息格式对图12B所示的消息格式对应。In a specific implementation, when the performance detection is used for delay detection or delay jitter measurement, the V field further includes: an eighteenth field, which is used to carry the sending timestamp of the third performance detection message sent by the sender; the nineteenth field , which is used to carry the receiving timestamp of the third performance detection message received by the reflector; the twentieth field is used to carry the sending timestamp of the fourth performance detection message sent by the reflector. The fourth performance detection message is a response to the third performance detection message. response; the twenty-first field is used to carry the receiving timestamp when the sender receives the fourth performance detection message. It should be noted that the eighteenth field corresponds to the sending timestamp of the performance detection message sent by the sender in FIG. 12B or FIG. 12C , and the nineteenth field corresponds to the receiving time of the performance detection message received by the reflector in FIG. 12B or FIG. 12C . The twentieth field corresponds to the sending timestamp of the performance detection message sent by the reflector in FIG. 12B or FIG. 12C , and the twenty-first field corresponds to the receiving time of the performance detection message received by the transmitter in FIG. 12B or 12C corresponding to the stamp. And the message format corresponding to this embodiment corresponds to the message format shown in FIG. 12B .
示例性地,在第一OAM消息为性能检测消息的情况下,第一IPv6报文也可以是上述IPv6报文9,则第一OAM消息为上述OAM消息9。Exemplarily, in the case where the first OAM message is a performance detection message, the first IPv6 message may also be the foregoing IPv6 message 9, and the first OAM message is the foregoing OAM message 9.
一具体实施中,在性能检测消息用于丢包时延检测时,V字段包括上述第十四字段至第二十一字段这八个字段的内容,此实施例与上述图12C对应。In a specific implementation, when the performance detection message is used for packet loss delay detection, the V field includes the contents of the above-mentioned eight fields of the fourteenth field to the twenty-first field, and this embodiment corresponds to the above-mentioned FIG. 12C .
一具体实施中,T字段指示第一OAM消息为第一复合OAM消息,第一复合OAM消息用于实现至少两种OAM功能。其中,至少两种OAM功能包括连通性检测和性能测量。In a specific implementation, the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions. Among them, at least two OAM functions include connectivity detection and performance measurement.
一具体实施中,在第一OAM消息为第一复合OAM消息的情况下,V字段包括第一标识和第二标识,第一标识用于指示第一复合OAM消息用于第一OAM检测,第二标识用于指示第一复合OAM消息用于第二OAM检测。具体地,第一OAM检测为连通性检测,第二OAM检测为性能检测。对于第一标识、第二标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。另外,第一标识和第二标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载第一标识和第二标识。In a specific implementation, when the first OAM message is a first composite OAM message, the V field includes a first identifier and a second identifier, the first identifier is used to indicate that the first composite OAM message is used for the first OAM detection, and the first identifier is used for the first OAM detection. The second identifier is used to indicate that the first composite OAM message is used for the second OAM detection. Specifically, the first OAM detection is connectivity detection, and the second OAM detection is performance detection. The representation manner of the first identifier and the second identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. In addition, the first identification and the second identification may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the first identifier and the second identifier.
一具体实施中,第一复合OAM消息包括第一指示信息,第一指示信息指示第一复合OAM消息为一个请求消息或一个响应消息。例如,第一指示信息可以是T字段,T字段取第七值时,指示第一复合OAM消息为一个请求消息,T字段取第八值时,指示第一复合OAM消息为一个应答消息;又例如,T字段仅指示第一OAM消息为第一复合OAM消息时,第一指示信息也可以是新增加的第一检测标识,第一检测标识取第一值,指示第一复合OAM消息是一个请求消息,第一检测标识取第二值,指示第一复合OAM消息是一个应答消息。对于第一检测标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于第一检测标识在TLV字段中的承载方式,本申请不做具体限定。一种具体 的实现方式中,上述第一检测标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述第一检测标识。需要说明的是,第一检测标识可以与图13中的“类型”字段对应。In a specific implementation, the first composite OAM message includes first indication information, and the first indication information indicates that the first composite OAM message is a request message or a response message. For example, the first indication information may be a T field, when the T field takes the seventh value, it indicates that the first composite OAM message is a request message, and when the T field takes the eighth value, it indicates that the first composite OAM message is a response message; For example, when the T field only indicates that the first OAM message is the first composite OAM message, the first indication information may also be a newly added first detection flag, and the first detection flag takes a first value, indicating that the first composite OAM message is a In the request message, the first detection flag takes a second value, indicating that the first composite OAM message is a response message. The representation manner of the first detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the first detection identifier in the TLV field. In a specific implementation manner, the above-mentioned first detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned first detection identifier. It should be noted that the first detection identifier may correspond to the "type" field in FIG. 13 .
可选地,第一复合OAM消息还包括第二指示信息,第二指示信息指示性能检测的具体类型。例如,第三指示信息可以是T字段,T字段取第九值时,指示性能检测的类型为丢包检测,T字段取第十值时,指示性能检测的类型为时延检测或时延抖动检测,T字段取第十一值时,指示性能检测的类型为丢包时延检测;又例如,T字段仅指示第一OAM消息为第一复合OAM消息时,第二指示信息也可以是新增加的第二检测标识,第二检测标识取第一值,指示性能检测的类型为丢包检测,第二检测标识取第二值,指示性能检测的类型为时延检测或时延抖动测量,第二检测标识取第三值,指示性能检测的类型为丢包时延检测。对于第二检测标识的表示方式,可以是比特映射的方式,也可以采用二进制取值的方式,本申请不做具体限制。关于第二检测标识在TLV字段中的承载方式,本申请不做具体限定。一种具体的实现方式中,上述第二检测标识可以承载在V字段中。当然,也可以在T字段中设置预留的比特位,用于承载上述第二检测标识。需要说明的是,第二检测标识可以与图13中的“性能检测类型”字段对应。Optionally, the first composite OAM message further includes second indication information, where the second indication information indicates a specific type of performance detection. For example, the third indication information may be a T field. When the T field takes the ninth value, it indicates that the type of performance detection is packet loss detection. When the T field takes the tenth value, it indicates that the type of performance detection is delay detection or delay jitter. Detection, when the T field takes the eleventh value, it indicates that the type of performance detection is packet loss delay detection; for another example, when the T field only indicates that the first OAM message is the first composite OAM message, the second indication information may also be a new The added second detection flag, where the second detection flag takes a first value, indicates that the type of performance detection is packet loss detection, the second detection flag takes a second value, and indicates that the type of performance detection is delay detection or delay jitter measurement, The second detection flag takes a third value, indicating that the type of performance detection is packet loss delay detection. The representation manner of the second detection identifier may be a bit mapping manner or a binary value manner, which is not specifically limited in this application. This application does not specifically limit the bearing manner of the second detection identifier in the TLV field. In a specific implementation manner, the above-mentioned second detection identifier may be carried in the V field. Of course, reserved bits may also be set in the T field to carry the above-mentioned second detection identifier. It should be noted that the second detection identifier may correspond to the "performance detection type" field in FIG. 13 .
一具体实施中,第一复合OAM消息的V字段中用于连通性检测的字段还包括以下一个或多个字段:序列号字段,用于承载发送端(即第一装置)发送的第一复合OAM消息的序列号;返回代码return codes字段,其中,所述return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;预留字段、第二回复模式字段和类型-长度-值TLV字段,例如,TLV字段可以是下游详细映射TLV,预留字段用于功能扩展,第二回复模式字段用于指示应答第一复合OAM消息的方式。需要说明的是,序列号字段与图13或图14中的序列号对应,返回代码字段与图13或图14中的返回代码对应,预留字段与图13或图14中的预留位对应,第二回复模式字段与图13或图14中的回复模式对应,类型-长度-值TLV字段与图13或图14中的类型-长度-值/子-类型-长度-值对应。In a specific implementation, the field used for connectivity detection in the V field of the first composite OAM message further includes one or more of the following fields: a sequence number field, which is used to carry the first composite data sent by the sender (ie, the first device). The sequence number of the OAM message; the return code return codes field, wherein the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sender; the reserved field, the second reply mode field and the type- The length-value TLV field, for example, the TLV field may be the downstream detailed mapping TLV, the reserved field is used for function extension, and the second reply mode field is used to indicate the way of replying to the first composite OAM message. It should be noted that the serial number field corresponds to the serial number in FIG. 13 or FIG. 14 , the return code field corresponds to the return code in FIG. 13 or FIG. 14 , and the reserved field corresponds to the reserved bit in FIG. 13 or FIG. 14 , the second reply mode field corresponds to the reply mode in FIG. 13 or FIG. 14 , and the type-length-value TLV field corresponds to the type-length-value/sub-type-length-value in FIG. 13 or FIG. 14 .
一具体实施中,在第一复合OAM消息用于性能检测,V字段中用于性能检测的字段包括:第二十二字段:用于承载反射端发送的第二复合OAM消息的序列号,第二复合OAM消息是对第一复合OAM消息的响应;第二十三字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第二十四字段,用于承载反射端接收第一复合OAM消息的接收时间戳;第二十五字段,用于承载反射端发送第二复合OAM消息的发送时间戳;第二十六字段,用于承载发送端接收第二复合OAM消息的接收时间戳。在一些可能的实施例中,V字段还包括用于功能扩展的预留字段。需要说明的是,第二十二字段与图14中的反射端发送的复合OAM消息的序列号对应,第二十三字段与图14中的发送端发送复合OAM消息的发送时间戳对应,第二十四字段与图14中的反射端接收复合OAM消息的接收时间戳对应,第二十五字段与图14中的反射端发送复合OAM消息的发送时间戳对应,第二十六字段与图14中的发送端接收复合OAM消息的接收时间戳对应。In a specific implementation, when the first composite OAM message is used for performance detection, the fields used for performance detection in the V field include: the twenty-second field: used to carry the sequence number of the second composite OAM message sent by the reflection end, the first The second composite OAM message is a response to the first composite OAM message; the 23rd field is used to carry the sending timestamp of the first composite OAM message sent by the sender; the 24th field is used to carry the first composite OAM message received by the reflector The receiving timestamp of the composite OAM message; the twenty-fifth field is used to carry the sending timestamp of the second composite OAM message sent by the reflector; the twenty-sixth field is used to carry the receiving time of the sending end receiving the second composite OAM message stamp. In some possible embodiments, the V field also includes a reserved field for function extension. It should be noted that the 22nd field corresponds to the sequence number of the composite OAM message sent by the reflector in FIG. 14 , the 23rd field corresponds to the sending timestamp of the composite OAM message sent by the sender in FIG. 14 , and the first The twenty-fourth field corresponds to the receiving timestamp of the composite OAM message received by the reflecting end in FIG. 14 , the twenty-fifth field corresponds to the sending timestamp of the composite OAM message sent by the reflecting end in FIG. 14 , and the twenty-sixth field is the same as that shown in FIG. 14 corresponds to the receiving timestamp of the composite OAM message received by the sender.
示例性地,在第一OAM消息为复合OAM消息的情况下,第一IPv6报文也可以是上述IPv6报文11,则第一OAM消息为上述OAM消息11。Exemplarily, in the case that the first OAM message is a composite OAM message, the first IPv6 packet may also be the above-mentioned IPv6 packet 11, and the first OAM message is the above-mentioned OAM message 11.
一具体实施中,在第二检测标识指示性能检测为丢包检测时,V字段包括:第二十七字段,用于指示发送端发送的第三数据报文的统计数量;第二十八字段,用于指示反射端接收 到的第三数据报文的统计数量;第二十九字段,用于指示反射端发送的第四数据报文的统计数量,第四数据报文是对第三数据报文的响应;第三十字段,用于指示发送端接收到的第四数据报文的统计数量。In a specific implementation, when the second detection flag indicates that the performance detection is packet loss detection, the V field includes: a twenty-seventh field, which is used to indicate the statistical quantity of the third data packet sent by the sender; a twenty-eighth field , which is used to indicate the statistical quantity of the third data packet received by the reflection end; the twenty-ninth field is used to indicate the statistical quantity of the fourth data packet sent by the reflection terminal. The response of the message; the thirtieth field is used to indicate the statistical quantity of the fourth data message received by the sender.
一具体实施中,在第二检测标识指示性能检测为时延检测或时延抖动测量时,V字段包括:第三十一字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第三十二字段,用于承载反射端接收第一复合OAM消息的接收时间戳;第三十三字段,用于承载反射端发送第二复合OAM消息的发送时间戳,第二复合OAM消息是对第一复合OAM消息的响应;第三十四字段,用于承载发送端接收第二复合OAM消息的接收时间戳。In a specific implementation, when the second detection identifier indicates that the performance detection is delay detection or delay jitter measurement, the V field includes: a thirty-first field, which is used to carry the sending timestamp of the first composite OAM message sent by the sending end; The thirty-second field is used to carry the receiving timestamp of the first composite OAM message received by the reflector; the thirty-third field is used to carry the sending timestamp of the second composite OAM message sent by the reflector. The second composite OAM message is The response to the first composite OAM message; the thirty-fourth field is used to carry the receiving timestamp when the sender receives the second composite OAM message.
一具体实施中,在第二检测标识指示性能检测为丢包时延检测时,V字段包括上述第二十七字段至第三十四字段这八个字段。In a specific implementation, when the second detection flag indicates that the performance detection is packet loss delay detection, the V field includes the above-mentioned eight fields of the twenty-seventh field to the thirty-fourth field.
一具体实施中,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:第三十五字段,用于指示发送端和接收端之间建立的复合OAM检测会话的状态;第三十六字段,用于指示发送端发送第一复合OAM消息的最小发送间隔;第三十七字段,用于指示发送端接收接收端发送的第二复合OAM消息的最小接收间隔;第三十八字段,用于指示发送端接收接收端发送的响应消息的最小接收间隔;第三十九字段,指示最近一次会话的状态改变的原因;第四十字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;第四十一字段,第七字段包括查询请求标志Demand、轮询标志Poll和终止标志Final;第四十二字段,用于承载发送端发送的第五数据报文的统计数量;第四十三字段,用于承载接收端接收的第五数据报文的统计数量;第四十四字段,用于承载接收端接发送的第六数据报文的统计数量;第四十五字段:用于承载发送端接收的第六数据报文的统计数量;第四十六字段,用于承载发送端发送第一复合OAM消息的发送时间戳;第四十七字段,用于承载接收端接收第一复合OAM消息的接收时间戳;第四十八字段,用于承载接收端发送第二复合OAM消息的发送时间戳;第四十九字段,用于承载发送端接收第二复合OAM消息的接收时间戳。需要说明的是,第三十五字段与图15中的本地会话状态对应,第三十六字段与图15中的复合OAM消息的最小发送间隔对应,第三十七字段与图15中的复合OAM消息的最小接收间隔对应,第三十八字段与图15中的复合OAM回声消息的最小接收间隔对应,第三十九字段与图15中的诊断字对应;第四十字段与图15中的检测时间乘数对应,第四十一字段与图15中的标志位对应,第四十二字段与图15中的发送端发送的数据报文的统计数量对应,第四十三字段与图15中的反射端接收的数据报文的统计数量对应,第四十四字段与图15中的反射端发送的数据报文的统计数量对应,第四十五字段与图15中的发送端接收的数据报文的统计数量对应,第四十六字段与图15中的发送端发送复合OAM消息的发送时间戳对应,第四十七字段与图15中的反射端接收复合OAM消息的接收时间戳对应,第四十八字段与图15中的反射端发送复合OAM消息的发送时间戳对应,第四十九字段与图15中的发送端接收复合OAM消息的接收时间戳对应。此实施例对应的消息格式与15所示的消息格式对应。In a specific implementation, when the T field indicates that the first OAM message is the first composite OAM message, the V field is composed of the following fields: the thirty-fifth field is used to indicate the composite OAM detection session established between the sender and the receiver The thirty-sixth field is used to indicate the minimum sending interval for the sender to send the first composite OAM message; the thirty-seventh field is used to indicate the minimum receiving interval for the sender to receive the second composite OAM message sent by the receiver ; The thirty-eighth field is used to indicate the minimum receiving interval for the sender to receive the response message sent by the receiver; the thirty-ninth field is used to indicate the reason for the state change of the last session; the fortieth field is used to provide the detection time Multiplier, the detection time multiplier is used to calculate the detection time in the asynchronous mode; the forty-first field, the seventh field includes the query request flag Demand, the polling flag Poll and the termination flag Final; the forty-second field is used for bears the statistical quantity of the fifth data packet sent by the sender; the forty-third field is used to carry the statistical quantity of the fifth data packet received by the receiver; the forty-fourth field is used to bear the The statistical quantity of the sixth data packet; the forty-fifth field is used to carry the statistical quantity of the sixth data packet received by the sender; the forty-sixth field is used to carry the sending of the first composite OAM message sent by the sender timestamp; the forty-seventh field is used to carry the receiving time stamp of the receiving end receiving the first composite OAM message; the forty-eighth field is used to carry the sending time stamp of the receiving end sending the second composite OAM message; the fortieth Nine fields are used to carry the receiving timestamp of the second composite OAM message received by the sender. It should be noted that the thirty-fifth field corresponds to the local session state in FIG. 15 , the thirty-sixth field corresponds to the minimum sending interval of the composite OAM message in FIG. 15 , and the thirty-seventh field corresponds to the composite OAM message in FIG. 15 . The minimum reception interval of the OAM message corresponds to the minimum reception interval of the OAM message, the thirty-eighth field corresponds to the minimum reception interval of the composite OAM echo message in Figure 15, the thirty-ninth field corresponds to the diagnostic word in Figure 15; the fortieth field corresponds to the corresponding to the detection time multiplier of 15 corresponds to the statistical number of data packets received by the reflecting end, the forty-fourth field corresponds to the statistical number of data packets sent by the reflecting end in Figure 15, and the forty-fifth field corresponds to the data packet received by the transmitting end in Figure 15 Corresponding to the statistical number of data packets, the forty-sixth field corresponds to the sending time stamp of the composite OAM message sent by the sender in Figure 15, and the forty-seventh field corresponds to the receiving time of the composite OAM message received by the reflector in Figure 15 The forty-eighth field corresponds to the sending timestamp of the composite OAM message sent by the reflector in FIG. 15 , and the forty-ninth field corresponds to the receiving timestamp of the composite OAM message received by the sender in FIG. 15 . The message format corresponding to this embodiment corresponds to the message format shown in 15 .
示例性地,在第一OAM消息为复合OAM消息的情况下,第一IPv6报文也可以是上述IPv6报文13,则第一OAM消息为上述OAM消息13。Exemplarily, in the case that the first OAM message is a composite OAM message, the first IPv6 packet may also be the above-mentioned IPv6 packet 13, and the first OAM message is the above-mentioned OAM message 13.
一具体实施中,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息; 序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;以及上述第二十二字段至第二十六字段。需要说明的是,此实施例对应的消息格式与图14所示的消息格式对应。In a specific implementation, when the T field indicates that the first OAM message is the first composite OAM message, the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ; The serial number field is used to carry the serial number of the first composite OAM message sent by the sending end; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end; Two reply mode fields, the second reply mode field is used to indicate the way of replying to the first composite OAM message; type-length-value TLV field; reserved field for function extension; Six fields. It should be noted that the message format corresponding to this embodiment corresponds to the message format shown in FIG. 14 .
一具体实施中,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为丢包检测;以及上述第二十七字段至第三十字段。需要说明的是,此实施例对应的消息格式与图13所示的消息格式的一种(即性能检测类型为丢包检测)对应。In a specific implementation, when the T field indicates that the first OAM message is the first composite OAM message, the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ; The serial number field is used to carry the serial number of the first composite OAM message sent by the sending end; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end; Two reply mode fields, the second reply mode field is used to indicate the way of responding to the first composite OAM message; the type-length-value TLV field; the reserved field is used for function extension; the second detection flag is used to indicate that the performance detection is packet loss detection; and the above-mentioned twenty-seventh to thirtieth fields. It should be noted that the message format corresponding to this embodiment corresponds to one of the message formats shown in FIG. 13 (that is, the performance detection type is packet loss detection).
一具体实施中,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为时延检测;以及上述第三十一字段至第三十四字段。需要说明的是,此实施例对应的消息格式与图13所示的消息格式的一种(即性能检测类型为时延检测或时延抖动测量)对应。In a specific implementation, when the T field indicates that the first OAM message is the first composite OAM message, the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ; The serial number field is used to carry the serial number of the first composite OAM message sent by the sending end; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end; Two reply mode fields, the second reply mode field is used to indicate the way of responding to the first composite OAM message; the type-length-value TLV field; the reserved field is used for function extension; the second detection flag is used to indicate that the performance detection is Delay detection; and the above-mentioned thirty-first field to thirty-fourth field. It should be noted that the message format corresponding to this embodiment corresponds to one of the message formats shown in FIG. 13 (that is, the performance detection type is delay detection or delay jitter measurement).
一具体实施中,在T字段指示第一OAM消息为第一复合OAM消息时,V字段由以下字段组成:上述中的第一检测标识,用于指示第一复合OAM消息为请求消息或应答消息;序列号字段,用于承载发送端发送的第一复合OAM消息的序列号;返回代码return codes字段,return codes字段用于承载反射端对发送端发送的第一复合OAM消息的响应结果;第二回复模式字段,第二回复模式字段用于指示应答第一复合OAM消息的方式;类型-长度-值TLV字段;预留字段,用于功能扩展;第二检测标识,用于指示性能检测为丢包时延检测;以及上述第二十七字段至第三十四字段。需要说明的是,此实施例对应的消息格式与图13所示的消息格式的一种(即性能检测类型为丢包时延检测)对应。In a specific implementation, when the T field indicates that the first OAM message is the first composite OAM message, the V field consists of the following fields: the first detection identifier in the above is used to indicate that the first composite OAM message is a request message or a response message ; The serial number field is used to carry the serial number of the first composite OAM message sent by the sending end; the return code return codes field, the return codes field is used to carry the response result of the reflection end to the first composite OAM message sent by the sending end; Two reply mode fields, the second reply mode field is used to indicate the way of responding to the first composite OAM message; the type-length-value TLV field; the reserved field is used for function extension; the second detection flag is used to indicate that the performance detection is packet loss delay detection; and the aforementioned twenty-seventh to thirty-fourth fields. It should be noted that the message format corresponding to this embodiment corresponds to one of the message formats shown in FIG. 13 (that is, the performance detection type is packet loss delay detection).
一具体实施中,第一IPv6报文中还包括第一OAM消息的统一会话标识,统一会话标识用于第一OAM消息的发送端匹配第一OAM消息与发送端接收的来自对端的OAM消息。例如,若第一OAM消息为上述中的OAM消息1,则来自对端的OAM消息可以为上述中的OAM消息2。需要说明的是,统一会话标识可以是图16-图19中的Path Segment字段,也可以由图20中的BIFD-id、BFIR-id和Entropy字段组成,本申请实施例不做具体限定。In a specific implementation, the first IPv6 packet further includes a unified session identifier of the first OAM message, and the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end. For example, if the first OAM message is the OAM message 1 in the above, the OAM message from the opposite end may be the OAM message 2 in the above. It should be noted that the unified session identifier may be the Path Segment field in FIG. 16-FIG. 19, or may be composed of the BIFD-id, BFIR-id, and Entropy fields in FIG. 20, which are not specifically limited in this embodiment of the present application.
S102、第一装置发送第一IPv6报文。S102. The first device sends a first IPv6 packet.
在本申请实施例中,第一装置发送第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息。In this embodiment of the present application, the first device sends the first IPv6 packet, and the IPv6 extension header of the first IPv6 packet carries the first OAM message.
需要说明的是,根据S101中的相关叙述可知,第一IPv6报文可以是上述实施例中的IPv6报文1、IPv6报文3、IPv6报文5、IPv6报文7、IPv6报文9、IPv6报文11和IPv6报文13 中的任意一种,第一IPv6报文携带的第一OAM消息具体可参考上述对应报文的相关叙述,在此不再赘述。It should be noted that, according to the relevant description in S101, the first IPv6 packet may be IPv6 packet 1, IPv6 packet 3, IPv6 packet 5, IPv6 packet 7, IPv6 packet 9, For any one of the IPv6 packet 11 and the IPv6 packet 13, the first OAM message carried in the first IPv6 packet may refer to the relevant description of the corresponding packet above, which will not be repeated here.
一具体实施中,IPv6扩展头为目的地选项头DoH。此实施例具体可参考图16、图18或图20的相关叙述。In a specific implementation, the IPv6 extension header is the destination option header DoH. For details of this embodiment, reference may be made to the relevant description of FIG. 16 , FIG. 18 or FIG. 20 .
一具体实施中,IPv6扩展头为分段路由报头SRH。此实施例具体可参考图17或图19的相关叙述。In a specific implementation, the IPv6 extension header is a segment routing header SRH. For details of this embodiment, reference may be made to the related description of FIG. 17 or FIG. 19 .
一具体实施中,IPv6扩展头包括关联通道ACH,第一OAM消息承载于ACH中。具体地,关联通道ACH包括选项类型字段和通道类型字段,其中,选项类型字段指示关联通道,通道类型字段指示ACH所承载的通道类型为OAM通道,该OAM通道用于承载第一OAM消息。此实施例具体可参考图18或图19的相关叙述。In a specific implementation, the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH. Specifically, the associated channel ACH includes an option type field and a channel type field, wherein the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message. For details of this embodiment, reference may be made to the related description of FIG. 18 or FIG. 19 .
一具体实施中,IPv6扩展头包括比特索引显示复制BIER头。此实施例具体可参考图20的相关叙述。In a specific implementation, the IPv6 extension header includes a bit index indicating duplicate BIER header. For details of this embodiment, reference may be made to the related description in FIG. 20 .
可以看到,实施本申请实施例,对OAM消息进行了统一表达,实现了对OAM功能的整合,使得OAM消息更加轻量化,使得OAM消息可以用于连通性检测/验证以及性能检测功能中的至少一种。另外,还简化了OAM消息的封装过程,实现OAM消息在数据面处理,提高OAM消息的处理效率,有利于减少网络带宽的开销。It can be seen that, by implementing the embodiments of the present application, the OAM message is uniformly expressed, the integration of the OAM function is realized, the OAM message is more lightweight, and the OAM message can be used for connectivity detection/verification and performance detection functions. at least one. In addition, the encapsulation process of the OAM message is simplified, the OAM message is processed on the data plane, the processing efficiency of the OAM message is improved, and the network bandwidth overhead is reduced.
参见图22,图22是本申请实施例提供的一种OAM检测方法,应用于第二装置,第二装置可以是接收端或反射端。需要说明的是,图22实施例可以独立于图21所示实施例,也可以是对图21所示实施例的补充。该方法包括但不限于以下步骤:Referring to FIG. 22, FIG. 22 shows an OAM detection method provided by an embodiment of the present application, which is applied to a second device, and the second device may be a receiving end or a reflecting end. It should be noted that the embodiment shown in FIG. 22 may be independent of the embodiment shown in FIG. 21 , or may be a supplement to the embodiment shown in FIG. 21 . The method includes but is not limited to the following steps:
S201、第二装置接收第二IPv6报文,第二IPv6报文中包括第二OAM消息。S201. The second device receives a second IPv6 packet, where the second IPv6 packet includes a second OAM message.
在本申请实施例中,第二IPv6报文即为图21中S101中的第一IPv6报文,第二OAM消息即为图21中S101中的第一OAM消息,第二IPv6报文的说明可参考S101中第一IPv6报文的相关叙述,第二OAM消息的说明可参考S101中第一OAM消息的相关叙述,为了说明书的简洁,在此不再赘述。In this embodiment of the present application, the second IPv6 message is the first IPv6 message in S101 in FIG. 21 , the second OAM message is the first OAM message in S101 in FIG. 21 , and the description of the second IPv6 message For the description of the first IPv6 message in S101, reference may be made to the description of the first OAM message in S101. For the brevity of the description, details are not repeated here.
根据上述S101可知,第二IPv6报文可以是上述实施例中的IPv6报文1、IPv6报文3、IPv6报文5、IPv6报文7、IPv6报文9、IPv6报文11和IPv6报文13中的任意一种,相应地,第二OAM消息为OAM消息1、OAM消息3、OAM消息5、OAM消息7、OAM消息9、OAM消息11和OAM消息13中对应的那一种。例如,若第二IPv6报文为IPv6报文1时,则第二OAM消息为OAM消息1。According to the above S101, the second IPv6 packet may be the IPv6 packet 1, the IPv6 packet 3, the IPv6 packet 5, the IPv6 packet 7, the IPv6 packet 9, the IPv6 packet 11 and the IPv6 packet in the above embodiment Any one of 13, correspondingly, the second OAM message is a corresponding one of OAM message 1, OAM message 3, OAM message 5, OAM message 7, OAM message 9, OAM message 11 and OAM message 13. For example, if the second IPv6 packet is IPv6 packet 1, the second OAM message is OAM message 1.
S202、第二装置根据第二IPv6报文获取第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息。S202. The second device obtains the first IPv6 packet according to the second IPv6 packet, where the IPv6 extension header of the first IPv6 packet carries the first OAM message.
在本申请实施例中,第二装置在接收到第二IPv6报文后,根据第二IPv6报文生成第一IPv6报文,第一IPv6报文携带第一OAM消息,第一OAM消息是对第二OAM消息的响应。In the embodiment of the present application, after receiving the second IPv6 packet, the second device generates the first IPv6 packet according to the second IPv6 packet, where the first IPv6 packet carries the first OAM message, and the first OAM message is a pair of response to the second OAM message.
一具体实施中,第二IPv6报文携带的第二OAM消息为回显请求消息,第二装置根据第二IPv6报文生成的第一IPv6报文,第一IPv6报文携带的即第一OAM消息是对第二OAM消息的响应,第二OAM消息为回显应答消息。In a specific implementation, the second OAM message carried in the second IPv6 packet is an echo request message, the second device generates the first IPv6 packet according to the second IPv6 packet, and the first IPv6 packet carried in the first IPv6 packet is the first OAM The message is a response to the second OAM message, which is an echo response message.
一具体实施中,第二IPv6报文携带的第二OAM消息为第一复合OAM消息,第二装置根据第二IPv6报文生成的第一IPv6报文,第一IPv6报文携带的即第一OAM消息是对第二 OAM消息的响应。In a specific implementation, the second OAM message carried in the second IPv6 packet is the first composite OAM message, the second device generates the first IPv6 packet according to the second IPv6 packet, and the first IPv6 packet carried in the first IPv6 packet is the first IPv6 packet. The OAM message is a response to the second OAM message.
示例性地,在第二IPv6报文为上述实施例中的IPv6报文1时,第一IPv6报文为上述实施例中的IPv6报文2,则第一OAM消息为上述中的OAM消息2。Exemplarily, when the second IPv6 packet is the IPv6 packet 1 in the foregoing embodiment, the first IPv6 packet is the IPv6 packet 2 in the foregoing embodiment, and the first OAM message is the OAM message 2 in the foregoing embodiment. .
示例性地,在第二IPv6报文为上述实施例中的IPv6报文3时,第一IPv6报文为上述实施例中的IPv6报文4,则第一OAM消息为上述中的OAM消息4。Exemplarily, when the second IPv6 packet is the IPv6 packet 3 in the above-mentioned embodiment, the first IPv6 packet is the IPv6 packet 4 in the above-mentioned embodiment, and the first OAM message is the above-mentioned OAM message 4. .
示例性地,在第二IPv6报文为上述实施例中的IPv6报文5时,第一IPv6报文为上述实施例中的IPv6报文6,则第一OAM消息为上述中的OAM消息6。Exemplarily, when the second IPv6 packet is the IPv6 packet 5 in the above-mentioned embodiment, the first IPv6 packet is the IPv6 packet 6 in the above-mentioned embodiment, and the first OAM message is the above-mentioned OAM message 6. .
示例性地,在第二IPv6报文为上述实施例中的IPv6报文7时,第一IPv6报文为上述实施例中的IPv6报文8,则第一OAM消息为上述中的OAM消息8。Exemplarily, when the second IPv6 packet is the IPv6 packet 7 in the above-mentioned embodiment, the first IPv6 packet is the IPv6 packet 8 in the above-mentioned embodiment, and the first OAM message is the above-mentioned OAM message 8. .
示例性地,在第二IPv6报文为上述实施例中的IPv6报文9时,第一IPv6报文为上述实施例中的IPv6报文10,则第一OAM消息为上述中的OAM消息10。Exemplarily, when the second IPv6 packet is the IPv6 packet 9 in the foregoing embodiment, the first IPv6 packet is the IPv6 packet 10 in the foregoing embodiment, and the first OAM message is the OAM message 10 in the foregoing embodiment. .
示例性地,在第二IPv6报文为上述实施例中的IPv6报文11时,第一IPv6报文为上述实施例中的IPv6报文12,则第一OAM消息为上述中的OAM消息12。Exemplarily, when the second IPv6 packet is the IPv6 packet 11 in the foregoing embodiment, the first IPv6 packet is the IPv6 packet 12 in the foregoing embodiment, and the first OAM message is the OAM message 12 in the foregoing embodiment. .
示例性地,在第二IPv6报文为上述实施例中的IPv6报文13时,第一IPv6报文为上述实施例中的IPv6报文14,则第一OAM消息为上述中的OAM消息14。Exemplarily, when the second IPv6 packet is the IPv6 packet 13 in the above-mentioned embodiment, the first IPv6 packet is the IPv6 packet 14 in the above-mentioned embodiment, and the first OAM message is the above-mentioned OAM message 14. .
S203、第二装置发送第一IPv6报文。S203. The second device sends the first IPv6 packet.
在本申请实施例中,第二装置发送第一IPv6报文,第一IPv6报文携带第一OAM消息。In the embodiment of the present application, the second device sends the first IPv6 packet, and the first IPv6 packet carries the first OAM message.
根据S202的叙述可知,第一IPv6报文可以是上述实施例中的IPv6报文2、IPv6报文4、IPv6报文6、IPv6报文8、IPv6报文10、IPv6报文12和IPv6报文14中的任意一种,相应地,第一OAM消息为OAM消息2、OAM消息4、OAM消息6、OAM消息8、OAM消息10、OAM消息12和OAM消息14中对应的一种。According to the description of S202, the first IPv6 packet may be IPv6 packet 2, IPv6 packet 4, IPv6 packet 6, IPv6 packet 8, IPv6 packet 10, IPv6 packet 12, and IPv6 packet in the foregoing embodiment Any one of the text 14, correspondingly, the first OAM message is a corresponding one of OAM message 2, OAM message 4, OAM message 6, OAM message 8, OAM message 10, OAM message 12 and OAM message 14.
一具体实施中,IPv6扩展头为目的地选项头DoH。此实施例具体可参考图16、图18或图20的相关叙述。In a specific implementation, the IPv6 extension header is the destination option header DoH. For details of this embodiment, reference may be made to the relevant description of FIG. 16 , FIG. 18 or FIG. 20 .
一具体实施中,IPv6扩展头为分段路由报头SRH。此实施例具体可参考图17或图19的相关叙述。In a specific implementation, the IPv6 extension header is a segment routing header SRH. For details of this embodiment, reference may be made to the related description of FIG. 17 or FIG. 19 .
一具体实施中,IPv6扩展头包括关联通道ACH,第一OAM消息承载于ACH中。具体地,关联通道ACH包括选项类型字段和通道类型字段,其中,选项类型字段指示关联通道,通道类型字段指示ACH所承载的通道类型为OAM通道,该OAM通道用于承载第一OAM消息。此实施例具体可参考图18或图19的相关叙述。In a specific implementation, the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH. Specifically, the associated channel ACH includes an option type field and a channel type field, wherein the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message. For details of this embodiment, reference may be made to the related description of FIG. 18 or FIG. 19 .
一具体实施中,IPv6扩展头包括比特索引显示复制BIER头。此实施例具体可参考图20的相关叙述。In a specific implementation, the IPv6 extension header includes a bit index indicating duplicate BIER header. For details of this embodiment, reference may be made to the related description in FIG. 20 .
一具体实施中,第一IPv6报文还包括第一OAM消息的统一会话标识,该统一会话标识用于第一OAM消息的发送端匹配第一OAM消息与发送端接收的来自对端的OAM消息。例如,若第一OAM消息为上述中的OAM消息3,则来自对端的OAM消息可以为上述中的OAM消息4。例如,统一会话标识可以是图16-图19中的Path Segment字段,也可以由图20中的BIFD-id、BFIR-id和Entropy字段组成,本申请实施例不做具体限定。In a specific implementation, the first IPv6 packet further includes a unified session identifier of the first OAM message, where the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end. For example, if the first OAM message is the OAM message 3 in the above, the OAM message from the opposite end may be the OAM message 4 in the above. For example, the unified session identifier may be the Path Segment field in FIG. 16-FIG. 19, or may be composed of the BIFD-id, BFIR-id, and Entropy fields in FIG. 20, which is not specifically limited in this embodiment of the present application.
可以看到,实施本申请实施例,对OAM消息进行了统一表达,实现了对OAM功能的整合,使得OAM消息更加轻量化,使得OAM消息可以用于连通性检测/验证以及性能检测功能中的至少一种。另外,还简化了OAM消息的封装过程,实现OAM消息在数据面处理, 提高OAM消息的处理效率,有利于减少网络带宽的开销。It can be seen that, by implementing the embodiments of the present application, the OAM message is uniformly expressed, the integration of the OAM function is realized, the OAM message is more lightweight, and the OAM message can be used for connectivity detection/verification and performance detection functions. at least one. In addition, the encapsulation process of the OAM message is simplified, the OAM message is processed on the data plane, the processing efficiency of the OAM message is improved, and the network bandwidth overhead is reduced.
参见图23,图23是本申请实施例提供的一种装置30的结构示意图,该装置30能够用于实现本申请上述实施例所描述的方法。装置30可以是路由器,交换机等网络设备,也可以是用于上述网络设备的能够实现上述方法的组件,例如单板,芯片,线卡等。装置30包括至少一个处理器110、存储器111和收发器112。装置30可以是图21中的第一装置,也可以是图22中的第二装置,本申请不做具体限定。Referring to FIG. 23 , FIG. 23 is a schematic structural diagram of an apparatus 30 provided by an embodiment of the present application, and the apparatus 30 can be used to implement the methods described in the above embodiments of the present application. The apparatus 30 may be a network device such as a router, a switch, or the like, or may be a component for the above-mentioned network device that can implement the above-mentioned method, such as a single board, a chip, a line card, and the like. Apparatus 30 includes at least one processor 110 , memory 111 and transceiver 112 . The device 30 may be the first device in FIG. 21 or the second device in FIG. 22 , which is not specifically limited in this application.
处理器110用于生成第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息。处理器110可以是处理器110可以由一个或者多个处理器构成,例如中央处理器(Central Processing Unit,CPU),网络处理器(Network Processor,简称NP)或者CPU和硬件芯片的组合。上述硬件芯片可以是专用集成电路(Application-Specific Integrated Circuit,ASIC)、可编程逻辑器件(Programmable Logic Device,PLD)或其组合。上述PLD可以是复杂可编程逻辑器件(Complex Programmable Logic Device,CPLD)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)、通用阵列逻辑(Generic Array Logic,GAL)或其任意组合。The processor 110 is configured to generate a first IPv6 packet, where the IPv6 extension header of the first IPv6 packet carries the first OAM message. The processor 110 may be composed of one or more processors, such as a central processing unit (Central Processing Unit, CPU), a network processor (Network Processor, NP for short), or a combination of a CPU and a hardware chip. The above-mentioned hardware chip may be an application-specific integrated circuit (Application-Specific Integrated Circuit, ASIC), a programmable logic device (Programmable Logic Device, PLD) or a combination thereof. The above-mentioned PLD can be a complex programmable logic device (Complex Programmable Logic Device, CPLD), a field programmable gate array (Field-Programmable Gate Array, FPGA), a general array logic (Generic Array Logic, GAL) or any combination thereof.
收发器112例如可以是通信接口或光模块等。在装置30为图21中的第一装置时,收发器112用于发送第一IPv6报文,在此情况下,第一IPv6报文是一个请求。在装置30为图22所示的第二装置时,收发器112在发送第一IPv6报文之前,收发器112先用于接收第二IPv6报文,第二IPv6报文包括第二OAM消息,第一IPv6报文携带的第一OAM消息是对第二OAM消息的响应。The transceiver 112 may be, for example, a communication interface or an optical module or the like. When the device 30 is the first device in FIG. 21 , the transceiver 112 is configured to send the first IPv6 message, in this case, the first IPv6 message is a request. When the device 30 is the second device shown in FIG. 22 , before the transceiver 112 sends the first IPv6 message, the transceiver 112 is used to receive the second IPv6 message, and the second IPv6 message includes the second OAM message, The first OAM message carried in the first IPv6 packet is a response to the second OAM message.
存储器111可以是只读存储器(read-only memory,ROM)或可存储静态信息和指令的其它类型的静态存储设备,也可以是随机存取存储器(random access memory,RAM)或者可存储信息和指令的其它类型的动态存储设备,也可以是电可擦可编程只读存储器(electrically erasable programmable read-only Memory,EEPROM)、只读光盘(compact disc read-only memory,CD-ROM)或其它光盘存储、光碟存储(包括压缩光碟、激光碟、光碟、数字通用光碟、蓝光光碟等)、磁盘存储介质或者其它磁存储设备,或者是能够用于携带或存储具有指令或数据结构形式的期望的程序代码并能够由计算机存取的任何其它介质,但不限于此。存储器111可以独立存在,也可以与处理器110集成在一起。存储器111可以是一个,也可以是多个。The memory 111 can be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, or can be a random access memory (RAM) or can store information and instructions. Other types of dynamic storage devices, it can also be electrically erasable programmable read-only memory (electrically erasable programmable read-only memory, EEPROM), compact disc read-only memory (CD-ROM) or other optical disk storage , optical disc storage (including compact disc, laser disc, optical disc, digital versatile disc, blu-ray disc, etc.), magnetic disk storage medium or other magnetic storage device, or can be used to carry or store desired program code in the form of instructions or data structures and any other medium that can be accessed by a computer, but is not limited thereto. The memory 111 may exist independently, or may be integrated with the processor 110 . The number of memory 111 may be one or more than one.
存储器111存储的有处理单元和收发单元,其中,收发单元用于存储收发器112执行上述操作,例如,S102、S201或S203所需的程序和数据,处理单元用于存储处理器110执行上述操作,例如,S101或者S202所需的程序和数据。The memory 111 stores a processing unit and a transceiver unit, wherein the transceiver unit is used to store the transceiver 112 to perform the above operations, for example, programs and data required by S102, S201 or S203, and the processing unit is used to store the processor 110 to perform the above operations. , for example, programs and data required for S101 or S202.
一具体实施中,装置30可以对应于上述方法实施例中的发送端和图21所示实施例中的第一装置,装置30中的各模块可用于实现图21所示实施例中的各步骤,具体细节可参见上述图21实施例的相关叙述,为了简洁,在此不再赘述。In a specific implementation, the apparatus 30 may correspond to the transmitting end in the foregoing method embodiment and the first apparatus in the embodiment shown in FIG. 21 , and each module in the apparatus 30 may be used to implement each step in the embodiment shown in FIG. 21 . , and the specific details can be found in the relevant description of the above-mentioned embodiment in FIG. 21 , which is not repeated here for brevity.
一具体实施中,装置30可以对应于上述方法实施例中的反射端和图22所示实施例中的第二装置,装置30中的各模块可用于实现图22所示实施例中的各步骤,具体细节可参见上述图22实施例的相关叙述,为了简洁,在此不再赘述。In a specific implementation, the device 30 may correspond to the reflection end in the above method embodiment and the second device in the embodiment shown in FIG. 22 , and each module in the device 30 may be used to implement each step in the embodiment shown in FIG. 22 . , and the specific details can be found in the relevant description of the above-mentioned embodiment in FIG. 22 , which is not repeated here for brevity.
参见图24,图24是本申请实施例提供的一种装置的功能结构示意图,装置41包括处理单元411和收发单元412。其中,收发单元412用于执行本申请上述各方法实施例中所涉及 的收发相关的操作,处理单元411用于执行本申请上述各方法实施例中所涉及的收发相关的操作以外的操作。该装置41可以通过硬件、软件或者软硬件结合的方式来实现。Referring to FIG. 24 , FIG. 24 is a schematic functional structure diagram of an apparatus provided by an embodiment of the present application. The apparatus 41 includes a processing unit 411 and a transceiver unit 412 . The transceiving unit 412 is configured to perform the transceiving-related operations involved in the above method embodiments of the present application, and the processing unit 411 is configured to perform operations other than the transceiving-related operations involved in the above-mentioned method embodiments of the present application. The device 41 can be implemented by hardware, software or a combination of software and hardware.
一具体实施中,处理单元411用于获取第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息,第一OAM消息包括类型T字段和值V字段,T字段指示第一OAM消息的类型,V字段承载第一OAM消息的内容;收发单元412用于发送第一IPv6报文。In a specific implementation, the processing unit 411 is configured to obtain the first IPv6 packet, the IPv6 extension header of the first IPv6 packet carries the first OAM message, the first OAM message includes a type T field and a value V field, and the T field indicates the first OAM message. The type of the OAM message, and the V field carries the content of the first OAM message; the transceiver unit 412 is configured to send the first IPv6 message.
另一具体实施中,收发单元412用于接收第二IPv6报文,第二IPv6报文携带第二OAM消息;处理单元411根据第二IPv6报文获取第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息,第一OAM消息是对第二OAM消息的响应;收发单元412还用于发送第一IPv6报文。In another specific implementation, the transceiver unit 412 is configured to receive the second IPv6 packet, and the second IPv6 packet carries the second OAM message; the processing unit 411 obtains the first IPv6 packet according to the second IPv6 packet, the first IPv6 packet. The IPv6 extension header of the IPv6 extension carries the first OAM message, and the first OAM message is a response to the second OAM message; the transceiver unit 412 is further configured to send the first IPv6 message.
装置41的各功能模块可用于实现图21实施例或图22实施例所描述的方法。在图21实施例中,处理单元411可用于执行S101,收发单元412可用于执行S102。在图22实施例中,处理单元411可用于执行S202,收发单元412可用于执行S201和S203。Each functional module of the apparatus 41 can be used to implement the method described in the embodiment of FIG. 21 or the embodiment of FIG. 22 . In the embodiment of FIG. 21 , the processing unit 411 can be used to execute S101, and the transceiver unit 412 can be used to execute S102. In the embodiment of FIG. 22, the processing unit 411 can be used to execute S202, and the transceiver unit 412 can be used to execute S201 and S203.
本申请实施例还提供了一种用于OAM检测的***,该***包括发送端和接收端。该通信***用于执行本申请上文各实施例所描述的方法。本申请所述的发送端和反射端可以是路由器,交换机等网络设备,也可以是应用于上述网络设备中能够执行相应的方法步骤的组件,例如单板,线卡,芯片等。The embodiment of the present application also provides a system for OAM detection, the system includes a sending end and a receiving end. The communication system is used to execute the methods described in the above embodiments of the present application. The sending end and the reflecting end described in this application may be network devices such as routers and switches, or may be components applied to the above network devices that can execute corresponding method steps, such as single boards, line cards, chips, and the like.
具体地,在该***中,发送端用于发送第一IPv6报文,第一IPv6报文的IPv6扩展头携带第一OAM消息,第一OAM消息包括类型T字段和值V字段,T字段指示第一OAM消息的类型,V字段承载第一OAM消息的内容;接收端用于接收第一IPv6报文,根据第一IPv6报文获得第二IPv6报文,向发送端发送第二IPv6报文,第二IPv6报文中包括第二OAM消息,第二OAM消息是第一OAM消息的响应。Specifically, in this system, the sending end is used to send the first IPv6 packet, the IPv6 extension header of the first IPv6 packet carries the first OAM message, the first OAM message includes a type T field and a value V field, and the T field indicates Type of the first OAM message, the V field carries the content of the first OAM message; the receiving end is used to receive the first IPv6 message, obtain the second IPv6 message according to the first IPv6 message, and send the second IPv6 message to the sending end , the second IPv6 packet includes a second OAM message, and the second OAM message is a response to the first OAM message.
示例性地,第一IPv6报文为上述实施例中的IPv6报文1时,第一OAM消息为上述中的OAM消息1,则第二IPv6报文为上述实施例中的IPv6报文2,第二OAM消息为上述中的OAM消息2。Exemplarily, when the first IPv6 packet is the IPv6 packet 1 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 1, then the second IPv6 packet is the IPv6 packet 2 in the above-mentioned embodiment, The second OAM message is the OAM message 2 in the above.
示例性地,第一IPv6报文为上述实施例中的IPv6报文3时,第一OAM消息为上述中的OAM消息3,则第二IPv6报文为上述实施例中的IPv6报文4,第二OAM消息为上述中的OAM消息4。Exemplarily, when the first IPv6 packet is the IPv6 packet 3 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 3, and the second IPv6 packet is the IPv6 packet 4 in the above-mentioned embodiment, The second OAM message is the OAM message 4 in the above.
示例性地,第一IPv6报文为上述实施例中的IPv6报文5时,第一OAM消息为上述中的OAM消息5,则第二IPv6报文为上述实施例中的IPv6报文6,第二OAM消息为上述中的OAM消息6。Exemplarily, when the first IPv6 packet is the IPv6 packet 5 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 5, then the second IPv6 packet is the IPv6 packet 6 in the above-mentioned embodiment, The second OAM message is the OAM message 6 in the above.
示例性地,第一IPv6报文为上述实施例中的IPv6报文7时,第一OAM消息为上述中的OAM消息7,则第二IPv6报文为上述实施例中的IPv6报文8,第二OAM消息为上述中的OAM消息8。Exemplarily, when the first IPv6 packet is the IPv6 packet 7 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 7, then the second IPv6 packet is the IPv6 packet 8 in the above-mentioned embodiment, The second OAM message is the OAM message 8 in the above.
示例性地,第一IPv6报文为上述实施例中的IPv6报文9时,第一OAM消息为上述中的OAM消息9,则第二IPv6报文为上述实施例中的IPv6报文10,第二OAM消息为上述中的OAM消息10。Exemplarily, when the first IPv6 packet is the IPv6 packet 9 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 9, then the second IPv6 packet is the IPv6 packet 10 in the above-mentioned embodiment, The second OAM message is the OAM message 10 mentioned above.
示例性地,第一IPv6报文为上述实施例中的IPv6报文11时,第一OAM消息为上述中的OAM消息11,则第二IPv6报文为上述实施例中的IPv6报文12,第二OAM消息为上述中的OAM消息12。Exemplarily, when the first IPv6 packet is the IPv6 packet 11 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 11, and the second IPv6 packet is the IPv6 packet 12 in the above-mentioned embodiment, The second OAM message is the OAM message 12 in the above.
示例性地,第一IPv6报文为上述实施例中的IPv6报文13时,第一OAM消息为上述中的OAM消息13,则第二IPv6报文为上述实施例中的IPv6报文14,第二OAM消息为上述中的OAM消息14。Exemplarily, when the first IPv6 packet is the IPv6 packet 13 in the above-mentioned embodiment, the first OAM message is the above-mentioned OAM message 13, and the second IPv6 packet is the IPv6 packet 14 in the above-mentioned embodiment, The second OAM message is the OAM message 14 mentioned above.
一具体实施中,发送端可以是上述图21中的第一装置,接收端可以是上述图22中的第二装置,在此情况下,发送端发送的第一IPv6报文即为图21方法实施例中的第一IPv6报文,具体可参考图21中第一IPv6报文的相关描述,接收端发送的第二IPv6报文即为图22方法实施例中的第一IPv6报文,具体可参考图22中第一IPv6报文的相关描述,在此不再赘述。In a specific implementation, the sending end may be the first device shown in FIG. 21, and the receiving end may be the second device shown in FIG. 22. In this case, the first IPv6 packet sent by the sending end is the method shown in FIG. 21. For the first IPv6 message in the embodiment, reference may be made to the relevant description of the first IPv6 message in FIG. 21. The second IPv6 message sent by the receiving end is the first IPv6 message in the method embodiment of FIG. 22. Specifically, Reference may be made to the relevant description of the first IPv6 packet in FIG. 22 , which will not be repeated here.
一具体实施中,IPv6扩展头为目的地选项头DoH。此实施例具体可参考图16、图18或图20的相关叙述。In a specific implementation, the IPv6 extension header is the destination option header DoH. For details of this embodiment, reference may be made to the relevant description of FIG. 16 , FIG. 18 or FIG. 20 .
一具体实施中,IPv6扩展头为分段路由报头SRH。此实施例具体可参考图17或图19的相关叙述。In a specific implementation, the IPv6 extension header is a segment routing header SRH. For details of this embodiment, reference may be made to the related description of FIG. 17 or FIG. 19 .
一具体实施中,IPv6扩展头包括关联通道ACH,第一OAM消息承载于ACH中。具体地,关联通道ACH包括选项类型字段和通道类型字段,其中,选项类型字段指示关联通道,通道类型字段指示ACH所承载的通道类型为OAM通道,该OAM通道用于承载第一OAM消息。此实施例具体可参考图18或图19的相关叙述。In a specific implementation, the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH. Specifically, the associated channel ACH includes an option type field and a channel type field, wherein the option type field indicates the associated channel, and the channel type field indicates that the channel type carried by the ACH is an OAM channel, and the OAM channel is used to carry the first OAM message. For details of this embodiment, reference may be made to the related description of FIG. 18 or FIG. 19 .
一具体实施中,IPv6扩展头包括比特索引显示复制BIER头。此实施例具体可参考图20的相关叙述。In a specific implementation, the IPv6 extension header includes a bit index indicating duplicate BIER header. For details of this embodiment, reference may be made to the related description in FIG. 20 .
一具体实施中,第一IPv6报文还包括第一OAM消息的统一会话标识,该统一会话标识用于第一OAM消息的发送端匹配第一OAM消息与发送端接收的来自对端的OAM消息。例如,若第一OAM消息为上述中的OAM消息3,则来自对端的OAM消息可以为上述中的OAM消息4。例如,统一会话标识可以是图16-图19中的Path Segment字段,也可以由图20中的BIFD-id、BFIR-id和Entropy字段组成,本申请实施例不做具体限定。In a specific implementation, the first IPv6 packet further includes a unified session identifier of the first OAM message, where the unified session identifier is used for the sender of the first OAM message to match the first OAM message with the OAM message received by the sender from the opposite end. For example, if the first OAM message is the OAM message 3 in the above, the OAM message from the opposite end may be the OAM message 4 in the above. For example, the unified session identifier may be the Path Segment field in FIG. 16-FIG. 19, or may be composed of the BIFD-id, BFIR-id, and Entropy fields in FIG. 20, which is not specifically limited in this embodiment of the present application.
在本文上述的实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详细描述的部分,可以参见其他实施例的相关描述。In the above-mentioned embodiments herein, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference may be made to related descriptions of other embodiments.
需要说明的是,本领域普通技术人员可以看到上述实施例的各种方法中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,该程序可以存储于一计算机可读存储介质中,存储介质包括只读存储器(Read-Only Memory,ROM)、随机存储器(Random Access Memory,RAM)、可编程只读存储器(Programmable Read-only Memory,PROM)、可擦除可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、一次可编程只读存储器(One-time Programmable Read-Only Memory,OTPROM)、电子抹除式可复写只读存储(Electrically-Erasable Programmable Read-Only Memory,EEPROM)、只读光盘(Compact Disc Read-Only Memory,CD-ROM)或其他光盘存储器、磁盘存储器、磁带存储器、或者能够用于携带或存储数据的计算机可读的任何其他介质。It should be noted that those of ordinary skill in the art can see that all or part of the steps in the various methods of the above embodiments can be completed by instructing relevant hardware through a program, and the program can be stored in a computer-readable storage medium , the storage medium includes read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), programmable read-only memory (Programmable Read-only Memory, PROM), erasable programmable read-only memory ( Erasable Programmable Read Only Memory, EPROM), One-time Programmable Read-Only Memory (OTPROM), Electronically-Erasable Programmable Read-Only Memory (EEPROM), Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, magnetic disk storage, tape storage, or any other computer-readable medium that can be used to carry or store data.
本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机程序产品存储在一个存储介质中,包括若干指令用以使得一个设备(可以是个人计算机,服务器,或者网络设备、机器人、单片机、芯片、机器人等)执行本申请各个实施例所述方法的全部或部分步骤。The technical solution of the present application can be embodied in the form of a software product in essence, or the part that contributes to the prior art, or the whole or part of the technical solution. The computer program product is stored in a storage medium, including a number of instructions for So that a device (which may be a personal computer, a server, or a network device, a robot, a single-chip microcomputer, a chip, a robot, etc.) executes all or part of the steps of the methods described in the various embodiments of the present application.

Claims (50)

  1. 一种操作维护管理OAM检测方法,其特征在于,所述方法包括:An operation maintenance management OAM detection method, characterized in that the method comprises:
    获取第一IPv6报文,所述第一IPv6报文的IPv6扩展头携带第一OAM消息,所述第一OAM消息包括类型T字段和值V字段,所述T字段指示所述第一OAM消息的类型,所述V字段承载所述第一OAM消息的内容;Obtain a first IPv6 packet, the IPv6 extension header of the first IPv6 packet carries a first OAM message, the first OAM message includes a type T field and a value V field, and the T field indicates the first OAM message type, the V field carries the content of the first OAM message;
    发送所述第一IPv6报文。Send the first IPv6 packet.
  2. 根据权利要求1所述的方法,其特征在于,所述第一OAM消息不包括协议版本信息。The method of claim 1, wherein the first OAM message does not include protocol version information.
  3. 根据权利要求1或2所述的方法,其特征在于,所述T字段指示所述第一OAM消息为回显echo消息。The method according to claim 1 or 2, wherein the T field indicates that the first OAM message is an echo message.
  4. 根据权利要求3所述的方法,其特征在于,所述V字段包括标识字段,所述标识字段用于指示所述echo消息的类型。The method according to claim 3, wherein the V field includes an identification field, and the identification field is used to indicate the type of the echo message.
  5. 根据权利要求3或4所述的方法,其特征在于,在所述获取第一IPv6报文之前,所述方法还包括:The method according to claim 3 or 4, wherein before the acquiring the first IPv6 packet, the method further comprises:
    接收第二IPv6报文,所述第二IPv6报文中包括第二OAM消息,所述第一OAM消息为所述第二OAM消息的响应;receiving a second IPv6 message, where the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message;
    根据所述第二IPv6报文,获取所述第一IPv6报文。Obtain the first IPv6 packet according to the second IPv6 packet.
  6. 根据权利要求3-5任一项所述的方法,其特征在于,所述V字段还包括以下一个或多个字段:The method according to any one of claims 3-5, wherein the V field further includes one or more of the following fields:
    序列号字段,用于承载所述echo消息的序列号;serial number field, used to carry the serial number of the echo message;
    返回代码return codes字段,其中,所述return codes字段用于承载反射端对发送端发送的所述echo消息的响应结果;Return code return codes field, wherein, the return codes field is used to carry the response result of the echo message sent by the reflecting end to the sending end;
    第一回复模式字段,所述第一回复模式字段用于指示应答发送端发送的echo消息的方式;The first reply mode field, the first reply mode field is used to indicate the mode of responding to the echo message sent by the sender;
    类型-长度-值TLV字段;以及Type-Length-Value TLV fields; and
    预留字段,用于功能扩展。Reserved fields for function expansion.
  7. 根据权利要求3-6任一项所述的方法,其特征在于,所述第一OAM消息不包括:协议版本信息和时间戳信息。The method according to any one of claims 3-6, wherein the first OAM message does not include: protocol version information and timestamp information.
  8. 根据权利要求1或2所述的方法,其特征在于,所述T字段指示所述第一OAM消息为主动连通性检测消息。The method according to claim 1 or 2, wherein the T field indicates that the first OAM message is an active connectivity detection message.
  9. 根据权利要求8所述的方法,其特征在于,所述V字段包括:The method of claim 8, wherein the V field comprises:
    第一字段,用于指示发送端和接收端之间建立的主动连通性检测会话的状态;The first field is used to indicate the status of the active connectivity detection session established between the sender and the receiver;
    第二字段,用于指示所述发送端发送主动连通性检测消息的最小发送间隔;The second field is used to indicate the minimum sending interval for the sending end to send the active connectivity detection message;
    第三字段,用于指示所述发送端接收所述接收端发送的主动连通性检测消息的最小接收间隔;The third field is used to indicate the minimum receiving interval for the sending end to receive the active connectivity detection message sent by the receiving end;
    第四字段,用于指示所述发送端接收所述接收端发送的响应消息的最小接收间隔;The fourth field is used to indicate the minimum receiving interval for the sending end to receive the response message sent by the receiving end;
    第五字段,指示最近一次会话的状态改变的原因;The fifth field indicates the reason for the state change of the last session;
    第六字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;The sixth field is used to provide the detection time multiplier, the detection time multiplier is used to calculate the detection time in the asynchronous mode;
    第七字段,所述第七字段包括查询请求标志Demand、轮询标志Poll和终止标志Final。The seventh field includes a query request flag Demand, a polling flag Poll and a termination flag Final.
  10. 根据权利要求8或9所述的方法,其特征在于,所述第一OAM消息不包括:协议版本信息、本地标识符和远端标识符。The method according to claim 8 or 9, wherein the first OAM message does not include: protocol version information, local identifier and remote identifier.
  11. 根据权利要求1或2所述的方法,其特征在于,所述T字段指示所述第一OAM消息为性能检测消息。The method according to claim 1 or 2, wherein the T field indicates that the first OAM message is a performance detection message.
  12. 根据权利要求11所述的方法,其特征在于,所述V字段包括:The method of claim 11, wherein the V field comprises:
    第八字段,用于承载发送端发送的第一性能检测消息的序列号;The eighth field is used to carry the sequence number of the first performance detection message sent by the sender;
    第九字段:用于承载反射端发送的第二性能检测消息的序列号,所述第二性能检测消息是对所述第一性能检测消息的响应;ninth field: used to carry the sequence number of the second performance detection message sent by the reflection end, where the second performance detection message is a response to the first performance detection message;
    第十字段,用于承载所述发送端发送所述第一性能检测消息的发送时间戳;The tenth field is used to carry the sending timestamp of the first performance detection message sent by the sending end;
    第十一字段,用于承载所述反射端接收所述第一性能检测消息的接收时间戳;The eleventh field is used to carry the reception timestamp of the first performance detection message received by the reflector;
    第十二字段,用于承载所述反射端发送所述第二性能检测消息的发送时间戳;The twelfth field is used to carry the sending timestamp of the second performance detection message sent by the reflector;
    第十三字段,用于承载所述发送端接收所述第二性能检测消息的接收时间戳。The thirteenth field is used to carry the reception timestamp when the sender receives the second performance detection message.
  13. 根据权利要求1或2所述的方法,其特征在于,所述T字段指示所述第一OAM消息为第一复合OAM消息,所述第一复合OAM消息用于实现至少两种OAM功能。The method according to claim 1 or 2, wherein the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  14. 根据权利要求13所述的方法,其特征在于,所述V字段包括第一标识和第二标识,所述第一标识用于指示所述第一复合OAM消息用于第一OAM检测,所述第二标识用于指示所述第一复合OAM消息用于第二OAM检测。The method according to claim 13, wherein the V field includes a first identifier and a second identifier, the first identifier is used to indicate that the first composite OAM message is used for first OAM detection, the The second identifier is used to indicate that the first composite OAM message is used for the second OAM detection.
  15. 根据权利要求1-14任一项所述的方法,其特征在于,所述IPv6扩展头为目的地选项头DoH或分段路由报头SRH或比特索引显示复制BIER头。The method according to any one of claims 1-14, wherein the IPv6 extension header is a destination option header DoH or a segment routing header SRH or a bit index display duplicate BIER header.
  16. 根据权利要求1-14任一项所述的方法,其特征在于,所述IPv6扩展头包括关联通道ACH,所述第一OAM消息承载于所述ACH中。The method according to any one of claims 1-14, wherein the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  17. 根据权利要求16所述的方法,其特征在于,所述关联通道ACH包括选项类型字段和通道类型字段,所述选项类型字段指示所述关联通道,所述通道类型字段指示所述ACH所承载的通道类型为OAM通道,该OAM通道用于承载所述第一OAM消息。The method of claim 16, wherein the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates the ACH carried by the ACH The channel type is an OAM channel, and the OAM channel is used to carry the first OAM message.
  18. 根据权利要求1-17任一项所述的方法,其特征在于,所述第一IPv6报文还包括统一会话标识,所述统一会话标识用于所述第一OAM消息的发送端匹配所述第一OAM消息与所述发送端接收的来自对端的OAM消息。The method according to any one of claims 1-17, wherein the first IPv6 message further includes a unified session identifier, and the unified session identifier is used for a sender of the first OAM message to match the The first OAM message and the OAM message received by the sender from the opposite end.
  19. 一种用于操作维护管理OAM检测的装置,其特征在于,所述装置包括:A device for operation and maintenance management OAM detection, characterized in that the device comprises:
    处理单元,用于获取第一IPv6报文,所述第一IPv6报文的IPv6扩展头携带第一OAM消息,所述第一OAM消息包括类型T字段和值V字段,所述V字段用于承载所述第一OAM消息的内容,所述T字段用于指示所述第一OAM消息的类型;a processing unit, configured to obtain a first IPv6 packet, where the IPv6 extension header of the first IPv6 packet carries a first OAM message, the first OAM message includes a type T field and a value V field, and the V field is used for Bearing the content of the first OAM message, the T field is used to indicate the type of the first OAM message;
    收发单元,用于发送所述第一IPv6报文。A transceiver unit, configured to send the first IPv6 packet.
  20. 根据权利要求19所述的装置,其特征在于,所述第一OAM消息不包括协议版本信息。The apparatus of claim 19, wherein the first OAM message does not include protocol version information.
  21. 根据权利要求19或20所述的装置,其特征在于,所述T字段指示所述第一OAM消息为回显echo消息。The apparatus according to claim 19 or 20, wherein the T field indicates that the first OAM message is an echo message.
  22. 根据权利要求21所述的装置,其特征在于,所述V字段包括标识字段,所述标识字段用于指示所述echo消息的类型。The apparatus according to claim 21, wherein the V field includes an identification field, and the identification field is used to indicate the type of the echo message.
  23. 根据权利要求21或22所述的装置,其特征在于,所述收发单元还用于:The device according to claim 21 or 22, wherein the transceiver unit is further configured to:
    接收第二IPv6报文,所述第二IPv6报文中包括第二OAM消息,所述第一OAM消息为所述第二OAM消息的响应;receiving a second IPv6 message, where the second IPv6 message includes a second OAM message, and the first OAM message is a response to the second OAM message;
    所述处理单元具体用于根据所述第二IPv6报文,获取所述第一IPv6报文。The processing unit is specifically configured to acquire the first IPv6 packet according to the second IPv6 packet.
  24. 根据权利要求21-23任一项所述的装置,其特征在于,所述V字段还包括以下一个或多个字段:The apparatus according to any one of claims 21-23, wherein the V field further includes one or more of the following fields:
    序列号字段,用于承载所述echo消息的序列号;serial number field, used to carry the serial number of the echo message;
    返回代码return codes字段,其中,所述return codes字段用于承载反射端对发送端发送的所述echo消息的响应结果;Return code return codes field, wherein, the return codes field is used to carry the response result of the echo message sent by the reflecting end to the sending end;
    第一回复模式字段,所述第一回复模式字段用于指示应答发送端发送的echo消息的方式;The first reply mode field, the first reply mode field is used to indicate the mode of responding to the echo message sent by the sender;
    类型-长度-值TLV字段;以及Type-Length-Value TLV fields; and
    预留字段,用于功能扩展。Reserved fields for function expansion.
  25. 根据权利要求21-24任一项所述的装置,其特征在于,所述第一OAM消息不包括:协议版本信息和时间戳信息。The apparatus according to any one of claims 21-24, wherein the first OAM message does not include: protocol version information and timestamp information.
  26. 根据权利要求19或20所述的装置,其特征在于,所述T字段指示所述第一OAM消息为主动连通性检测消息。The apparatus according to claim 19 or 20, wherein the T field indicates that the first OAM message is an active connectivity detection message.
  27. 根据权利要求26所述的装置,其特征在于,所述V字段包括:The apparatus of claim 26, wherein the V field comprises:
    第一字段,用于指示发送端和接收端之间建立的主动连通性检测会话的状态;The first field is used to indicate the status of the active connectivity detection session established between the sender and the receiver;
    第二字段,用于指示所述发送端发送主动连通性检测消息的最小发送间隔;The second field is used to indicate the minimum sending interval for the sending end to send the active connectivity detection message;
    第三字段,用于指示所述发送端接收所述接收端发送的主动连通性检测消息的最小接收间隔;The third field is used to indicate the minimum receiving interval for the sending end to receive the active connectivity detection message sent by the receiving end;
    第四字段,用于指示所述发送端接收所述接收端发送的响应消息的最小接收间隔;The fourth field is used to indicate the minimum receiving interval for the sending end to receive the response message sent by the receiving end;
    第五字段,指示最近一次会话的状态改变的原因;The fifth field indicates the reason for the state change of the last session;
    第六字段,用于提供检测时间乘数,该检测时间乘数用于在异步模式下计算检测时间;The sixth field is used to provide the detection time multiplier, the detection time multiplier is used to calculate the detection time in the asynchronous mode;
    第七字段,所述第七字段包括查询请求标志Demand、轮询标志Poll和终止标志Final。The seventh field includes a query request flag Demand, a polling flag Poll and a termination flag Final.
  28. 根据权利要求26或27所述的装置,其特征在于,所述第一OAM消息不包括:协议版本信息、本地标识符和远端标识符。The apparatus according to claim 26 or 27, wherein the first OAM message does not include: protocol version information, a local identifier and a remote identifier.
  29. 根据权利要求19或20所述的装置,其特征在于,所述T字段指示所述第一OAM消息为性能检测消息。The apparatus according to claim 19 or 20, wherein the T field indicates that the first OAM message is a performance detection message.
  30. 根据权利要求29所述的装置,其特征在于,所述V字段包括:The apparatus of claim 29, wherein the V field comprises:
    第八字段,用于承载发送端发送的第一性能检测消息的序列号;The eighth field is used to carry the sequence number of the first performance detection message sent by the sender;
    第九字段:用于承载反射端发送的第二性能检测消息的序列号,所述第二性能检测消息是对所述第一性能检测消息的响应;ninth field: used to carry the sequence number of the second performance detection message sent by the reflection end, where the second performance detection message is a response to the first performance detection message;
    第十字段,用于承载所述发送端发送所述第一性能检测消息的发送时间戳;The tenth field is used to carry the sending timestamp of the first performance detection message sent by the sending end;
    第十一字段,用于承载所述反射端接收所述第一性能检测消息的接收时间戳;The eleventh field is used to carry the reception timestamp of the first performance detection message received by the reflector;
    第十二字段,用于承载所述反射端发送所述第二性能检测消息的发送时间戳;The twelfth field is used to carry the sending timestamp of the second performance detection message sent by the reflector;
    第十三字段,用于承载所述发送端接收所述第二性能检测消息的接收时间戳。The thirteenth field is used to carry the reception timestamp when the sender receives the second performance detection message.
  31. 根据权利要求19或20所述的装置,其特征在于,所述T字段指示所述第一OAM消息为第一复合OAM消息,所述第一复合OAM消息用于实现至少两种OAM功能。The apparatus according to claim 19 or 20, wherein the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  32. 根据权利要求31所述的装置,其特征在于,所述V字段包括第一标识和第二标识,所述第一标识用于指示所述第一复合OAM消息用于第一OAM检测,所述第二标识用于指示所述第一复合OAM消息用于第二OAM检测。The apparatus according to claim 31, wherein the V field includes a first identifier and a second identifier, the first identifier is used to indicate that the first composite OAM message is used for first OAM detection, the The second identifier is used to indicate that the first composite OAM message is used for the second OAM detection.
  33. 根据权利要求19-32任一项所述的装置,其特征在于,所述IPv6扩展头为目的地选项头DoH或分段路由报头SRH或比特索引显示复制BIER头。The apparatus according to any one of claims 19-32, wherein the IPv6 extension header is a destination option header DoH or a segment routing header SRH or a bit index display duplicate BIER header.
  34. 根据权利要求19-32任一项所述的装置,其特征在于,所述IPv6扩展头包括关联通道ACH,所述第一OAM消息承载于所述ACH中。The apparatus according to any one of claims 19-32, wherein the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  35. 根据权利要求34所述的装置,其特征在于,所述关联通道ACH包括选项类型字段和通道类型字段,所述选项类型字段指示所述关联通道,所述通道类型字段指示所述ACH所承 载的通道类型为OAM通道,该OAM通道用于承载所述第一OAM消息。The apparatus of claim 34, wherein the associated channel ACH includes an option type field and a channel type field, the option type field indicates the associated channel, and the channel type field indicates the The channel type is an OAM channel, and the OAM channel is used to carry the first OAM message.
  36. 根据权利要求19-35任一项所述的装置,其特征在于,所述第一IPv6报文还包括统一会话标识,所述统一会话标识用于所述第一OAM消息的发送端匹配所述第一OAM消息与所述发送端接收的来自对端的OAM消息。The apparatus according to any one of claims 19-35, wherein the first IPv6 message further includes a unified session identifier, and the unified session identifier is used for a sender of the first OAM message to match the The first OAM message and the OAM message received by the sender from the opposite end.
  37. 一种计算机可读存储介质,其特征在于,包括计算机指令,当所述计算机指令在被处理器运行时,实现如权利要求1-18任一项所述的方法。A computer-readable storage medium, characterized by comprising computer instructions, which when executed by a processor, implement the method according to any one of claims 1-18.
  38. 一种计算机程序产品,所述计算机程序产品包括计算机程序代码,在所述计算机程序代码被处理器执行时,所述处理器执行前述权利要求1-18中任一项所述的方法。A computer program product comprising computer program code which, when executed by a processor, performs the method of any of the preceding claims 1-18.
  39. 一种用于操作维护管理OAM检测的***,其特征在于,所述***包括:A system for operation and maintenance management OAM detection, characterized in that the system comprises:
    发送端,用于发送第一IPv6报文,所述第一IPv6报文的IPv6扩展头携带第一OAM消息,所述第一OAM消息包括类型T字段和值V字段,所述T字段指示所述第一OAM消息的类型,所述V字段承载所述第一OAM消息的内容;The sending end is configured to send a first IPv6 packet, where the IPv6 extension header of the first IPv6 packet carries a first OAM message, the first OAM message includes a type T field and a value V field, and the T field indicates the the type of the first OAM message, and the V field carries the content of the first OAM message;
    接收端,用于接收所述第一IPv6报文,根据所述第一IPv6报文获得第二IPv6报文,向所述发送端发送所述第二IPv6报文,所述第二IPv6报文包括第二OAM消息,所述第二OAM消息是所述第一OAM消息的响应。The receiving end is configured to receive the first IPv6 message, obtain a second IPv6 message according to the first IPv6 message, and send the second IPv6 message to the sending end, the second IPv6 message A second OAM message is included that is a response to the first OAM message.
  40. 根据权利要求39所述的***,其特征在于,所述第一OAM消息不包括协议版本信息。The system of claim 39, wherein the first OAM message does not include protocol version information.
  41. 根据权利要求40所述的***,其特征在于,所述T字段指示第一OAM消息为回显echo消息。The system of claim 40, wherein the T field indicates that the first OAM message is an echo message.
  42. 根据权利要求41所述的***,其特征在于,所述第一OAM消息不包括:协议版本信息和时间戳信息。The system according to claim 41, wherein the first OAM message does not include: protocol version information and timestamp information.
  43. 根据权利要求39或40所述的***,其特征在于,所述T字段指示所述第一OAM消息为主动连通性检测消息。The system according to claim 39 or 40, wherein the T field indicates that the first OAM message is an active connectivity detection message.
  44. 根据权利要求43所述的***,其特征在于,所述第一OAM消息不包括协议版本信息、本地标识符和远端标识符。The system of claim 43, wherein the first OAM message does not include protocol version information, a local identifier and a remote identifier.
  45. 根据权利要求39或40所述的***,其特征在于,所述T字段指示所述第一OAM消息为性能检测消息。The system according to claim 39 or 40, wherein the T field indicates that the first OAM message is a performance detection message.
  46. 根据权利要求39或40所述的***,其特征在于,所述T字段指示所述第一OAM消息为第一复合OAM消息,所述第一复合OAM消息用于实现至少两种OAM功能。The system according to claim 39 or 40, wherein the T field indicates that the first OAM message is a first composite OAM message, and the first composite OAM message is used to implement at least two OAM functions.
  47. 根据权利要求39-46任一项所述的***,其特征在于,所述IPv6扩展头为目的地选项头DoH或分段路由报头SRH或比特索引显示复制BIER头。The system according to any one of claims 39-46, wherein the IPv6 extension header is a destination option header DoH or a segment routing header SRH or a bit index display duplicate BIER header.
  48. 根据权利要求39-46任一项所述的***,其特征在于,所述IPv6扩展头包括关联通道ACH,所述第一OAM消息承载于所述ACH中。The system according to any one of claims 39-46, wherein the IPv6 extension header includes an associated channel ACH, and the first OAM message is carried in the ACH.
  49. 根据权利要求48所述的***,其特征在于,所述关联通道ACH包括选项类型字段和通道类型字段,所述选项类型字段指示所述关联通道,所述通道类型字段指示所述ACH所承载的通道类型为OAM通道,该OAM通道用于承载所述第一OAM消息。The system of claim 48, wherein the associated channel ACH includes an option type field and a channel type field, the option type field indicating the associated channel, and the channel type field indicating the ACH carried by the ACH The channel type is an OAM channel, and the OAM channel is used to carry the first OAM message.
  50. 根据权利要求39-49任一项所述的***,其特征在于,所述第一IPv6报文还包括统一会话标识,所述统一会话标识被所述发送端用于匹配所述第一OAM消息与所述第二OAM消息。The system according to any one of claims 39-49, wherein the first IPv6 message further includes a unified session identifier, and the unified session identifier is used by the sender to match the first OAM message with the second OAM message.
PCT/CN2021/143648 2021-04-21 2021-12-31 Method and apparatus for operation administration and maintenance (oam) detection WO2022222544A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN202110431348 2021-04-21
CN202110431348.6 2021-04-21
CN202110656611.1 2021-06-11
CN202110656611.1A CN115225732A (en) 2021-04-21 2021-06-11 Operation, maintenance and management (OAM) detection method and device

Publications (1)

Publication Number Publication Date
WO2022222544A1 true WO2022222544A1 (en) 2022-10-27

Family

ID=83606023

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/143648 WO2022222544A1 (en) 2021-04-21 2021-12-31 Method and apparatus for operation administration and maintenance (oam) detection

Country Status (2)

Country Link
CN (1) CN115225732A (en)
WO (1) WO2022222544A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050147050A1 (en) * 2002-04-29 2005-07-07 Joachim Klink Method for examining the connectivity of links in mpls networks
US20150029872A1 (en) * 2013-07-24 2015-01-29 Cisco Technology, Inc. Path-ping and ecmp-traceroute for ipv6 overlay virtualized networks
CN105577413A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 OAM (Operation, Administration and Management) message processing method and device
CN108781171A (en) * 2016-02-29 2018-11-09 思科技术公司 System and method for using data plane signal notice packet to capture in IPV6 environment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050147050A1 (en) * 2002-04-29 2005-07-07 Joachim Klink Method for examining the connectivity of links in mpls networks
US20150029872A1 (en) * 2013-07-24 2015-01-29 Cisco Technology, Inc. Path-ping and ecmp-traceroute for ipv6 overlay virtualized networks
CN105577413A (en) * 2014-10-17 2016-05-11 中兴通讯股份有限公司 OAM (Operation, Administration and Management) message processing method and device
CN108781171A (en) * 2016-02-29 2018-11-09 思科技术公司 System and method for using data plane signal notice packet to capture in IPV6 environment

Also Published As

Publication number Publication date
CN115225732A (en) 2022-10-21

Similar Documents

Publication Publication Date Title
JP5462954B2 (en) Packet loss detection method and apparatus, and router
US8885488B2 (en) Reachability detection in trill networks
WO2017000750A1 (en) Method, device and system for measuring quality of service operating in terminal
WO2016045098A1 (en) Switch, controller, system and link quality detection method
WO2018210213A1 (en) Method and device for implementing ioam packaging and storage medium
US20220407791A1 (en) Network performance detection method and apparatus, and network device
US11509561B2 (en) Performance measurement using extended bidirectional forwarding control packet
EP2509261B1 (en) Monitoring of a network element in a packet-switched network
WO2022062931A1 (en) Network anomaly determination method and apparatus
EP2681871B1 (en) In-service throughput testing in distributed router/switch architectures
US11139995B2 (en) Methods and router devices for verifying a multicast datapath
CN111371634B (en) Communication method, device and system
WO2016177120A1 (en) Measurement method and system for packet loss of link packet, target node and initiating-end node
US20150036510A1 (en) Method and device for measuring ethernet performance
CN103580894A (en) Method, device and system for operation, administration and maintenance (OAM) configuration
WO2019157802A1 (en) Method, device, and network system for measuring network performance
US20230318970A1 (en) Packet Processing Method and Apparatus
WO2022222544A1 (en) Method and apparatus for operation administration and maintenance (oam) detection
WO2014008809A1 (en) Frame loss detection method and system
EP2854339B1 (en) Transmission monitoring method and device
US11582156B2 (en) Traffic detection method, apparatus, and system
WO2022048466A1 (en) Operation administration and maintenance (oam) packet processing method and device
US8396955B2 (en) Systems and methods for discovery of network topology using service OAM
WO2023240438A1 (en) Packet processing
WO2023247048A1 (en) Network loopback packet test request and response

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21937765

Country of ref document: EP

Kind code of ref document: A1