WO2019165803A1 - Message processing method and apparatus, and message encapsulating method, apparatus and system - Google Patents

Message processing method and apparatus, and message encapsulating method, apparatus and system Download PDF

Info

Publication number
WO2019165803A1
WO2019165803A1 PCT/CN2018/116212 CN2018116212W WO2019165803A1 WO 2019165803 A1 WO2019165803 A1 WO 2019165803A1 CN 2018116212 W CN2018116212 W CN 2018116212W WO 2019165803 A1 WO2019165803 A1 WO 2019165803A1
Authority
WO
WIPO (PCT)
Prior art keywords
node
ioam
encapsulating
notification information
message
Prior art date
Application number
PCT/CN2018/116212
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 WO2019165803A1 publication Critical patent/WO2019165803A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4633Interconnection of networks using encapsulation techniques, e.g. tunneling
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0631Management of faults, events, alarms or notifications using root cause analysis; using analysis of correlation between notifications, alarms or events based on decision criteria, e.g. hierarchy, tree or time analysis
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/06Management of faults, events, alarms or notifications
    • H04L41/0654Management of faults, events, alarms or notifications using network fault recovery

Definitions

  • the present disclosure relates to, but is not limited to, the field of communications, and in particular, to a packet processing method, apparatus, and packet encapsulation method, apparatus, and system.
  • IAM In-band Operations, Administration, and Maintenance
  • IETF Internet Engineering Task Force
  • IOAM is characterized in that IOAM data content is encapsulated into service data packets as a service datagram. A part of the text is transmitted in the network, and the out-of-band OAM data content is encapsulated into a specially constructed OAM data message and transmitted as a separate protocol message in the network.
  • the IOAM can implement functions that cannot be implemented by the out-of-band OAM, such as detecting the network node through which the service data packet actually passes, verifying that the transmission path of the service data packet is consistent with the expected, and giving the service datagram.
  • the serial number information is added to detect packet loss and out-of-order. Accordingly, in order to implement the above functions, the network administrator can configure the transit node, and the transport node needs to be the IOAM data content on the packet transmission path except the encapsulation node. The node to be processed.
  • the IOAM encapsulation operation is to insert the IOAM header into the service data packet.
  • the encapsulation node is the node that performs the IOAM encapsulation operation.
  • the encapsulation node can be a network node such as a switch or a router, or a terminal node such as a personal computer or a server.
  • 1 is a format diagram of a related art IOAM header. As shown in FIG. 1, an IOAM header is used in addition to a location for indicating IOAM data content (ie, an IOAM header indication in FIG. 1) and a length (ie, in FIG. 1).
  • the IOAM header length also carries a set of IOAM function option types/lengths/values (TLVs) as IOAM data content, where each IOAM function option TLV corresponds to an IOAM function and carries The data needed to complete the IOAM function. Since the encapsulation node needs to complete the insertion of the IOAM header, it can determine which IOAM function option TLVs and the length of each IOAM function option TLV are included in the IOAM data content, which can be determined by the network administrator according to the configuration on each transmission node.
  • TLVs IOAM function option types/lengths/values
  • the acknowledgment and delivery to the encapsulating node may also be obtained by the encapsulating node from each of the transmitting nodes by sending an outband OAM message, or may also be obtained by the encapsulating node by sending an IOAM configuration request message from the centralized configuration point.
  • the encapsulating node after determining the content of the IOAM data, the encapsulating node encapsulates the service data packet into an IOAM packet and transmits it in the network according to the IOAM data content.
  • the transmission path of the IOAM packet changes, that is, the transmission node on the IOAM packet transmission path changes, and the IOAM data content determined by the encapsulation node is no longer applicable.
  • how the encapsulation node encapsulates the IOAM message does not provide a more effective solution.
  • the embodiments of the present disclosure provide a packet processing method, a device, and a packet encapsulation method, apparatus, and system, so as to avoid, at least in some cases, a transmission path of an in-band operation management and maintenance IOAM packet occurs due to a fault or the like. When the change occurs, the resulting IOAM packet encapsulation is no longer applicable.
  • the embodiment of the present disclosure provides a method for processing a packet, including: receiving, by the transmitting node, an in-band operation management and maintenance IOAM message, and saving an address of the encapsulating node in the IOAM packet; and detecting, by the transit node, the current network
  • the failure notification information is sent to the encapsulation node, wherein the failure notification information is generated by the transmission node according to an address saved in the transmission node, to indicate that the encapsulation node stops encapsulating the
  • the information of the IOAM message is sent to the encapsulating node after the protection node completes the protection switching or the route re-convergence; wherein the recovery notification information is saved by the transmission node according to the transmission node.
  • the information generated by the address is used to instruct the encapsulating node to recover the encapsulated new IOAM message.
  • the embodiment of the present disclosure further provides a packet encapsulation method, including: the encapsulating node adds the address information of the encapsulation node in an in-band operation management and maintenance IOAM message, and sends the IOAM message to the transmission node; The encapsulating node receives the failure notification information sent by the transmission node, and stops encapsulating the IOAM message according to the failure notification information; the encapsulating node receives the recovery notification information sent by the transmission node, and recovers according to the recovery notification information. Encapsulating a new IOAM message; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  • the embodiment of the present disclosure further provides a packet processing apparatus, including: a receiving module, configured to receive an in-band operation management and maintenance IOAM message, and save an address of the encapsulated node in the IOAM message; And configured to send, to the encapsulating node, fault notification information, where the fault notification information is generated by the transmitting node according to an address saved in the transmitting node, to indicate the The encapsulating node stops encapsulating the information of the IOAM packet; the second sending module is configured to send the recovery notification information to the encapsulating node after completing the protection switching or the route re-convergence; wherein the recovery notification information is the transmission The information generated by the node according to the address saved in the transit node is used to instruct the encapsulating node to recover the encapsulated new IOAM message.
  • the embodiment of the present disclosure further provides a packet encapsulating apparatus, including: a sending module, configured to add address information of the encapsulating node in an in-band operation management and maintenance IOAM message, and send the IOAM report to a transmitting node.
  • the first receiving module is configured to receive the fault notification information sent by the transmitting node, and stop encapsulating the IOAM packet according to the fault notification information; and the second receiving module is configured to receive the recovery sent by the transmitting node by the encapsulating node. And notifying the information, and recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  • the embodiment of the present disclosure further provides a packet encapsulation system, including a transmission node and an encapsulation node, where the transmission node is configured to receive an in-band operation management and maintenance IOAM message sent by the encapsulation node and save the Decoding an address of the node in the IOAM packet, and sending a failure notification message to the encapsulating node after detecting that the current network is faulty, and sending the recovery to the encapsulating node after completing the protection switching or the route re-convergence a notification information
  • the encapsulating node is configured to add the address information of the encapsulating node to the IOAM packet, and send the IOAM packet to the transmitting node; and receive the fault notification information sent by the transmitting node And stopping to encapsulate the IOAM message according to the fault notification information, and receiving the recovery notification information sent by the transmission node, and recovering the encapsulated new IOAM message according to the recovery notification information.
  • the embodiment of the present disclosure further provides a storage medium including a stored program, wherein the program runs the method of processing the message according to any one of the above items.
  • the embodiment of the present disclosure further provides another storage medium, where the storage medium includes a stored program, wherein the program is executed to perform a method of encapsulating the message according to any one of the above items.
  • Embodiments of the present disclosure also provide a processor configured to execute a program, wherein the program is operative to perform a method of processing the message of any of the above.
  • the embodiment of the present disclosure further provides a processor, the processor being configured to run a program, wherein the program is executed to perform a method of encapsulating the message according to any one of the above items.
  • Figure 1 is a format diagram of an IOAM header in an existing IETF standard
  • FIG. 2 is a block diagram showing a hardware structure of a terminal for processing a message according to an embodiment of the present disclosure
  • FIG. 3 is a flowchart of a method for processing a message according to an embodiment of the present disclosure
  • FIG. 4 is a flowchart of a method for encapsulating a message according to an embodiment of the present disclosure
  • FIG. 5 is a structural block diagram of a method for encapsulating an IOAM message in an Internet Protocol (IP) network according to an embodiment of the present disclosure
  • FIG. 6 is a format diagram of an ICMP message according to an embodiment of the present disclosure.
  • FIG. 7 is a structural block diagram of a method for encapsulating an IOAM message in a Multi-Protocol Label Switching (MPLS) network according to an embodiment of the present disclosure
  • FIG. 8 is a format diagram of an LSP Ping message according to an embodiment of the present disclosure.
  • FIG. 9 is a structural block diagram of a method for encapsulating an IOAM message based on an Ethernet network according to an embodiment of the present disclosure.
  • FIG. 10 is a format diagram of an Ethernet OAM message according to an embodiment of the present disclosure.
  • FIG. 11 is a structural block diagram of a processing apparatus for a message according to an embodiment of the present disclosure.
  • FIG. 12 is a structural block diagram of a packet encapsulating apparatus according to an embodiment of the present disclosure.
  • FIG. 13 is a structural block diagram of a package encapsulation system according to an embodiment of the present disclosure.
  • FIG. 2 is a hardware structural block diagram of a terminal for processing a message according to an embodiment of the present disclosure.
  • terminal 10 may include one or more (only one shown) processor 202 (processor 202 may include, but is not limited to, a Micro Controller Unit (Micro Controller Unit) or may A processing device such as a Field Programmable Gate Array (FPGA), a memory 204 provided to store data, and a transfer device 206 configured to implement a communication function.
  • processor 202 may include, but is not limited to, a Micro Controller Unit (Micro Controller Unit) or may A processing device such as a Field Programmable Gate Array (FPGA), a memory 204 provided to store data, and a transfer device 206 configured to implement a communication function.
  • FPGA Field Programmable Gate Array
  • FIG. 2 is merely illustrative and does not limit the structure of the above electronic device.
  • terminal 20 may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
  • the memory 204 may be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the processing method of the message in the embodiment of the present disclosure, and the processor 202 may be configured to run the software program stored in the memory 204 and The module, thus performing various functional applications and data processing, implements the above method.
  • Memory 204 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory.
  • memory 204 may also include memory remotely located relative to processor 202, which may be connected to terminal 20 over a network. Examples of such networks may include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
  • Transmission device 206 can be arranged to receive or transmit data via a network.
  • the network optional examples described above may include a wireless network provided by a communication provider of terminal 20.
  • the transmission device 206 can include a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet.
  • the transmission device 206 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
  • NIC Network Interface Controller
  • RF Radio Frequency
  • the encapsulation method of the message described in the following embodiments is also applicable to the hardware structure block diagram of the terminal shown in FIG. 2, and the optional implementation method is similar to the above description, and is not Do more than enough.
  • FIG. 3 is a flowchart of a method for processing a packet according to an embodiment of the present disclosure. As shown in FIG. 3, the process may be Including the following steps:
  • Step S302 the transmitting node receives the in-band operation management and maintenance IOAM message, and saves the address of the encapsulating node in the IOAM message;
  • the transmitting node can receive the IOAM message in a learning manner.
  • the IOAM packet formed by the encapsulating node after adding the IOAM header to the service data packet may arrive at each node in the packet transmission path, and when the node that receives the IOAM packet is the transit node, the transit node You can learn and save the encapsulation node address carried in the IOAM header.
  • the transmitting node may further include: determining, by the transmitting node, whether a new one that includes the saving is received within a preset aging time The IOAM message of the address; if the judgment result is no, the transmission node may delete the saved address.
  • an aging mechanism is also introduced in the transmission node. That is, the transit node can periodically detect the address saved by the IOAM packet. When it is detected that a new message can be received among the addresses saved by the transmission node during the aging time, the transmission node may not delete the saved address. When it is detected that a new packet cannot be received in the address saved by the transmission node during the aging time, in order to save the resource space of the transmission node, the transmission node may delete the saved address. After the new IOAM packet is received, the address of the encapsulated node in the new IOAM packet is saved.
  • Step S304 in the case that the transmitting node detects that the current network is faulty, sending fault notification information to the encapsulating node, where the fault notification information is generated by the transmitting node according to an address saved in the transit node.
  • the IOAM data content is associated with the transmission path of the IOAM message, once the transmission path of the IOAM message fails, the content of the IOAM data contained in the IOAM header inserted by the encapsulating node into the service data message is no longer applicable.
  • the encapsulation node can immediately stop the IOAM encapsulation operation.
  • the fault notification information is set in a type and a code value that are not specified in the specified packet, and the specified packet includes at least one of the following: an Internet Control Message Protocol (ICMP) Packets, Label Switching Path Ping (LSP Ping) packets, and Ethernet OAM packets.
  • ICMP Internet Control Message Protocol
  • LSP Ping Label Switching Path Ping
  • Ethernet OAM Ethernet OAM
  • the fault notification information carries a set of destination addresses, where the destination address is used to indicate that the transmission path of the service data packet destined for the destination address is faulty.
  • the node capable of performing the operation described in step S304 is a node whose transmission path has failed. For example, there are five transmission nodes A to E in the current network, and only A and D detect the failure of transmitting the transmission path between the transmission nodes A and D, then only A or D is possible to perform the operation in step S304. Operation, while other transmission nodes that do not detect the failure can also learn and message IOAM messages. However, the failure notification information will not be sent.
  • the fault notification information may be transmitted in the form of an Internet Control Message Protocol (ICMP) message.
  • ICMP Internet Control Message Protocol
  • the label switching path can be used to echo the LSP ping packet as the path fault notification information.
  • fixed message type 3 represents a path failure notification.
  • Ethernet OAM packets can be managed and maintained in the Ethernet Ethernet network as path fault notification information.
  • it can be set in the type and code value that are not specified in the Ethernet OAM message.
  • the operation code 56 represents a path failure notification.
  • the failure notification information may also carry a set of destination addresses.
  • the destination address may be used to indicate that the transmission path of the service data packet destined for the destination address is faulty. Therefore, after receiving the foregoing field, the encapsulating node may stop the encapsulation of the IOAM packet of the path corresponding to the service flow packet of the field, and the encapsulation of the IOAM packet corresponding to the other service flow packet may not be encapsulated. Subject to any influence.
  • a failure of the transmission path is transmitted between the transmission nodes A and D
  • a set of destination addresses transmitted by the encapsulation node are the transmission node A and the D address. Therefore, after the encapsulated node receives the destination address, it can be known that the path between the transit nodes A and D has failed. Therefore, when the IOAM is encapsulated, the encapsulation of the path between the transfer nodes A and D can be stopped. Other transmission paths can be received without any impact. This not only avoids the possibility of mispacking, but also clearly reflects the link failure.
  • Step S306 after the protection node completes protection switching or route re-convergence, sends recovery notification information to the encapsulation node, where the recovery notification information is generated by the transmission node according to an address saved in the transmission node. The information is used to instruct the encapsulating node to recover a new IOAM message.
  • the node capable of performing the operation recited in step S306 may be a node whose transmission path has failed.
  • the node capable of performing the operation recited in step S306 may be a node whose transmission path has failed.
  • there are five transmission nodes A to E in the current network wherein only A and D detect a failure of transmitting a transmission path between the transmission nodes A and D, then only A or D is possible to perform step S306.
  • the operation in the middle on the basis of not considering the specific connection relationship, only A or D is possible to perform the operation in step S306, and other transmission nodes that have not failed can realize the learning of the IOAM message. Message, but may not send recovery notification information.
  • the fault notification information may be transmitted in the form of an Internet Control Message Protocol (ICMP) message.
  • ICMP Internet Control Message Protocol
  • the label switching path can be used to echo the LSP ping packet as the path recovery notification information.
  • it can be set in the type and code value that are not specified in the ICMP message.
  • fixed message type 4 represents a path recovery notification.
  • Ethernet OAM packets can be managed and maintained in the Ethernet Ethernet network as path fault notification information. It can also be set in the type and code value that is not specified in the Ethernet OAM message.
  • the operation code 60 indicates a path recovery notification.
  • the sending, to the encapsulating node, the resuming notification information further comprising: instructing the encapsulating node to acquire the IOAM data content in the new IOAM packet; and instructing the encapsulating node to perform, according to the IOAM data content, Encapsulating the new IOAM message.
  • the IOAM data content may include at least: IOAM data content associated with the new path.
  • the recovery notification information is set in a type and code value that is not specified in the specified message.
  • the IOAM packet encapsulation is no longer applicable due to the change of the transmission path of the in-band operation management and maintenance IOAM packet, so that the IOAM packet can be adjusted in time when the transmission path of the IOAM packet changes.
  • Encapsulation of the text enhances the efficiency of IOAM packet encapsulation and the scope of application.
  • the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware.
  • the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product in essence or in some cases, and the computer software product is stored in a storage medium (such as ROM/RAM, disk).
  • the optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present disclosure.
  • FIG. 4 is a flowchart of a method for encapsulating a packet according to an embodiment of the present disclosure. As shown in FIG. 4, the process may be Including the following steps:
  • Step S402 the encapsulating node adds the address information of the encapsulating node to the in-band operation management and maintenance IOAM message, and sends the IOAM message to the transmitting node.
  • the address information of the encapsulation node is added to the header in the IOAM packet described in this embodiment.
  • the address information includes two types of address type information of the encapsulation node and an encapsulation node address.
  • the former that is, the address type information is used to identify which type of address the encapsulating node uses, such as Media Access Control (MAC) address, IP version 4 (IPv4) address, and IP version 6 (IPv6). Address, or other addressable address.
  • the address type is determined, and the length of the address is also determined.
  • the latter that is, encapsulating the node address, is used by the transmitting node to use the address to send protocol information to the encapsulating node.
  • the address information of the encapsulation node includes at least one of the following: address type information of the encapsulation node and an address used to indicate that the transmission node sends information to the encapsulation node.
  • Step S404 the encapsulating node receives the failure notification information sent by the transmission node, and stops encapsulating the IOAM message according to the failure notification information.
  • the encapsulating node receives the fault notification information sent by the transit node, and carries a set of destination addresses, and stops encapsulating the IOAM packets destined for the set of destination addresses according to the fault notification information.
  • Step S406 the encapsulating node receives the recovery notification information sent by the transit node, and recovers the encapsulated new IOAM packet according to the recovery notification information.
  • the encapsulating node may first extract the IOAM data content corresponding to the restored transmission path from the packet sent by the transit node.
  • path information of the restored transmission path is included in the IOAM data content.
  • the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  • the encapsulating the new IOAM message according to the recovery notification information includes: the encapsulating node acquiring the IOAM data content in the new IOAM message; the encapsulating node is configured according to the IOAM data content
  • the new IOAM message is encapsulated.
  • the IOAM data content may include at least: IOAM data content associated with the new path.
  • FIG. 5 is a structural block diagram of a method for encapsulating an IOAM message based on an IP network according to an embodiment of the present disclosure.
  • the encapsulation node and the transit node may perform the following operations:
  • step 11 the encapsulation node 11 adds the IPv4 address of the encapsulation node 11 to the IOAM header when the IOAM encapsulation operation is performed.
  • the transit node 14 learns and saves the IPv4 address of the encapsulation node 11.
  • the encapsulation node 12 adds the IPv4 address of the encapsulation node 12 to the IOAM header.
  • the transit node 14 learns and saves the IPv4 address of the encapsulation node 12.
  • the transit node 14 ages the learned IPv4 address of the encapsulation node 11 and the IPv4 address of the encapsulation node 12 according to the default or configured aging time.
  • Step 12 After detecting the network failure between the node and the transmission node 15, the transmission node 14 sends the path failure notification information to the encapsulation node 11 and the encapsulation node 12 respectively. After the encapsulation node 11 and the encapsulation node 12 receive the path failure notification information, Stop the IOAM encapsulation operation separately.
  • FIG. 6 is a format diagram of an ICMP packet according to an embodiment of the present disclosure.
  • the ICMP packet includes an 8-bit type field and 8 The bit code field, which has been specified by the IETF standard, for example, type 8 code 0 indicates an ICMP Ping request, type 0 code 0 indicates an ICMP Ping response, and type 10 code 0 indicates a router request. , type 9 code 0 indicates router notification, and so on.
  • the ICMP message can be made as a path failure notification information.
  • the path failure notification information sent by the transmission node 14 may also carry service flow information in the option data field to indicate which service flows are affected by the network failure.
  • the option data field may include a group that needs to be forwarded to The IP prefix of the transport node 15.
  • the encapsulating node 11 and the encapsulating node 12 may stop only the IOAM encapsulation operation for these service flows, and other service flows (for example, the traffic flow to the transit node 21 through the transit node 14) ) can be unaffected.
  • Step 13 After the protection node 14 completes the protection switching or the route re-convergence, the transmission node 14 and the encapsulation node 12 respectively send path recovery notification information, and the encapsulation node 11 and the encapsulation node 12 respectively receive the path recovery notification information, respectively triggering the acquisition and the new
  • the path is associated with the IOAM data content and restores the IOAM encapsulation operation after acquiring the new IOAM data content.
  • the ICMP message can be used as the path recovery notification information in the IP network.
  • the type 22 code 0 indicates the path recovery notification, and the ICMP can be made.
  • the message serves as a path recovery notification message.
  • the transmission path of the IOAM message to the transmission node 17 changes, and the transmission node 14, the transmission node 15, and the transmission node 16 become the transmission node 14, the transmission node 18,
  • the transmission node 19 After receiving the path recovery notification information sent by the transmission node 14, the transmission node 19, the transmission node 20, the transmission node 16, the encapsulation node 11, and the encapsulation node 12 respectively trigger the acquisition of the IOAM data content associated with the new path, and acquire a new IOAM.
  • the IOAM encapsulation operation is resumed after the data content.
  • FIG. 7 is a structural block diagram of a method for encapsulating an IOAM message based on an MPLS network according to an embodiment of the present disclosure.
  • the encapsulating node and the transmitting node may perform the following steps:
  • Step 21 The encapsulation node 21 adds the IPv4 address of the encapsulation node 21 to the IOAM header when the IOAM encapsulation operation is performed. After receiving the IOAM packet encapsulated by the encapsulation node 21, the transit node 24 learns and saves the IPv4 address of the encapsulation node 21. When the IOAM encapsulation operation is performed, the encapsulation node 22 adds the IPv4 address of the encapsulation node 22 to the IOAM header. After receiving the IOAM packet encapsulated by the encapsulation node 22, the transit node 24 learns and saves the IPv4 address of the encapsulation node 22.
  • the transit node 24 may age the learned IPv4 address of the encapsulation node 21 and the IPv4 address of the encapsulation node 22 according to the default or configured aging time.
  • Step 22 After detecting the network failure between the transmission node and the transmission node 25, the transmission node 24 sends the path failure notification information to the encapsulation node 21 and the encapsulation node 22 respectively, and after the encapsulation node 21 and the encapsulation node 22 receive the path failure notification information, Stop the IOAM encapsulation operation separately.
  • FIG. 8 is a format diagram of an LSP ping packet according to an embodiment of the present disclosure.
  • the LSP ping header may contain an 8-bit Message Type field.
  • the IETF standard has already specified two values for the field, namely, message type 1 indicates an MPLS echo request, and message type 2 indicates MPLS echo response.
  • message type 1 indicates an MPLS echo request
  • message type 2 indicates MPLS echo response.
  • the LSP ping packet can be used as the path failure notification information.
  • the path failure notification information sent by the transmission node 24 may also carry service flow information in the TLVs field, indicating which service flows are affected by the network failure.
  • the TLVs field may include a group that needs to be forwarded to the transmission node. 25 IP prefix.
  • Step 23 After the protection node 24 completes the protection switching or the route re-convergence, the path recovery notification information is sent to the encapsulating node 21 and the encapsulating node 22 respectively, and the encapsulating node 21 and the encapsulating node 22 respectively receive the path recovery notification information, respectively triggering the acquisition and the new
  • the path is associated with the IOAM data content and restores the IOAM encapsulation operation after acquiring the new IOAM data content.
  • the LSP ping packet can be used as the path recovery notification information in the MPLS network.
  • the LSP ping packet can be made by defining the type of the message that has not been specified. As the path recovery notification information.
  • the transmission path of the IOAM message to the transmission node 27 changes, and the transmission node 24, the transmission node 25, and the transmission node 26 become the transmission node 24 and the transmission node 28,
  • the transmission node 29, the transmission node 30, the transmission node 26, the encapsulation node 21, and the encapsulation node 22 respectively trigger the acquisition of the IOAM data content associated with the new path, and acquire a new IOAM.
  • the IOAM encapsulation operation is resumed after the data content.
  • FIG. 9 is a structural block diagram of a method for encapsulating an IOAM message based on an Ethernet network according to an embodiment of the present disclosure.
  • the encapsulating node and the transmitting node may perform the following steps:
  • step 31 the encapsulating node 31 adds the MAC address of the encapsulating node 31 to the IOAM header when the IOAM encapsulation operation is performed.
  • the transmitting node 34 learns and saves the MAC address of the encapsulating node 31.
  • the encapsulation node 32 adds the MAC address of the encapsulation node 32 to the IOAM header.
  • the transit node 34 learns and saves the MAC address of the encapsulation node 32.
  • the transit node 34 may age the MAC address of the learned encapsulation node 31 and the MAC address of the encapsulation node 32 according to the default or configured aging time.
  • Step 32 After detecting the network fault between the node and the transmitting node 35, the transmitting node 34 sends the path fault notification information to the encapsulating node 31 and the encapsulating node 32 respectively. After the encapsulating node 31 and the encapsulating node 32 receive the path fault notification information, Stop the IOAM encapsulation operation separately.
  • FIG. 10 is a format diagram of an Ethernet OAM packet according to an embodiment of the present disclosure, as shown in FIG. 10, an Ethernet OAM packet.
  • the Ethernet OAM header may contain an 8-bit opcode (OpCode) field, and some values of the field have been specified by the IETF standard.
  • OpCode 8-bit opcode
  • the operation code 1 indicates a connectivity detection message
  • the operation code 2 indicates a loopback response.
  • the message, opcode 3 represents a loopback request message, and so on.
  • the Ethernet OAM message can be used as the path failure notification information.
  • the path failure notification information sent by the transmission node 34 may also carry service flow information in the TLVs field, indicating which service flows are affected by the network failure.
  • the TLVs field may include a group that needs to be forwarded to the transmission node. 35 destination MAC address.
  • Step 33 After the protection node 34 completes the protection switching or the route re-convergence, the transmission node 34 sends the path recovery notification information to the encapsulating node 31 and the encapsulating node 32 respectively. After receiving the path recovery notification information, the encapsulating node 31 and the encapsulating node 32 respectively trigger the acquisition and the new The path is associated with the IOAM data content and restores the IOAM encapsulation operation after acquiring the new IOAM data content.
  • the Ethernet OAM packet can be used as the path recovery notification information in the Ethernet network.
  • the type 57 indicates the path recovery notification, so that the Ethernet OAM packet can be made.
  • the path recovery notification information As the path recovery notification information.
  • the transmission path of the IOAM message to the transmission node 37 changes, and the transmission node 34, the transmission node 35, and the transmission node 36 become the transmission node 34 and the transmission node 38.
  • the transmission node 39, the transmission node 40, the transmission node 36, the encapsulation node 31, and the encapsulation node 32 respectively trigger the acquisition of the IOAM data content associated with the new path, and acquire a new IOAM.
  • the IOAM encapsulation operation is resumed after the data content.
  • a device for processing a message is provided, and the device is configured to implement the foregoing embodiments and optional embodiments, and details are not described herein.
  • the term "module” may implement software, hardware, or a combination of software and hardware for a predetermined function.
  • the devices described in the following embodiments are optionally implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • the apparatus may include: a receiving module 1102, configured to receive an in-band operation management and maintenance IOAM message, and save the An address of the encapsulating node in the IOAM packet; the first sending module 1104 is configured to send, to the encapsulating node, fault notification information, where the current network is faulty, where the fault notification information is the transit node And the second sending module 1106 is configured to: after the protection switching or the route re-convergence, the encapsulation is performed, according to the information saved by the address saved in the transmitting node, where the encapsulating node stops encapsulating the IOAM message; The node sends the recovery notification information, where the recovery notification information is information generated by the transmitting node according to the address saved in the transmission node, used to instruct the encapsulating node to restore the encapsulated new IOAM message.
  • a receiving module 1102 configured to receive an in-band operation management and maintenance IOAM message, and save the An address of the encapsulating node in the
  • the processing device of the packet further includes: a determining module, configured to determine whether a new IOAM packet including the saved address is received within a preset aging time; if the determination result is negative The transport node deletes the saved address.
  • a determining module configured to determine whether a new IOAM packet including the saved address is received within a preset aging time; if the determination result is negative The transport node deletes the saved address.
  • a packet encapsulation device is further provided, and the device is configured to implement the foregoing embodiments and optional implementation manners, and details are not described herein.
  • the term "module” may implement software, hardware or a combination of software and hardware for a predetermined function.
  • the devices described in the following embodiments are optionally implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 12 is a structural block diagram of a packet encapsulating apparatus according to an embodiment of the present disclosure.
  • the apparatus may include: a sending module 1202, configured to add the in-band operation management and maintenance IOAM message. Encapsulating the address information of the node, and sending the IOAM packet to the transmitting node; the first receiving module 1204 is configured to receive the fault notification information sent by the transmitting node, and stop encapsulating the IOAM packet according to the fault notification information; The second receiving module 1206 is configured to receive, by the encapsulating node, the recovery notification information sent by the transmission node, and recover the encapsulated new IOAM message according to the recovery notification information; the failure notification information and the recovery notification information are the transmission The information generated by the node according to the address saved in the transit node.
  • a packet encapsulation system is further provided, and the system is configured to implement the foregoing embodiments and optional implementation manners, and details have been omitted for description.
  • FIG. 13 is a structural block diagram of a packet encapsulation system according to an embodiment of the present disclosure. As shown in FIG. 13, the system may include a transmission node 1302 and a transmission node 1304.
  • the transmitting node 1302 is configured to receive an in-band operation management and maintenance IOAM message sent by the encapsulating node, save an address of the encapsulating node in the IOAM packet, and send the encapsulation to the encapsulation if the current network is detected to be faulty.
  • the node sends the failure notification information, and after the protection switching or the route re-convergence is completed, the recovery notification information is sent to the encapsulating node;
  • the encapsulating node 1304 is configured to add the address information of the encapsulating node to the IOAM packet, and Sending the IOAM message to the transmitting node; receiving the fault notification information sent by the transmitting node, stopping the encapsulation of the IOAM message according to the fault notification information, and receiving the recovery notification sent by the transmitting node And recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  • An embodiment of the present disclosure further provides a storage medium, where the storage medium includes a stored program, wherein the program may perform the processing method of the message according to any one of the above items when the program is running.
  • the foregoing storage medium may be configured to store program code for performing the following steps: S1, the transmitting node receives the in-band operation management and maintenance IOAM message, and saves the encapsulation in the IOAM message.
  • the information generated by the address is used to indicate that the encapsulating node stops encapsulating the IOAM message; S3, after the protection node completes the protection switching or the route re-convergence, sends the recovery notification information to the encapsulating node;
  • the recovery notification information is information generated by the transmitting node according to the address saved in the transmission node, used to instruct the encapsulating node to recover the encapsulated new IOAM message.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present disclosure also provide a processor configured to execute a program, wherein the program can execute the steps of any of the above methods when executed.
  • the foregoing procedure is used to perform the following steps: S1, the transmitting node receives the in-band operation management and maintenance IOAM message, and saves the address of the encapsulating node in the IOAM packet; S2, in the Transmitting, by the transmitting node, the fault notification information to the encapsulating node, where the fault notification information is generated by the transmitting node according to an address saved in the transit node, The encapsulating node stops the encapsulation of the information of the IOAM packet; S3, after the protection node completes the protection switching or the route re-convergence, sends the recovery notification information to the encapsulating node; wherein the recovery notification information is the transit node Generating information for instructing the encapsulating node to recover a new IOAM message according to the address saved in the transit node.
  • the embodiment of the present disclosure further provides a storage medium, where the storage medium includes a stored program, wherein the program may perform the encapsulation method of the message according to any one of the above items.
  • the foregoing storage medium may be configured to store program code for performing the following steps: S1, the encapsulating node adds the address information of the encapsulation node in an in-band operation management and maintenance IOAM message, And sending the IOAM message to the transmitting node; S2, the encapsulating node receives the fault notification information sent by the transmitting node, and stops encapsulating the IOAM packet according to the fault notification information; S3, the encapsulating node receives Recovering the notification information sent by the node, and recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are addresses that are saved by the transmission node according to the transmission node Generated information.
  • the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM).
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • Embodiments of the present disclosure also provide a processor configured to execute a program, wherein the program can execute the steps of any of the above methods when executed.
  • the foregoing procedure is used to perform the following steps: S1: The encapsulating node adds the address information of the encapsulating node to the in-band operation management and maintenance IOAM message, and sends the IOAM report to the transmitting node. S2, the encapsulating node receives the failure notification information sent by the transmission node, and stops encapsulating the IOAM message according to the failure notification information; S3, the encapsulating node receives the recovery notification information sent by the transmission node, and And recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  • the transmission node can generate the corresponding notification information according to the address information of the encapsulation node, in the case that the transmission path fails and the path is restored, so that the encapsulation path can perform the corresponding encapsulation operation according to the notified information. . Therefore, it is possible to prevent the IOAM packet encapsulation from being changed due to the change of the transmission path of the in-band operation management and maintenance IOAM packet, so that the IOAM packet can be adjusted in time when the transmission path of the IOAM packet changes. Encapsulation enhances the efficiency and scope of IOAM packet encapsulation.
  • modules or steps of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices, optionally They may be implemented by program code executable by the computing device such that they may be stored in the storage device for execution by the computing device and, in some cases, may be performed in a different order than that illustrated herein. Or the steps described, either as separate circuit modules, or as a single integrated circuit module. As such, implementations of the embodiments of the present disclosure are not limited to any particular combination of hardware and software.
  • computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media.
  • Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer.
  • communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .

