WO2015149353A1 - 一种oam报文处理方法、网络设备和网络系统 - Google Patents

一种oam报文处理方法、网络设备和网络系统 Download PDF

Info

Publication number
WO2015149353A1
WO2015149353A1 PCT/CN2014/074808 CN2014074808W WO2015149353A1 WO 2015149353 A1 WO2015149353 A1 WO 2015149353A1 CN 2014074808 W CN2014074808 W CN 2014074808W WO 2015149353 A1 WO2015149353 A1 WO 2015149353A1
Authority
WO
WIPO (PCT)
Prior art keywords
oam
packet
message
forwarding
reply
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
PCT/CN2014/074808
Other languages
English (en)
French (fr)
Inventor
梁剑耀
罗会斌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201480000456.6A priority Critical patent/CN105308904B/zh
Priority to PCT/CN2014/074808 priority patent/WO2015149353A1/zh
Priority to EP14887910.9A priority patent/EP3116160B1/en
Publication of WO2015149353A1 publication Critical patent/WO2015149353A1/zh
Priority to US15/284,696 priority patent/US10116546B2/en
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/18Protocol analysers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/10Active monitoring, e.g. heartbeat, ping or trace-route
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0817Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking functioning
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0876Network utilisation, e.g. volume of load or congestion level
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability
    • H04L43/0811Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability by checking connectivity

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to an OAM packet processing method, a network device, and a network system.
  • the management of the network is generally divided into three categories: Operation, Administration, and Maintenance.
  • OAM The main functions of OAM include OAM capability negotiation, link connectivity monitoring and path tracking, fault indication, loopback test, and delay packet loss rate.
  • OAM packets are generally transmitted using a special Ethernet type, a destination MAC (Media Access Control) address, or a port (Port) for OAM detection.
  • Ethernet OAM technology can effectively improve the management and maintenance capabilities of Ethernet and ensure stable operation of the network.
  • Ethernet OAM technology is implemented hierarchically and is divided into the following two levels:
  • Link-level Ethernet OAM technology It is used to monitor the link status between the user network and the carrier network.
  • the typical protocol is EFM 0 AM (Ethernet in the First Mile OAM).
  • the EFM OAM message uses a special destination MAC address and a specified Ethernet protocol type.
  • Network-level Ethernet OAM technology It is applied to the access aggregation layer of the network to monitor the connectivity of the entire network and locate connectivity faults of the network.
  • the typical protocol is the CFM (Connected Fault Management) protocol.
  • EtherType Ethernet protocol type 0x8902
  • CFM OAM packets use the specified Ethernet protocol type.
  • BFD Bidirectional Forwarding Detection
  • the OAM packet uses a special destination port number to implement OAM detection.
  • the EFM OAM packet uses a special EtherType and a destination MAC address.
  • the CFM OAM packet uses a special EtherType.
  • the BFD packet uses a special destination port number, which means that the ETH OAM packet and the service packet have Different EtherTypes and destination MAC addresses, CFM OAM packets and service packets have different EtherTypes. BFD packets and service packets have different destination port numbers. If the network device matches EtherType, destination MAC address, or destination for service packets.
  • Openflow is a protocol for implementing Software Defined Network (SDN).
  • SDN Software Defined Network
  • the OpenFlow network implements the separation of the data forwarding layer and the control layer.
  • the OpenFlow switch is responsible for data forwarding. After receiving the data packet, the OpenFlow switch matches the flow entry in the flow table. The flow entry is used to indicate the switch processing method for the data packet. The data packet is forwarded according to the matching flow entry.
  • OpenFlow switches have multiple matching domains that can be flexibly combined, making this problem more probable.
  • the embodiment of the invention provides an OAM packet processing method, a network device and a network system, which can improve the capability of OAM method fault detection.
  • a first aspect of the present invention provides an OAM packet processing method, where the method includes:
  • the first IP packet includes an OAM packet
  • the IP packet header of the OAM packet includes first OAM information
  • the first OAM information includes a first source device ID and a first sink device ID
  • the second OAM information includes a second source device ID and a second sink device ID, where the second source device ID is an ID of the local network device, and the second sink device ID and the first A source device ID is the same.
  • the method before the returning the second IP packet, the method further includes:
  • the returning the second IP packet is specifically: if the predetermined reply condition is met, returning the second IP packet, where the second OAM information further includes a second packet type, the second packet The file type is 0 AM to detect a reply message;
  • the first OAM information further includes a first packet type
  • the predetermined reply condition includes: the first sink device ID is the same as the ID of the local network device, and the first packet type is OAM. Detect the message.
  • the method further includes:
  • the method before the forwarding the OAM packet, the method further includes:
  • the first OAM information further includes a first forwarding count value
  • the predetermined forwarding condition includes: the first forwarding counter value is greater than a predetermined first threshold, and the first sink device ID is not an ID of the local network device;
  • the forwarding of the OAM packet includes: subtracting the first forwarding counter value by a fixed value, and forwarding the OAM packet.
  • a second aspect of the present invention provides a network device, including:
  • a receiving unit configured to receive a first IP packet, where the first IP packet includes an OAM packet, where
  • the IP packet header of the OAM packet includes the first OAM information, and the first OAM information includes the first source device ID and the first sink device ID.
  • a reply unit configured to return a second IP packet, and reply to the OAM packet, where the second
  • the IP packet includes an OAM reply packet, and the IP packet header of the OAM reply packet includes second OAM information corresponding to the first OAM information, and the second OAM information includes the second source device.
  • An ID a second sink device ID, where the second source device ID is an ID of the local network device, and the second sink device ID is the same as the first source device ID.
  • the network device further includes:
  • the second OAM information further includes a second packet type, where the second packet type is an OAM detection response packet;
  • the first OAM information further includes a first packet type, where the predetermined reply condition includes: the first sink device ID is the same as the ID of the local network device, and the first packet type is
  • OAM detects packets.
  • the network device further includes:
  • a forwarding unit configured to: when the OAM message does not meet the predetermined reply condition,
  • OAM packets are forwarded.
  • the network device further includes:
  • a second determining unit configured to determine whether the OAM packet meets a predetermined forwarding condition;
  • the forwarding unit is configured to forward the OAM packet when the OAM packet meets the predetermined forwarding condition.
  • the first OAM information further includes a first forwarding count value
  • the predetermined forwarding condition includes: the first forwarding count value is greater than a predetermined first threshold, and the first sink device ID is not an ID of a local network device;
  • the forwarding unit is specifically configured to: subtract the first forwarding counter value by a fixed value, and forward the OAM packet.
  • a third aspect of the present invention provides a network device, including: a processor and a memory connected to a bus, where:
  • the memory is configured to store an execution instruction
  • the processor is configured to communicate with the memory, and executing the execution instruction causes the network device to perform the following method:
  • the first IP packet includes an OAM packet
  • the IP packet header of the OAM packet includes first OAM information
  • the first OAM information includes a first source device ID and a first sink device ID
  • the second OAM information includes a second source device ID, a second sink device ID, and a second packet type, where the second source device ID is an ID of the local network device, and the second sink The device ID is the same as the first source device ID.
  • the method before the returning the second IP packet, the method further includes:
  • the returning the second IP packet is specifically: if the predetermined reply condition is met, returning the second IP packet, where the second OAM information further includes a second packet type, the second packet The file type is 0 AM to detect a reply message;
  • the first OAM information further includes a first packet type, where the predetermined reply condition includes: the first sink device ID is the same as the ID of the local network device, and the first packet type is OAM detects packets.
  • the method further includes:
  • the method before the forwarding the OAM packet, the method further includes:
  • the first OAM information further includes a first forwarding count value
  • the predetermined forwarding condition includes: the first forwarding counter value is greater than a predetermined first threshold, and the first sink device ID is not an ID of the local network device;
  • the forwarding of the OAM packet includes: subtracting the first forwarding counter value by a fixed value, and forwarding the OAM packet.
  • a fourth aspect of the present invention provides a network system, the system comprising at least two network devices as described in any one of the possible embodiments of the second aspect.
  • the IP packet header of the OAM packet carries the OAM information, and the OAM packet does not use a special Ethernet protocol type or a special destination MAC address or a special destination port number, OAM.
  • the IP packets of the packets in the link layer, the network layer, the transport layer, and the application layer are consistent with the IP packets of the service packets.
  • OAM packets and services are forwarded on the forwarding path (such as switches and routers).
  • the packets are transmitted through the same forwarding entry. If the forwarding entry related to the service packet is incorrect, the OAM packet and the service packet will be faulty.
  • the OAM mechanism can quickly detect the fault.
  • the prior art can improve the ability of OAM method for fault detection.
  • FIG. 1 is a schematic diagram of a network device connection in a network system according to an embodiment of the present invention
  • FIG. 2 is a first schematic diagram of a method for processing an OAM packet according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an OAM packet according to an embodiment of the present invention
  • FIG. 4 is a third schematic diagram of a flow of a method for processing an OAM packet according to an embodiment of the present invention
  • FIG. 5 is a first schematic diagram of a structure of a network device according to an embodiment of the present invention
  • FIG. 6 is a second schematic diagram of a structure of a network device according to an embodiment of the present disclosure.
  • FIG. 7 is a third schematic diagram of a structure of a network device according to an embodiment of the present disclosure.
  • FIG. 8 is a fourth schematic diagram of a structure of a network device according to an embodiment of the present disclosure.
  • FIG. 9 is a fifth schematic diagram of a structure of a network device according to an embodiment of the present disclosure.
  • FIG. 10 is a sixth schematic diagram of a structure of a network device according to an embodiment of the present disclosure.
  • FIG. 11 is a seventh schematic diagram of a structure of a network device according to an embodiment of the present invention. detailed description
  • FIG. 1 is a schematic diagram of a network system according to an embodiment of the present invention.
  • the network system in the figure may include at least two network devices connected in communication, wherein the at least two network devices may be
  • the network device with the same function can implement the functions of initiating, receiving, forwarding, and replying of the OAM session (message). Of course, some of the network devices can also support only the partial AU session function.
  • the network devices mentioned may include network devices such as switches and routers.
  • 2 is a schematic flowchart of a method for processing an OAM packet according to an embodiment of the present invention.
  • the method for processing the OAM packet may be any possible network device in the foregoing network system. As shown in FIG. 2, the method is as shown in FIG. Can include:
  • the first IP packet is received, where the first IP packet includes an OAM packet, and the IP packet header of the OAM packet includes the first OAM information.
  • the first OAM information may include a first source device ID and a first sink device ID.
  • the OAM reply packet where the IP packet header of the OAM reply packet includes the second 0 AM information corresponding to the first OAM information;
  • the second OAM information may include a second source device ID and a second sink device ID, where the second source device ID is an ID of the local network device, and the second sink device ID is the same as the first source device ID.
  • the local network device may refer to a network device that performs the foregoing method. When a network device performs the foregoing method, it may be considered as a local network device.
  • the OAM information of the OAM packet is filled in the IP packet header to carry the OAM information by using the IP packet, and the OAM packet does not use a special Ethernet protocol type or a special destination MAC address or a special The destination port number, so that the IP packets of the OAM packets are consistent with the IP packets carrying the service packets on the link layer, the network layer, the transport layer, and the application layer, on the forwarding path (such as switches and routers).
  • the OAM packet and the service packet pass the same forwarding entry. If the forwarding entry related to the service packet is incorrect, the OAM packet and the service packet will be faulty.
  • the OAM mechanism can be used quickly. The failure is detected, and the defects of the prior art are overcome, thereby improving the ability of the OAM method for fault detection.
  • FIG. 3 is a schematic flowchart of another OAM packet processing method according to an embodiment of the present invention. As shown in FIG. 3, the method may include:
  • the first IP packet is received, where the first IP packet includes an OAM packet, and the IP packet header of the OAM packet includes the first OAM information.
  • the first OAM information may include a first source device ID, a first sink device ID, and a first packet. Types of;
  • the IP packet header has a plurality of optional options, and the optional domain is used to carry the first 0AM information, that is, the optional domain of the IP packet header of the 0AM packet includes the first OAM information;
  • the foregoing predetermined reply condition may include: the first sink device ID is the same as the ID of the local network device, and the first packet type is a 0AM detection packet;
  • the 0AM detection packet may include: a connectivity detection packet, a bidirectional delay detection packet, a loopback detection packet, a tracking detection packet, a packet loss detection packet, and the like;
  • the second OAM information may include a second source device ID, a second sink device ID, and a second packet type, where the second source device ID is an ID of the local network device, and the second sink device ID is the foregoing
  • the first source device ID is the same, and the second packet type is 0AM detection reply message;
  • the OAM detection response packet may include an OAM packet such as a connectivity detection response packet, a two-way delay detection response packet, a loopback detection response packet, a tracking detection response packet, and a packet loss detection response packet.
  • OAM packet such as a connectivity detection response packet, a two-way delay detection response packet, a loopback detection response packet, a tracking detection response packet, and a packet loss detection response packet.
  • the second packet type is corresponding to the first packet type, for example, the first packet type is a loopback detection packet, and the second packet type is a loopback detection response packet;
  • FIG. 4 is a schematic flowchart of another 0AM packet processing method according to an embodiment of the present invention. As shown in FIG. 4, the method may include:
  • the first IP packet is received, where the first IP packet includes a 0AM packet, and the IP packet header of the 0AM packet includes the first 0AM information.
  • the first 0AM information may include a first source device ID, a first sink device ID, a first packet type, and a first forwarding count value;
  • the first IP packet received by the local network device in the foregoing 402 may be from an OAM detection session initiated by one of the network devices in the network system, when the network device initiates the 0AM detection session. Fill the OAM information in the IP packet header of the OAM packet.
  • the foregoing predetermined reply condition may include: the first sink device ID is the same as the ID of the local network device, and the first packet type is an OAM detection packet;
  • the foregoing predetermined reply condition may further include: the first forwarding count value is less than or equal to a predetermined first threshold, and the OAM packet is a tracking packet;
  • the OAM detection packet may include: a connectivity detection packet, a bidirectional delay detection packet, a loopback detection packet, a tracking detection packet, a packet loss detection packet, and the like;
  • the OAM reply message, the IP packet header of the OAM reply message includes the second OAM information corresponding to the first OAM information;
  • the second OAM information may include a second source device ID, a second sink device ID, a second packet type, and a second forwarding count value, where the second source device ID is an ID of the local network device, where the foregoing
  • the second sink device ID is the same as the first source device ID
  • the second packet type is an OAM detection reply message
  • the second forwarding count value may be a predetermined initial value (for example, but not limited to 255);
  • the OAM detection response packet may include an OAM packet such as a connectivity detection response packet, a two-way delay detection response packet, a loopback detection response packet, a tracking detection response packet, and a packet loss detection response packet.
  • OAM packet such as a connectivity detection response packet, a two-way delay detection response packet, a loopback detection response packet, a tracking detection response packet, and a packet loss detection response packet.
  • the second packet type is corresponding to the first packet type, for example, the first packet type is a loopback detection packet, and the second packet type is a loopback detection response packet;
  • the foregoing predetermined forwarding condition may include: the first forwarding count value is greater than a predetermined first threshold, and the first sink device ID is not an ID of the local network device;
  • the first threshold may be 0.
  • the first threshold may also be other suitable values, such as 1, 10, etc.;
  • Step 410 Subtracting the first forwarding count value by a fixed value, and forwarding the OAM packet; ending the process;
  • the fixed value subtracted above may be 1, that is, the first forwarding in the OAM information.
  • the forwarding counter value carried in the OAM information is decremented by 1 each time the OAM packet is forwarded by a network device, and can be controlled by setting a combination of the forwarding counter value and the forwarding condition. Number of OAM packets forwarded;
  • the first OAM information may further include a first session identifier, and correspondingly, the second OAM information may also include a second session identifier, where the second session identifier may be the same as the first session identifier;
  • the foregoing reply message confirmation condition may include: the first sink device ID is the same as the local network device ID, the first message type is an OAM detection reply message, and the first session identifier is a session included with the OAM detection message initiated by the local network. The same identifier;
  • the local network device may initiate a detection session and fill the corresponding IP information in the IP packet header of the ⁇ detection message sent by the local network device, where the OAM information may include a session identifier, where the session identifier is used to identify a unique OAM detection session, the local network.
  • the device may record the session identifier of the OAM detection session initiated by the device;
  • the OAM packet of the OAM packet is received, the OAM packet of the OAM packet is verified by the OAM packet. The information is processed accordingly. For example, if the OAM packet is a connectivity check response packet and has not expired, the network can be confirmed to be unobstructed. If the timeout expires, the network congestion or network failure can be confirmed.
  • the foregoing first OAM information may further include information such as an OAM version, an OAM data, and the like, and the local network device may further determine, according to the OAM version included in the first OAM information, whether the OAM packet is supported. , discard OAM packets.
  • FIG. 5 is a schematic structural diagram of a network device according to an embodiment of the present invention. As shown in FIG. 5, the network device 500 may include:
  • the receiving unit 502 is configured to receive a first IP packet, where the first IP packet includes an OAM packet,
  • the IP packet header of the OAM packet includes the first OAM information, and the first OAM information includes the first source device ID and the first sink device ID.
  • the replying unit 504 is configured to return a second IP packet, and reply to the OAM packet, where the second IP packet includes an OAM reply packet, and the IP packet header of the OAM reply packet includes the first OAM information.
  • the second OAM information includes a second source device ID and a second sink device ID, where the second source device ID is an ID of the local network device, and the second sink device ID is configured by using the first source device. The ID is the same.
  • the OAM information of the processed OAM packet is filled in the IP packet header to carry the OAM information by using the IP packet, and the OAM packet does not use a special Ethernet protocol type or a special destination MAC address or a special The destination port number, so that the IP packets of the OAM packets are consistent with the IP packets carrying the service packets on the link layer, the network layer, the transport layer, and the application layer, on the forwarding path (such as switches and routers).
  • the OAM packet and the service packet pass the same forwarding entry. If the forwarding entry related to the service packet is incorrect, the OAM packet and the service packet will be faulty.
  • the OAM mechanism can be used quickly. The failure is detected, and the defects of the prior art are overcome, thereby improving the ability of the OAM method for fault detection.
  • the network device 500 may further include:
  • the first determining unit 503 is configured to determine whether the foregoing OAM message received by the receiving unit 502 meets a predetermined reply condition
  • the replying unit 504 can reply to the OAM packet when the OAM packet meets the predetermined reply condition
  • the foregoing first OAM information may further include a first packet type
  • the foregoing predetermined reply condition may include: the first sink device ID is the same as the ID of the local network device (the network device 500), and the first packet type is an OAM detection message;
  • the OAM detection packet may include: a connectivity detection packet, a bidirectional delay detection packet, a loopback detection packet, a tracking detection packet, a packet loss detection packet, and the like;
  • the second OAM information may also be a second packet type, and the second packet type is an OAM detection response packet;
  • the OAM detection response packet may include a connectivity detection response packet and a two-way delay. Detecting a reply message, a loopback detection reply message, a tracking detection reply message, a packet loss detection reply message, and the like, and the second message type corresponds to the first message type, for example, the first message type.
  • the second packet type is a loopback detection reply packet.
  • the network device 500 may further include a forwarding unit 506, where the forwarding unit 506 may be configured to: when the first determining unit 503 determines that the OAM packet does not meet the predetermined reply condition, The text is forwarded.
  • the first OAM information may further include a first forwarding count value.
  • the second OAM information may also include a second forwarding count value, where the second forwarding count value may be a predetermined initial value, such as 255 or other. The appropriate value.
  • the foregoing predetermined reply condition may further include: the first forwarding count value is less than or equal to a predetermined first threshold, and the OAM packet is a tracking packet;
  • the first threshold may be 0.
  • the first threshold may also be other suitable values, such as 1, 10, and the like.
  • the network device 500 may further include a second determining unit 505, and the second determining unit 505 is configured to determine whether the OAM packet received by the receiving unit 502 meets a predetermined forwarding condition.
  • the forwarding unit 506 can be configured to forward the OAM packet when the OAM packet meets the predetermined forwarding condition.
  • the foregoing predetermined forwarding condition may include: the first forwarding counter value is greater than the predetermined first threshold, and the first sink device ID is not the ID of the local network device.
  • the forwarding unit 506 is specifically configured to: subtract the foregoing first forwarding count value by a fixed value, and forward the OAM packet;
  • the specific value of the foregoing fixed value may be preferably 1, that is, the OAM packet is forwarded once, and the forwarding counter value is decreased by 1.
  • the fixed value may also be other suitable values, which is not specifically limited.
  • the first OAM information further includes a first session identifier
  • the second OAM information may also include a second session identifier, where the second session identifier may be the same as the first session identifier
  • the network device 500 may further include a third determining unit 508 and a processing unit 510, where the third determining unit 508 is configured to determine the foregoing OAM report received by the receiving unit 502. Whether the message satisfies the predetermined reply message confirmation condition, the processing unit 510 is configured to: when the OAM message meets the predetermined reply message confirmation condition, perform corresponding processing on the OAM message, including confirming network patency, network congestion, and network Failure and so on.
  • the foregoing predetermined reply message confirmation condition may include: the first sink device ID is the same as the local network device ID, the first packet type is an OAM detection reply message, and the first session identifier is associated with the local network initiated OAM.
  • the detection message includes the same session identifier.
  • the network device 500 may further include a session initiation unit 501, and the session initiation unit 501 may be configured to initiate an OAM detection session.
  • the session initiating unit 501 may include an OAM packet generating subunit, an OAM packet sending subunit, and a session identifier recording subunit, where the OAM packet generating subunit is configured to generate an OAM detecting packet, where the OAM detecting packet is The IP packet header is filled with the corresponding OAM information, and the OAM information may include a session identifier, where the session identifier is used to identify a unique OAM detection session, and the session identifier record sub-unit may record the session identifier of the OAM detection session initiated by the session initiation unit 501.
  • the first session identifier is compared with the session identifier recorded by the network device 500 to determine whether the OAM packet is a reply to the OAM detection session initiated by the network device 500. If yes, the corresponding information can be processed according to the information fed back by the OAM packet. For example, if the OAM packet is a connectivity check response packet and has not expired, the network can be confirmed to be unobstructed. If the timeout is exceeded, the network congestion can be confirmed. Or network failure.
  • the foregoing first OAM information may further include information such as an OAM version, OAM data, and the like, and the network device 500 may further determine, according to the OAM version included in the first OAM information, whether the supported OAM packet is supported. , discard OAM packets.
  • the network device 600 can include a processor 601 and a memory 603 connected to the bus 602. among them:
  • the above memory 603 can be used to store execution instructions; specifically, the memory 603 can store programs.
  • the program 604 can include program code, where the program code includes an execution instruction.
  • the memory 603 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one disk storage device;
  • the processor 601 can be used to communicate with the memory 603, and execute the above execution instructions to make The network device 600 performs the following methods:
  • the first IP packet includes an OAM packet
  • the IP packet header of the OAM packet includes the first OAM information.
  • the first OAM information may include the first source device ID and the first sink device ID. ;
  • the second OAM information may include a second source device ID and a second sink device ID, where the second source device ID is an ID of the local network device, and the second sink device ID is the same as the first source device ID.
  • the method may further include:
  • the above-mentioned second IP packet is returned to the second IP packet, and the second IP packet is returned to the second IP packet, and the second OAM information includes the second packet type, and the second packet.
  • the type is OAM detection reply message
  • the first OAM information further includes a first packet type
  • the predetermined response condition includes: the first sink device ID is the same as the ID of the local network device, and the first packet type is an OAM detection packet.
  • the method may further include: forwarding the OAM packet if the OAM packet does not meet the predetermined reply condition.
  • the method further includes:
  • the first OAM information further includes a first forwarding count value
  • the foregoing predetermined forwarding condition includes: the first forwarding counter value is greater than a predetermined first threshold, and the first sink device ID is not an ID of the local network device;
  • the foregoing forwarding of the OAM packet includes: subtracting the first forwarding count value by a fixed value, and forwarding the OAM packet.
  • the first OAM information further includes a first session identifier;
  • the method may further include: determining whether the OAM message meets a predetermined reply message confirmation bar. If it is satisfied, the corresponding processing is performed according to the above OAM message;
  • the foregoing reply message confirmation condition may include: the first sink device ID is the same as the local network device ID, the first packet type is an OAM detection reply message, and the first session identifier is generated by the local network and the OAM detection report initiated by the local network.
  • the text includes the same session identifier.
  • the foregoing processor performs the execution of the instructions to cause the network device 600 to perform the method, and the implementation principle and technical effects thereof are similar to those described in the foregoing embodiments. Specific implementation details are not described herein again.
  • the embodiment of the present invention further provides a computer readable medium, which includes a computer-executed instruction, and the computer-executable instruction enables the network device 600 to perform the method described in the embodiment of the present invention, and the implementation principle and technical effect thereof are compared with the previous embodiment. Similar, it will not be described here. And the system is described.
  • the network device S1, the network device S2, the network device S3, and the network device S4 are included, wherein S2 is respectively connected with S1 and S3, and S3 is also connected with S4, and the network device has been connected up and down.
  • the matching traffic forwarding entry of the traffic flow, the uplink and downlink traffic is communicating normally, and now it is necessary to detect in real time whether the communication of the uplink traffic between S1 and S4 is normal, and then initiate a periodic connectivity detection OAM session:
  • the matching forwarding flow entries of the upstream service flow are as follows:
  • the matching forwarding flow entries of the downlink service flow are shown in the following table:
  • S1 fills the OAM information of the connectivity check message in the IP packet header, and sends an IP packet to the S2 through the port 1;
  • the OAM information of the connectivity check packet may include: OAM version (0x01), forwarding count value (255) ), message type (connectivity detection), source device ID (S1), sink device ID (S4), session identifier (0001);
  • the above IP packet also carries the source MAC address (00:1A:CA:00:C5:DC) and the source IP address.
  • destination MAC address (00:1A:CA:00:C5:DA) and destination IP address (192.168.20.35);
  • the S2 After receiving the IP packet, the S2 obtains the connectivity check packet, determines the version of the packet, reduces the forwarding counter value by 1 (becomes 254), and detects that the sink device ID is not S2 (satisfying the forwarding condition). Forwarding the connectivity check packet to S3 through port 3.
  • S3 receives the IP packet, and obtains the connectivity check packet after parsing. It judges that the packet version is supported, reduces the forwarding counter value by 1 (becomes 253), and detects that the sink device ID is not S3 (satisfying the forwarding condition). Forwarding the connectivity check packet to S4 through port 4.
  • the S4 receives the IP packet, and obtains the connectivity check packet after parsing. It judges that the packet version is supported.
  • the forwarding counter value is decremented by 1 (becomes 252), the sink device ID is detected as S4, and the connectivity check packet satisfies the reply.
  • the condition is that the connectivity detection response packet is generated, and the OAM information of the connectivity detection reply packet is filled in the IP packet header, and the IP packet is sent to the S3 through the port 3.
  • the OAM information of the connectivity detection response packet includes: OAM version (0x01), forwarding count value (255), message type (connectivity detection reply), source device ID (S4), sink device ID (S1), session identifier (0001);
  • the S4 needs to reverse the MAC address and IP address of the IP packet, and the connectivity of the detected packet detects the IP packet carrying the source MAC address (00:1A:CA:00:C5:DA) and the source IP address.
  • source MAC address (00:1A:CA:00:C5:DC) and destination IP address
  • the SI receives the IP packet, and obtains the connectivity detection reply packet after parsing, and judges that the version of the packet is supported, and the forwarding counter value is decremented by 1 (becomes 252), and the packet type is detected as the connectivity detection reply packet, and the packet is detected.
  • the device ID is S1
  • the session identifier is consistent with the session identifier of the locally initiated connectivity check packet
  • the connectivity check response packet is a reply packet of the connectivity check packet initiated by the connectivity check packet, and the timeout period is not exceeded.
  • the OAM message processing method, the network device, and the network system provided in this embodiment are used to carry the OAM information of the OAM packet in the IP packet header, and the OAM packet does not use a special one. Ethernet protocol type/special destination MAC address/special destination port number.
  • the IP packets of OAM packets are kept at the link layer, network layer, transport layer, and application layer with IP packets carrying service packets.
  • the OAM packet and the service packet are transmitted on the forwarding path (such as the switch and the router).
  • the OAM packet and the service packet pass the same forwarding entry. If there is an error in the forwarding entry related to the service packet, the OAM packet and the service packet are incorrect. The same failure occurs in the text.
  • the OAM mechanism can quickly detect the fault and overcome the defects of the prior art, thereby improving the ability of the OAM method for fault detection.
  • the foregoing program may be stored in a computer readable storage medium, and the program is executed when executed.
  • the foregoing steps include the steps of the foregoing method embodiments; and the foregoing storage medium includes: a medium that can store program codes, such as a ROM, a RAM, a magnetic disk, or an optical disk.