Abstract

A message encapsulating method, comprising: an encapsulation node adding address information of the encapsulation node to an in-band operations, administration, and maintenance (IOAM) message, and sending the IOAM message to a transmission node (S402); the encapsulation node receiving fault notification information sent by the transmission node, and stopping encapsulating the IOAM message according to the fault notification information (S404); and the encapsulation node receiving recovery notification information sent by the transmission node, and recovering encapsulation of a new IOAM message according to the recovery notification information (S406).

Description

报文的处理方法、装置及报文的封装方法、装置和系统Message processing method, device and message encapsulation method, device and system 技术领域Technical field
本公开涉及但不限于通信领域,尤其是一种报文的处理方法、装置及报文的封装方法、装置和系统。The present disclosure relates to, but is not limited to, the field of communications, and in particular, to a packet processing method, apparatus, and packet encapsulation method, apparatus, and system.
背景技术Background technique
带内操作管理维护(In-band Operations,Administration,and Maintenance,简称IOAM)是业界新提出的一种数据通信网络操作管理维护(OAM)技术,该技术目前在业界的共同推动下处于快速发展阶段,且正在国际标准化组织互联网工程任务组(Internet Engineering Task Force,简称IETF)开展标准化的工作。In-band Operations, Administration, and Maintenance (IOAM) is a new data communication network operation management and maintenance (OAM) technology proposed by the industry. This technology is currently in the rapid development stage under the joint promotion of the industry. And is working on standardization in the Internet Engineering Task Force (IETF) of the International Organization for Standardization.
IETF的IOAM系列提案draft-brockners-inband-oam-requirements,draft-brockners-inband-oam-transport和draft-ietf-ippm-ioam-data分别描述了IOAM的需求来源、封装格式和数据内容,与已经完成标准化并在数据通信网络中广泛部署的带外OAM(Out-of-band Operations,Administration,and Maintenance)相比较,IOAM的特点是IOAM数据内容被封装进业务数据报文中,作为业务数据报文的一部分在网络中传递,而带外OAM数据内容则是被封装进专门构造的OAM数据报文中,作为单独的协议报文在网络中传递。作为带外OAM的补充,IOAM可以实现一些带外OAM所不能实现的功能,比如探测业务数据报文实际经过的网络节点,验证业务数据报文的传输路径与预期是否一致,以及给业务数据报文添加序列号信息以检测丢包和乱序等,相应地,为了实现上述功能,网络管理员可以对传输节点进行配置,传输节点就是除封装节点外的报文传输路径上需要对IOAM数据内容进行处理的节点。IETF's IOAM series of proposals draft-brockners-inband-oam-requirements, draft-brockners-inband-oam-transport and draft-ietf-ippm-ioam-data respectively describe the source of IOAM requirements, package format and data content, and Compared with Out-of-band Operations (Administration, and Maintenance), which is standardized and widely deployed in data communication networks, IOAM is characterized in that IOAM data content is encapsulated into service data packets as a service datagram. A part of the text is transmitted in the network, and the out-of-band OAM data content is encapsulated into a specially constructed OAM data message and transmitted as a separate protocol message in the network. As a supplement to the out-of-band OAM, the IOAM can implement functions that cannot be implemented by the out-of-band OAM, such as detecting the network node through which the service data packet actually passes, verifying that the transmission path of the service data packet is consistent with the expected, and giving the service datagram. The serial number information is added to detect packet loss and out-of-order. Accordingly, in order to implement the above functions, the network administrator can configure the transit node, and the transport node needs to be the IOAM data content on the packet transmission path except the encapsulation node. The node to be processed.
IOAM封装操作就是给业务数据报文插入IOAM头部,封装节点就是执行IOAM封装操作的节点,封装节点既可以是交换机或路由器等网络节点,也可以是个人电脑或服务器等终端节点。图1是相关技术的IOAM头部的格式图,如图1所示,IOAM头部除了用于指示IOAM数据内容的位置(即图 1中的IOAM头部指示)和长度(即图1中的IOAM头部长度),还携带了作为IOAM数据内容的一组IOAM功能选项类型/长度/取值(Type/Length/Value,简称TLVs),其中每个IOAM功能选项TLV对应一种IOAM功能并携带了完成该IOAM功能所需的数据。封装节点由于要完成IOAM头部的插入,所以可以确定IOAM数据内容包含哪些IOAM功能选项TLVs以及每个IOAM功能选项TLV的长度,这些信息既可以由网络管理员根据每个传输节点上的配置情况加以确定并下发给封装节点,也可以由封装节点通过发送带外OAM报文从每个传输节点获取,或者也可以由封装节点通过发送IOAM配置请求报文从集中配置点获取。The IOAM encapsulation operation is to insert the IOAM header into the service data packet. The encapsulation node is the node that performs the IOAM encapsulation operation. The encapsulation node can be a network node such as a switch or a router, or a terminal node such as a personal computer or a server. 1 is a format diagram of a related art IOAM header. As shown in FIG. 1, an IOAM header is used in addition to a location for indicating IOAM data content (ie, an IOAM header indication in FIG. 1) and a length (ie, in FIG. 1). The IOAM header length) also carries a set of IOAM function option types/lengths/values (TLVs) as IOAM data content, where each IOAM function option TLV corresponds to an IOAM function and carries The data needed to complete the IOAM function. Since the encapsulation node needs to complete the insertion of the IOAM header, it can determine which IOAM function option TLVs and the length of each IOAM function option TLV are included in the IOAM data content, which can be determined by the network administrator according to the configuration on each transmission node. The acknowledgment and delivery to the encapsulating node may also be obtained by the encapsulating node from each of the transmitting nodes by sending an outband OAM message, or may also be obtained by the encapsulating node by sending an IOAM configuration request message from the centralized configuration point.
在一些情形下,封装节点在确定IOAM数据内容后,就会根据IOAM数据内容把业务数据报文封装为IOAM报文在网络中传输。然而一旦网络发生故障导致IOAM报文的传输路径发生变化,即IOAM报文传输路径上的传输节点发生变化,封装节点所确定的IOAM数据内容就不再适用。然而对于上述网络故障所导致的传输路径发生变化的情况下,封装节点如何进行IOAM报文的封装,目前还没有提供一种比较有效的解决方案。In some cases, after determining the content of the IOAM data, the encapsulating node encapsulates the service data packet into an IOAM packet and transmits it in the network according to the IOAM data content. However, once the network fails, the transmission path of the IOAM packet changes, that is, the transmission node on the IOAM packet transmission path changes, and the IOAM data content determined by the encapsulation node is no longer applicable. However, in the case where the transmission path caused by the above network failure changes, how the encapsulation node encapsulates the IOAM message does not provide a more effective solution.
发明概述Summary of invention
本公开实施例提供了一种报文的处理方法、装置及报文的封装方法、装置和系统,以至少避免在一些情形下由于带内操作管理维护IOAM报文的传输路径由于故障等原因发生变化时,所导致的IOAM报文封装不再适用的情形。The embodiments of the present disclosure provide a packet processing method, a device, and a packet encapsulation method, apparatus, and system, so as to avoid, at least in some cases, a transmission path of an in-band operation management and maintenance IOAM packet occurs due to a fault or the like. When the change occurs, the resulting IOAM packet encapsulation is no longer applicable.
本公开实施例提供了一种报文的处理方法,包括:传输节点接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;在所述传输节点检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;在所述传输节点完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。The embodiment of the present disclosure provides a method for processing a packet, including: receiving, by the transmitting node, an in-band operation management and maintenance IOAM message, and saving an address of the encapsulating node in the IOAM packet; and detecting, by the transit node, the current network In the case of a failure, the failure notification information is sent to the encapsulation node, wherein the failure notification information is generated by the transmission node according to an address saved in the transmission node, to indicate that the encapsulation node stops encapsulating the The information of the IOAM message is sent to the encapsulating node after the protection node completes the protection switching or the route re-convergence; wherein the recovery notification information is saved by the transmission node according to the transmission node. The information generated by the address is used to instruct the encapsulating node to recover the encapsulated new IOAM message.
本公开实施例还提供了一种报文的封装方法,包括:封装节点在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;所述封装节点接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;所述封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The embodiment of the present disclosure further provides a packet encapsulation method, including: the encapsulating node adds the address information of the encapsulation node in an in-band operation management and maintenance IOAM message, and sends the IOAM message to the transmission node; The encapsulating node receives the failure notification information sent by the transmission node, and stops encapsulating the IOAM message according to the failure notification information; the encapsulating node receives the recovery notification information sent by the transmission node, and recovers according to the recovery notification information. Encapsulating a new IOAM message; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
本公开实施例还提供了一种报文的处理装置,包括:接收模块,设置为接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;第一发送模块,设置为检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;第二发送模块,设置为在完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。The embodiment of the present disclosure further provides a packet processing apparatus, including: a receiving module, configured to receive an in-band operation management and maintenance IOAM message, and save an address of the encapsulated node in the IOAM message; And configured to send, to the encapsulating node, fault notification information, where the fault notification information is generated by the transmitting node according to an address saved in the transmitting node, to indicate the The encapsulating node stops encapsulating the information of the IOAM packet; the second sending module is configured to send the recovery notification information to the encapsulating node after completing the protection switching or the route re-convergence; wherein the recovery notification information is the transmission The information generated by the node according to the address saved in the transit node is used to instruct the encapsulating node to recover the encapsulated new IOAM message.
本公开实施例还提供了一种报文的封装装置,包括:发送模块,设置为在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;第一接收模块,设置为接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;第二接收模块,设置为封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The embodiment of the present disclosure further provides a packet encapsulating apparatus, including: a sending module, configured to add address information of the encapsulating node in an in-band operation management and maintenance IOAM message, and send the IOAM report to a transmitting node. The first receiving module is configured to receive the fault notification information sent by the transmitting node, and stop encapsulating the IOAM packet according to the fault notification information; and the second receiving module is configured to receive the recovery sent by the transmitting node by the encapsulating node. And notifying the information, and recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
本公开实施例还提供了一种报文的封装系统,包括,传输节点和封装节点,其中,所述传输节点,设置为接收所述封装节点发送的带内操作管理维护IOAM报文并保存所述IOAM报文中封装节点的地址,并在检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,以及在完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;所述封装节点,设置为在所述IOAM报文中添加所述封装节点的地址信息,并向所述传输节 点发送所述IOAM报文;接收到所述传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文,以及接收到所述传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文。The embodiment of the present disclosure further provides a packet encapsulation system, including a transmission node and an encapsulation node, where the transmission node is configured to receive an in-band operation management and maintenance IOAM message sent by the encapsulation node and save the Decoding an address of the node in the IOAM packet, and sending a failure notification message to the encapsulating node after detecting that the current network is faulty, and sending the recovery to the encapsulating node after completing the protection switching or the route re-convergence a notification information, the encapsulating node is configured to add the address information of the encapsulating node to the IOAM packet, and send the IOAM packet to the transmitting node; and receive the fault notification information sent by the transmitting node And stopping to encapsulate the IOAM message according to the fault notification information, and receiving the recovery notification information sent by the transmission node, and recovering the encapsulated new IOAM message according to the recovery notification information.
本公开实施例还提供了一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述任一项所述报文的处理的方法。The embodiment of the present disclosure further provides a storage medium including a stored program, wherein the program runs the method of processing the message according to any one of the above items.
本公开实施例还提供了另一种存储介质,所述存储介质包括存储的程序,其中,所述程序运行时执行上述任一项所述报文的封装的方法。The embodiment of the present disclosure further provides another storage medium, where the storage medium includes a stored program, wherein the program is executed to perform a method of encapsulating the message according to any one of the above items.
本公开实施例还提供了一种处理器,所述处理器设置为运行程序,其中,所述程序运行时执行上述任一项所述报文的处理的方法。Embodiments of the present disclosure also provide a processor configured to execute a program, wherein the program is operative to perform a method of processing the message of any of the above.
本公开实施例还提供了一种处理器,所述处理器设置为运行程序,其中,所述程序运行时执行上述任一项所述报文的封装的方法。The embodiment of the present disclosure further provides a processor, the processor being configured to run a program, wherein the program is executed to perform a method of encapsulating the message according to any one of the above items.
附图概述BRIEF abstract
图1是已有IETF标准中IOAM头部的格式图;Figure 1 is a format diagram of an IOAM header in an existing IETF standard;
图2是本公开实施例的一种报文的处理方法的终端的硬件结构框图;2 is a block diagram showing a hardware structure of a terminal for processing a message according to an embodiment of the present disclosure;
图3是根据本公开实施例的一种报文的处理方法的流程图;FIG. 3 is a flowchart of a method for processing a message according to an embodiment of the present disclosure; FIG.
图4是根据本公开实施例的一种报文的封装方法的流程图;4 is a flowchart of a method for encapsulating a message according to an embodiment of the present disclosure;
图5是根据本公开实施例的一种基于互联网协议(Internet Protocol,IP)网络中的IOAM报文的封装方法的结构框图;FIG. 5 is a structural block diagram of a method for encapsulating an IOAM message in an Internet Protocol (IP) network according to an embodiment of the present disclosure;
图6是根据本公开实施例的一种ICMP报文的格式图;6 is a format diagram of an ICMP message according to an embodiment of the present disclosure;
图7是根据本公开实施例的一种基于多协议标签交换技术(Multi-Protocol Label Switching,MPLS)网络中的IOAM报文的封装方法的结构框图;7 is a structural block diagram of a method for encapsulating an IOAM message in a Multi-Protocol Label Switching (MPLS) network according to an embodiment of the present disclosure;
图8是根据本公开实施例的一种LSP Ping报文的格式图;FIG. 8 is a format diagram of an LSP Ping message according to an embodiment of the present disclosure;
图9是根据本发明本公开实施例的一种基于Ethernet网络中的IOAM报文的封装方法的结构框图;FIG. 9 is a structural block diagram of a method for encapsulating an IOAM message based on an Ethernet network according to an embodiment of the present disclosure;
图10是根据本公开实施例的一种Ethernet OAM报文的格式图;FIG. 10 is a format diagram of an Ethernet OAM message according to an embodiment of the present disclosure;
图11是根据本公开实施例的一种报文的处理装置的结构框图;11 is a structural block diagram of a processing apparatus for a message according to an embodiment of the present disclosure;
图12是根据本公开实施例的一种报文的封装装置的结构框图;FIG. 12 is a structural block diagram of a packet encapsulating apparatus according to an embodiment of the present disclosure; FIG.
图13是根据本公开实施例的一种报文的封装系统的结构框图。FIG. 13 is a structural block diagram of a package encapsulation system according to an embodiment of the present disclosure.
详述Detailed
下面结合附图对本公开的实施方式进行描述。Embodiments of the present disclosure will be described below with reference to the accompanying drawings.
可以说明的是,本文中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It may be noted that the terms "first", "second" and the like are used herein to distinguish similar objects, and are not necessarily used to describe a particular order or order.
第一实施例First embodiment
本公开第一实施例所提供的方法实施例可以在移动终端、计算机终端或者类似的运算装置中执行。以运行在移动终端上为例,图2是本公开实施例的一种报文的处理方法的终端的硬件结构框图。如图2所示,终端10可以包括一个或多个(图中仅示出一个)处理器202(处理器202可以包括但不限于微处理器MCU(Micro Controller Unit,微控制器单元)或可编程逻辑器件FPGA(Field Programmable Gate Array,现场可编程门阵列)等的处理装置)、设置为存储数据的存储器204、以及设置为实现通信功能的传输装置206。本领域普通技术人员可以理解,图2所示的结构仅为示意,其并不对上述电子装置的结构造成限定。例如,终端20还可包括比图2中所示更多或者更少的组件,或者具有与图2所示不同的配置。The method embodiments provided by the first embodiment of the present disclosure may be executed in a mobile terminal, a computer terminal, or the like. Taking a mobile terminal as an example, FIG. 2 is a hardware structural block diagram of a terminal for processing a message according to an embodiment of the present disclosure. As shown in FIG. 2, terminal 10 may include one or more (only one shown) processor 202 (processor 202 may include, but is not limited to, a Micro Controller Unit (Micro Controller Unit) or may A processing device such as a Field Programmable Gate Array (FPGA), a memory 204 provided to store data, and a transfer device 206 configured to implement a communication function. It will be understood by those skilled in the art that the structure shown in FIG. 2 is merely illustrative and does not limit the structure of the above electronic device. For example, terminal 20 may also include more or fewer components than those shown in FIG. 2, or have a different configuration than that shown in FIG. 2.
存储器204可设置为存储应用软件的软件程序以及模块,如本公开实施例中的报文的处理方法对应的程序指令/模块,处理器202可以设置为通过运行存储在存储器204内的软件程序以及模块,从而执行各种功能应用以及数据处理,即实现上述的方法。存储器204可包括高速随机存储器,还可包括非易失性存储器,如一个或者多个磁性存储装置、闪存、或者其他非易失性固态存储器。在一些实例中,存储器204还可包括相对于处理器202远程设置的存储器,这些远程存储器可以通过网络连接至终端20。上述网络的实例可以包括但不限于互联网、企业内部网、局域网、移动通信网及其组合。The memory 204 may be configured as a software program and a module for storing application software, such as program instructions/modules corresponding to the processing method of the message in the embodiment of the present disclosure, and the processor 202 may be configured to run the software program stored in the memory 204 and The module, thus performing various functional applications and data processing, implements the above method. Memory 204 can include high speed random access memory and can also include non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid state memory. In some examples, memory 204 may also include memory remotely located relative to processor 202, which may be connected to terminal 20 over a network. Examples of such networks may include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.
传输装置206可以设置为经由一个网络接收或者发送数据。上述的网络 可选实例可包括终端20的通信供应商提供的无线网络。在一个实例中,传输装置206可以包括一个网络适配器(Network Interface Controller,简称NIC),其可通过基站与其他网络设备相连从而可与互联网进行通讯。在一个实例中,传输装置206可以为射频(Radio Frequency,简称RF)模块,其设置为通过无线方式与互联网进行通讯。Transmission device 206 can be arranged to receive or transmit data via a network. The network optional examples described above may include a wireless network provided by a communication provider of terminal 20. In one example, the transmission device 206 can include a Network Interface Controller (NIC) that can be connected to other network devices through a base station to communicate with the Internet. In one example, the transmission device 206 can be a Radio Frequency (RF) module configured to communicate with the Internet wirelessly.
可以指出的是,下述实施例中说明的报文的封装方法也同样适用于图2中所示的终端的硬件结构框图当中,可选实现的方法与上述说明的内容类似,在此并不做过多赘述。It can be noted that the encapsulation method of the message described in the following embodiments is also applicable to the hardware structure block diagram of the terminal shown in FIG. 2, and the optional implementation method is similar to the above description, and is not Do more than enough.
在本实施例中提供了一种运行于上述终端20的报文的处理方法,图3是根据本公开实施例的一种报文的处理方法的流程图,如图3所示,该流程可以包括如下步骤:In this embodiment, a method for processing a packet running on the terminal 20 is provided. FIG. 3 is a flowchart of a method for processing a packet according to an embodiment of the present disclosure. As shown in FIG. 3, the process may be Including the following steps:
步骤S302,传输节点接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;Step S302, the transmitting node receives the in-band operation management and maintenance IOAM message, and saves the address of the encapsulating node in the IOAM message;
可选地,传输节点可以通过学习的方式进行IOAM报文的接收。Optionally, the transmitting node can receive the IOAM message in a learning manner.
可选地,封装节点给业务数据报文添加IOAM头部后形成的IOAM报文可以依次到达报文传输路径上的每个节点,当接收到IOAM报文的节点是传输节点时,该传输节点可以学习并保存IOAM头部中携带的封装节点地址。Optionally, the IOAM packet formed by the encapsulating node after adding the IOAM header to the service data packet may arrive at each node in the packet transmission path, and when the node that receives the IOAM packet is the transit node, the transit node You can learn and save the encapsulation node address carried in the IOAM header.
在所述传输节点接收IOAM报文并保存所述IOAM报文中封装节点的地址之后,还可以包括:所述传输节点可以判断是否在预置的老化时间内接收到新的包含所述保存的地址的IOAM报文;在判断结果为否的情况下,所述传输节点可以删除所述保存的地址。After the receiving node receives the IOAM packet and saves the address of the encapsulating node in the IOAM packet, the transmitting node may further include: determining, by the transmitting node, whether a new one that includes the saving is received within a preset aging time The IOAM message of the address; if the judgment result is no, the transmission node may delete the saved address.
可选地,为了节省传输节点的资源空间和不必要的资源浪费,在传输节点中还引入到了老化机制。即,传输节点可以定时对IOAM报文保存的地址进行检测。当检测到在老化时间内能够在传输节点保存的地址当中接收到新的报文时,传输节点可以不删除该保存的地址。而当检测到在老化时间内不能够在传输节点保存的地址当中接收到新的报文时,为了节省传输节点的资源空间,传输节点可以删除该保存的地址。并可以在接收到新的IOAM报文后,保存新的IOAM报文中封装节点的地址。Optionally, in order to save the resource space of the transmission node and unnecessary resource waste, an aging mechanism is also introduced in the transmission node. That is, the transit node can periodically detect the address saved by the IOAM packet. When it is detected that a new message can be received among the addresses saved by the transmission node during the aging time, the transmission node may not delete the saved address. When it is detected that a new packet cannot be received in the address saved by the transmission node during the aging time, in order to save the resource space of the transmission node, the transmission node may delete the saved address. After the new IOAM packet is received, the address of the encapsulated node in the new IOAM packet is saved.
步骤S304,在所述传输节点检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;Step S304, in the case that the transmitting node detects that the current network is faulty, sending fault notification information to the encapsulating node, where the fault notification information is generated by the transmitting node according to an address saved in the transit node. Information for instructing the encapsulating node to stop encapsulating the IOAM message;
由于IOAM数据内容是与IOAM报文的传输路径相关联的,所以一旦IOAM报文的传输路径发生故障,封装节点给业务数据报文插入的IOAM头部所包含的IOAM数据内容就不再适用,封装节点可立即停止IOAM封装操作。Since the IOAM data content is associated with the transmission path of the IOAM message, once the transmission path of the IOAM message fails, the content of the IOAM data contained in the IOAM header inserted by the encapsulating node into the service data message is no longer applicable. The encapsulation node can immediately stop the IOAM encapsulation operation.
可选地,所述故障通知信息被设置在指定报文中未被规定的类型和代码值中,所述指定报文至少包括以下其中之一:互联网控制消息协议(Internet Control Message Protocol,ICMP)报文,标签交换路径回显(Label Switching Path Ping,LSP Ping)报文,以及以太网操作管理维护(Ethernet OAM)报文。Optionally, the fault notification information is set in a type and a code value that are not specified in the specified packet, and the specified packet includes at least one of the following: an Internet Control Message Protocol (ICMP) Packets, Label Switching Path Ping (LSP Ping) packets, and Ethernet OAM packets.
可选地,所述故障通知信息中携带一组目的地址,其中,所述目的地址用于指示去往该目的地址的业务数据报文的传输路径发生故障。Optionally, the fault notification information carries a set of destination addresses, where the destination address is used to indicate that the transmission path of the service data packet destined for the destination address is faulty.
可选地,能够执行步骤S304中记载的操作的节点是传输路径发生故障的节点。例如,在当前的网络当中存在5个传输节点A至E,只有A和D检测到了在传输节点A与D之间发送了传输路径的故障,那么只有A或者D才有可能执行步骤S304中的操作,而其他的没有检测到发生故障的传输节点虽然也能够实现对IOAM报文的学习和报文。但是不会发送故障通知信息。Alternatively, the node capable of performing the operation described in step S304 is a node whose transmission path has failed. For example, there are five transmission nodes A to E in the current network, and only A and D detect the failure of transmitting the transmission path between the transmission nodes A and D, then only A or D is possible to perform the operation in step S304. Operation, while other transmission nodes that do not detect the failure can also learn and message IOAM messages. However, the failure notification information will not be sent.
可选地,在IP网络当中,该故障通知信息可以通过互联网控制消息协议ICMP报文的形式进行传输。同时可以设置在ICMP报文中未被规定的类型和代码值中。例如规定类型21代码0表示路径故障通知。而在MPLS网络中可利用标签交换路径回显LSP Ping报文来作为路径故障通知信息。同时设置在ICMP报文中未被规定的类型和代码值中。例如固定消息类型3表示路径故障通知。同时在Ethernet以太网络中可利用以太网操作管理维护Ethernet OAM报文来作为路径故障通知信息。同时可以设置在Ethernet OAM报文中未被规定的类型和代码值中。例如操作码56表示路径故障通知。Optionally, in the IP network, the fault notification information may be transmitted in the form of an Internet Control Message Protocol (ICMP) message. At the same time, it can be set in the type and code value that are not specified in the ICMP message. For example, the specification type 21 code 0 indicates a path failure notification. In the MPLS network, the label switching path can be used to echo the LSP ping packet as the path fault notification information. Also set in the type and code value that is not specified in the ICMP message. For example, fixed message type 3 represents a path failure notification. At the same time, Ethernet OAM packets can be managed and maintained in the Ethernet Ethernet network as path fault notification information. At the same time, it can be set in the type and code value that are not specified in the Ethernet OAM message. For example, the operation code 56 represents a path failure notification.
此外,为了更加精确地令封装节点能够快速地获取故障发生的位置,在故障通知信息中还可以携带有一组目的地址。其中,所述目的地址可以用于指示去往该目的地址的业务数据报文的传输路径发生故障。因此,封装节点在接收到上述字段后,可以只对该字段的业务流报文对应的路径的IOAM报文的封装进行停止,而其他的业务流报文对应的IOAM报文的封装则可以不受任何影响。例如,如果传输节点A与D之间发送了传输路径的故障,那么封装节点发送的一组目的地址为传输节点A与D地址。因此,在封装节点收到该目的地址后,能够获知,传输节点A与D之间的路径发生了故障。因此在封装IOAM的时候,可以停止针对传输节点A与D之间路径的封装。而其他的传输路径是可以不会收到任何影响的。这样不仅避免了误封装的可能性,同时也能够比较清楚的反映出链路的故障。In addition, in order to more accurately enable the encapsulation node to quickly obtain the location where the failure occurs, the failure notification information may also carry a set of destination addresses. The destination address may be used to indicate that the transmission path of the service data packet destined for the destination address is faulty. Therefore, after receiving the foregoing field, the encapsulating node may stop the encapsulation of the IOAM packet of the path corresponding to the service flow packet of the field, and the encapsulation of the IOAM packet corresponding to the other service flow packet may not be encapsulated. Subject to any influence. For example, if a failure of the transmission path is transmitted between the transmission nodes A and D, then a set of destination addresses transmitted by the encapsulation node are the transmission node A and the D address. Therefore, after the encapsulated node receives the destination address, it can be known that the path between the transit nodes A and D has failed. Therefore, when the IOAM is encapsulated, the encapsulation of the path between the transfer nodes A and D can be stopped. Other transmission paths can be received without any impact. This not only avoids the possibility of mispacking, but also clearly reflects the link failure.
步骤S306,在所述传输节点完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。Step S306, after the protection node completes protection switching or route re-convergence, sends recovery notification information to the encapsulation node, where the recovery notification information is generated by the transmission node according to an address saved in the transmission node. The information is used to instruct the encapsulating node to recover a new IOAM message.
类似的,能够执行步骤S306中记载的操作的节点可以是传输路径发生故障的节点。例如,在当前的网络当中存在5个传输节点A至E,其中,只有A和D检测到了在传输节点A与D之间发送了传输路径的故障,那么只有A或者D才有可能执行步骤S306中的操作,在不考虑特定连接关系的基础之上,那么只有A或者D才有可能执行步骤S306中的操作,而其他的没有发生故障的传输节点虽然也能够实现对IOAM报文的学习和报文,但是可以不发送恢复通知信息。Similarly, the node capable of performing the operation recited in step S306 may be a node whose transmission path has failed. For example, there are five transmission nodes A to E in the current network, wherein only A and D detect a failure of transmitting a transmission path between the transmission nodes A and D, then only A or D is possible to perform step S306. The operation in the middle, on the basis of not considering the specific connection relationship, only A or D is possible to perform the operation in step S306, and other transmission nodes that have not failed can realize the learning of the IOAM message. Message, but may not send recovery notification information.
可选地,在IP网络当中,该故障通知信息可以通过互联网控制消息协议ICMP报文的形式进行传输。同时可以设置在ICMP报文中未被规定的类型和代码值中。例如规定类型21代码1表示路径故障通知。而在MPLS网络中可利用标签交换路径回显LSP Ping报文来作为路径恢复通知信息。同时可以设置在ICMP报文中未被规定的类型和代码值中。例如固定消息类型4表示路径恢复通知。同时在Ethernet以太网络中可利用以太网操作管理维护Ethernet OAM报文来作为路径故障通知信息。同时可以设置在Ethernet OAM 报文中未被规定的类型和代码值中。例如操作码60表示路径恢复通知。Optionally, in the IP network, the fault notification information may be transmitted in the form of an Internet Control Message Protocol (ICMP) message. At the same time, it can be set in the type and code value that are not specified in the ICMP message. For example, the specification type 21 code 1 indicates a path failure notification. In the MPLS network, the label switching path can be used to echo the LSP ping packet as the path recovery notification information. At the same time, it can be set in the type and code value that are not specified in the ICMP message. For example, fixed message type 4 represents a path recovery notification. At the same time, Ethernet OAM packets can be managed and maintained in the Ethernet Ethernet network as path fault notification information. It can also be set in the type and code value that is not specified in the Ethernet OAM message. For example, the operation code 60 indicates a path recovery notification.
可选地,向所述封装节点发送所述恢复通知信息,还包括:指示所述封装节点获取所述新的IOAM报文中的IOAM数据内容;指示所述封装节点根据所述IOAM数据内容,对所述新的IOAM报文进行封装。其中,所述IOAM数据内容至少可以包括:与新路径关联的IOAM数据内容。Optionally, the sending, to the encapsulating node, the resuming notification information, further comprising: instructing the encapsulating node to acquire the IOAM data content in the new IOAM packet; and instructing the encapsulating node to perform, according to the IOAM data content, Encapsulating the new IOAM message. The IOAM data content may include at least: IOAM data content associated with the new path.
可选地,所述恢复通知信息被设置在所述指定报文中未被规定的类型和代码值中。Optionally, the recovery notification information is set in a type and code value that is not specified in the specified message.
通过上述步骤,避免了由于带内操作管理维护IOAM报文的传输路径发生变化所导致的IOAM报文封装不再适用情形,从而实现了在IOAM报文的传输路径变化时,能够及时调整IOAM报文的封装,增强了IOAM报文封装效率和适用范围的效果。Through the above steps, the IOAM packet encapsulation is no longer applicable due to the change of the transmission path of the in-band operation management and maintenance IOAM packet, so that the IOAM packet can be adjusted in time when the transmission path of the IOAM packet changes. Encapsulation of the text enhances the efficiency of IOAM packet encapsulation and the scope of application.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件。基于这样的理解,本公开实施例的技术方案本质上或者说对一些情形做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本公开实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiments can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware. Based on such understanding, the technical solution of the embodiments of the present disclosure may be embodied in the form of a software product in essence or in some cases, and the computer software product is stored in a storage medium (such as ROM/RAM, disk). The optical disc includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present disclosure.
第二实施例Second embodiment
在本实施例中提供了一种运行于上述终端20的报文的封装方法,图4是根据本公开实施例的一种报文的封装方法的流程图,如图4所示,该流程可以包括如下步骤:In this embodiment, a method for encapsulating a packet running in the terminal 20 is provided. FIG. 4 is a flowchart of a method for encapsulating a packet according to an embodiment of the present disclosure. As shown in FIG. 4, the process may be Including the following steps:
步骤S402,封装节点在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;Step S402, the encapsulating node adds the address information of the encapsulating node to the in-band operation management and maintenance IOAM message, and sends the IOAM message to the transmitting node.
可选地,与一些情形下的IOAM报文相比,本实施例中记载的IOAM报文中的头部当中添加有封装节点的地址信息。可选地,该地址信息包括封装节点的地址类型信息以及封装节点地址两个字段。前者,即地址类型信息用于标识封装节点采用哪一种类型的地址,例如媒体访问控制(Media Access  Control,MAC)地址,IP的第四版(IPv4)地址,IP的第六版(IPv6)地址,或者是其他可寻址的地址。确定了地址类型,也就同时确定了地址的长度。而后者,即封装节点地址,则用于传输节点能够利用该地址向封装节点发送协议信息。Optionally, compared with the IOAM packet in some cases, the address information of the encapsulation node is added to the header in the IOAM packet described in this embodiment. Optionally, the address information includes two types of address type information of the encapsulation node and an encapsulation node address. The former, that is, the address type information is used to identify which type of address the encapsulating node uses, such as Media Access Control (MAC) address, IP version 4 (IPv4) address, and IP version 6 (IPv6). Address, or other addressable address. The address type is determined, and the length of the address is also determined. The latter, that is, encapsulating the node address, is used by the transmitting node to use the address to send protocol information to the encapsulating node.
可选地,所述封装节点的地址信息至少包括以下其中之一:所述封装节点的地址类型信息以及用于指示所述传输节点向所述封装节点发送信息的地址。Optionally, the address information of the encapsulation node includes at least one of the following: address type information of the encapsulation node and an address used to indicate that the transmission node sends information to the encapsulation node.
步骤S404,所述封装节点接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;Step S404, the encapsulating node receives the failure notification information sent by the transmission node, and stops encapsulating the IOAM message according to the failure notification information.
可选地,所述封装节点接收到传输节点发送的故障通知信息中携带一组目的地址,并根据所述故障通知信息停止封装去往所述一组目的地址的所述IOAM报文。Optionally, the encapsulating node receives the fault notification information sent by the transit node, and carries a set of destination addresses, and stops encapsulating the IOAM packets destined for the set of destination addresses according to the fault notification information.
步骤S406,所述封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;Step S406, the encapsulating node receives the recovery notification information sent by the transit node, and recovers the encapsulated new IOAM packet according to the recovery notification information.
可选地,根据所述恢复通知信息恢复封装所述IOAM报文时,所述封装节点首先可以从传输节点发送的报文当中提取恢复后传输路径对应的IOAM数据内容。可选地,在该IOAM数据内容中包括恢复后的传输路径的路径信息。Optionally, when the IOAM packet is encapsulated according to the recovery notification information, the encapsulating node may first extract the IOAM data content corresponding to the restored transmission path from the packet sent by the transit node. Optionally, path information of the restored transmission path is included in the IOAM data content.
其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
可选地,根据所述恢复通知信息恢复封装新的IOAM报文,包括:所述封装节点获取所述新的IOAM报文中的IOAM数据内容;所述封装节点根据所述IOAM数据内容,对所述新的IOAM报文进行封装。其中,所述IOAM数据内容至少可以包括:与新路径关联的IOAM数据内容。Optionally, the encapsulating the new IOAM message according to the recovery notification information includes: the encapsulating node acquiring the IOAM data content in the new IOAM message; the encapsulating node is configured according to the IOAM data content The new IOAM message is encapsulated. The IOAM data content may include at least: IOAM data content associated with the new path.
可以指出的是,为了更好的理解第一实施例和第二实施例中所记载的技术方案。在本实施例中,还提供了以下的场景,以便理解上述实施例所记载的技术方案。It can be noted that the technical solutions described in the first embodiment and the second embodiment are better understood. In the present embodiment, the following scenarios are also provided in order to understand the technical solutions described in the above embodiments.
场景1:scene 1:
图5是根据本公开实施例的一种基于IP网络中的IOAM报文的封装方法的结构框图。可选地,封装节点和传输节点可以执行如下操作:FIG. 5 is a structural block diagram of a method for encapsulating an IOAM message based on an IP network according to an embodiment of the present disclosure. Optionally, the encapsulation node and the transit node may perform the following operations:
步骤11,封装节点11在进行IOAM封装操作时,给IOAM头部添加封装节点11的IPv4地址,传输节点14收到封装节点11封装的IOAM报文后,学习并保存封装节点11的IPv4地址。封装节点12在进行IOAM封装操作时,给IOAM头部添加封装节点12的IPv4地址,传输节点14收到封装节点12封装的IOAM报文后,学习并保存封装节点12的IPv4地址。In step 11, the encapsulation node 11 adds the IPv4 address of the encapsulation node 11 to the IOAM header when the IOAM encapsulation operation is performed. After receiving the IOAM packet encapsulated by the encapsulation node 11, the transit node 14 learns and saves the IPv4 address of the encapsulation node 11. When the IOAM encapsulation operation is performed, the encapsulation node 12 adds the IPv4 address of the encapsulation node 12 to the IOAM header. After receiving the IOAM packet encapsulated by the encapsulation node 12, the transit node 14 learns and saves the IPv4 address of the encapsulation node 12.
传输节点14根据默认的或配置的老化时间对学习到的封装节点11的IPv4地址和封装节点12的IPv4地址进行老化。The transit node 14 ages the learned IPv4 address of the encapsulation node 11 and the IPv4 address of the encapsulation node 12 according to the default or configured aging time.
步骤12,传输节点14检测到其与传输节点15之间的网络故障后,向封装节点11和封装节点12分别发送路径故障通知信息,封装节点11和封装节点12收到路径故障通知信息后,分别停止IOAM封装操作。Step 12: After detecting the network failure between the node and the transmission node 15, the transmission node 14 sends the path failure notification information to the encapsulation node 11 and the encapsulation node 12 respectively. After the encapsulation node 11 and the encapsulation node 12 receive the path failure notification information, Stop the IOAM encapsulation operation separately.
IP网络中可利用ICMP报文来作为路径故障通知信息,图6是根据本公开实施例的一种ICMP报文的格式图,如图6所示,ICMP报文包含8比特的类型字段和8比特的代码字段,已有IETF标准已经对这两个字段的一些取值做了规定,比如,类型8代码0表示ICMP Ping请求,类型0代码0表示ICMP Ping响应,类型10代码0表示路由器请求,类型9代码0表示路由器通知,等等。通过对尚未被规定的类型和代码值做定义,比如规定类型21代码0表示路径故障通知,就可以使得ICMP报文作为路径故障通知信息。An ICMP packet can be used as the path fault notification information in the IP network. FIG. 6 is a format diagram of an ICMP packet according to an embodiment of the present disclosure. As shown in FIG. 6, the ICMP packet includes an 8-bit type field and 8 The bit code field, which has been specified by the IETF standard, for example, type 8 code 0 indicates an ICMP Ping request, type 0 code 0 indicates an ICMP Ping response, and type 10 code 0 indicates a router request. , type 9 code 0 indicates router notification, and so on. By defining a type and a code value that have not been specified, for example, specifying that the type 21 code 0 indicates a path failure notification, the ICMP message can be made as a path failure notification information.
为了实现更精确的控制,传输节点14发送的路径故障通知信息也可以在选项数据字段携带业务流信息,表明哪些业务流会受到网络故障的影响,例如,选项数据字段可包含一组需要转发到传输节点15的IP前缀。封装节点11和封装节点12收到携带业务流信息的路径故障通知信息后,可以只停止针对这些业务流的IOAM封装操作,而其它业务流(例如通过传输节点14去往传输节点21的业务流)则可以不受影响。In order to achieve more precise control, the path failure notification information sent by the transmission node 14 may also carry service flow information in the option data field to indicate which service flows are affected by the network failure. For example, the option data field may include a group that needs to be forwarded to The IP prefix of the transport node 15. After receiving the path failure notification information carrying the service flow information, the encapsulating node 11 and the encapsulating node 12 may stop only the IOAM encapsulation operation for these service flows, and other service flows (for example, the traffic flow to the transit node 21 through the transit node 14) ) can be unaffected.
步骤13,传输节点14完成保护倒换或路由重收敛后,向封装节点11和封装节点12分别发送路径恢复通知信息,封装节点11和封装节点12收到路径恢复通知信息后,分别触发获取与新路径关联的IOAM数据内容,并在获取新的IOAM数据内容后恢复IOAM封装操作。Step 13: After the protection node 14 completes the protection switching or the route re-convergence, the transmission node 14 and the encapsulation node 12 respectively send path recovery notification information, and the encapsulation node 11 and the encapsulation node 12 respectively receive the path recovery notification information, respectively triggering the acquisition and the new The path is associated with the IOAM data content and restores the IOAM encapsulation operation after acquiring the new IOAM data content.
与路径故障通知信息类似,IP网络中可利用ICMP报文来作为路径恢复通知信息,通过对尚未被规定的类型和代码值做定义,比如规定类型22代码0表示路径恢复通知,就可以使得ICMP报文作为路径恢复通知信息。Similar to the path failure notification information, the ICMP message can be used as the path recovery notification information in the IP network. By defining the type and code value that have not been specified yet, for example, the type 22 code 0 indicates the path recovery notification, and the ICMP can be made. The message serves as a path recovery notification message.
传输节点14完成保护倒换或路由重收敛后,去往传输节点17的IOAM报文的传输路径发生了变化,从传输节点14、传输节点15、传输节点16变为了传输节点14、传输节点18、传输节点19、传输节点20、传输节点16,封装节点11和封装节点12收到传输节点14发送的路径恢复通知信息后,分别触发获取与新路径关联的IOAM数据内容,并在获取新的IOAM数据内容后恢复IOAM封装操作。After the transmission node 14 completes the protection switching or the route re-convergence, the transmission path of the IOAM message to the transmission node 17 changes, and the transmission node 14, the transmission node 15, and the transmission node 16 become the transmission node 14, the transmission node 18, After receiving the path recovery notification information sent by the transmission node 14, the transmission node 19, the transmission node 20, the transmission node 16, the encapsulation node 11, and the encapsulation node 12 respectively trigger the acquisition of the IOAM data content associated with the new path, and acquire a new IOAM. The IOAM encapsulation operation is resumed after the data content.
场景2:Scene 2:
图7是根据本公开实施例的一种基于MPLS网络中的IOAM报文的封装方法的结构框图。可选地,封装节点和传输节点可以执行如下步骤:FIG. 7 is a structural block diagram of a method for encapsulating an IOAM message based on an MPLS network according to an embodiment of the present disclosure. Optionally, the encapsulating node and the transmitting node may perform the following steps:
步骤21,封装节点21在进行IOAM封装操作时,给IOAM头部添加封装节点21的IPv4地址,传输节点24收到封装节点21封装的IOAM报文后,学习并保存封装节点21的IPv4地址。封装节点22在进行IOAM封装操作时,给IOAM头部添加封装节点22的IPv4地址,传输节点24收到封装节点22封装的IOAM报文后,学习并保存封装节点22的IPv4地址。Step 21: The encapsulation node 21 adds the IPv4 address of the encapsulation node 21 to the IOAM header when the IOAM encapsulation operation is performed. After receiving the IOAM packet encapsulated by the encapsulation node 21, the transit node 24 learns and saves the IPv4 address of the encapsulation node 21. When the IOAM encapsulation operation is performed, the encapsulation node 22 adds the IPv4 address of the encapsulation node 22 to the IOAM header. After receiving the IOAM packet encapsulated by the encapsulation node 22, the transit node 24 learns and saves the IPv4 address of the encapsulation node 22.
传输节点24可以根据默认的或配置的老化时间对学习到的封装节点21的IPv4地址和封装节点22的IPv4地址进行老化。The transit node 24 may age the learned IPv4 address of the encapsulation node 21 and the IPv4 address of the encapsulation node 22 according to the default or configured aging time.
步骤22,传输节点24检测到其与传输节点25之间的网络故障后,向封装节点21和封装节点22分别发送路径故障通知信息,封装节点21和封装节点22收到路径故障通知信息后,分别停止IOAM封装操作。Step 22: After detecting the network failure between the transmission node and the transmission node 25, the transmission node 24 sends the path failure notification information to the encapsulation node 21 and the encapsulation node 22 respectively, and after the encapsulation node 21 and the encapsulation node 22 receive the path failure notification information, Stop the IOAM encapsulation operation separately.
MPLS网络中可利用标签交换路径回显LSP Ping报文来作为路径故障通知信息,图8是根据本公开实施例的一种LSP Ping报文的格式图,如图8所示,LSP Ping报文的LSP Ping头部可以包含8比特的消息类型(Message Type)字段,已有IETF标准已经对该字段的两个取值做了规定,分别是消息类型1表示MPLS回显请求,消息类型2表示MPLS回显响应。通过对尚未被规定的消息类型做定义,比如规定消息类型3表示路径故障通知,就可以使得LSP Ping报文作为路径故障通知信息。The MPLS network can use the label switching path to display the LSP ping packet as the path fault notification information. FIG. 8 is a format diagram of an LSP ping packet according to an embodiment of the present disclosure. The LSP ping header may contain an 8-bit Message Type field. The IETF standard has already specified two values for the field, namely, message type 1 indicates an MPLS echo request, and message type 2 indicates MPLS echo response. By defining a message type that has not been specified, for example, specifying that the message type 3 indicates a path failure notification, the LSP ping packet can be used as the path failure notification information.
为了实现更精确的控制,传输节点24发送的路径故障通知信息也可以在TLVs字段携带业务流信息,表明哪些业务流会受到网络故障的影响,例如,TLVs字段可包含一组需要转发到传输节点25的IP前缀。封装节点21和封装节点22收到携带业务流信息的路径故障通知信息后,可以只停止针对这些业务流的IOAM封装操作,而其它业务流(例如通过传输节点24去往传输节点31的业务流)则可以不受影响。In order to achieve more precise control, the path failure notification information sent by the transmission node 24 may also carry service flow information in the TLVs field, indicating which service flows are affected by the network failure. For example, the TLVs field may include a group that needs to be forwarded to the transmission node. 25 IP prefix. After the encapsulating node 21 and the encapsulating node 22 receive the path failure notification information carrying the service flow information, only the IOAM encapsulation operation for the service flows may be stopped, and other service flows (for example, the traffic flow to the transit node 31 through the transit node 24) ) can be unaffected.
步骤23,传输节点24完成保护倒换或路由重收敛后,向封装节点21和封装节点22分别发送路径恢复通知信息,封装节点21和封装节点22收到路径恢复通知信息后,分别触发获取与新路径关联的IOAM数据内容,并在获取新的IOAM数据内容后恢复IOAM封装操作。Step 23: After the protection node 24 completes the protection switching or the route re-convergence, the path recovery notification information is sent to the encapsulating node 21 and the encapsulating node 22 respectively, and the encapsulating node 21 and the encapsulating node 22 respectively receive the path recovery notification information, respectively triggering the acquisition and the new The path is associated with the IOAM data content and restores the IOAM encapsulation operation after acquiring the new IOAM data content.
与路径故障通知信息类似,MPLS网络中可利用LSP Ping报文来作为路径恢复通知信息,通过对尚未被规定的消息类型做定义,比如规定类型4表示路径恢复通知,就可以使得LSP Ping报文作为路径恢复通知信息。Similar to the path fault notification information, the LSP ping packet can be used as the path recovery notification information in the MPLS network. The LSP ping packet can be made by defining the type of the message that has not been specified. As the path recovery notification information.
传输节点24完成保护倒换或路由重收敛后,去往传输节点27的IOAM报文的传输路径发生了变化,从传输节点24、传输节点25、传输节点26变为了传输节点24、传输节点28、传输节点29、传输节点30、传输节点26,封装节点21和封装节点22收到传输节点24发送的路径恢复通知信息后,分别触发获取与新路径关联的IOAM数据内容,并在获取新的IOAM数据内容后恢复IOAM封装操作。After the transmission node 24 completes the protection switching or the route re-convergence, the transmission path of the IOAM message to the transmission node 27 changes, and the transmission node 24, the transmission node 25, and the transmission node 26 become the transmission node 24 and the transmission node 28, After receiving the path restoration notification information sent by the transmission node 24, the transmission node 29, the transmission node 30, the transmission node 26, the encapsulation node 21, and the encapsulation node 22 respectively trigger the acquisition of the IOAM data content associated with the new path, and acquire a new IOAM. The IOAM encapsulation operation is resumed after the data content.
场景3:Scene 3:
图9是根据本公开实施例的一种基于Ethernet网络中的IOAM报文的封装方法的结构框图。可选地,封装节点和传输节点可以执行如下步骤:FIG. 9 is a structural block diagram of a method for encapsulating an IOAM message based on an Ethernet network according to an embodiment of the present disclosure. Optionally, the encapsulating node and the transmitting node may perform the following steps:
步骤31,封装节点31在进行IOAM封装操作时,给IOAM头部添加封装节点31的MAC地址,传输节点34收到封装节点31封装的IOAM报文后,学习并保存封装节点31的MAC地址。封装节点32在进行IOAM封装操作时,给IOAM头部添加封装节点32的MAC地址,传输节点34收到封装节点32封装的IOAM报文后,学习并保存封装节点32的MAC地址。In step 31, the encapsulating node 31 adds the MAC address of the encapsulating node 31 to the IOAM header when the IOAM encapsulation operation is performed. After receiving the IOAM packet encapsulated by the encapsulating node 31, the transmitting node 34 learns and saves the MAC address of the encapsulating node 31. When the IOAM encapsulation operation is performed, the encapsulation node 32 adds the MAC address of the encapsulation node 32 to the IOAM header. After receiving the IOAM packet encapsulated by the encapsulation node 32, the transit node 34 learns and saves the MAC address of the encapsulation node 32.
传输节点34可以根据默认的或配置的老化时间对学习到的封装节点31的MAC地址和封装节点32的MAC地址进行老化。The transit node 34 may age the MAC address of the learned encapsulation node 31 and the MAC address of the encapsulation node 32 according to the default or configured aging time.
步骤32,传输节点34检测到其与传输节点35之间的网络故障后,向封装节点31和封装节点32分别发送路径故障通知信息,封装节点31和封装节点32收到路径故障通知信息后,分别停止IOAM封装操作。Step 32: After detecting the network fault between the node and the transmitting node 35, the transmitting node 34 sends the path fault notification information to the encapsulating node 31 and the encapsulating node 32 respectively. After the encapsulating node 31 and the encapsulating node 32 receive the path fault notification information, Stop the IOAM encapsulation operation separately.
Ethernet网络中可利用以太网操作管理维护Ethernet OAM报文来作为路径故障通知信息,图10是根据本公开实施例的一种Ethernet OAM报文的格式图,如图10所示,Ethernet OAM报文的Ethernet OAM头部可以包含8比特的操作码(OpCode)字段,已有IETF标准已经对该字段的一些取值做了规定,比如操作码1表示连通性检测消息,操作码2表示环回响应消息,操作码3表示环回请求消息,等等。通过对尚未被规定的操作码做定义,比如规定操作码56表示路径故障通知,就可以使得Ethernet OAM报文作为路径故障通知信息。The Ethernet network can be used to manage and maintain the Ethernet OAM packet as the path fault notification information. FIG. 10 is a format diagram of an Ethernet OAM packet according to an embodiment of the present disclosure, as shown in FIG. 10, an Ethernet OAM packet. The Ethernet OAM header may contain an 8-bit opcode (OpCode) field, and some values of the field have been specified by the IETF standard. For example, the operation code 1 indicates a connectivity detection message, and the operation code 2 indicates a loopback response. The message, opcode 3 represents a loopback request message, and so on. By defining the operation code that has not been specified, for example, the operation code 56 indicates the path failure notification, the Ethernet OAM message can be used as the path failure notification information.
为了实现更精确的控制,传输节点34发送的路径故障通知信息也可以在TLVs字段携带业务流信息,表明哪些业务流会受到网络故障的影响,例如,TLVs字段可包含一组需要转发到传输节点35的目的MAC地址。封装节点31和封装节点32收到携带业务流信息的路径故障通知信息后,可以只停止针对这些业务流的IOAM封装操作,而其它业务流(例如通过传输节点34去往传输节点41的业务流)则可以不受影响。In order to achieve more precise control, the path failure notification information sent by the transmission node 34 may also carry service flow information in the TLVs field, indicating which service flows are affected by the network failure. For example, the TLVs field may include a group that needs to be forwarded to the transmission node. 35 destination MAC address. After the encapsulating node 31 and the encapsulating node 32 receive the path failure notification information carrying the service flow information, only the IOAM encapsulation operation for the service flows may be stopped, and other service flows (for example, the traffic flow to the transit node 41 through the transit node 34) ) can be unaffected.
步骤33,传输节点34完成保护倒换或路由重收敛后,向封装节点31和封装节点32分别发送路径恢复通知信息,封装节点31和封装节点32收到路径恢复通知信息后,分别触发获取与新路径关联的IOAM数据内容,并在获取新的IOAM数据内容后恢复IOAM封装操作。Step 33: After the protection node 34 completes the protection switching or the route re-convergence, the transmission node 34 sends the path recovery notification information to the encapsulating node 31 and the encapsulating node 32 respectively. After receiving the path recovery notification information, the encapsulating node 31 and the encapsulating node 32 respectively trigger the acquisition and the new The path is associated with the IOAM data content and restores the IOAM encapsulation operation after acquiring the new IOAM data content.
与路径故障通知信息类似,Ethernet网络中可利用Ethernet OAM报文来作为路径恢复通知信息,通过对尚未被规定的消息类型做定义,比如规定类型57表示路径恢复通知,就可以使得Ethernet OAM报文作为路径恢复通知信息。Similar to the path fault notification information, the Ethernet OAM packet can be used as the path recovery notification information in the Ethernet network. By defining the type of the message that has not been specified yet, for example, the type 57 indicates the path recovery notification, so that the Ethernet OAM packet can be made. As the path recovery notification information.
传输节点34完成保护倒换或路由重收敛后,去往传输节点37的IOAM报文的传输路径发生了变化,从传输节点34、传输节点35、传输节点36变为了传输节点34、传输节点38、传输节点39、传输节点40、传输节点36,封装节点31和封装节点32收到传输节点34发送的路径恢复通知信息后,分 别触发获取与新路径关联的IOAM数据内容,并在获取新的IOAM数据内容后恢复IOAM封装操作。After the transmission node 34 completes the protection switching or the route re-convergence, the transmission path of the IOAM message to the transmission node 37 changes, and the transmission node 34, the transmission node 35, and the transmission node 36 become the transmission node 34 and the transmission node 38. After receiving the path restoration notification information sent by the transmission node 34, the transmission node 39, the transmission node 40, the transmission node 36, the encapsulation node 31, and the encapsulation node 32 respectively trigger the acquisition of the IOAM data content associated with the new path, and acquire a new IOAM. The IOAM encapsulation operation is resumed after the data content.
第三实施例Third embodiment
在本实施例中还提供了一种报文的处理装置,该装置设置为实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件、硬件、或软件和硬件的组合。尽管以下实施例所描述的装置可选地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a device for processing a message is provided, and the device is configured to implement the foregoing embodiments and optional embodiments, and details are not described herein. As used hereinafter, the term "module" may implement software, hardware, or a combination of software and hardware for a predetermined function. Although the devices described in the following embodiments are optionally implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图11是根据本公开实施例的一种报文的处理装置的结构框图,如图11所示,该装置可以包括:接收模块1102,设置为接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;第一发送模块1104,设置为检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;第二发送模块1106,设置为在完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。11 is a structural block diagram of a message processing apparatus according to an embodiment of the present disclosure. As shown in FIG. 11, the apparatus may include: a receiving module 1102, configured to receive an in-band operation management and maintenance IOAM message, and save the An address of the encapsulating node in the IOAM packet; the first sending module 1104 is configured to send, to the encapsulating node, fault notification information, where the current network is faulty, where the fault notification information is the transit node And the second sending module 1106 is configured to: after the protection switching or the route re-convergence, the encapsulation is performed, according to the information saved by the address saved in the transmitting node, where the encapsulating node stops encapsulating the IOAM message; The node sends the recovery notification information, where the recovery notification information is information generated by the transmitting node according to the address saved in the transmission node, used to instruct the encapsulating node to restore the encapsulated new IOAM message.
可选地,该报文的处理装置还包括:判断模块,设置为判断是否在预置的老化时间内接收到新的包含所述保存的地址的IOAM报文;在判断结果为否的情况下,所述传输节点删除所述保存的地址。Optionally, the processing device of the packet further includes: a determining module, configured to determine whether a new IOAM packet including the saved address is received within a preset aging time; if the determination result is negative The transport node deletes the saved address.
第四实施例Fourth embodiment
在本实施例中还提供了一种报文的封装装置,该装置设置为实现上述实施例及可选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件、硬件或软件和硬件的组合。尽管以下实施例所描述的装置可选地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, a packet encapsulation device is further provided, and the device is configured to implement the foregoing embodiments and optional implementation manners, and details are not described herein. As used hereinafter, the term "module" may implement software, hardware or a combination of software and hardware for a predetermined function. Although the devices described in the following embodiments are optionally implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图12是根据本公开实施例的一种报文的封装装置的结构框图,如图12所示,该装置可以包括:发送模块1202,设置为在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文; 第一接收模块1204,设置为接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;第二接收模块1206,设置为封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。FIG. 12 is a structural block diagram of a packet encapsulating apparatus according to an embodiment of the present disclosure. As shown in FIG. 12, the apparatus may include: a sending module 1202, configured to add the in-band operation management and maintenance IOAM message. Encapsulating the address information of the node, and sending the IOAM packet to the transmitting node; the first receiving module 1204 is configured to receive the fault notification information sent by the transmitting node, and stop encapsulating the IOAM packet according to the fault notification information; The second receiving module 1206 is configured to receive, by the encapsulating node, the recovery notification information sent by the transmission node, and recover the encapsulated new IOAM message according to the recovery notification information; the failure notification information and the recovery notification information are the transmission The information generated by the node according to the address saved in the transit node.
第五实施例Fifth embodiment
在本实施例中还提供了一种报文的封装系统,该系统设置为实现上述实施例及可选实施方式,已经进行过说明的不再赘述。In this embodiment, a packet encapsulation system is further provided, and the system is configured to implement the foregoing embodiments and optional implementation manners, and details have been omitted for description.
图13是根据本公开实施例的一种报文的封装系统的结构框图,如图13所示,该系统可以包括:传输节点1302和传输节点1304。FIG. 13 is a structural block diagram of a packet encapsulation system according to an embodiment of the present disclosure. As shown in FIG. 13, the system may include a transmission node 1302 and a transmission node 1304.
传输节点1302,设置为接收所述封装节点发送的带内操作管理维护IOAM报文并保存所述IOAM报文中封装节点的地址,并在检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,以及在完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;封装节点1304,设置为在所述IOAM报文中添加所述封装节点的地址信息,并向所述传输节点发送所述IOAM报文;接收到所述传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文,以及接收到所述传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The transmitting node 1302 is configured to receive an in-band operation management and maintenance IOAM message sent by the encapsulating node, save an address of the encapsulating node in the IOAM packet, and send the encapsulation to the encapsulation if the current network is detected to be faulty. The node sends the failure notification information, and after the protection switching or the route re-convergence is completed, the recovery notification information is sent to the encapsulating node; the encapsulating node 1304 is configured to add the address information of the encapsulating node to the IOAM packet, and Sending the IOAM message to the transmitting node; receiving the fault notification information sent by the transmitting node, stopping the encapsulation of the IOAM message according to the fault notification information, and receiving the recovery notification sent by the transmitting node And recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
第六实施例Sixth embodiment
本公开的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时可以执行上述任一项所述报文的处理方法。An embodiment of the present disclosure further provides a storage medium, where the storage medium includes a stored program, wherein the program may perform the processing method of the message according to any one of the above items when the program is running.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:S1,传输节点接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;S2,在所述传输节点检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;S3,在所述传输节点完成保护倒换 或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。Optionally, in this embodiment, the foregoing storage medium may be configured to store program code for performing the following steps: S1, the transmitting node receives the in-band operation management and maintenance IOAM message, and saves the encapsulation in the IOAM message. An address of the node; S2, in the case that the transmitting node detects that the current network is faulty, sending fault notification information to the encapsulating node, where the fault notification information is that the transmitting node saves according to the transmitting node The information generated by the address is used to indicate that the encapsulating node stops encapsulating the IOAM message; S3, after the protection node completes the protection switching or the route re-convergence, sends the recovery notification information to the encapsulating node; The recovery notification information is information generated by the transmitting node according to the address saved in the transmission node, used to instruct the encapsulating node to recover the encapsulated new IOAM message.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
本公开的实施例还提供了一种处理器,该处理器设置为运行程序,其中,该程序运行时可以执行上述任一项方法中的步骤。Embodiments of the present disclosure also provide a processor configured to execute a program, wherein the program can execute the steps of any of the above methods when executed.
可选地,在本实施例中,上述程序用于执行以下步骤:S1,传输节点接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;S2,在所述传输节点检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;S3,在所述传输节点完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。Optionally, in this embodiment, the foregoing procedure is used to perform the following steps: S1, the transmitting node receives the in-band operation management and maintenance IOAM message, and saves the address of the encapsulating node in the IOAM packet; S2, in the Transmitting, by the transmitting node, the fault notification information to the encapsulating node, where the fault notification information is generated by the transmitting node according to an address saved in the transit node, The encapsulating node stops the encapsulation of the information of the IOAM packet; S3, after the protection node completes the protection switching or the route re-convergence, sends the recovery notification information to the encapsulating node; wherein the recovery notification information is the transit node Generating information for instructing the encapsulating node to recover a new IOAM message according to the address saved in the transit node.
第七实施例Seventh embodiment
本公开的实施例还提供了一种存储介质,该存储介质包括存储的程序,其中,上述程序运行时可以执行上述任一项所述报文的封装方法。The embodiment of the present disclosure further provides a storage medium, where the storage medium includes a stored program, wherein the program may perform the encapsulation method of the message according to any one of the above items.
可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:S1,封装节点在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;S2,所述封装节点接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;S3,所述封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。Optionally, in this embodiment, the foregoing storage medium may be configured to store program code for performing the following steps: S1, the encapsulating node adds the address information of the encapsulation node in an in-band operation management and maintenance IOAM message, And sending the IOAM message to the transmitting node; S2, the encapsulating node receives the fault notification information sent by the transmitting node, and stops encapsulating the IOAM packet according to the fault notification information; S3, the encapsulating node receives Recovering the notification information sent by the node, and recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are addresses that are saved by the transmission node according to the transmission node Generated information.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(Read-Only Memory,简称为ROM)、随机存取存储器(Random Access Memory,简称为RAM)、移动硬盘、磁碟或者光盘等各种可以存储程序代码的介质。Optionally, in the embodiment, the foregoing storage medium may include, but is not limited to, a USB flash drive, a Read-Only Memory (ROM), and a Random Access Memory (RAM). A variety of media that can store program code, such as a hard disk, a disk, or an optical disk.
本公开的实施例还提供了一种处理器,该处理器设置为运行程序,其中,该程序运行时可以执行上述任一项方法中的步骤。Embodiments of the present disclosure also provide a processor configured to execute a program, wherein the program can execute the steps of any of the above methods when executed.
可选地,在本实施例中,上述程序用于执行以下步骤:S1,封装节点在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;S2,所述封装节点接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;S3,所述封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。Optionally, in this embodiment, the foregoing procedure is used to perform the following steps: S1: The encapsulating node adds the address information of the encapsulating node to the in-band operation management and maintenance IOAM message, and sends the IOAM report to the transmitting node. S2, the encapsulating node receives the failure notification information sent by the transmission node, and stops encapsulating the IOAM message according to the failure notification information; S3, the encapsulating node receives the recovery notification information sent by the transmission node, and And recovering the encapsulated new IOAM message according to the recovery notification information; wherein the failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
可选地,本实施例中的可选示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For an alternative example in this embodiment, reference may be made to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
通过本公开实施例,由于传输节点能够根据封装节点的地址信息,在传输路径发生故障以及路径恢复的情况下,生成相应的通知信息,从而使得封装路径能够根据通知的信息,进行相应的封装操作。因此,可以避免由于带内操作管理维护IOAM报文的传输路径发生变化所导致的IOAM报文封装不再适用情形,从而实现了在IOAM报文的传输路径变化时,能够及时调整IOAM报文的封装,增强了IOAM报文封装效率和适用范围的效果。According to the embodiment of the present disclosure, the transmission node can generate the corresponding notification information according to the address information of the encapsulation node, in the case that the transmission path fails and the path is restored, so that the encapsulation path can perform the corresponding encapsulation operation according to the notified information. . Therefore, it is possible to prevent the IOAM packet encapsulation from being changed due to the change of the transmission path of the in-band operation management and maintenance IOAM packet, so that the IOAM packet can be adjusted in time when the transmission path of the IOAM packet changes. Encapsulation enhances the efficiency and scope of IOAM packet encapsulation.
本领域的技术人员可以明白,上述的本公开的模块或步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成不同集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本公开实施例的实现不限制于任何特定的硬件和软件结合。Those skilled in the art will appreciate that the above-described modules or steps of the present disclosure may be implemented by a general-purpose computing device, which may be centralized on a single computing device or distributed over a network of multiple computing devices, optionally They may be implemented by program code executable by the computing device such that they may be stored in the storage device for execution by the computing device and, in some cases, may be performed in a different order than that illustrated herein. Or the steps described, either as separate circuit modules, or as a single integrated circuit module. As such, implementations of the embodiments of the present disclosure are not limited to any particular combination of hardware and software.
本领域普通技术人员可以理解,上文中所公开方法中的全部或某些步骤、系统、装置中的功能模块/单元可以被实施为软件、固件、硬件及其适当的组合。在硬件实施方式中,在以上描述中提及的功能模块/单元之间的划分不一定对应于物理组件的划分;例如,一个物理组件可以具有多个功能,或者一个功能或步骤可以由若干物理组件合作执行。某些组件或所有组件可以被实施为由处理器,如数字信号处理器或微处理器执行的软件,或者被实施为硬件,或者被实施为集成电路,如专用集成电路。这样的软件可以分布在计算机可读介质上,计算机可读介质可以包括计算机存储介质(或非暂时性介质)和通信介质(或暂时性介质)。如本领域普通技术人员公知的,术语计算机存储介质包括在用于存储信息(诸如计算机可读指令、数据结构、程序模块或其他数据)的任何方法或技术中实施的易失性和非易失性、可移除和不可移除介质。计算机存储介质包括但不限于随机存取存储器(RAM,Random Access Memory)、只读存储器(ROM,Read-Only Memory)、电可擦除只读存储器(EEPROM,Electrically Erasable Programmable Read-only Memory)、闪存或其他存储器技术、光盘只读存储器(CD-ROM,Compact Disc Read-Only Memory)、数字多功能盘(DVD)或其他光盘存储、磁盒、磁带、磁盘存储或其他磁存储装置、或者可以用于存储期望的信息并且可以被计算机访问的任何其他的介质。此外,本领域普通技术人员公知的是,通信介质通常包含计算机可读指令、数据结构、程序模块或者诸如载波或其他传输机制之类的调制数据信号中的其他数据,并且可包括任何信息递送介质。Those of ordinary skill in the art will appreciate that all or some of the steps, systems, and functional blocks/units of the methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be composed of several physical The components work together. Some or all of the components may be implemented as software executed by a processor, such as a digital signal processor or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer readable medium, which may include computer storage media (or non-transitory media) and communication media (or transitory media). As is well known to those of ordinary skill in the art, the term computer storage medium includes volatile and nonvolatile, implemented in any method or technology for storing information, such as computer readable instructions, data structures, program modules or other data. Sex, removable and non-removable media. Computer storage media include, but are not limited to, Random Access Memory (RAM), Read-Only Memory (ROM), and Electrically Erasable Programmable Read-only Memory (EEPROM). Flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical disc storage, magnetic cassette, magnetic tape, disk storage or other magnetic storage device, or Any other medium used to store the desired information and that can be accessed by the computer. Moreover, it is well known to those skilled in the art that communication media typically includes computer readable instructions, data structures, program modules, or other data in a modulated data signal, such as a carrier wave or other transport mechanism, and can include any information delivery media. .
本领域的普通技术人员可以理解,可以对本公开的技术方案进行修改或者等同替换,而不脱离本公开技术方案的精神和范围,均应涵盖在本公开的权利要求范围当中。A person skilled in the art can understand that the technical solutions of the present disclosure may be modified or equivalent, without departing from the spirit and scope of the present disclosure, and should be included in the scope of the claims of the present disclosure.