Landscapes

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

Abstract

一种OAM报文处理方法、网络设备和网络系统。其中该方法包括:接收第一IP包,所述第一IP包中包含OAM报文,所述OAM报文的IP包头部包括第一OAM信息;所述第一OAM信息包括第一源设备ID、第一宿设备ID;返回第二IP包,对所述OAM报文进行回复,所述第二IP包中包含OAM回复报文,所述OAM回复报文的IP包头部包括与所述第一OAM信息相对应的第二OAM信息;所述第二OAM信息包括第二源设备ID、第二宿设备ID、第二报文类型,其中,所述第二源设备ID为本地网络设备的ID,所述第二宿设备ID与所述第一源设备ID相同。可利用IP包头部携带OAM信息,提高了OAM方法故障侦测的能力。

Description

一种 O AM 艮文处理方法、 网络设备和网络系统 技术领域
本发明涉及通信技术领域, 尤其涉及一种 OAM报文处理方法、 网络设备 和网络系统。
背景技术
网络的管理工作一般划分为 3大类: 操作 ( Operation ) 、 管理 ( Administration ) 、 维护 ( Maintenance ) , 简称 0AM。
OAM的主要功能可包括会话两端 OAM能力协商、 链路连通性监视和路径 跟踪、 故障指示、 环回测试和时延丟包率等性能检测等。
OAM报文一般使用特殊的以太网类型、 目的 MAC ( Media Access Control, 媒体接入控制)地址或端口 (Port )来进行传递, 实现 OAM检测。 例如, 以太 网 OAM技术可以有效提高对以太网的管理和维护能力, 保障网络的稳定运 行。 以太网 OAM技术是分级实现的, 分为以下两个级别:
链路级以太网 OAM技术: 多应用于监测用户网络与运营商网络之间的 链路状态, 典型协议为 EFM 0 AM ( Ethernet in the First Mile OAM, 最后一公 里以太网 OAM )协议;
EFM OAM报文各重要字段含义见下表:
Figure imgf000002_0001
可见, EFM OAM报文使用特殊的目的 MAC地址和指定的以太网协议类 型。
网络级以太网 OAM技术: 多应用于网络的接入汇聚层, 用于监测整个 网络的连通性、 定位网络的连通性故障, 典型协议为 CFM ( Connectivity Fault Management , 连通错误检测 )协议;
CFM OAM报文各重要字段含义见下表:
字段 含义 Dest MAC 目的 MAC地址
Src MAC 源 MAC地址
EtherType 以太网协议类型, 为 0x8902
从上表可见, CFM OAM报文使用指定的以太网协议类型。
再例 口, BFD ( Bidirectional Forwarding Detection, 双向转发检测)基于 UDP进行报文传递, 其 OAM报文使用特殊的目的端口号实现 OAM检测。 现有 技术中, EFM OAM报文使用特殊的 EtherType和目的 MAC地址, CFM OAM报 文使用特殊的 EtherType, BFD报文使用特殊的目的端口号, 就意味着 ETH OAM的报文和业务报文有不同的 EtherType和目的 MAC地址, CFM OAM报文 和业务报文有不同的 EtherType, BFD报文和业务报文有不同的目的端口号, 如果网络设备针对业务报文有匹配 EtherType、 目的 MAC或目的端口号的转发 表项, 业务报文会命中相应的转发表项而 OAM报文不会, 即传统网络 OAM的 报文在网络设备内部旁路路由交换子单元、 业务路径上使用不同的转发表项, 从而无法检测完整、 与业务流一致的转发路径。 例如, Openflow作为实现软件 定义网络(Software defined network, SDN ) 的一种协议, Openflow网络实现 了数据转发层和控制层的分离。 OpenFlow交换机主要负责数据的转发: OpenFlow交换机接收到数据包后, 在流表中匹配流表项, 流表项用于指示交 换机对数据包的处理方法, 按照匹配上的流表项转发数据包。 如果 Openflow 交换机中针对业务报文有匹配 EtherType和目的 MAC的流表项, 业务报文会命 中相应的流表项而 OAM报文不会, 即 OAM报文和业务报文会使用不同的流表 项, 从而无法检测完整、 与业务流一致的转发路径。 而 OpenFlow交换机具有 多个可灵活组合的匹配域, 使得这种问题发生概率更高。
如果业务流为 IP层以上报文,当网络设备上的单个转发表项 (例如匹配 TCP 协议 8080端口号转发到特定路径)发生错误时, 其它转发表项和软硬件子单元 都正常时, 与该转发表项相关的业务报文会出现故障, 但由于 OAM报文与业 务报文匹配的转发表项不同, OAM报文就可能不会出现故障, 则现有技术中 的 OAM方法无法侦测出该类故障。 发明内容 本发明实施例提供了一种 OAM报文处理方法、 网络设备和网络系统, 可 以提高 OAM方法故障侦测的能力。
本发明第一方面提供一种 OAM报文处理方法, 所述方法包括:
接收第一 IP包, 所述第一 IP包中包含 OAM报文, 所述 OAM报文的 IP 包头部包括第一 OAM信息; 所述第一 OAM信息包括第一源设备 ID、 第一宿 设备 ID;
返回第二 IP包,对所述 0AM报文进行回复,所述第二 IP包中包含 OAM 回复报文,所述 OAM回复报文的 IP包头部包括与所述第一 OAM信息相对应 的第二 OAM信息; 所述第二 OAM信息包括第二源设备 ID、 第二宿设备 ID, 其中, 所述第二源设备 ID为本地网络设备的 ID, 所述第二宿设备 ID与所述 第一源设备 ID相同。
在第一种可能的实施方式中, 在所述返回第二 IP包之前, 所述方法还包 括:
判断所述 OAM报文是否满足预定的回复条件;
则, 所述返回第二 IP包, 具体为: 如果满足所述预定的回复条件, 返回 所述第二 IP包, 所述第二 OAM信息中还包括第二报文类型, 所述第二报文 类型为 0 AM检测回复报文;
所述第一 OAM信息中还包括第一报文类型, 所述预定的回复条件包括: 所述第一宿设备 ID与所述本地网络设备的 ID相同, 且所述第一报文类型为 OAM检测报文。
结合第一方面的第一种可能的实施方式,在第二种可能的实施方式中, 所 述方法还包括:
如果所述 OAM报文不满足所述预定的回复条件, 对所述 OAM报文进行 转发。
结合第一方面的第二种可能的实施方式,在第三种可能的实施方式中,在 所述对 OAM报文进行转发之前, 所述方法还包括:
判断所述 OAM报文是否满足预定的转发条件, 如果满足, 则执行所述对 所述 OAM报文进行转发。
结合第一方面的第一种可能的实施方式, 在第四种可能的实施方式中, 所 述第一 OAM信息中还包括第一转发计数值;
所述预定的转发条件包括: 所述第一转发计数值大于预定的第一阔值, 且 所述第一宿设备 ID不为本地网络设备的 ID;
所述对所述 OAM报文进行转发包括: 将所述第一转发计数值减去一个固 定值, 转发所述 OAM报文。
本发明第二方面提供一种网络设备, 包括:
接收单元, 用于接收第一 IP包, 所述第一 IP包中包含 OAM报文, 所述
OAM报文的 IP包头部包括第一 OAM信息; 所述第一 OAM信息包括第一源 设备 ID、 第一宿设备 ID;
回复单元, 用于返回第二 IP包, 对所述 OAM报文进行回复, 所述第二
IP包中包含 OAM回复报文, 所述 OAM回复报文的 IP包头部包括与所述第 一 OAM信息相对应的第二 OAM信息; 所述第二 OAM信息包括第二源设备
ID、 第二宿设备 ID, 其中, 所述第二源设备 ID为本地网络设备的 ID, 所述 第二宿设备 ID与所述第一源设备 ID相同。
在第一种可能的实施方式中, 所述网络设备还包括:
第一判断单元, 用于判断所述 OAM报文是否满足预定的回复条件; 所述回复单元具体用于当所述 OAM报文满足所述预定的回复条件时,返 回所述第二 IP包, 所述第二 OAM信息中还包括第二报文类型, 所述第二报 文类型为 OAM检测回复报文;
所述第一 OAM信息中还包括第一报文类型, 所述预定的回复条件包括: 所述第一宿设备 ID与所述本地网络设备的 ID相同, 且所述第一报文类型为
OAM检测报文。
结合第二方面的第一种可能的实施方式,在第二种可能的实施方式中, 所 述网络设备还包括:
转发单元, 用于当所述 OAM报文不满足所述预定的回复条件, 对所述
OAM报文进行转发。
结合第二方面的第二种可能的实施方式,在第三种可能的实施方式中, 所 述网络设备还包括:
第二判断单元, 用于判断所述 OAM报文是否满足预定的转发条件; 所述转发单元用于当所述 OAM报文满足所述预定的转发条件时,对所述 OAM报文进行转发。
结合第二方面的第一种可能的实施方式, 在第四种可能的实施方式中, 所 述第一 OAM信息中还包括第一转发计数值;
所述预定的转发条件包括: 所述第一转发计数值大于预定的第一阔值,且 所述第一宿设备 ID不为本地网络设备的 ID;
所述转发单元具体用于将所述第一转发计数值减去一个固定值,转发所述 OAM报文。
本发明第三方面提供一种网络设备,包括:连接在总线的处理器和存储器, 其中:
所述存储器, 用于存储执行指令;
所述处理器, 用于与所述存储器之间通信,执行所述执行指令使得所述网 络设备执行如下方法:
接收第一 IP包, 所述第一 IP包中包含 OAM报文, 所述 OAM报文的 IP 包头部包括第一 OAM信息; 所述第一 OAM信息包括第一源设备 ID、 第一宿 设备 ID;
返回第二 IP包,对所述 OAM报文进行回复,所述第二 IP包中包含 OAM 回复报文,所述 OAM回复报文的 IP包头部包括与所述第一 OAM信息相对应 的第二 OAM信息; 所述第二 OAM信息包括第二源设备 ID、 第二宿设备 ID、 第二报文类型, 其中, 所述第二源设备 ID为本地网络设备的 ID, 所述第二宿 设备 ID与所述第一源设备 ID相同。
在第一种可能的实施方式中, 在所述返回第二 IP包之前, 所述方法还包 括:
判断所述 OAM报文是否满足预定的回复条件;
则, 所述返回第二 IP包, 具体为: 如果满足所述预定的回复条件, 返回 所述第二 IP包, 所述第二 OAM信息中还包括第二报文类型, 所述第二报文 类型为 0 AM检测回复报文;
所述第一 OAM信息中还包括第一报文类型, 所述预定的回复条件包括: 所述第一宿设备 ID与所述本地网络设备的 ID相同, 且所述第一报文类型为 OAM检测报文。
结合第一方面的第一种可能的实施方式,在第二种可能的实施方式中, 所 述方法还包括:
如果所述 OAM报文不满足所述预定的回复条件, 对所述 OAM报文进行 转发。
结合第一方面的第二种可能的实施方式,在第三种可能的实施方式中,在 所述对 OAM报文进行转发之前, 所述方法还包括:
判断所述 OAM报文是否满足预定的转发条件, 如果满足, 则执行所述对 所述 OAM报文进行转发。
结合第一方面的第一种可能的实施方式, 在第四种可能的实施方式中, 所 述第一 OAM信息中还包括第一转发计数值;
所述预定的转发条件包括: 所述第一转发计数值大于预定的第一阔值, 且 所述第一宿设备 ID不为本地网络设备的 ID;
所述对所述 OAM报文进行转发包括: 将所述第一转发计数值减去一个固 定值, 转发所述 OAM报文。
本发明第四方面提供一种网络系统,所述系统包括至少二个如第二方面的 任意一种可能的实施方式所述的网络设备。
从以上内容可以看出, 本发明实施例中利用 OAM报文的 IP包头部携带 OAM信息, 则 OAM报文不使用特殊的以太网协议类型或特殊的目的 MAC 地址或者特殊的目的端口号, OAM报文的 IP包在链路层、 网络层、 传输层 和应用层中其头部均与业务报文的 IP包保持一致, 这样在转发路径上 (如交 换机和路由器上) OAM报文和业务报文通过的是完全相同的转发表项, 如果 有与业务报文相关的转发表项发生错误, OAM报文和业务报文会出现同样的 故障, 利用 OAM机制能够快速检测出故障, 相比现有技术, 可以提高 OAM 方法故障侦测的能力。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施 例中所需要使用的附图作简单地介绍, 显而易见地, 下面描述中的附图仅仅是 本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。
图 1 为本发明实施例提供的网络系统中网络设备的连接示意图; 图 2 为本发明实施例提供的 OAM报文处理方法的流程第一示意图; 图 3 为本发明实施例提供的 OAM报文处理方法的流程第二示意图; 图 4为本发明实施例提供的 OAM报文处理方法的流程第三示意图; 图 5为本发明实施例提供的网络设备的结构第一示意图;
图 6为本发明实施例提供的网络设备的结构第二示意图;
图 7为本发明实施例提供的网络设备的结构第三示意图;
图 8为本发明实施例提供的网络设备的结构第四示意图;
图 9为本发明实施例提供的网络设备的结构第五示意图;
图 10为本发明实施例提供的网络设备的结构第六示意图;
图 11为本发明实施例提供的网络设备的结构第七示意图。 具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有作出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。
本发明的说明书和权利要求书及上述附图中的术语 "第一"、 "第二"、 "第 三" "第四" 等(如果存在)是用于区别类似的对象, 而不必用于描述特定的 顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换, 以便这里 描述的本发明的实施例例如能够以除了在这里图示或描述的那些以外的顺序 实施。 此外, 术语 "包括" 和 "具有" 以及他们的任何变形, 意图在于覆盖不 排他的包含, 例如, 包含了一系列步骤或单元的过程、 方法、 系统、 产品或设 备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对 于这些过程、 方法、 产品或设备固有的其它步骤或单元。
请参阅图 1, 图 1为本发明实施例提供的一种网络系统的示意图, 图中的 网络系统可包括至少二个通信连接的网络设备,其中上述至少二个网络设备可 以是功能相同的网络设备, 均可实现 OAM会话(报文)的发起、接收、转发、 回复等功能, 当然其中有些网络设备也可以仅支持完成部分 0 AM会话功能; 本发明实施例中所提到的网络设备可以包括交换机、 路由器等网络设备。 图 2是本发明实施例提供的一种 OAM报文处理方法的流程示意图,执行 该 OAM报文处理方法的可以是上述网络系统中的任意一个可能的网络设备; 如图 2所示, 该方法可以包括:
202、 接收第一 IP包, 上述第一 IP包中包括 OAM报文, 上述 OAM报文 的 IP包头部包括第一 OAM信息;
其中, 第一 OAM信息可包括第一源设备 ID、 第一宿设备 ID;
204、返回第二 IP包, 对上述 OAM报文进行回复, 上述第二 IP包中包含
OAM回复报文, 上述 OAM回复报文的 IP包头部包括与上述第一 OAM信息 相对应的第二 0 AM信息;
其中, 上述第二 OAM信息可包括第二源设备 ID、 第二宿设备 ID, 其中, 上述第二源设备 ID为本地网络设备的 ID, 上述第二宿设备 ID与上述第一源 设备 ID相同; 本实施例中,本地网络设备可以是指执行上述方法的网络设备, 当一个网络设备执行上述方法时, 可以认为其是本地网络设备。
本实施例提供的 OAM报文处理方法, OAM报文的 OAM信息填充在 IP 包头部以利用 IP包携带 OAM信息, OAM报文不使用特殊的以太网协议类型 或特殊的目的 MAC地址或者特殊的目的端口号,这样 OAM报文的 IP包在链 路层、 网络层、传输层和应用层上其头部均与携带业务报文的 IP包保持一致, 在转发路径上 (如交换机和路由器上) OAM报文和业务报文通过的是完全相 同的转发表项, 如果有与业务报文相关的转发表项发生错误, OAM报文和业 务报文会出现同样的故障, 利用 OAM机制能够快速检测出故障, 克服了现有 技术的缺陷, 从而提高了 OAM方法故障侦测的能力。
图 3是本发明实施例提供的另一种 OAM报文处理方法的流程示意图,如 图 3所示, 该方法可以包括:
302、 接收第一 IP包, 上述第一 IP包中包括 OAM报文, 上述 OAM报文 的 IP包头部包括第一 OAM信息;
其中, 第一 OAM信息可包括第一源设备 ID、 第一宿设备 ID、 第一报文 类型;
优选地, 由于 IP包头部还有一些可选域(options ), 可利用可选域来携带 上述第一 0AM信息, 即上述 0AM报文的 IP包头部的可选域包括第一 OAM 信息;
304、 判断上述 OAM报文是否满足预定的回复条件, 如果满足执行 306, 否则执行 308;
举例来说, 上述预定的回复条件可包括: 上述第一宿设备 ID与上述本地 网络设备的 ID相同, 且上述第一报文类型为 0AM检测报文;
举例来说, 0AM检测报文可以包括: 连通性检测报文、 双向延时检测报 文、 环回检测报文、 跟踪检测报文、 丟包检测报文等类型的 OAM报文;
306、返回第二 IP包, 对上述 OAM报文进行回复, 上述第二 IP包中包含 OAM回复报文, 上述 OAM回复报文的 IP包头部包括与上述第一 0AM信息 相对应的第二 0AM信息; 结束流程;
其中, 上述第二 OAM信息可包括第二源设备 ID、 第二宿设备 ID、 第二 报文类型, 其中, 上述第二源设备 ID为本地网络设备的 ID, 上述第二宿设备 ID与上述第一源设备 ID相同, 第二报文类型为 0AM检测回复报文;
举例来说, OAM检测回复报文可以包括连通性检测回复报文、 双向延时 检测回复报文、 环回检测回复报文、 跟踪检测回复报文、 丟包检测回复报文等 OAM报文; 并且第二报文类型和第一报文类型相对应, 例如第一报文类型为 环回检测报文, 则第二报文类型为环回检测回复报文;
308、 对上述 0AM报文进行转发。
图 4是本发明实施例提供的另一种 0AM报文处理方法的流程示意图,如 图 4所示, 该方法可以包括:
402、 接收第一 IP包, 上述第一 IP包中包括 0AM报文, 上述 0AM报文 的 IP包头部包括第一 0AM信息;
其中, 第一 0AM信息可包括第一源设备 ID、 第一宿设备 ID、 第一报文 类型、 第一转发计数值;
在上述 402中本地网络设备接收到的第一 IP包可以来自网络系统中其中 一个网络设备发起的 0AM检测会话, 该网络设备在发起 0AM检测会话时, 将 OAM信息填充在 OAM报文的 IP包头部;
404、 判断上述 OAM报文是否满足预定的回复条件, 如果满足执行 406, 否则执行 408;
举例来说, 上述预定的回复条件可包括: 上述第一宿设备 ID与上述本地 网络设备的 ID相同, 且上述第一报文类型为 OAM检测报文;
举例来说, 上述预定的回复条件还可包括: 上述第一转发计数值小于或等 于预定的第一阔值, 且上述 OAM报文为跟踪报文;
举例来说, OAM检测报文可以包括: 连通性检测报文、 双向延时检测报 文、 环回检测报文、 跟踪检测报文、 丟包检测报文等类型的 OAM报文;
406、返回第二 IP包, 对上述 OAM报文进行回复, 上述第二 IP包中包含
OAM回复报文, 上述 OAM回复报文的 IP包头部包括与上述第一 OAM信息 相对应的第二 OAM信息; 结束流程;
其中, 上述第二 OAM信息可包括第二源设备 ID、 第二宿设备 ID、 第二 报文类型、第二转发计数值,其中,上述第二源设备 ID为本地网络设备的 ID, 上述第二宿设备 ID与上述第一源设备 ID相同,第二报文类型为 OAM检测回 复报文, 第二转发计数值可为预定的初始值(例如但不限于 255 );
举例来说, OAM检测回复报文可以包括连通性检测回复报文、 双向延时 检测回复报文、 环回检测回复报文、 跟踪检测回复报文、 丟包检测回复报文等 OAM报文; 并且第二报文类型和第一报文类型相对应, 例如第一报文类型为 环回检测报文, 则第二报文类型为环回检测回复报文;
408、判断上述 OAM报文是否满足预定的转发条件,如果满足,执行 410、 否则执行 412;
上述预定的转发条件可以包括: 第一转发计数值大于预定的第一阔值,且 第一宿设备 ID不为本地网络设备的 ID;
举例来说, 上述第一阔值可以为 0, 当然, 第一阔值还可为其它合适的数 值, 例如 1、 10等数值;
410、 将上述第一转发计数值减去一个固定值, 转发上述 OAM报文; 结 束流程;
举例来说, 上述减去的固定值可以为 1, 即是将 OAM信息中的第一转发 计数值减 1之后, 再转发该 OAM报文, 则 OAM报文每经过一个网络设备的 转发, 其 OAM信息中携带的转发计数值减 1, 通过设置转发计数值和上述转 发条件的结合可以控制 OAM报文的转发次数;
当然上述固定值还可为其它合适的数值, 例如 2、 5等数值, 在此不作具 体限制;
412、 判断上述 OAM报文是否满足预定的回复报文确认条件, 如果是, 执行 414, 否则结束流程;
优选地,上述第一 OAM信息还可包括第一会话标识,相应的,第二 OAM 信息也可包括第二会话标识, 第二会话标识可与第一会话标识相同;
上述回复报文确认条件可包括: 第一宿设备 ID与本地网络设备 ID相同, 第一报文类型为 OAM检测回复报文,且第一会话标识与本地网络发起的 OAM 检测报文包括的会话标识相同;
414、 4艮据上述 ΟΑΜ ·¾文进行相应处理;
本地网络设备可以发起 ΟΑΜ检测会话, 并在其发送的 ΟΑΜ检测报文的 IP包头部填充相应的 ΟΑΜ信息, 该 OAM信息可以包括会话标识, 该会话标 识用于标识唯一的 OAM检测会话, 本地网络设备可记录其发起的 OAM检测 会话的会话标识;
则在收到宿设备 ID为本地网络设备的 ID且报文类型为 OAM检测回复报 文的 OAM报文时,可对 OAM报文包括的会话标识进行验证,来判断该 OAM 该 OAM报文反馈的信息进行相应的处理, 例如若该 OAM报文为连通性检测 回复报文且未超时, 则可确认网络通畅,如果超时则可确认网络堵塞或网络故 障。
可选地, 上述第一 OAM信息还可包括 OAM版本、 OAM数据等信息, 本地网络设备还可根据第一 OAM信息包括的 OAM版本来判断是否支持接收 到的 OAM报文, 可在不支持时, 将 OAM报文丟弃。
图 5是本发明实施例提供的一种网络设备的结构示意图,如图 5所示, 该 网络设备 500可以包括:
接收单元 502, 用于接收第一 IP包, 上述第一 IP包中包含 OAM报文, 上述 OAM报文的 IP包头部包括第一 OAM信息;上述第一 OAM信息包括第 一源设备 ID、 第一宿设备 ID;
回复单元 504, 用于返回第二 IP包, 对上述 OAM报文进行回复, 上述第 二 IP包包含 OAM回复报文, 上述 OAM回复报文的 IP包头部包括与上述第 一 OAM信息相对应的第二 OAM信息; 上述第二 OAM信息包括第二源设备 ID、 第二宿设备 ID, 其中, 上述第二源设备 ID为本地网络设备的 ID, 上述 第二宿设备 ID与上述第一源设备 ID相同。
本实施例提供的网络设备, 其处理的 OAM报文的 OAM信息填充在 IP 包头部以利用 IP包携带 OAM信息, OAM报文不使用特殊的以太网协议类型 或特殊的目的 MAC地址或者特殊的目的端口号,这样 OAM报文的 IP包在链 路层、 网络层、传输层和应用层上其头部均与携带业务报文的 IP包保持一致, 在转发路径上 (如交换机和路由器上) OAM报文和业务报文通过的是完全相 同的转发表项, 如果有与业务报文相关的转发表项发生错误, OAM报文和业 务报文会出现同样的故障, 利用 OAM机制能够快速检测出故障, 克服了现有 技术的缺陷, 从而提高了 OAM方法故障侦测的能力。
优选地, 如图 6所示, 网络设备 500还可包括:
第一判断单元 503, 用于判断接收单元 502接收的上述 OAM报文是否满 足预定的回复条件;
则,回复单元 504可在上述 OAM报文满足上述预定的回复条件时对 OAM 报文进行回复;
优选地, 上述第一 OAM信息还可包括第一报文类型;
举例来说, 上述预定的回复条件可包括: 上述第一宿设备 ID与上述本地 网络设备(网络设备 500 ) 的 ID相同, 且上述第一报文类型为 OAM检测报 文;
举例来说, OAM检测报文可以包括: 连通性检测报文、 双向延时检测报 文、 环回检测报文、 跟踪检测报文、 丟包检测报文等类型的 OAM报文;
举例来说,上述第二 OAM信息还可第二报文类型,第二报文类型为 OAM 检测回复报文;
举例来说, OAM检测回复报文可以包括连通性检测回复报文、 双向延时 检测回复报文、 环回检测回复报文、 跟踪检测回复报文、 丟包检测回复报文等 OAM报文; 并且第二报文类型和第一报文类型相对应, 例如第一报文类型为 环回检测报文, 则第二报文类型为环回检测回复报文。
优选地, 如图 7所示, 该网络设备 500还可包括转发单元 506, 转发单元 506可用于当第一判断单元 503判断出上述 OAM报文不满足上述预定的回复 条件时, 对上述 OAM报文进行转发。
优选地, 上述第一 OAM信息还可包括第一转发计数值, 相应的, 上述第 二 OAM信息也可包括第二转发计数值,第二转发计数值可以为预定的初始值, 例如 255或其他合适的数值。
优选地, 上述预定的回复条件还可包括: 上述第一转发计数值小于或等于 预定的第一阔值, 且上述 OAM报文为跟踪报文;
举例来说, 上述第一阔值可以为 0, 当然, 第一阔值还可为其它合适的数 值, 例如 1、 10等数值。
优选地, 如图 8所示, 该网络设备 500还可包括第二判断单元 505, 第二 判断单元 505用于判断接收单元 502接收的上述 OAM报文是否满足预定的转 发条件;
则, 转发单元 506可用于当上述 OAM报文满足上述预定的转发条件时, 对上述 OAM报文进行转发。
举例来说, 上述预定的转发条件可以包括: 上述第一转发计数值大于上述 预定的第一阔值, 且第一宿设备 ID不为本地网络设备的 ID。
优选地, 转发单元 506 可具体用于将上述第一转发计数值减去一个固定 值, 转发上述 OAM报文;
举例来说, 上述固定值的具体数值可以优选为 1, 即 OAM报文经过一次 转发, 转发计数值减 1, 当然上述固定值还可以为其它合适的数值, 在此不作 具体的限制。
优选地, 上述第一 OAM信息还包括第一会话标识, 相应的, 第二 OAM 信息也可包括第二会话标识, 第二会话标识可与第一会话标识相同;
优选地,如图 9所示, 该网络设备 500还可包括第三判断单元 508和处理 单元 510, 其中第三判断单元 508用于判断接收单元 502接收的上述 OAM报 文是否满足预定的回复报文确认条件,处理单元 510用于当上述 OAM报文满 足预定的回复报文确认条件时, 对上述 OAM报文进行相应的处理, 包括确认 网络通畅、 网络堵塞、 网络故障等等。
举例来说, 上述预定的回复报文确认条件可以包括: 第一宿设备 ID与本 地网络设备 ID相同, 第一报文类型为 OAM检测回复报文, 且第一会话标识 与本地网络发起的 OAM检测报文包括的会话标识相同;
本实施例中, 如图 10所示, 网络设备 500还可以包括会话发起单元 501, 会话发起单元 501可用于发起 OAM检测会话;
具体地, 会话发起单元 501可以包括 OAM报文生成子单元、 OAM报文 发送子单元和会话标识记录子单元,其中 OAM报文生成子单元用于生成 OAM 检测报文,上述 OAM检测报文的 IP包头部填充有相应的 OAM信息,该 OAM 信息可以包括会话标识, 该会话标识用于标识唯一的 OAM检测会话, 会话标 识记录子单元可记录会话发起单元 501发起的 OAM检测会话的会话标识, 则在接收单元 502收到 OAM报文后, 可将第一会话标识与网络设备 500 记录的会话标识进行比对, 来判断该 OAM报文是否是对网络设备 500发起的 OAM检测会话的回复报文, 如果是, 则可根据该 OAM报文反馈的信息进行 相应的处理, 例如若该 OAM报文为连通性检测回复报文且未超时, 则可确认 网络通畅, 如果超时则可确认网络堵塞或网络故障。
可选地, 上述第一 OAM信息还可包括 OAM版本、 OAM数据等信息, 网络设备 500还可根据第一 OAM信息包括的 OAM版本来判断是否支持接收 到的 OAM报文, 可在不支持时, 将 OAM报文丟弃。
本发明实施例还提供一种网络设备, 如图 11所示, 该网络设备 600, 可 以包括连接在总线 602的处理器 601、 存储器 603。 其中:
上述存储器 603可用于存储执行指令; 具体的,存储器 603可以存储程序
604, 程序 604可以包括程序代码, 上述程序代码包括执行指令;
举例来说, 存储器 603可能包含高速 RAM存储器, 也可能还包括非易失 性存 4诸器( non-volatile memory ), 例如至少一个磁盘存 4诸器;
上述处理器 601可用于与存储器 603之间通信,执行上述执行指令使得上 述网络设备 600执行如下方法:
接收第一 IP包, 上述第一 IP包中包括 OAM报文, 上述 OAM报文的 IP 包头部包括第一 OAM信息; 其中, 第一 OAM信息可包括第一源设备 ID、 第 一宿设备 ID;
返回第二 IP包,对上述 OAM报文进行回复,上述第二 IP包中包含 OAM 回复报文,上述 OAM回复报文的 IP包头部包括与上述第一 OAM信息相对应 的第二 OAM信息; 其中, 上述第二 OAM信息可包括第二源设备 ID、 第二宿 设备 ID, 其中, 上述第二源设备 ID为本地网络设备的 ID, 上述第二宿设备 ID与上述第一源设备 ID相同。
优选地, 在上述返回第二 IP包之前, 该方法还可包括:
判断上述 OAM报文是否满足预定的回复条件;
贝 'J, 上述返回第二 IP报文, 具体为: 如果满足上述预定的回复条件, 返 回上述第二 IP报文, 上述第二 OAM信息中还包括第二报文类型, 上述第二 报文类型为 OAM检测回复报文;
上述第一 OAM信息中还包括第一报文类型, 上述预定的回复条件包括: 上述第一宿设备 ID与上述本地网络设备的 ID相同, 且上述第一报文类型为 OAM检测报文。
优选地, 该方法还可包括: 如果上述 OAM报文不满足上述预定的回复条 件, 对上述 OAM报文进行转发。
在上述对 OAM报文进行转发之前, 该方法还包括:
判断上述 OAM报文是否满足预定的转发条件, 如果满足, 则执行上述对 上述 OAM报文进行转发。
上述第一 OAM信息中还包括第一转发计数值;
上述预定的转发条件包括: 上述第一转发计数值大于预定的第一阔值, 且 上述第一宿设备 ID不为本地网络设备的 ID;
上述对上述 OAM报文进行转发包括: 将上述第一转发计数值减去一个固 定值, 转发上述 OAM报文。 优选地, 上述第一 OAM信息中还包括第一会话 标识;
上述方法还可包括: 判断上述 OAM报文是否满足预定的回复报文确认条 件, 如果满足, 根据上述 OAM报文进行相应处理;
举例来说, 上述回复报文确认条件可包括: 第一宿设备 ID与本地网络设 备 ID相同, 第一报文类型为 OAM检测回复报文, 且第一会话标识与本地网 络发起的 OAM检测报文包括的会话标识相同。
上述处理器执行执行指令使得网络设备 600执行的方法,其实现原理和技 术效果与前面实施例中所述的方法类似,具体的实现细节此处不再赘述。另外, 本发明实施例中还提供一种计算机可读介质, 包含计算机执行指令,计算机执 行指令能够使网络设备 600执行本发明实施例中所描述的方法,其实现原理和 技术效果与前面实施例类似, 此处不再赘述。 和系统进行描述。
在一个示例性的网络系统中, 包括网络设备 Sl、 网络设备 S2、 网络设备 S3以及网络设备 S4, 其中, S2分别与 S1和 S3通信连接, S3还和 S4通信连 接, 网络设备上已经有上下行业务流的匹配转发流表项, 上下行业务流正在正 常通信,现在需要实时检测上行业务流在 S1和 S4之间通信是否正常,则可发 起周期性的连通性检测 OAM会话:
上行业务流的匹配转发流表项如下表所示:
网络设 流表项编 匹配域 动作
备 号
S1 E11 目的 MAC: 00:1A:CA:00:C5:DA 从端口 1 输
目的 IP = 192.168..20.35 出
S2 E21 目的 MAC: 00:1A:CA:00:C5:DA 从端口 3 输
目的 IP = 192.168..20.35 出
S3 E31 目的 MAC = 00:1A:CA:00:C5:DA 从端口 4 输
目的 IP = 192.168..20.35 出
下行业务流的匹配转发流表项如下表所示:
网络设 流表项编 匹配域 动作
备 号
S4 E42 目的 MAC= 00:1A:CA:00:C5:DC 从端口 3输出 目的 IP = 192.168..10.25
S3 E32 目的 MAC = 00:1A:CA:00:C5:DC 从端口 2输出
目的 IP = 192.168..10.25
S2 E22 目的 MAC = 00:1A:CA:00:C5:DC 从端口 2输出
目的 IP: 192.168..10.25
1、 S1将连通性检测 文的 OAM信息填充在其 IP包头部中, 通过端口 1 向 S2发送 IP包; 连通性检测报文的 OAM信息可包括: OAM版本( 0x01 )、 转发计数值 ( 255 )、报文类型(连通性检测 )、源设备 ID ( S1 )、宿设备 ID ( S4 )、 会话标识 ( 0001 );
上述 IP 包还携带源 MAC 地址 ( 00:1A:CA:00:C5:DC ) 和源 IP 地址
( 192.168.10.25 )、 目的 MAC 地址 ( 00:1A:CA:00:C5:DA ) 和目的 IP 地址 ( 192.168.20.35 );
2、 S2接收 IP包, 解析后得到连通性检测报文, 判断支持该报文版本, 对转发计数值减 1 (变成 254 ), 检测到宿设备 ID不为 S2 (满足转发条件), 则将连通性检测报文通过端口 3转发至 S3;
3、 S3接收 IP包, 解析后得到连通性检测报文, 判断支持该报文版本, 对转发计数值减 1 (变成 253 ), 检测到宿设备 ID不为 S3 (满足转发条件), 则将连通性检测报文通过端口 4转发至 S4;
4、 S4接收 IP 包, 解析后得到连通性检测报文, 判断支持该报文版本, 对转发计数值减 1 (变成 252 ), 检测到宿设备 ID为 S4, 连通性检测报文满足 回复条件, 则生成连通性检测回复报文, 并将连通性检测回复报文的 OAM信 息填充在其 IP包头部, 通过端口 3向 S3发送 IP包; 其中连通性检测回复报 文的 OAM信息包括: OAM版本(0x01 )、 转发计数值( 255 )、 报文类型 (连 通性检测回复)、 源设备 ID ( S4 )、 宿设备 ID ( S1 )、 会话标识( 0001 );
其中, S4需要对 IP包的 MAC地址、 IP地址进行反转, 其发送的连通性 检测回复报文的 IP包携带源 MAC地址(00:1A:CA:00:C5:DA )和源 IP地址
( 192.168.20.35 )、 源 MAC 地址 ( 00:1A:CA:00:C5:DC ) 和目的 IP 地址
( 192.168.10.25 );
5、 连通性检测回复报文经过 S2和 S3的转发之后, 到达 Sl, 其转发过程 不再详述;
6、 SI接收 IP包, 解析后得到连通性检测回复报文, 判断支持该报文版 本, 对转发计数值减 1 (变成 252 ), 检测到报文类型为连通性检测回复报文, 宿设备 ID为 Sl,并且其会话标识和本地发起的连通性检测报文的会话标识一 致, 则确定该连通性检测回复报文是对其发起的连通性检测报文的回复报文, 且没有超时, 可确认 S1与 S4之间通信畅通, 本周期的 OAM会话完成。
通过上述实施例及上述实例的描述可以看出,本实施例提供的 OAM报文 处理方法、网络设备和网络系统中, OAM报文的 OAM信息携带在 IP包头部, OAM报文不使用特殊的以太网协议类型 /特殊的目的 MAC地址 /特殊的目的端 口号, OAM报文的 IP包在链路层、 网络层、 传输层和应用层上其头部均与携 带业务报文的 IP包保持一致, 在转发路径上(如交换机和路由器上) OAM报 文和业务报文通过的是完全相同的转发表项,如果有与业务报文相关的转发表 项发生错误, OAM报文和业务报文会出现同样的故障, 利用 OAM机制能够 快速检测出故障, 克服了现有技术的缺陷, 从而提高了 OAM方法故障侦测的 能力。
本领域普通技术人员可以理解:实现上述方法实施例的全部或部分步骤可 以通过程序指令相关的硬件来完成,前述的程序可以存储于一计算机可读取存 储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述的存储 介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的介质。
以上对本发明实施例所提供的一种 OAM报文处理方法、 网络设备和网络 了阐述, 以上实施例的说明只是用于帮助理解本发明的方法及其核心思想; 同 时, 对于本领域的一般技术人员, 依据本发明的思想, 在具体实施方式及应用 范围上均会有改变之处,综上所述,本说明书内容不应理解为对本发明的限制。