Claims (18)

  1. 一种报文的处理方法,其特征在于,包括:A method for processing a message, comprising:
    传输节点接收带内操作管理维护IOAM报文,并保存所述IOAM报文中封装节点的地址;The transmitting node receives the in-band operation management and maintenance IOAM message, and saves the address of the encapsulation node in the IOAM message;
    在所述传输节点检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;And sending, to the encapsulating node, failure notification information, where the transmission node detects that the current network is faulty, where the failure notification information is generated by the transmission node according to an address saved in the transmission node. Instructing the encapsulating node to stop encapsulating the information of the IOAM packet;
    在所述传输节点完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。After the protection node completes protection switching or route re-convergence, sending, to the encapsulating node, recovery notification information, where the recovery notification information is generated by the transmitting node according to an address saved in the transmission node. The encapsulating node recovers information for encapsulating new IOAM messages.
  2. 根据权利要求1所述的方法,其特征在于,在所述传输节点接收IOAM报文并保存所述IOAM报文中封装节点的地址之后,包括:The method according to claim 1, wherein after the transmitting node receives the IOAM message and saves the address of the encapsulating node in the IOAM message, the method includes:
    所述传输节点判断是否在预置的老化时间内接收到新的包含所述保存的地址的IOAM报文;Determining, by the transmitting node, whether a new IOMAM message including the saved address is received within a preset aging time;
    在判断结果为否的情况下,所述传输节点删除所述保存的地址。In the case where the determination result is no, the transmission node deletes the saved address.
  3. 根据权利要求1或2所述的方法,其特征在于,向所述封装节点发送所述恢复通知信息,还包括:The method according to claim 1 or 2, wherein the sending the recovery notification information to the encapsulating node further comprises:
    指示所述封装节点获取所述新的IOAM报文中的IOAM数据内容,其中所述IOAM数据内容包括:与新路径关联的IOAM数据内容;Instructing the encapsulating node to acquire IOAM data content in the new IOAM message, where the IOAM data content includes: IOAM data content associated with the new path;
    指示所述封装节点根据所述IOAM数据内容,对所述新的IOAM报文进行封装。Instructing the encapsulating node to encapsulate the new IOAM message according to the content of the IOAM data.
  4. 根据权利要求1至3任一项所述的方法,其特征在于,所述故障通知信息被设置在指定报文中未被规定的类型和代码值中,所述指定报文包括以下其中之一:互联网控制消息协议ICMP报文,标签交换路径回显LSP Ping报文,以及以太网操作管理维护Ethernet OAM报文。The method according to any one of claims 1 to 3, wherein the failure notification information is set in an unspecified type and code value in a specified message, the specified message including one of the following : Internet control message protocol ICMP packet, label switching path to echo LSP ping packet, and Ethernet operation management to maintain Ethernet OAM packet.
  5. 根据权利要求4所述的方法,其特征在于,所述恢复通知信息被设置 在所述指定报文中未被规定的类型和代码值中。The method according to claim 4, wherein said restoration notification information is set in a type and code value that is not specified in said designated message.
  6. 根据权利要求1至5任一项所述的方法,所述故障通知信息中携带一组目的地址,其中,所述目的地址用于指示去往该目的地址的业务数据报文的传输路径发生故障。The method according to any one of claims 1 to 5, wherein the fault notification information carries a set of destination addresses, wherein the destination address is used to indicate that the transmission path of the service data packet destined for the destination address is faulty. .
  7. 一种报文的封装方法,其特征在于,包括:A packet encapsulation method, comprising:
    封装节点在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;The encapsulating node adds the address information of the encapsulating node to the in-band operation management and maintenance IOAM packet, and sends the IOAM packet to the transit node;
    所述封装节点接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;Receiving, by the encapsulating node, the fault notification information sent by the transit node, and stopping encapsulating the IOAM packet according to the fault notification information;
    所述封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;Receiving, by the encapsulating node, the recovery notification information sent by the transit node, and recovering the encapsulated new IOAM packet according to the recovery notification information;
    其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  8. 根据权利要求7所述的方法,其特征在于,根据所述恢复通知信息恢复封装新的IOAM报文,包括:The method according to claim 7, wherein the recovering the new IOAM message according to the recovery notification information comprises:
    所述封装节点获取所述新的IOAM报文中的IOAM数据内容,其中所述IOAM数据内容包括:与新路径关联的IOAM数据内容;The encapsulating node acquires IOAM data content in the new IOAM message, where the IOAM data content includes: IOAM data content associated with the new path;
    所述封装节点根据所述IOAM数据内容,对所述新的IOAM报文进行封装。The encapsulating node encapsulates the new IOAM packet according to the content of the IOAM data.
  9. 根据权利要求7或8所述的方法,其特征在于,所述封装节点的地址信息包括以下其中之一:所述封装节点的地址类型信息以及用于指示所述传输节点向所述封装节点发送信息的地址。The method according to claim 7 or 8, wherein the address information of the encapsulation node comprises one of: address type information of the encapsulation node and an indication for the transmission node to send to the encapsulation node The address of the message.
  10. 根据权利要求7至9任一项所述的方法,所述封装节点接收到传输节点发送的故障通知信息中携带一组目的地址,并根据所述故障通知信息停止封装去往所述一组目的地址的所述IOAM报文。The method according to any one of claims 7 to 9, wherein the encapsulating node receives the failure notification information sent by the transmission node, carries a set of destination addresses, and stops encapsulation to the group of destinations according to the failure notification information. The IOAM message of the address.
  11. 一种报文的处理装置,位于传输节点,其特征在于,包括:A packet processing device is located at a transmission node, and includes:
    接收模块,设置为:接收带内操作管理维护IOAM报文,并保存所述 IOAM报文中封装节点的地址;The receiving module is configured to: receive an in-band operation management and maintenance IOAM message, and save an address of the encapsulation node in the IOAM message;
    第一发送模块,设置为:检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,其中,所述故障通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点停止封装所述IOAM报文的信息;The first sending module is configured to: when detecting that the current network is faulty, send fault notification information to the encapsulating node, where the fault notification information is generated by the transmitting node according to an address saved in the transit node Information for instructing the encapsulating node to stop encapsulating the IOAM message;
    第二发送模块,设置为:在完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;其中,所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的用于指示所述封装节点恢复封装新的IOAM报文的信息。The second sending module is configured to: after completing the protection switching or the route re-convergence, sending the recovery notification information to the encapsulating node; wherein the recovery notification information is generated by the transmitting node according to the address saved in the transmitting node The information indicating that the encapsulating node recovers a new IOAM message is encapsulated.
  12. 根据权利要求11所述的装置,其特征在于,所述装置还包括:The device according to claim 11, wherein the device further comprises:
    判断模块,判断是否在预置的老化时间内接收到新的包含所述保存的地址的IOAM报文;在判断结果为否的情况下,所述传输节点删除所述保存的地址。The determining module determines whether a new IOAM message including the saved address is received within the preset aging time; if the determination result is no, the transmitting node deletes the saved address.
  13. 一种报文的封装装置,其特征在于,包括:A packet encapsulating device, comprising:
    发送模块,设置为:在带内操作管理维护IOAM报文中添加所述封装节点的地址信息,并向传输节点发送所述IOAM报文;The sending module is configured to: add the address information of the encapsulating node to the in-band operation management and maintenance IOAM message, and send the IOAM message to the transmitting node;
    第一接收模块,设置为:接收到传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文;The first receiving module is configured to: receive the fault notification information sent by the transit node, and stop encapsulating the IOAM packet according to the fault notification information;
    第二接收模块,设置为:封装节点接收到传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;The second receiving module is configured to: the encapsulating node receives the recovery notification information sent by the transit node, and recovers the encapsulated new IOAM packet according to the recovery notification information;
    其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  14. 一种报文的封装系统,包括传输节点和封装节点,其特征在于,A packet encapsulation system, including a transmission node and a package node, wherein
    所述传输节点,设置为:接收所述封装节点发送的带内操作管理维护IOAM报文并保存所述IOAM报文中封装节点的地址,并在检测到当前网络发生故障的情况下,向所述封装节点发送故障通知信息,以及在完成保护倒换或者路由重收敛后,向所述封装节点发送恢复通知信息;The transmitting node is configured to: receive an in-band operation management and maintenance IOAM message sent by the encapsulating node, and save an address of the encapsulating node in the IOAM packet, and if it detects that the current network is faulty, The encapsulating node sends the failure notification information, and after completing the protection switching or the route re-convergence, sending the recovery notification information to the encapsulating node;
    所述封装节点,设置为:在所述IOAM报文中添加所述封装节点的地址 信息,并向所述传输节点发送所述IOAM报文;接收到所述传输节点发送的故障通知信息,并根据所述故障通知信息停止封装所述IOAM报文,以及接收到所述传输节点发送的恢复通知信息,并根据所述恢复通知信息恢复封装新的IOAM报文;The encapsulating node is configured to: add the address information of the encapsulating node to the IOAM packet, and send the IOAM packet to the transmitting node; receive the fault notification information sent by the transmitting node, and And stopping to encapsulate the IOAM packet according to the fault notification information, and receiving the recovery notification information sent by the transit node, and recovering the encapsulated new IOAM packet according to the recovery notification information;
    其中,所述故障通知信息和所述恢复通知信息是所述传输节点根据所述传输节点中保存的地址生成的信息。The failure notification information and the recovery notification information are information generated by the transmission node according to an address saved in the transmission node.
  15. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求1至6中任一项所述的方法。A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is executed to perform the method of any one of claims 1 to 6.
  16. 一种存储介质,其特征在于,所述存储介质包括存储的程序,其中,所述程序运行时执行权利要求7至10中任一项所述的方法。A storage medium, characterized in that the storage medium comprises a stored program, wherein the program is executed to perform the method of any one of claims 7 to 10.
  17. 一种处理器,其特征在于,所述处理器设置为运行程序,其中,所述程序运行时执行权利要求1至6中任一项所述的方法。A processor, wherein the processor is configured to run a program, wherein the program is executed to perform the method of any one of claims 1 to 6.
  18. 一种处理器,其特征在于,所述处理器设置为运行程序,其中,所述程序运行时执行权利要求7至10中任一项所述的方法。A processor, wherein the processor is configured to run a program, wherein the program is executed to perform the method of any one of claims 7 to 10.
PCT/CN2018/116212 2018-03-01 2018-11-19 Message processing method and apparatus, and message encapsulating method, apparatus and system WO2019165803A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810172672.9A CN110224916B (en) 2018-03-01 2018-03-01 Message processing method and device and message packaging method, device and system
CN201810172672.9 2018-03-01

Publications (1)

Publication Number Publication Date
WO2019165803A1 true WO2019165803A1 (en) 2019-09-06

Family

ID=67804804

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116212 WO2019165803A1 (en) 2018-03-01 2018-11-19 Message processing method and apparatus, and message encapsulating method, apparatus and system

Country Status (2)

Country Link
CN (1) CN110224916B (en)
WO (1) WO2019165803A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992497A (en) * 2021-11-03 2022-01-28 烽火通信科技股份有限公司 IOAM measurement calculation method, device, equipment and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115396308A (en) * 2022-07-27 2022-11-25 阿里巴巴(中国)有限公司 System, method and device for maintaining network stability of data center

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848775A (en) * 2005-09-30 2006-10-18 华为技术有限公司 Multi-jumping pseudo-line fault detecting reporting and maintenance protocol controlling method
CN101610239A (en) * 2008-06-20 2009-12-23 上海未来宽带技术及应用工程研究中心有限公司 The devices and methods therefor of OMA in GEPON, realizing being with between OLT and the ONU
WO2017070023A1 (en) * 2015-10-20 2017-04-27 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101179479A (en) * 2006-11-09 2008-05-14 华为技术有限公司 Method, system and node for transmitting operation management and maintenance packet of ethernet
CN101997747B (en) * 2009-08-21 2014-12-10 中兴通讯股份有限公司 Method and device for announcing fault LSP information
WO2013122519A1 (en) * 2012-02-16 2013-08-22 Telefonaktiebolaget Lm Ericsson (Publ) An optical network terminal and a method therein for maintenance of the same
US20150124626A1 (en) * 2013-11-05 2015-05-07 Electronics And Telecommunications Research Institute Method of supporting in-band operations, administration and maintenance (oam) for point-to-multipoint (p2mp) data transfer in multi-protocol label switching-transport profile (mpls-tp) network

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848775A (en) * 2005-09-30 2006-10-18 华为技术有限公司 Multi-jumping pseudo-line fault detecting reporting and maintenance protocol controlling method
CN101610239A (en) * 2008-06-20 2009-12-23 上海未来宽带技术及应用工程研究中心有限公司 The devices and methods therefor of OMA in GEPON, realizing being with between OLT and the ONU
WO2017070023A1 (en) * 2015-10-20 2017-04-27 Cisco Technology, Inc. Triggered in-band operations, administration, and maintenance in a network environment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
"draft-brockners-inband-oam-transport-05", IETF, 2 July 2017 (2017-07-02) *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113992497A (en) * 2021-11-03 2022-01-28 烽火通信科技股份有限公司 IOAM measurement calculation method, device, equipment and storage medium
CN113992497B (en) * 2021-11-03 2023-05-26 烽火通信科技股份有限公司 IOAM measurement calculation method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN110224916A (en) 2019-09-10
CN110224916B (en) 2021-10-26