Claims

权 利 要 求
1、 一种 OAM报文处理方法, 其特征在于, 所述方法包括:
接收第一 IP包, 所述第一 IP包中包含 OAM报文, 所述 OAM报文的 IP 包头部包括第一 OAM信息; 所述第一 OAM信息包括第一源设备 ID、 第一宿 设备 ID;
返回第二 IP包,对所述 OAM报文进行回复,所述第二 IP包中包含 OAM 回复报文,所述 OAM回复报文的 IP包头部包括与所述第一 OAM信息相对应 的第二 OAM信息; 所述第二 OAM信息包括第二源设备 ID、 第二宿设备 ID, 其中, 所述第二源设备 ID为本地网络设备的 ID, 所述第二宿设备 ID与所述 第一源设备 ID相同。
2、根据权利要求 1所述的方法,其特征在于,在所述返回第二 IP包之前, 所述方法还包括:
判断所述 OAM报文是否满足预定的回复条件;
则, 所述返回第二 IP包, 具体为: 如果满足所述预定的回复条件, 返回 所述第二 IP包, 所述第二 OAM信息中还包括第二报文类型, 所述第二报文 类型为 0 AM检测回复报文;
所述第一 OAM信息中还包括第一报文类型, 所述预定的回复条件包括: 所述第一宿设备 ID与所述本地网络设备的 ID相同, 且所述第一报文类型为 OAM检测报文。
3、 根据权利要求 2所述的方法, 其特征在于, 所述方法还包括: 如果所述 OAM报文不满足所述预定的回复条件, 对所述 OAM报文进行 转发。
4、 根据权利要求 3所述的方法, 其特征在于, 在所述对 OAM报文进行 转发之前, 所述方法还包括:
判断所述 OAM报文是否满足预定的转发条件, 如果满足, 则执行所述对 所述 OAM报文进行转发。
5、 根据权利要求 4所述的方法, 其特征在于, 所述第一 OAM信息中还 包括第一转发计数值; 所述预定的转发条件包括: 所述第一转发计数值大于预定的第一阔值, 且 所述第一宿设备 ID不为本地网络设备的 ID;
所述对所述 OAM报文进行转发包括: 将所述第一转发计数值减去一个固 定值, 转发所述 OAM报文。
6、 一种网络设备, 其特征在于, 所述网络设备包括:
接收单元, 用于接收第一 IP包, 所述第一 IP包中包含 OAM报文, 所述 OAM报文的 IP包头部包括第一 OAM信息; 所述第一 OAM信息包括第一源 设备 ID、 第一宿设备 ID;
回复单元, 用于返回第二 IP包, 对所述 OAM报文进行回复, 所述第二 IP包中包含 OAM回复报文, 所述 OAM回复报文的 IP包头部包括与所述第 一 OAM信息相对应的第二 OAM信息; 所述第二 OAM信息包括第二源设备 ID、 第二宿设备 ID, 其中, 所述第二源设备 ID为本地网络设备的 ID, 所述 第二宿设备 ID与所述第一源设备 ID相同。
7、根据权利要求 6所述的网络设备, 其特征在于, 所述网络设备还包括: 第一判断单元, 用于判断所述 OAM报文是否满足预定的回复条件; 所述回复单元具体用于当所述 OAM报文满足所述预定的回复条件时,返 回所述第二 IP包, 所述第二 OAM信息中还包括第二报文类型, 所述第二报 文类型为 OAM检测回复报文;
所述第一 OAM信息中还包括第一报文类型, 所述预定的回复条件包括: 所述第一宿设备 ID与所述本地网络设备的 ID相同, 且所述第一报文类型为 OAM检测报文。
8、根据权利要求 7所述的网络设备, 其特征在于, 所述网络设备还包括: 转发单元, 用于当所述 OAM报文不满足所述预定的回复条件, 对所述
OAM报文进行转发。
9、根据权利要求 8所述的网络设备, 其特征在于, 所述网络设备还包括: 第二判断单元, 用于判断所述 OAM报文是否满足预定的转发条件; 所述转发单元用于当所述 OAM报文满足所述预定的转发条件时,对所述 OAM报文进行转发。
10、 根据权利要求 9所述的网络设备, 其特征在于, 所述第一 OAM信息 中还包括第一转发计数值;
所述预定的转发条件包括: 所述第一转发计数值大于预定的第一阔值,且 所述第一宿设备 ID不为本地网络设备的 ID;
所述转发单元具体用于将所述第一转发计数值减去一个固定值,转发所述 OAM报文。
11、 一种网络设备, 其特征在于, 包括: 连接在总线的处理器和存储器, 其中:
所述存储器, 用于存储执行指令;
所述处理器, 用于与所述存储器之间通信,执行所述执行指令使得所述网 络设备执行如下方法:
接收第一 IP包, 所述第一 IP包中包含 OAM报文, 所述 OAM报文的 IP 包头部包括第一 OAM信息; 所述第一 OAM信息包括第一源设备 ID、 第一宿 设备 ID;
返回第二 IP包,对所述 OAM报文进行回复,所述第二 IP包中包含 OAM 回复报文,所述 OAM回复报文的 IP包头部包括与所述第一 OAM信息相对应 的第二 OAM信息; 所述第二 OAM信息包括第二源设备 ID、 第二宿设备 ID、 第二报文类型, 其中, 所述第二源设备 ID为本地网络设备的 ID, 所述第二宿 设备 ID与所述第一源设备 ID相同。
12、 一种网络系统, 其特征在于, 所述网络系统包括至少二个如权利要求 6-11任一项所述的网络设备。
PCT/CN2014/074808 2014-04-04 2014-04-04 一种oam报文处理方法、网络设备和网络系统 Ceased WO2015149353A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201480000456.6A CN105308904B (zh) 2014-04-04 2014-04-04 一种oam报文处理方法、网络设备和网络系统
PCT/CN2014/074808 WO2015149353A1 (zh) 2014-04-04 2014-04-04 一种oam报文处理方法、网络设备和网络系统
EP14887910.9A EP3116160B1 (en) 2014-04-04 2014-04-04 Oam packet processing method, network device and network system
US15/284,696 US10116546B2 (en) 2014-04-04 2016-10-04 OAM packet processing method, network device, and network system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2014/074808 WO2015149353A1 (zh) 2014-04-04 2014-04-04 一种oam报文处理方法、网络设备和网络系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/284,696 Continuation US10116546B2 (en) 2014-04-04 2016-10-04 OAM packet processing method, network device, and network system