Similar Documents

Publication Publication Date Title
CN110034971B (en) Method and device for detecting service chain
US8374164B2 (en) Detection of specific BFD path failures
CN108964943B (en) Method and device for realizing IOAM packaging
US8982710B2 (en) Ethernet operation and maintenance (OAM) with flexible forwarding
US7747716B2 (en) Injecting addresses to enable OAM functions
WO2018054397A1 (en) Service function chain detection path method and device
US11177976B2 (en) Method and device for automatically implementing IOAM encapsulation and storage medium
JP2013070381A (en) Ethernet oam at intermediate nodes in pbt network
CN102868569B (en) The method for testing performance of Layer3 Virtual Private Network, node and system
WO2017036180A1 (en) Packet processing method and device
CN103580894A (en) Method, device and system for operation, administration and maintenance (OAM) configuration
EP4207685A1 (en) Message header processing method and apparatus, storage medium and electronic device
CN102571601A (en) Method for ensuring bidirectional forwarding detection reliability and label switching path equipment
WO2015184771A1 (en) Method and node device for operation, administration, and maintenance of service function chaining
CN101826990A (en) Method, device and system for detecting connectedness of virtual pseudo wires
JP2021525496A (en) Network communication method and equipment
WO2016050177A1 (en) Pmtu determination method, network device and system
US11456943B2 (en) Packet transmission method and apparatus
EP3407544B1 (en) Fault-tolerant monitoring of tunneled ip flows
WO2019165803A1 (en) Message processing method and apparatus, and message encapsulating method, apparatus and system
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
US20080267080A1 (en) Fault Verification for an Unpaired Unidirectional Switched-Path
US7869350B1 (en) Method and apparatus for determining a data communication network repair strategy
CN102769552A (en) Method and apparatus for transmitting BFD (bidirectional forwarding detection) message during LSP (label switched path) detection by BFD
CN116192995A (en) Message processing method, device and system

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 21/01/2021)

122 Ep: pct application non-entry in european phase

Ref document number: 18907533

Country of ref document: EP

Kind code of ref document: A1