Publications (1)

Publication Number Publication Date
WO2015149353A1 true WO2015149353A1 (zh) 2015-10-08

Family

ID=54239324

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/074808 Ceased WO2015149353A1 (zh) 2014-04-04 2014-04-04 一种oam报文处理方法、网络设备和网络系统

Country Status (4)

Country Link
US (1) US10116546B2 (zh)
EP (1) EP3116160B1 (zh)
CN (1) CN105308904B (zh)
WO (1) WO2015149353A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206746A (zh) * 2016-12-16 2018-06-26 华为技术有限公司 一种网络传输控制方法及相关设备
CN111371736A (zh) * 2018-12-26 2020-07-03 中兴通讯股份有限公司 iOAM信息处理方法、装置及计算机可读存储介质

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107517117B (zh) * 2016-06-17 2022-04-08 深圳市中兴通讯技术服务有限责任公司 一种ip层oam告警方法、装置及网络节点
US10638288B2 (en) 2017-05-15 2020-04-28 At&T Intellectual Property I, L.P. Embedded device identification information in packetized communications
CN110971445B (zh) * 2019-09-24 2021-06-01 华为技术有限公司 一种网络的oam方法及装置
CN112672363B (zh) * 2019-10-15 2023-04-18 华为技术有限公司 随流信息遥测能力的确认方法和设备
US11061596B2 (en) * 2019-11-04 2021-07-13 Google Llc Multi-pass distributed data shuffle
CN111917608B (zh) * 2020-08-07 2022-01-04 深圳市友华软件科技有限公司 基于Linux系统设备的Internet连通性的判断方法和装置
WO2022033034A1 (zh) * 2020-08-14 2022-02-17 华为技术有限公司 一种oam检测的方法、设备以及系统
CN112152919A (zh) * 2020-09-23 2020-12-29 杭州迪普科技股份有限公司 路由维护方法、装置、设备及计算机可读存储介质
CN114867047B (zh) * 2021-01-20 2025-07-25 中国移动通信有限公司研究院 能力调用方法、装置、网络节点及存储介质
CN115022259B (zh) * 2022-06-02 2024-09-24 苏州盛科通信股份有限公司 多核交换芯片oam处理和发送的方法及应用
CN119011459B (zh) * 2024-07-22 2025-11-21 中移(苏州)软件技术有限公司 报文路径追踪方法、装置、电子设备、存储介质及产品

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080031146A1 (en) * 2006-08-03 2008-02-07 Kwak Dong Y Method and apparatus for measuring label switch path performance parameters using performance monitoring operation and management packet in multi-protocol label switching network
CN101471813A (zh) * 2007-12-29 2009-07-01 华为技术有限公司 一种实现跨域维护管理的配置方法、系统及设备
CN102347905A (zh) * 2011-10-31 2012-02-08 杭州华三通信技术有限公司 一种网络设备及其转发信息更新方法

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100417080C (zh) * 2005-02-01 2008-09-03 华为技术有限公司 一种检测网络链路故障并定位故障的方法
US8279759B1 (en) * 2005-03-07 2012-10-02 Verizon Services Corp. Protocol inter-worked ping mechanism
US7996559B2 (en) 2007-10-12 2011-08-09 Nortel Networks Limited Automatic MEP provisioning in a link state controlled Ethernet network
US8964563B2 (en) * 2011-07-08 2015-02-24 Telefonaktiebolaget L M Ericsson (Publ) Controller driven OAM for OpenFlow
CN103580894B (zh) * 2012-07-31 2017-09-29 华为技术有限公司 操作、管理和维护oam配置的方法、设备及系统
CN102904775B (zh) * 2012-09-29 2015-04-29 华为技术有限公司 网络丢包测量方法、设备和系统

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080031146A1 (en) * 2006-08-03 2008-02-07 Kwak Dong Y Method and apparatus for measuring label switch path performance parameters using performance monitoring operation and management packet in multi-protocol label switching network
CN101471813A (zh) * 2007-12-29 2009-07-01 华为技术有限公司 一种实现跨域维护管理的配置方法、系统及设备
CN102347905A (zh) * 2011-10-31 2012-02-08 杭州华三通信技术有限公司 一种网络设备及其转发信息更新方法

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP3116160A4 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108206746A (zh) * 2016-12-16 2018-06-26 华为技术有限公司 一种网络传输控制方法及相关设备
EP3468101A4 (en) * 2016-12-16 2019-07-17 Huawei Technologies Co., Ltd. METHOD FOR CONTROLLING A NETWORK TRANSMISSION AND ASSOCIATED DEVICE
CN111371736A (zh) * 2018-12-26 2020-07-03 中兴通讯股份有限公司 iOAM信息处理方法、装置及计算机可读存储介质

Also Published As

Publication number Publication date
EP3116160A4 (en) 2017-01-11
US10116546B2 (en) 2018-10-30
CN105308904A (zh) 2016-02-03
EP3116160A1 (en) 2017-01-11
CN105308904B (zh) 2019-05-21
EP3116160B1 (en) 2017-11-15
US20170026269A1 (en) 2017-01-26

Similar Documents

Publication Publication Date Title
WO2015149353A1 (zh) 一种oam报文处理方法、网络设备和网络系统
US9294343B2 (en) System and method using RSVP hello suppression for graceful restart capable neighbors
US8868998B2 (en) Packet communication apparatus and packet communication method
CN102594600B (zh) 一种确定双向转发检测会话故障位置的方法及系统
US20120087232A1 (en) Link state relay for physical layer emulation
CN101267360B (zh) 伪线故障检测方法和用户边缘设备
WO2009046644A1 (en) A method and device for traffic flow switching
WO2016058245A1 (zh) 操作、管理和维护oam报文处理方法及装置
WO2016063188A1 (en) Method and system for implementing ethernet oam in a software-defined networking (sdn) system
WO2012155817A1 (zh) 一种环回测试方法、装置及系统
CN102780635B (zh) 基于trill网络实现保护倒换的方法、tor交换机及系统
CN103078791B (zh) Oam报文处理方法、设备及系统
EP2604001B1 (en) Distributed connectivity verification protocol redundancy
CN104067575A (zh) 重新路由技术
WO2016106743A1 (zh) 对聚合链路进行双向转发检测的方法、设备和系统
CN103416022B (zh) 分布式路由器/交换机架构中的服务中吞吐量测试方法和系统
US8971195B2 (en) Querying health of full-meshed forwarding planes
Mizrahi et al. An overview of operations, administration, and maintenance (OAM) tools
WO2014019348A1 (zh) 操作、管理和维护oam配置的方法、设备及系统
CN101252528B (zh) 一种故障检测方法及设备
WO2012071851A1 (zh) 根据网络抖动调整bfd发送间隔的方法及装置
JP6472876B2 (ja) コンピュータ・プログラム、装置及び記憶媒体
WO2014008809A1 (zh) 一种丢失帧测定方法及系统
US11902140B2 (en) Systems and methods for activating FEC processing per application probe class
CN104702498A (zh) 一种通过协调保护减少设备间光连接数量的方法及装置

Legal Events

Date Code Title Description
WWE Wipo information: entry into national phase

Ref document number: 201480000456.6

Country of ref document: CN

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

Ref document number: 14887910

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2014887910

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014887910

Country of ref document: EP