WO2014117737A1 - Oam报文处理方法、设备及*** - Google Patents

Oam报文处理方法、设备及*** Download PDF

Info

Publication number
WO2014117737A1
WO2014117737A1 PCT/CN2014/071739 CN2014071739W WO2014117737A1 WO 2014117737 A1 WO2014117737 A1 WO 2014117737A1 CN 2014071739 W CN2014071739 W CN 2014071739W WO 2014117737 A1 WO2014117737 A1 WO 2014117737A1
Authority
WO
WIPO (PCT)
Prior art keywords
oam
network device
message
server
flow table
Prior art date
Application number
PCT/CN2014/071739
Other languages
English (en)
French (fr)
Inventor
于志强
陈国义
郑莲淑
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to EP14746130.5A priority Critical patent/EP2916489B1/en
Publication of WO2014117737A1 publication Critical patent/WO2014117737A1/zh
Priority to US14/813,882 priority patent/US10116545B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/12Network monitoring probes
    • 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
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • 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

Definitions

  • OAM packet processing method, device and system The application is submitted to the Chinese Patent Office on January 31, 201, and the application number is 201 31 0038824. 3, the invention name is "0AM message processing method, device and system" in China Priority of the patent application, the entire contents of which is incorporated herein by reference.
  • the present invention relates to communications technologies, and in particular, to an OAM packet processing method, device, and system.
  • the operation, administration, and maintenance (OAM) is an effective complement to an interface/link protocol, and provides an operation, management, and maintenance mechanism for an interface/link protocol, and an OAM function. It usually includes connectivity detection, performance measurement, and fault location of links or paths.
  • the OAM standard of the link often lags behind the standard of the link, and the OAM function usually requires hardware support for link processing. Therefore, the OAM standard is introduced, and many devices do not have the capability to support the OAM function, even if later.
  • the OAM function is added.
  • the processing methods of OAM packets are different for different devices. It is urgent to propose a flexible OAM packet processing method to adapt to the introduction of OAM standards and different devices. SUMMARY OF THE INVENTION
  • the embodiments of the present invention provide a 0 AM message processing method, device, and system, to improve flexibility of 0 AM processing.
  • the embodiment of the present invention provides an OAM packet processing method, including: receiving, by a first network device, an OAM command sent by an operation, management, and maintenance (OAM) server, where the OAM command carries a function to indicate OAM First format information of the message format and the first transmission target identifier;
  • the first network device generates a first 0AM packet according to the first format information, and sends the first 0AM packet to the network device indicated by the first sending target identifier.
  • the method for processing the 0AM packet further includes:
  • the method for processing an OAM packet further includes:
  • the first network device receives the second OAM packet sent by the second network device, and if the first network device does not store the OAM flow table corresponding to the second OAM packet, the second OAM packet is used.
  • the processing method of the method further includes:
  • the first network device stores the OAM flow table corresponding to the second OAM packet, updating the record result according to the second OAM packet;
  • the first network device sends the record result to the OAM server, so that the OAM server performs OAM processing according to the record result.
  • the first format information includes at least one of the following:
  • Message transmission frequency information Message transmission frequency information, message transmission number information, time stamp information, counting information, and verification information.
  • the embodiment of the present invention provides an OAM packet processing method, including: an operation, management, and maintenance (OAM) server generating an OAM command, where the OAM command carries a first to indicate an OAM packet format. Format information and first transmission target identifier;
  • OAM operation, management, and maintenance
  • the OAM server sends the OAM command to the first network device, so that the first network device generates a first OAM packet according to the first format information, and sends the first OAM packet to the first A network device that sends a target identifier indication.
  • the method for processing an OAM packet further includes:
  • the OAM server receives the second OAM packet sent by the first network device, and performs OAM processing according to the second OAM packet.
  • the method for processing an OAM packet further includes:
  • the OAM server Receiving, by the OAM server, the second OAM packet sent by the first network device, according to the second OAM packet, a flow table establishment instruction to the first network device, so that the first network device is configured according to the The flow table establishment instruction establishes an OAM flow table, where the OAM flow table includes a matching item for matching the OAM ⁇ text.
  • the OAM server receives the record result sent by the first network device, and performs OAM processing according to the record result.
  • the first format information includes at least one of the following:
  • Message transmission frequency information Message transmission frequency information, message transmission number information, time stamp information, counting information, and verification information.
  • an embodiment of the present invention provides a first network device, including:
  • An instruction receiving unit configured to receive an OAM command sent by an operation, management, and maintenance (OAM) server, where the OAM command carries first format information and a first sending target identifier that are used to indicate an OAM message format;
  • OAM operation, management, and maintenance
  • the first processing unit is configured to generate a first OAM message according to the first format information, and send the first OAM message to the network device indicated by the first sending target identifier.
  • the first network device further includes: a packet forwarding unit, configured to receive a second OAM packet sent by the second network device, where the second OAM is The packet is sent to the OAM server, so that the OAM server performs OAM processing according to the second OAM packet.
  • a packet forwarding unit configured to receive a second OAM packet sent by the second network device, where the second OAM is The packet is sent to the OAM server, so that the OAM server performs OAM processing according to the second OAM packet.
  • the first network device further includes: a packet receiving unit, configured to receive a second OAM packet sent by the second network device; If the OAM flow table corresponding to the second OAM packet is not stored, Sending the second OAM packet to the OAM server, receiving a flow table establishment command sent by the OAM server, and establishing an OAM flow table according to the flow table establishment command, where the OAM flow table includes Matches for matching OAM ⁇ text.
  • a packet receiving unit configured to receive a second OAM packet sent by the second network device. If the OAM flow table corresponding to the second OAM packet is not stored, Sending the second OAM packet to the OAM server, receiving a flow table establishment command sent by the OAM server, and establishing an OAM flow table according to the flow table establishment command, where the OAM flow table includes Matches for matching OAM ⁇ text.
  • the second processing unit is further configured to: if the OAM corresponding to the second OAM >3 ⁇ 4 text is stored And the flow table is configured to update the record result according to the second OAM message; and send the record result to the OAM server, so that the OAM server performs the 0 AM process according to the record result.
  • the first format information includes at least one of the following:
  • Message transmission frequency information Message transmission frequency information, message transmission number information, time stamp information, counting information, and verification information.
  • an embodiment of the present invention provides an OAM server, including:
  • An instruction generating unit configured to generate an operation, management, and maintenance (OAM) instruction, where
  • the OAM command carries the first format information and the first sending target identifier that are used to indicate the OAM packet format.
  • An instruction sending unit configured to send the OAM command to the first network device, to enable the first network device to generate a first OAM message according to the first format information, and send the first OAM message to the
  • the first transmission target identifier indicates the network device.
  • the OAM server further includes: a first processing unit, configured to receive a second OAM packet sent by the first network device, according to the second OAM The message is OAM processed.
  • the OAM server further includes: a second processing unit, configured to receive a second OAM packet sent by the first network device, according to the second OAM Transmitting, by the first network device, a flow table establishment instruction, to enable the first network device to establish an OAM flow table according to the flow table establishment instruction, where the OAM flow table includes The match is matched by the text.
  • a second processing unit configured to receive a second OAM packet sent by the first network device, according to the second OAM Transmitting, by the first network device, a flow table establishment instruction, to enable the first network device to establish an OAM flow table according to the flow table establishment instruction, where the OAM flow table includes The match is matched by the text.
  • the second processing unit is further configured to receive a record result sent by the first network device, The recorded results are subjected to OAM processing.
  • the fourth aspect in the fourth aspect includes at least one of the following: packet sending frequency information, message sending number information, time stamp information, counting information, and check information.
  • the embodiment of the present invention provides an OAM packet processing system, including: the first network device provided by the embodiment of the present invention;
  • An OAM server provided by an embodiment of the present invention.
  • the first network device receives the OAM command sent by the OAM server, where the OAM command carries the first to indicate the OAM packet format. And the first network device generates the first OAM packet according to the first format information, and sends the first OAM packet to the network device indicated by the first sending target identifier.
  • the first network device may generate an OAM packet according to the format information carried in the OAM command sent by the OAM server, and may send format information adapted to the network device for different network devices, so that the corresponding OAM processing is reserved in the network device.
  • the ability can adapt to different OAM standards without changing the hardware structure of the network equipment, greatly improving the flexibility of OAM processing.
  • FIG. 1 is a flowchart of a method for processing an OAM packet according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for processing a second OAM packet according to an embodiment of the present invention
  • Figure 3 is a flowchart of a method for processing an OAM packet according to an embodiment of the present invention
  • Figure 5 is a flowchart of a method for processing a fifth OAM packet according to an embodiment of the present invention
  • FIG. 6 is a flowchart of a sixth method for processing an OAM packet according to an embodiment of the present invention
  • FIG. 7 is a schematic structural diagram of a first network device according to an embodiment of the present invention
  • FIG. 1 is a flowchart of a method for processing an OAM packet according to an embodiment of the present invention
  • FIG. 2 is a flowchart of a method for processing a second OAM packet according to an embodiment of the present invention
  • Figure 3 is a flowchart of a method for processing an OAM packet according to an
  • FIG. 9 is a schematic structural diagram of a third network device according to an embodiment of the present invention.
  • 10 is a schematic structural diagram of a first OAM server according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of a second OAM server according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a third OAM server according to an embodiment of the present invention;
  • FIG. 13 is a schematic structural diagram of a fourth first network device according to an embodiment of the present disclosure;
  • FIG. 14 is a schematic structural diagram of a fourth OAM server according to an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for processing an OAM packet according to an embodiment of the present invention.
  • the OAM processing method provided in this embodiment may be specifically applied to an OAM processing process of a network device, where the network device may be a network element that needs to implement an OAM function in the network.
  • the OAM packet processing method provided in this embodiment specifically includes:
  • Step A10 The first network device receives an OAM command sent by an operation, management, and maintenance (OAM) server, where the OAM command carries first format information and a first sending target identifier that are used to indicate an OAM packet format.
  • OAM operation, management, and maintenance
  • Step A20 The first network device generates a first OAM message according to the first format information, and sends the first message to the network device indicated by the first sending target identifier.
  • the ⁇ server is used to implement detection and processing functions such as detection and processing of links or paths in the network, and detection of links or paths may include connectivity detection, performance measurement, and fault location.
  • detection and processing functions such as detection and processing of links or paths in the network
  • detection of links or paths may include connectivity detection, performance measurement, and fault location.
  • the server needs to detect a link in the network, and sends an instruction to an endpoint of the link, for example, the endpoint is the first network device
  • the server sends the command to the first network device, where the server sends the command to the first network device.
  • the command carries the first format information and the first transmission target identifier, and the first format information is specifically used to indicate the packet format.
  • the content included in the first format information may be different. Accordingly, different network devices are based on The format of the first 0AM message generated by the first format information may also be different.
  • the first sending target identifier may be a port number of a certain out port of the first network device or a link number of a link, and the like, and a sending object may be determined according to the first sending target identifier.
  • the first network device can generate the required OAM format according to the instruction of the 0AM server, for example, Ethernet (Ethernet) OAM, MPLS (Multi-Protocol Label Switching), OAM, and IP (Internet Protocol). Connected protocol) 0 AM or ICMP (Internet Control Message Protocol) OAM.
  • the first network device receives the 0AM command, generates a first 0AM packet that meets the first format information format requirement according to the first format information, and sends the first 0AM packet to the corresponding network according to the first sending target identifier. device.
  • the first format information may include the packet sending frequency information and the packet sending quantity information, and the first network device may send a set of the first 0AM packet according to the frequency indicated by the packet sending frequency information.
  • the number of the first 0AM packets in the group is the number indicated by the message sending quantity information.
  • a field may be set in the first 0AM message to identify the sequence number of the first OAM ⁇ message in the group.
  • the network device that receives the first 0AM packet may send a response to the first network device, so that the first network device can learn the receiving condition of the first 0AM packet, and if the link detection permission is released to the network device, The first network device can parse the received response, learn the receiving condition of the first 0AM packet, and determine network quality parameters such as delay and packet loss rate, so as to implement connectivity and performance detection of the link. .
  • the network device that receives the first 0AM packet can also directly send the first 0AM packet to the 0AM server.
  • the 0AM server can parse the first 0AM packet by using the link detection initiated by the 0AM server. Network quality parameters such as link delay and packet loss rate to detect connectivity and performance of the link.
  • the 0AM server may also send an 0AM command to the network device that receives the first 0AM packet.
  • the 0AM command carries second format information and a second transmission target identifier that are used to indicate the 0AM message format.
  • the network device that receives the first 0AM packet may further generate a third 0AM packet according to the second format information, and send the generated third 0AM packet to the network device of the next hop, that is, the second sending target identifier. The indicated network device.
  • the first network device receives the OAM command sent by the OAM server, where the OAM command carries the first format information and the first sending target identifier, which are used to indicate the OAM packet format, and the first The network device generates a first OAM packet according to the first format information, and sends the first OAM packet to the network device indicated by the first sending target identifier.
  • the first network device may generate an OAM packet according to the format information carried in the OAM command sent by the OAM server, and may send format information adapted to the network device for different network devices, so that the corresponding OAM processing is reserved in the network device.
  • FIG. 2 is a flowchart of a second OAM packet processing method according to an embodiment of the present invention. As shown in FIG. 2, in this embodiment, the method further includes:
  • Step A30 The first network device receives the second OAM message sent by the second network device, and sends the second OAM message to the OAM server, so that the OAM server is configured according to the second OAM message.
  • the text is OAM processed.
  • the first network device may be a network device that is the receiving end of the link, and the first network device receives the second OAM packet sent by the second network device, and forwards the second OAM packet to the OAM server.
  • the OAM server performs OAM processing according to the second OAM packet. For example, the OAM server instructs the second network device to send a second set of 200 OAM messages to the first network device at a time interval of 50 ms, and the first network device sends the received second OAM message to the OAM server.
  • the OAM server receives 140 second OAM packets, the OAM server can determine that the packet loss rate of the link between the second network device and the first network device is 30%.
  • the path includes three links, which are respectively a link between the network device A and the network device B, and the network device B to the network device C.
  • the OAM server can send an OAM command to the network device A.
  • the network device A generates an OAM message according to the OAM command and sends the OAM message to the network device B.
  • the network device B sends the received OAM ⁇ message to the OAM server, and the OAM server goes to the network.
  • the device B sends an OAM command, and the network device B generates an OAM message according to the OAM command and sends the OAM message to the network device C.
  • the network device C sends the received OAM message to the OAM server, and the OAM server sends the OAM command to the network device C.
  • the network device C generates an OAM packet according to the OAM command.
  • the network device D sends the received OAM message to the OAM server.
  • the OAM server can detect the connectivity and performance of the OAM packet received from the network device B, the network device C, and the network device D. If a link in the path fails, fault location can be implemented.
  • the OAM server also sends an OAM command to the network device D, and the network device D generates an OAM message according to the OAM command and sends the message to the network.
  • Device A network device A sends the received OAM packet to the OAM server.
  • the OAM server can detect the loopback path according to the OAM packet received from the network device A, the network device B, the network device C, and the network device D, respectively.
  • the OAM server may send an OAM command to the network device A, and the network device A generates an OAM message according to the OAM command.
  • Sending to the network device B the network device B forwards the OAM message to the network device C, and the network device C forwards the OAM message to the network device D, and the network device D sends the received OAM message to the OAM server.
  • the OAM server detects the path based on the received OAM packet.
  • the network device sends the OAM packet to the OAM server for parsing, which greatly simplifies the processing complexity of the network device and achieves consistency with the network architecture of the SDN (Software Defined Network).
  • SDN Software Defined Network
  • step A30 and step A10 and step A20 can be processed in parallel without a necessary timing relationship.
  • the above methods can also be used in the implementation of other OAM functions.
  • FIG. 3 is a flowchart of a third OAM packet processing method according to an embodiment of the present invention. As shown in FIG. 3, in this embodiment, the method may further include:
  • Step A40 The first network device receives a second OAM message sent by the second network device.
  • Step A50 If the first network device does not store the OAM flow table corresponding to the second OAM packet, send the second OAM packet to the OAM server, and receive the flow table sent by the OAM server. Establishing an instruction, and establishing an OAM flow table according to the flow table establishment instruction, where the OAM flow table includes a matching item for matching the OAM message.
  • the method may further include:
  • Step A60 The first network device stores the OAM corresponding to the second OAM packet.
  • the flow table updates the record result according to the second OAM message;
  • Step A70 The first network device sends the record result to the OAM server, so that the OAM server performs OAM processing according to the record result.
  • the first network device when the first network device receives the OAM packet sent by the other network device, it may first determine whether the flow table corresponding to the OAM packet is stored, and then perform processing according to the determination result. The first network device may match the fields in the OAM packet with the matching entries in the flow table. If the matching succeeds, the flow table corresponding to the 0 AM packet is stored. If the matching fails, the first parameter does not exist. The flow table corresponding to the OAM packet.
  • the second OAM packet is sent to the OAM server, OAM
  • the server sends a flow table establishment instruction to the first network device, and the first network device may establish an OAM flow table according to the flow table establishment instruction, where the OAM flow table includes a matching item (match Fields) for matching the OAM message.
  • the OAM server may determine, according to the second OAM packet that is sent by the first network device, the flow that the second OAM packet belongs to, and use some field in the second OAM packet as the matching item, and pass the flow table.
  • the setup command sends a match to the first network device.
  • the second OAM packet received by the first network device matches the content of the preset field in the second OAM packet with the matching item. If the matching succeeds, the second OAM packet is recorded to generate a record. result.
  • the first network device receives the second OAM packet sent by the second network device, and if the first network device stores the flow table corresponding to the second OAM packet, the first network device receives the second The OAM packet records the second OAM packet to generate a recording result.
  • the first network device may record only the number of successfully matched second OAM messages and report the result to the OAM server. It is also possible to record information such as the receiving time and number of the successfully matched second OAM ⁇ message for the OAM server to analyze the link performance based on the information.
  • the first network device may send the record result of each second OAM message to the OAM server, or record the information of all the successfully matched second OAM messages together to obtain the record result, and send the record result. Give the OAM server. During this process, the first network device does not send the second OAM message to the OAM server.
  • the flow table generated by the first network device may include multiple flow entries, and each flow entry corresponds to one flow.
  • the flow entry includes the above matching items, and may also include corresponding Operation instruction (Action).
  • the operation instruction may also be sent to the first network device by the OAM server by using a flow table establishment instruction.
  • the first network device may determine, according to the matching item, which stream the received OAM message belongs to, and perform a corresponding operation according to the operation instruction.
  • the operation command may include one or more of the following combinations: the OAM packet is discarded, the OAM packet is directly forwarded to the next hop node, and the received OAM packet is replaced with another format OAM packet.
  • the OAM After being forwarded to the next hop node, the OAM ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇ ⁇
  • the method for the first network device to replace the received OAM packet with the 0AM packet of another format and forward the packet to the next hop node may be carried to indicate the OAM packet format.
  • the second format information and the second sending target identifier may further include:
  • the first network device generates a third OAM packet according to the second format information, and the third OAM packet is the network device indicated by the second sending target identifier.
  • the flow table establishment instruction sent by the OAM server to the first network device may also carry a useful indication to indicate the OAM message format.
  • the second format information is generated by the first network device, and the third network device generates a third OAM packet according to the second format information, and sends the third OAM packet to the next hop network device.
  • the OAM server may also send the second format information and the second sending target identifier to the first network device as part of the operation command, and the first network device may record the information in the corresponding flow entry of the flow table.
  • the first format information includes at least one of the following: a message sending frequency information, a message sending number information, time stamp information, counting information, and check information.
  • the first format information includes one or more of the foregoing information in addition to the message fixed information.
  • the message fixed information may specifically be information having a fixed format.
  • the message transmission frequency information is used to indicate the transmission frequency of the OAM message.
  • the message transmission number information is used to indicate the number of OAM messages to be sent. For example, an OAM message is sent at intervals of 50 ms, and a total of 200 OAM messages are sent.
  • the time stamp information may specifically indicate the time when the OAM message is sent.
  • the counting information may specifically include a field for counting. For the first OAM packet, the field is a preset starting value, and then each time an OAM packet is sent, the field is increased or decreased. A fixed value.
  • the technical information is, for example, information such as a Sequence Number or a Counter (count value) in the text.
  • the verification information may specifically include which parts of the generated message are verified, and the type of the check.
  • the IP header performs checksum check on the IP packet header.
  • the checksum type may include a Checksum check or a CRC (Cyclic Redundancy Check) check.
  • the IP packet header check or the BIP16 field in the MPLS OAM belongs to the Checksum check and the Ethernet packet.
  • the check is a CRC check.
  • first network device the second network device, and the first to third OAM messages are only used for distinguishing, and are not used for sequence limitation.
  • the second network device can implement the functions of the first network device.
  • FIG. 4 is a flowchart of a method for processing a fourth OAM packet according to an embodiment of the present invention. As shown in Figure 4, the method applied to the network device side is implemented. The specific implementation process is not described here.
  • the OAM packet processing method provided in this embodiment specifically includes:
  • Step B10 The operation, management, and maintenance (OAM) server generates an OAM command, where the OAM command carries first format information and a first transmission target identifier that are used to indicate an OAM message format.
  • OAM operation, management, and maintenance
  • Step B20 The OAM server sends the OAM command to the first network device, so that the first network device generates a first OAM packet according to the first format information, and sends the first OAM packet to the first network device.
  • the first sending target identifier indicates the network device.
  • the OAM server In the method for processing an OAM packet, the OAM server generates an OAM command and sends the OAM message to the first network device.
  • the first network device can generate an OAM packet according to the format information carried in the OAM command sent by the OAM server.
  • the network device can send format information adapted to the network device, so that the network device can adapt to different OAM standards as long as the corresponding OAM processing space is reserved, and the hardware structure of the network device does not need to be changed, thereby greatly improving the flexibility of the OAM processing. .
  • FIG. 5 is a flowchart of a fifth OAM packet processing method according to an embodiment of the present invention. As shown in FIG. 6, in this embodiment, the OAM processing method further includes:
  • Step B30 The OAM server receives the second OAM packet sent by the first network device, and performs OAM processing according to the second OAM packet.
  • FIG. 6 is a flowchart of a sixth OAM packet processing method according to an embodiment of the present invention.
  • the OAM processing method further includes: Step B40: The OAM server receives the second OAM packet sent by the first network device, and sends a flow table establishment command to the first network device according to the second OAM packet, so that the first network is configured.
  • the device establishes an OAM flow table according to the flow table establishment instruction, where the OAM flow table includes a matching item for matching the OAM ⁇ text.
  • the OAM processing method further includes:
  • Step B50 The OAM server receives the record result sent by the first network device, and performs OAM processing according to the record result.
  • the OAM server can send the OAM packet processing authority to the network device, and the network device establishes a flow table and collects the received OAM packet according to the flow table, thereby preventing the network device from transmitting all the OAM packets. Waste of resources for OAM server processing.
  • step B30, step B40 and step B50 and step B10 and step B20 can be processed in parallel without a necessary timing relationship.
  • the flow table establishment instruction may further carry second format information and a second transmission target identifier that are used to indicate an OAM message format.
  • the first network device may generate an OAM message according to the second format information carried in the flow table establishment command, and send the generated OAM message to the network device corresponding to the second sending target identifier.
  • the first format information includes at least one of the following: a message sending frequency information, a message sending number information, time stamp information, counting information, and check information.
  • FIG. 7 is a schematic structural diagram of a first type of first network device according to an embodiment of the present invention.
  • the first network device 81 provided in this embodiment may be implemented in any embodiment of the present invention.
  • the first network device 81 provided in this embodiment specifically includes an instruction receiving unit 11 and a first processing unit 12.
  • the instruction receiving unit 11 is configured to receive an OAM command sent by an operation, management, and maintenance (OAM) server, where the OAM command carries first format information and a first sending target identifier that are used to indicate an OAM message format.
  • the first processing unit 12 is configured to generate a first OAM message according to the first format information, and send the first OAM message to the network device indicated by the first sending target identifier.
  • OAM operation, management, and maintenance
  • the first network device 81 provided by the embodiment, the instruction receiving unit 11 receives the OAM command sent by the OAM server, where the OAM command carries the first format information and the first sending target identifier, which are used to indicate the OAM packet format, and the first The processing unit 12 generates the information according to the first format information.
  • the first OAM packet is sent to the network device indicated by the first sending target identifier.
  • the first network device 81 may generate an OAM packet according to the format information carried in the 0AM command sent by the 0AM server, and may send format information adapted to the network device for different network devices, so that the corresponding OAM is reserved in the network device.
  • the processing capability can adapt to different OAM standards, without changing the hardware structure of the network device, and greatly improving the flexibility of OAM processing.
  • FIG. 8 is a schematic structural diagram of a second first network device according to an embodiment of the present invention.
  • the first network device 81 may further include a packet forwarding unit 13, and the packet forwarding unit 13 is configured to receive the first The second OAM packet sent by the network device sends the second OAM packet to the OAM server, so that the OAM server performs OAM processing according to the second OAM packet.
  • FIG. 9 is a schematic structural diagram of a third first network device according to an embodiment of the present invention.
  • the first network device 81 may further include a message receiving unit 14 and a second processing unit 15.
  • the message receiving unit 14 is configured to receive a second OAM message sent by the second network device.
  • the second processing unit 15 is configured to: if the OAM flow table corresponding to the second OAM packet is not stored, send the second OAM packet to the OAM server, and receive the flow table sent by the OAM server. Establishing an instruction, and establishing an OAM flow table according to the flow table establishment instruction, where the OAM flow table includes a matching item for matching the OAM packet.
  • the second processing unit 15 may forward the received OAM 4 to the OAM server. After receiving the flow table establishment command sent by the OAM server, the second processing unit 15 may stop the OAM server. Forward OAM packets.
  • the second processing unit 15 may be further configured to: if the OAM flow table corresponding to the second OAM packet is stored, update the record result according to the second OAM packet; The result of the recording is sent to the OAM server, so that the OAM server performs OAM processing according to the recorded result.
  • the flow table establishment instruction carries the second format information and the second transmission target identifier that are used to indicate the OAM packet format.
  • the first network device 81 may further include a third processing unit.
  • the third processing unit is configured to generate a third OAM packet according to the second format information, and use the network device indicated by the second sending target identifier of the third OAM packet.
  • the first format information includes at least one of the following: a message sending frequency information, a message sending number information, time stamp information, counting information, and check information.
  • FIG. 10 is a schematic structural diagram of a first OAM server according to an embodiment of the present invention.
  • the OAM server 82 provided in this embodiment may implement various steps of the OAM packet processing method applied to the OAM server according to any embodiment of the present invention. The specific implementation process is not described herein.
  • the OAM server 82 provided in this embodiment specifically includes an instruction generating unit 21 and an instruction transmitting unit 22.
  • the instruction generating unit 21 is configured to generate an operation, management, and maintenance (OAM) instruction, where the OAM instruction carries first format information and a first transmission target identifier that are used to indicate an OAM message format.
  • OAM operation, management, and maintenance
  • the command sending unit 22 is configured to send the OAM command to the first network device, so that the first network device generates a first OAM packet according to the first format information, and sends the first OAM packet.
  • the network device indicated to the first transmission target identifier. Sending the OAM instruction to the first network device.
  • the OAM server 82 provided in this embodiment sends the OAM command to the first network device, and the OAM command is generated by the OAM server and sent to the first network device.
  • the first network device may be in the format carried by the OAM command sent by the OAM server 82.
  • the information generates OAM packets.
  • format information suitable for the network device can be sent, so that the network device can adapt to different OAM standards as long as the corresponding OAM processing capability is reserved, without changing the hardware structure of the network device. , greatly improved the flexibility of OAM processing.
  • FIG. 11 is a schematic structural diagram of a second OAM server according to an embodiment of the present invention.
  • the OAM server 82 may further include a first processing unit 23, where the first processing unit 23 is configured to receive the location.
  • the second OAM packet sent by the first network device is subjected to OAM processing according to the second OAM packet.
  • FIG. 12 is a schematic structural diagram of a third OAM server according to an embodiment of the present invention.
  • the OAM server 82 may further include a second processing unit 24, where the second processing unit 24 is configured to receive the location. Transmitting, by the first network device, a flow table establishment instruction to the first network device according to the second OAM message, so that the first network device establishes an instruction according to the flow table establishment command.
  • OAM where the OAM flow table includes a matching item for matching the OAM 4 message.
  • the second processing unit 24 is further configured to receive a record result sent by the first network device, and perform OAM processing according to the record result.
  • the flow table establishment instruction may further carry second format information and a second transmission target identifier that are used to indicate an OAM message format.
  • the first format information includes at least one of the following: a message sending frequency information, a message sending number information, time stamp information, counting information, and check information.
  • the embodiment of the present invention provides an OAM processing system, and the OAM processing system includes the first network device provided by any embodiment of the present invention; and the OAM server provided by any embodiment of the present invention.
  • FIG. 13 is a schematic structural diagram of a fourth first network device according to an embodiment of the present invention.
  • the first network device 700 of the first network device provided in this embodiment may implement the implementation process of the present invention, and details are not described herein again.
  • the first network device 700 provided in this embodiment specifically includes: a processor 710, a communication interface 720, a memory 730, and a bus 740, wherein the processor 710, the communication interface 720, and the memory 730 are completed by using the bus 740. Communication with each other.
  • the communication interface 720 is configured to receive an OAM command sent by an operation, management, and maintenance (OAM) server, where the OAM command carries first format information and a first transmission target identifier that are used to indicate an OAM message format; The first OAM message is sent to the network device indicated by the first sending target identifier.
  • the memory 730 is used to store instructions.
  • the processor 710 is configured to execute instructions stored in the memory 730, wherein the processor 710 is configured to generate the first OAM message based on the first format information.
  • the communication interface 720 is further configured to receive a second OAM message sent by the second network device, and send the second OAM message to the OAM server, so that the OAM server is configured according to the The second OAM packet is processed by OAM.
  • the communication interface 720 is further configured to receive a second OAM packet sent by the second network device, where the processor 710 is configured to be further configured to: if the second OAM packet is not stored,
  • the OAM flow table sends the second OAM packet to the OAM server through the communication interface 720, receives a flow table establishment command sent by the OAM server, and establishes an OAM flow table according to the flow table establishment command.
  • the OAM flow table includes a matching item for matching the OAM packet.
  • the processor 710 is configured to be further configured to: if the second is stored
  • the OAM flow table corresponding to the OAM packet updates the recording result according to the second packet; and sends the recording result to the UI server, so that the UI server performs the recording according to the recording result. deal with.
  • FIG. 14 is a schematic structural diagram of a fourth type of server according to an embodiment of the present invention.
  • the ⁇ server 800 provided in this embodiment may implement various steps of the ⁇ message processing method applied to the ⁇ server provided by any embodiment of the present invention, and the specific implementation process is not described herein again.
  • the UI server 800 provided in this embodiment specifically includes: a processor 810, a communication interface 820, a memory 830, and a bus 840, wherein the processor 810, the communication interface 820, and the memory 830 are mutually completed by the bus 840. Communication.
  • the communication interface 820 is configured to send a first instruction to the first network device, so that the first network device generates a first packet according to the first format information, and sends the first packet to the first destination. Identify the indicated network device.
  • the memory 830 is used to store instructions.
  • the processor 810 is configured to execute instructions stored in the memory 830, wherein the processor 810 is configured to generate the command, wherein the command is carried in the command to indicate a report The first format information of the text format and the first transmission target identifier; sending the UI instruction to the first network device.
  • the communication interface 820 is further configured to receive the second packet that is sent by the first network device, where the processor 810 is configured to be further configured to perform the second packet according to the second packet. deal with.
  • the communication interface 820 is further configured to receive the second packet sent by the first network device, where the processor 810 is configured to further serve to pass the second packet according to the second packet.
  • the communication interface 820 sends a flow table establishment instruction to the first network device, so that the first network device establishes a flow table according to the flow table establishment instruction, where the flow table includes The message matches the match.
  • the communication interface 820 is further configured to receive a record result sent by the first network device; the processor 810 is configured to further perform a process according to the record result.
  • the method includes the steps of the foregoing method embodiments; and the foregoing storage medium includes: a ROM, a RAM, a magnetic disk, or an optical disk, and the like, which can store program codes. Medium.

Landscapes

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

Abstract

本发明实施例提供一种OAM报文处理方法、设备及***,该OAM报文处理方法包括:第一网络设备接收操作、管理和维护(OAM)服务器发送的OAM指令,其中,OAM指令中携带有用以指示OAM报文格式的第一格式信息和第一发送目标标识;第一网络设备根据第一格式信息生成第一OAM报文,将第一OAM报文发往第一发送目标标识指示的网络设备。本发明实施例提供的OAM报文处理方法、设备及***,实现了无需改变网络设备的硬件结构即可适应不同的OAM标准,提高了OAM处理的灵活性。

Description

OAM报文处理方法、 设备及*** 本申请要求于 201 3 年 1 月 31 日提交中国专利局、 申请号为 201 31 0038824. 3 , 发明名称为 "0AM报文处理方法、设备及***" 的中国专 利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域 本发明实施例涉及通信技术, 尤其涉及一种 OAM报文处理方法、 设 备及***。 背景技术 操作、 管理和维护 ( Operation, Administration and Maintenance , 简称 OAM )是对某个接口 /链路协议的有效补充, 提供了对某个接口 /链路协议 的操作、 管理和维护机制, OAM功能通常包括链路或路径的连通性检测、 性能测量和故障定位等。
现有技术中,链路的 OAM标准往往滞后于该链路的标准,且 OAM功 能通常需要链路处理的硬件支持, 因此, OAM标准出台, 很多设备并不具 有支持 OAM功能的能力,即使后期增加了 OAM功能,不同的设备对 OAM 报文的处理方法也不相同, 亟需提出一种灵活的 OAM报文的处理方法来 适应 OAM标准的推出和不同的设备。 发明内容 本发明实施例提供一种 0 AM报文处理方法、设备及***,以提高 0 AM 处理的灵活性。
第一方面, 本发明实施例提供一种 OAM报文处理方法, 包括: 第一网络设备接收操作、 管理和维护 (OAM )服务器发送的 OAM指 令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的第一格式信 息和第一发送目标标识; 所述第一网络设备根据所述第一格式信息生成第一 0AM报文,将所述 第一 0AM报文发往所述第一发送目标标识指示的网络设备。
在第一方面的第一种可能的实现方式中,所述 0AM报文处理方法,还 包括:
所述第一网络设备接收第二网络设备发送的第二 0AM报文,将所述第 二 OAM报文发送给所述 OAM服务器, 以使所述 OAM服务器根据所述第 二 OAM 艮文进行 OAM处理。
在第一方面的第二种可能的实现方式中,所述 OAM报文处理方法,还 包括:
所述第一网络设备接收第二网络设备发送的第二 OAM报文; 所述第一网络设备若没有存储所述第二 OAM报文对应的 OAM流表, 则将所述第二 OAM报文发送给所述 OAM服务器, 接收所述 OAM服务器 发送的流表建立指令, 根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于对 OAM ^艮文进行匹配的匹配项。
结合第一方面的第二种可能的实现方式, 在第一方面的第三种可能的 实现方式中, 所述 ΟΑΜ · ^艮文处理方法, 还包括:
所述第一网络设备若存储有所述第二 OAM报文对应的 OAM流表,则 根据所述第二 OAM报文对记录结果进行更新;
所述第一网络设备将所述记录结果发送给所述 OAM服务器,以使所述 OAM服务器根据所述记录结果进行 OAM处理。
结合第一方面的第一种至第三种可能的实现方式中, 在第一方面的第 四种可能的实现方式中, 所述第一格式信息包括以下至少一种:
报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
第二方面, 本发明实施例提供一种 OAM报文处理方法, 包括: 操作、 管理和维护(OAM )服务器生成 OAM指令, 其中, 所述 OAM 指令中携带有用以指示 OAM报文格式的第一格式信息和第一发送目标标 识;
所述 OAM服务器向第一网络设备发送所述 OAM指令,以使所述第一 网络设备根据所述第一格式信息生成第一 OAM报文,将所述第一 OAM报 文发往所述第一发送目标标识指示的网络设备。 在第二方面的第一种可能的实现方式中,所述 OAM报文处理方法,还 包括:
所述 OAM服务器接收所述第一网络设备发送的第二 OAM报文,根据 所述第二 OAM报文进行 OAM处理。
在第二方面的第二种可能的实现方式中,所述 OAM报文处理方法,还 包括:
所述 OAM服务器接收所述第一网络设备发送的第二 OAM报文根据所 述第二 OAM报文向所述第一网络设备发送流表建立指令,以使所述第一网 络设备根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包 括用于对 OAM ^艮文进行匹配的匹配项。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的 实现方式中, 所述 ΟΑΜ · ^艮文处理方法, 还包括:
所述 OAM服务器接收所述第一网络设备发送的记录结果,根据所述记 录结果进行 OAM处理。
结合第二方面的第一种至第三种可能的实现方式, 在第二方面的第四 种可能的实现方式中, 所述第一格式信息包括以下至少一种:
报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
第三方面, 本发明实施例提供一种第一网络设备, 包括:
指令接收单元,用于接收操作、管理和维护( OAM )服务器发送的 OAM 指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的第一格式 信息和第一发送目标标识;
第一处理单元,用于根据所述第一格式信息生成第一 OAM报文,将所 述第一 OAM报文发往所述第一发送目标标识指示的网络设备。
在第三方面的第一种可能的实现方式中, 所述第一网络设备, 还包括: 报文转发单元,用于接收第二网络设备发送的第二 OAM报文,将所述 第二 OAM报文发送给所述 OAM服务器, 以使所述 OAM服务器根据所述 第二 OAM报文进行 OAM处理。
在第三方面的第二种可能的实现方式中, 所述第一网络设备, 还包括: 报文接收单元, 用于接收第二网络设备发送的第二 OAM报文; 第二处理单元,用于若没有存储所述第二 OAM报文对应的 OAM流表, 则将所述第二 OAM报文发送给所述 OAM服务器, 接收所述 OAM服务器 发送的流表建立指令, 根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于对 OAM ^艮文进行匹配的匹配项。
结合第三方面的第二种可能的实现方式, 在第三方面的第三种可能的 实现方式中,所述第二处理单元还用于若存储有所述第二 OAM >¾文对应的 OAM流表, 则对根据所述第二 OAM报文对记录结果进行更新; 将所述记 录结果发送给所述 OAM服务器,以使所述 OAM服务器根据所述记录结果 进行 0 AM处理。
结合第三方面的第一种至第三种可能的实现方式, 在第三方面的第四 种可能的实现方式中, 所述第一格式信息包括以下至少一种:
报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
第四方面, 本发明实施例提供一种 OAM服务器, 包括:
指令生成单元, 用于生成操作、 管理和维护(OAM )指令, 其中, 所述
OAM指令中携带有用以指示 OAM报文格式的第一格式信息和第一发送目标 标识;
指令发送单元,用于向第一网络设备发送所述 OAM指令, 以使所述第 一网络设备根据所述第一格式信息生成第一 OAM报文, 将所述第一 OAM 文发往所述第一发送目标标识指示的网络设备。
在第四方面的第一种可能的实现方式中, 所述 OAM服务器, 还包括: 第一处理单元,用于接收所述第一网络设备发送的第二 OAM报文,根 据所述第二 OAM报文进行 OAM处理。
在第四方面的第二种可能的实现方式中, 所述 OAM服务器, 还包括: 第二处理单元,用于接收所述第一网络设备发送的第二 OAM报文,根 据所述第二 OAM报文向所述第一网络设备发送流表建立指令,以使所述第 一网络设备根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表 中包括用于对 OAM ^艮文进行匹配的匹配项。
结合第四方面的第二种可能的实现方式, 在第四方面的第三种可能的 实现方式中, 所述第二处理单元还用于接收所述第一网络设备发送的记录 结果, 根据所述记录结果进行 OAM处理。
结合第四方面的第一中至第三种可能的实现方式, 在第四方面的第四 种可能的实现方式中, 所述第一格式信息包括以下至少一种: 报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
第五方面, 本发明实施例提供一种 OAM报文处理***, 包括: 本发明实施例提供的第一网络设备; 以及
本发明实施例提供的 OAM服务器。
由上述技术方案可知,本发明实施例提供的 OAM报文处理方法、设备 及***, 第一网络设备接收 OAM服务器发送的 OAM指令, 其中, OAM 指令中携带有用以指示 OAM报文格式的第一格式信息和第一发送目标标 识, 第一网络设备根据第一格式信息生成第一 OAM报文, 将第一 OAM报 文发往第一发送目标标识指示的网络设备。第一网络设备可以根据 OAM服 务器发送的 OAM指令中携带的格式信息生成 OAM报文,对于不同的网络 设备可以发送适应于该网络设备的格式信息, 以使得网络设备中只要预留 相应的 OAM处理能力即可适应不同的 OAM标准,无需改变网络设备的硬 件结构, 大大提高了 OAM处理的灵活性。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对 实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明实施例提供的第一种 OAM报文处理方法流程图; 图 2为本发明实施例提供的第二种 OAM报文处理方法流程图; 图 3为本发明实施例提供的第三种 OAM报文处理方法流程图; 图 4为本发明实施例提供的第四种 OAM报文处理方法流程图; 图 5为本发明实施例提供的第五种 OAM报文处理方法流程图; 图 6为本发明实施例提供的第六种 OAM报文处理方法流程图; 图 7为本发明实施例提供的第一种第一网络设备结构示意图; 图 8为本发明实施例提供的第二种第一网络设备结构示意图; 图 9为本发明实施例提供的第三种第一网络设备结构示意图; 图 10为本发明实施例提供的第一种 OAM服务器结构示意图; 图 11为本发明实施例提供的第二种 OAM服务器结构示意图; 图 12为本发明实施例提供的第三种 OAM服务器结构示意图; 图 13为本发明实施例提供的第四种第一网络设备结构示意图;
图 14为本发明实施例提供的第四种 OAM服务器结构示意图。
具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本 发明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描 述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提 下所获得的所有其他实施例, 都属于本发明保护的范围。
图 1为本发明实施例提供的第一种 OAM报文处理方法流程图。如图 1 所示, 本实施例提供的 OAM ^艮文处理方法具体可以应用于网络设备的 OAM处理过程,该网络设备具体可以为网络中需要实现 OAM功能的网元。 本实施例提供的 OAM报文处理方法具体包括:
步骤 A10、 第一网络设备接收操作、 管理和维护 (OAM )服务器发送 的 OAM指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的 第一格式信息和第一发送目标标识;
步骤 A20、所述第一网络设备根据所述第一格式信息生成第一 OAM报 文, 将所述第一 ΟΑΜ ·^文发往所述第一发送目标标识指示的网络设备。
具体地, ΟΑΜ服务器用于实现网络中链路或路径的检测控制和处理等 ΟΑΜ功能, 对链路或路径的检测可以包括连通性检测、 性能测量和故障定 位等。 当 ΟΑΜ服务器需要对网络中某条链路进行检测时, 向该链路的一个 端点发送 ΟΑΜ指令, 例如该端点为第一网络设备, 则 ΟΑΜ服务器向第一 网络设备发送该 ΟΑΜ指令,该 ΟΑΜ指令中携带有第一格式信息和第一发 送目标标识, 第一格式信息具体用以指示 ΟΑΜ报文格式,对于不同的网络 设备, 第一格式信息所包含的内容可以不同。 相应地, 不同网络设备根据 该第一格式信息所生成的第一 0AM报文的格式也可以不同。第一发送目标 标识可以为第一网络设备的某个出端口的端口号或某条链路的链路号等, 根据该第一发送目标标识可以确定一个发送对象。 这样第一网络设备根据 0AM服务器的指令, 可以生成所需要 OAM格式, 例如 Ethernet (以太网) OAM, MPLS ( Multi-Protocol Label Switching, 多协议标签交换) OAM、 IP ( Internet Protocol , 网络之间互连的协议 ) 0 AM或 ICMP ( Internet Control Message Protocol, Internet控制报文协议) OAM等。
第一网络设备接收到该 0AM指令,根据第一格式信息生成符合该第一 格式信息格式要求的第一 0AM报文, 并根据第一发送目标标识将该第一 0AM报文发送给相应的网络设备。 在实际应用过程中, 第一格式信息中可 以包括报文发送频率信息和报文发送数量信息, 则第一网络设备可以按照 报文发送频率信息所指的频率发送一组第一 0AM报文,该组第一 0AM报 文的数量为报文发送数量信息所指示的数量。相应地,该第一 0AM报文中 可以设置一个字段用以标识该第一 OAM ^艮文在该组 ^艮文中的顺序编号。
接收到该第一 0AM报文的网络设备可以向第一网络设备发送响应,以 使得第一网络设备可以获知该第一 0AM报文的接收情况,若将链路检测的 权限下放给网络设备, 则第一网络设备可以对接收到的响应进行解析, 获 知第一 0AM报文的接收情况,并确定时延和丟包率等网络质量参数, 以实 现对该链路的连通性以及性能的检测。
接收到该第一 0AM报文的网络设备还可以直接将第一 0AM报文发送 给 0AM服务器, 由于 0AM服务器发起的链路检测, 则 0AM服务器可以 对该第一 0AM报文进行解析, 获知该链路的时延和丟包率等网络质量参 数, 以实现对该链路的连通性以及性能的检测。
若该 0AM服务器还希望检测该接收第一 0AM报文的网络设备与其下 一跳的网络设备之间的链路时, 0AM服务器还可以向该接收第一 0AM报 文的网络设备发送 0AM指令, 该 0AM指令中携带有用以指示 0AM报文 格式的第二格式信息和第二发送目标标识。该接收第一 0AM报文的网络设 备还可以进一步根据该第二格式信息生成第三 0AM报文,并将生成的第三 0AM报文发送给下一跳的网络设备, 即第二发送目标标识所指示的网络设 备。 当接收第一 0AM报文的网络设备与第一网络设备的 0AM功能实现方 式不同时, 第二格式信息与第一格式信息的内容可以不同。 本实施例提供的 OAM报文处理方法,第一网络设备接收 OAM服务器 发送的 OAM指令, 其中, OAM指令中携带有用以指示 OAM报文格式的 第一格式信息和第一发送目标标识, 第一网络设备根据第一格式信息生成 第一 OAM报文,将第一 OAM报文发往第一发送目标标识指示的网络设备。 第一网络设备可以根据 OAM服务器发送的 OAM指令中携带的格式信息生 成 OAM报文, 对于不同的网络设备可以发送适应于该网络设备的格式信 息, 以使得网络设备中只要预留相应的 OAM 处理能力即可适应不同的 OAM标准, 无需改变网络设备的硬件结构, 大大提高了 OAM处理的灵活 性。
图 2为本发明实施例提供的第二种 OAM报文处理方法流程图。如图 2 所示, 在本实施例中, 该 ΟΑΜ · ^艮文处理方法进一步还包括:
步骤 A30、 所述第一网络设备接收第二网络设备发送的第二 OAM报 文, 将所述第二 OAM报文发送给所述 OAM服务器, 以使所述 OAM服务 器根据所述第二 OAM报文进行 OAM处理。
具体地, 第一网络设备还可以为链路中作为接收端的网络设备, 则第 一网络设备接收第二网络设备发送的第二 OAM报文,将该第二 OAM报文 转发给 OAM服务器,以使得 OAM服务器根据该第二 OAM报文进行 OAM 处理。 例如, OAM服务器指示第二网络设备以时间间隔 50ms向第一网络 设备发送一组数量为 200个的第二 OAM报文,第一网络设备将接收到的第 二 OAM报文发送给 OAM服务器, OAM服务器接收到 140个第二 OAM 报文,则 OAM服务器可以判断第二网络设备到第一网络设备之间的链路的 丟包率为 30%。
举例来说, 若 OAM服务器需要对网络设备 A到网络设备 D的路径进 行检测,该路径包括三条链路,分别为网络设备 A到网络设备 B间的链路、 网络设备 B到网络设备 C之间的链路以及网络设备 C到网络设备 D之间的 链路。 OAM服务器可以向网络设备 A发送 OAM指令, 网络设备 A根据该 OAM指令生成 OAM报文并发送给网络设备 B, 网络设备 B将接收到的 OAM ^艮文发送给 OAM服务器, OAM服务器再向网络设备 B发送 OAM 指令, 网络设备 B根据该 OAM指令生成 OAM报文并发送给网络设备 C, 网络设备 C将接收到的 OAM报文发送给 OAM服务器, OAM服务器再向 网络设备 C发送 OAM指令,网络设备 C根据该 OAM指令生成 OAM报文 并发送给网络设备 D ,网络设备 D将接收到的 OAM报文发送给 OAM服务 器。 OAM服务器可以根据分别从网络设备 B、 网络设备 C和网络设备 D 接收到的 OAM报文对该路径的连通性和性能进行检测,若路径中某条链路 出现故障, 还可以实现故障定位。 若检测的路径为环回路径, 如还包括网 络设备 D到网络设备 A的链路,则 OAM服务器还向网络设备 D发送 OAM 指令, 网络设备 D根据该 OAM指令生成 OAM报文并发送给网络设备 A, 网络设备 A将接收到的 OAM报文发送给 OAM服务器。 OAM服务器可以 根据分别从网络设备 A、 网络设备 B、 网络设备 C和网络设备 D接收到的 OAM报文对该环回路径进行检测。
又举例来说, 在实际应用过程中, 当需要对上述网络设备 A到网络设 备 D的路径进行检测, OAM服务器可以向网络设备 A发送 OAM指令, 网 络设备 A根据该 OAM指令生成 OAM报文并发送给网络设备 B ,网络设备 B将该 OAM报文转发给网络设备 C, 网络设备 C再将该 OAM报文转发给 网络设备 D,网络设备 D将接收到的 OAM报文发送给 OAM服务器, OAM 服务器根据接收到的 OAM报文情况对该路径进行检测。
网络设备将 OAM报文发送给 OAM服务器进行解析处理,可以大大简 化网络设备的处理复杂度, 实现与 SDN ( Software Defined Network, 软件 定义网络) 的网络架构的一致性。
值得注意的是, 步骤 A30与步骤 A10和步骤 A20可以并行处理, 并不 具有必然的时序关系。 而且, 在其他 OAM功能的实现过程中, 也可以釆用 上述方法。
图 3为本发明实施例提供的第三种 OAM报文处理方法流程图。如图 3 所示, 在本实施例中, 所述方法进一步还可以包括:
步骤 A40、 所述第一网络设备接收第二网络设备发送的第二 OAM报 文;
步骤 A50、 所述第一网络设备若没有存储所述第二 OAM报文对应的 OAM流表, 则将所述第二 OAM报文发送给所述 OAM服务器, 接收所述 OAM服务器发送的流表建立指令,根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于对 OAM报文进行匹配的匹配项。
在本实施例中, 所述方法进一步还可以包括:
步骤 A60、所述第一网络设备若存储有所述第二 OAM报文对应的 OAM 流表, 则根据所述第二 OAM报文对记录结果进行更新;
步骤 A70、 所述第一网络设备将所述记录结果发送给所述 OAM服务 器, 以使所述 OAM服务器根据所述记录结果进行 OAM处理。
具体地,第一网络设备接收到其他网络设备发送的 OAM报文时,可以 首先判断否存储有该 OAM报文对应的流表,再根据判断结果进行处理。第 一网络设备可以将 OAM报文中的几个字段与流表中的匹配项进行匹配,若 匹配成功, 说明存储有该 0 AM报文对应的流表, 若匹配失败, 则说明不存 在该 OAM报文对应的流表。
第一网络设备接收到第二网络设备发送的第二 OAM报文,若第一网络 设备中没有存储该第二 OAM报文对应的流表,则该第二 OAM报文发送给 OAM服务器, OAM服务器向第一网络设备发送流表建立指令, 第一网络 设备可以根据该流表建立指令建立 OAM 流表, OAM 流表中包括用于对 OAM报文进行匹配的匹配项 ( Match Fields ) 。 OAM服务器可以根据第一 网络设备上报的第二 OAM报文确定该第二 OAM报文所属于的流 ,并将该 第二 OAM报文中的某几个字段作为该匹配项,并通过流表建立指令将匹配 项发送给第一网络设备。第一网络设备之后接收到的第二 OAM报文,将第 二 OAM报文中的预设字段的内容与匹配项进行匹配,若匹配成功,则将该 第二 OAM报文进行记录, 产生记录结果。
第一网络设备接收到第二网络设备发送的第二 OAM报文,若第一网络 设备中存储有该第二 OAM报文对应的流表,说明该第一网络设备之前接收 到过该第二 OAM报文, 则将该第二 OAM报文进行记录, 产生记录结果。
在实际应用过程中, 为了降低第一网络设备的工作复杂度, 第一网络 设备可以只将匹配成功的第二 OAM报文的数量进行记录,并向 OAM服务 器上 4艮该记录结果。也可以对匹配成功的第二 OAM ^艮文的接收时间和编号 等信息进行记录, 以供 OAM服务器根据该些信息对链路性能进行分析。第 一网络设备可以将对每个第二 OAM报文的记录结果发送给 OAM服务器, 也可以将所有匹配成功的第二 OAM报文的信息记录在一起,得到该记录结 果, 将该记录结果发送给 OAM服务器。 在此处理过程中, 第一网络设备并 不将第二 OAM报文发送给 OAM服务器。
在本实施例中, 第一网络设备生成的流表中可以包括多个流表项, 每 个流表项分别对应一个流。 流表项中包括上述匹配项, 还可以包括相应的 操作指令(Action )。 该操作指令也可以为 OAM服务器通过流表建立指令 发送给第一网络设备的。 第一网络设备可以根据匹配项确定接收到的 OAM 报文属于哪个流, 并根据操作指令执行相应的操作。 例如, 操作指令可以 包括以下一种或多种的组合: 将 OAM报文丟弃、 将 OAM报文直接转发给 下一跳节点,将收到的 OAM报文替换为另一个格式的 OAM报文后转发给 下一跳节点, 将 OAM ^艮文上 ^艮、 对匹配成功的 OAM ^艮文进行记录, 将记 录结果上报给 OAM服务器等。
关于第一网络设备如何将收到的 OAM报文替换为另一个格式的 0AM 报文后转发给下一跳节点, 举例来说, 所述流表建立指令中可以携带有用 以指示 OAM报文格式的第二格式信息和第二发送目标标识;所述第一网络 设备接收所述 OAM服务器发送的流表建立指令之后, 所述方法还可以包 括:
所述第一网络设备根据所述第二格式信息生成第三 OAM报文,将所述 第三 OAM报文所述第二发送目标标识指示的网络设备。
具体地,若 OAM服务器需要进行路径检测, 而第一网络设备是待检测 路径中的一个节点,则 OAM服务器向第一网络设备发送的流表建立指令中 还可以携带有用以指示 OAM报文格式的第二格式信息和第二发送目标标 识, 第一网络设备根据该第二格式信息生成第三 OAM报文, 并将该第三 OAM报文发送给下一跳网络设备。
OAM服务器也可以将该第二格式信息和第二发送目标标识作为操作 指令的一部分下发给第一网络设备, 则第一网络设备可以将上述信息记录 在流表的相应流表项中。
在本实施例中, 所述第一格式信息包括以下至少一种: 报文发送频率 信息、 报文发送数目信息、 时戳信息、 计数信息和校验信息。
具体地, 第一格式信息中除了包括报文固定信息以外, 还包括上述信 息中的一种或多种。 报文固定信息具体可以为具有固定格式的信息。 报文 发送频率信息用以指示 OAM报文的发送频率,报文发送数目信息用以指示 OAM报文的发送数量, 例如间隔 50ms发送一个 OAM报文, 发送一组共 200条 OAM报文。 时戳( time stamp )信息具体可以指示发送该 OAM报文 的时间。计数信息具体可以包含一个字段用以计数,对于第一个 OAM报文, 该字段为一预设的起始值, 然后每发送一个 OAM报文,该字段增加或减少 一个固定值。 该技术信息例如为 ^艮文中的 Sequence Number (序列号) 或 Counter (计数值)等信息。 校验信息具体可以包含对生成的报文中哪些部 分进行校验, 以及校验类型。 例如 IP头就只对 IP报文头进行 Checksum校 验。 校验类型一般可以包括 Checksum校验或 CRC ( Cyclic Redundancy Check, 循环冗余校验码 )校验, 例如对 IP报文头校验或者 MPLS OAM中 的 BIP16字段属于 Checksum校验,对 Ethernet报文的校验属于 CRC校验。
需要说明的是,第一网络设备、第二网络设备以及第一至第三 OAM报 文, 仅用于区分, 并不用于顺序限定。 第二网络设备可以实现第一网络设 备的功能。
图 4为本发明实施例提供的第四种 OAM报文处理方法流程图。如图 4 例提供的应用于网络设备侧的方法配合实现, 其具体实现过程在此不再赘 述。 本实施例提供的 OAM报文处理方法具体包括:
步骤 B10、 操作、 管理和维护(OAM )服务器生成 OAM指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的第一格式信息和第一发 送目标标识;
步骤 B20、 所述 OAM服务器向第一网络设备发送所述 OAM指令, 以 使所述第一网络设备根据所述第一格式信息生成第一 OAM报文,将所述第 一 OAM报文发往所述第一发送目标标识指示的网络设备。
本实施例提供的 OAM报文处理方法, 由 OAM服务器生成 OAM指令 并向第一网络设备发送, 第一网络设备可以根据 OAM服务器发送的 OAM 指令中携带的格式信息生成 OAM报文,对于不同的网络设备可以发送适应 于该网络设备的格式信息,以使得网络设备中只要预留相应的 OAM处理空 间即可适应不同的 OAM标准,无需改变网络设备的硬件结构, 大大提高了 OAM处理的灵活性。
图 5为本发明实施例提供的第五种 OAM报文处理方法流程图。如图 6 所示, 在本实施例中, 该 OAM ^艮文处理方法进一步还可以包括:
步骤 B30、 所述 OAM服务器接收所述第一网络设备发送的第二 OAM 报文, 根据所述第二 OAM报文进行 OAM处理。
图 6为本发明实施例提供的第六种 OAM报文处理方法流程图。如图 6 所示, 在本实施例中, 该 OAM ^艮文处理方法进一步还可以包括: 步骤 B40、 所述 OAM服务器接收所述第一网络设备发送的第二 OAM 报文,根据所述第二 OAM报文向所述第一网络设备发送流表建立指令, 以 使所述第一网络设备根据所述流表建立指令建立 OAM 流表, 其中, 所述 OAM流表中包括用于对 OAM ^艮文进行匹配的匹配项。
在本实施例中, 该 OAM ^艮文处理方法进一步还可以包括:
步骤 B50、 所述 OAM服务器接收所述第一网络设备发送的记录结果, 根据所述记录结果进行 OAM处理。
具体地, OAM服务器可以将 OAM报文的处理权限下放给网络设备, 由网络设备建立流表并根据流表对接收到的 OAM报文进行统计,避免了网 络设备将所有的 OAM报文均发送给 OAM服务器处理带来的资源浪费。
值得注意的是,步骤 B30、步骤 B40和步骤 B50与步骤 B10和步骤 B20 可以并行处理, 并不具有必然的时序关系。
在本实施例中,所述流表建立指令中还可以携带有用以指示 OAM报文 格式的第二格式信息和第二发送目标标识。
第一网络设备可以根据流表建立指令中携带的第二格式信息生成 OAM报文, 并将生成的 OAM报文发送给第二发送目标标识对应的网络设 备。
在本实施例中, 所述第一格式信息包括以下至少一种: 报文发送频率 信息、 报文发送数目信息、 时戳信息、 计数信息和校验信息。
图 7 为本发明实施例提供的第一种第一网络设备结构示意图。 如图 7 所示, 本实施例提供的第一网络设备 81具体可以实现本发明任意实施例提 不再赘述。 本实施例提供的第一网络设备 81具体包括指令接收单元 11和 第一处理单元 12。所述指令接收单元 11用于接收操作、管理和维护(OAM ) 服务器发送的 OAM指令, 其中, 所述 OAM指令中携带有用以指示 OAM 报文格式的第一格式信息和第一发送目标标识。 所述第一处理单元 12用于 根据所述第一格式信息生成第一 OAM报文,将所述第一 OAM报文发往所 述第一发送目标标识指示的网络设备。
本实施例提供的第一网络设备 81,指令接收单元 11接收 OAM服务器 发送的 OAM指令, 其中, OAM指令中携带有用以指示 OAM报文格式的 第一格式信息和第一发送目标标识, 第一处理单元 12根据第一格式信息生 成第一 OAM报文,将第一 OAM报文发往第一发送目标标识指示的网络设 备。 第一网络设备 81可以根据 0AM服务器发送的 0AM指令中携带的格 式信息生成 0AM报文,对于不同的网络设备可以发送适应于该网络设备的 格式信息,以使得网络设备中只要预留相应的 OAM处理能力即可适应不同 的 OAM标准, 无需改变网络设备的硬件结构, 大大提高了 OAM处理的灵 活性。
图 8 为本发明实施例提供的第二种第一网络设备结构示意图。 如图 8 所示, 在本实施例中, 在图 7 所示的基础上, 进一步地, 该第一网络设备 81还可以包括报文转发单元 13 , 所述报文转发单元 13用于接收第二网络 设备发送的第二 OAM报文, 将所述第二 OAM报文发送给所述 OAM服务 器, 以使所述 OAM服务器根据所述第二 OAM报文进行 OAM处理。
图 9 为本发明实施例提供的第三种第一网络设备结构示意图。 如图 9 所示, 在本实施例中, 在图 7 所示的基础上, 进一步地, 该第一网络设备 81还可以包括报文接收单元 14和第二处理单元 15。 所述报文接收单元 14 用于接收第二网络设备发送的第二 OAM报文。 所述第二处理单元 15用于 若没有存储所述第二 OAM报文对应的 OAM流表, 则将所述第二 OAM报 文发送给所述 OAM服务器, 接收所述 OAM服务器发送的流表建立指令, 根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于 对 OAM报文进行匹配的匹配项。
在实际的实现过程中, 第二处理单元 15可以将接收到的 OAM 4艮文转 发给 OAM服务器, 当该第二处理单元 15接收到 OAM服务器发送的流表 建立指令后, 可以停止向 OAM服务器转发 OAM报文。
在本实施例中, 所述第二处理单元 15 还可以用于若存储有所述第二 OAM报文对应的 OAM流表, 则对根据所述第二 OAM报文对记录结果进 行更新; 将所述记录结果发送给所述 OAM服务器, 以使所述 OAM服务器 根据所述记录结果进行 OAM处理。
在本实施例中,所述流表建立指令中携带有用以指示 OAM报文格式的 第二格式信息和第二发送目标标识; 进一步地, 所述第一网络设备 81还可 以包括第三处理单元, 所述第三处理单元用于根据所述第二格式信息生成 第三 OAM报文,将所述第三 OAM报文所述第二发送目标标识指示的网络 设备。 在本实施例中, 所述第一格式信息包括以下至少一种: 报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
图 10为本发明实施例提供的第一种 OAM服务器结构示意图。如图 10 所示, 本实施例提供的 OAM服务器 82具体可以实现本发明任意实施例提 供的应用于 OAM服务器的 OAM报文处理方法的各个步骤,具体实现过程 在此不再赘述。 本实施例提供的 OAM服务器 82具体包括指令生成单元 21 和指令发送单元 22。 所述指令生成单元 21 用于生成操作、 管理和维护 ( OAM )指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式 的第一格式信息和第一发送目标标识。 所述指令发送单元 22用于向第一网 络设备发送所述 OAM指令,以使所述第一网络设备根据所述第一格式信息 生成第一 OAM报文,将所述第一 OAM报文发往所述第一发送目标标识指 示的网络设备。 向第一网络设备发送所述 OAM指令。
本实施例提供的 OAM服务器 82, 向第一网络设备发送所述 OAM指 令由 OAM服务器生成 OAM指令并向第一网络设备发送,第一网络设备可 以根据 OAM服务器 82发送的 OAM指令中携带的格式信息生成 OAM报 文, 对于不同的网络设备可以发送适应于该网络设备的格式信息, 以使得 网络设备中只要预留相应的 OAM处理能力即可适应不同的 OAM标准,无 需改变网络设备的硬件结构, 大大提高了 OAM处理的灵活性。
图 11为本发明实施例提供的第二种 OAM服务器结构示意图。如图 11 所示, 在本实施例中, 在图 10所示实施例的基础上, 进一步地, 该 OAM 服务器 82还可以包括第一处理单元 23 , 所述第一处理单元 23用于接收所 述第一网络设备发送的第二 OAM报文,根据所述第二 OAM报文进行 OAM 处理。
图 12为本发明实施例提供的第三种 OAM服务器结构示意图。 如图 12 所示, 在本实施例中, 在图 10所示实施例的基础上, 进一步地, 该 OAM服 务器 82还可以包括第二处理单元 24, 所述第二处理单元 24用于接收所述第 一网络设备发送的第二 OAM报文,根据所述第二 OAM报文向所述第一网络 设备发送流表建立指令, 以使所述第一网络设备根据所述流表建立指令建立 OAM , 其中, 所述 OAM流表中包括用于对 OAM 4艮文进行匹配的匹配 项。 在本实施例中, 所述第二处理单元 24还用于接收所述第一网络设备发 送的记录结果, 根据所述记录结果进行 OAM处理。
在本实施例中,所述流表建立指令中还可以携带有用以指示 OAM报文 格式的第二格式信息和第二发送目标标识。
在本实施例中, 所述第一格式信息包括以下至少一种: 报文发送频率 信息、 报文发送数目信息、 时戳信息、 计数信息和校验信息。
本发明实施例提供一种 OAM ^艮文处理***,该 OAM ^艮文处理***具 体包括本发明任意实施例提供的第一网络设备; 以及本发明任意实施例提 供的 OAM服务器。
图 13为本发明实施例提供的第四种第一网络设备结构示意图。如图 13 所示, 本实施例提供的第一网络设备第一网络设备 700具体可以实现本发 体实现过程在此不再赘述。 本实施例提供的第一网络设备 700具体包括: 处理器 710, 通信接口 720, 存储器 730和总线 740, 其中所述处理器 710、 所述通信接口 720和所述存储器 730通过所述总线 740完成相互间的通信。 所述通信接口 720用于接收操作、 管理和维护 ( OAM )服务器发送的 OAM 指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的第一格式 信息和第一发送目标标识;将第一 OAM 文发往所述第一发送目标标识指 示的网络设备。 所述存储器 730用于存储指令。 所述处理器 710被配置为 执行存储在所述存储器 730中的指令, 其中, 所述处理器 710被配置为用 于根据所述第一格式信息生成所述第一 OAM报文。
在本实施例中, 所述通信接口 720还用于接收第二网络设备发送的第 二 OAM报文, 将所述第二 OAM报文发送给所述 OAM服务器, 以使所述 OAM服务器根据所述第二 OAM报文进行 OAM处理。
在本实施例中, 所述通信接口 720还用于接收第二网络设备发送的第 二 OAM报文; 所述处理器 710被配置为还用于若没有存储所述第二 OAM 报文对应的 OAM流表,则通过所述通信接口 720将所述第二 OAM报文发 送给所述 OAM服务器, 接收所述 OAM服务器发送的流表建立指令, 根据 所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于对 OAM报文进行匹配的匹配项。
在本实施例中, 所述处理器 710 被配置为还用于若存储有所述第二 OAM报文对应的 OAM流表 , 则对根据所述第二 ΟΑΜ报文对记录结果进 行更新; 将所述记录结果发送给所述 ΟΑΜ服务器, 以使所述 ΟΑΜ服务器 根据所述记录结果进行 ΟΑΜ处理。
图 14为本发明实施例提供的第四种 ΟΑΜ服务器结构示意图。如图 14 所示,本实施例提供的 ΟΑΜ服务器 800具体可以实现本发明任意实施例提 供的应用于 ΟΑΜ服务器的 ΟΑΜ报文处理方法的各个步骤,具体实现过程 在此不再赘述。 本实施例提供的 ΟΑΜ服务器 800具体包括: 处理器 810, 通信接口 820, 存储器 830和总线 840, 其中所述处理器 810、 所述通信接 口 820和所述存储器 830通过所述总线 840完成相互间的通信。 所述通信接 口 820用于向第一网络设备发送 ΟΑΜ指令, 以使所述第一网络设备根据第 一格式信息生成第一 ΟΑΜ报文, 将所述第一 ΟΑΜ报文发往第一发送目标 标识指示的网络设备。 所述存储器 830用于存储指令。 所述处理器 810被配 置为执行存储在所述存储器 830中的指令, 其中, 所述处理器 810被配置为 用于生成所述 ΟΑΜ指令, 其中, 所述 ΟΑΜ指令中携带有用以指示 ΟΑΜ 报文格式的所述第一格式信息和所述第一发送目标标识; 向第一网络设备发 送所述 ΟΑΜ指令。
在本实施例中, 所述通信接口 820还用于接收所述第一网络设备发送 的第二 ΟΑΜ报文; 所述处理器 810被配置为还用于根据所述第二 ΟΑΜ报 文进行 ΟΑΜ处理。
在本实施例中, 所述通信接口 820还用于接收所述第一网络设备发送 的第二 ΟΑΜ报文; 所述处理器 810被配置为还用于根据所述第二 ΟΑΜ报 文通过所述通信接口 820 向所述第一网络设备发送流表建立指令, 以使所 述第一网络设备根据所述流表建立指令建立 ΟΑΜ流表, 其中, 所述 ΟΑΜ 流表中包括用于对 ΟΑΜ报文进行匹配的匹配项。
在本实施例中, 所述通信接口 820还用于接收所述第一网络设备发送的 记录结果; 所述处理器 810被配置为还用于根据所述记录结果进行 ΟΑΜ处 理。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM、 RAM, 磁碟或者光盘等各种可以存储程序代码的 介质。
最后应说明的是: 以上实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解: 其依然可以对前述各实施例所记载的技术方案进行修 改, 或者对其中部分技术特征进行等同替换; 而这些修改或者替换, 并不 使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权利要求
1、 一种 OAM 文处理方法, 其特征在于, 包括:
第一网络设备接收操作、 管理和维护 0AM服务器发送的 OAM指令, 其中,所述 OAM指令中携带有用以指示 OAM报文格式的第一格式信息和 第一发送目标标识;
所述第一网络设备根据所述第一格式信息生成第一 0AM报文,将所述 第一 0AM报文发往所述第一发送目标标识指示的网络设备。
2、根据权利要求 1所述的 OAM报文处理方法, 其特征在于, 还包括: 所述第一网络设备接收第二网络设备发送的第二 OAM报文,将所述第 二 OAM报文发送给所述 OAM服务器, 以使所述 OAM服务器根据所述第 二 OAM 艮文进行 OAM处理。
3、根据权利要求 1所述的 OAM报文处理方法, 其特征在于, 还包括: 所述第一网络设备接收第二网络设备发送的第二 OAM报文; 所述第一网络设备若没有存储所述第二 OAM报文对应的 OAM流表, 则将所述第二 OAM报文发送给所述 OAM服务器, 接收所述 OAM服务器 发送的流表建立指令, 根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于对 OAM ^艮文进行匹配的匹配项。
4、根据权利要求 3所述的 OAM报文处理方法, 其特征在于, 还包括: 所述第一网络设备若存储有所述第二 OAM报文对应的 OAM流表,则 根据所述第二 OAM报文对记录结果进行更新;
所述第一网络设备将所述记录结果发送给所述 OAM服务器,以使所述 OAM服务器根据所述记录结果进行 OAM处理。
5、根据权利要求 1至 4任一所述的 OAM报文处理方法,其特征在于, 所述第一格式信息包括以下至少一种:
报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
6、 一种 ΟΑΜ ·^文处理方法, 其特征在于, 包括:
操作、 管理和维护 ΟΑΜ服务器生成 ΟΑΜ指令, 其中, 所述 ΟΑΜ指 令中携带有用以指示 ΟΑΜ报文格式的第一格式信息和第一发送目标标识; 所述 ΟΑΜ服务器向第一网络设备发送所述 ΟΑΜ指令,以使所述第一 网络设备根据所述第一格式信息生成第一 0AM报文,将所述第一 0AM报 文发往所述第一发送目标标识指示的网络设备。
7、根据权利要求 6所述的 0AM报文处理方法, 其特征在于, 还包括: 所述 OAM服务器接收所述第一网络设备发送的第二 OAM报文,根据 所述第二 OAM报文进行 OAM处理。
8、根据权利要求 6所述的 OAM报文处理方法, 其特征在于, 还包括: 所述 OAM服务器接收所述第一网络设备发送的第二 OAM报文,根据 所述第二 OAM报文向所述第一网络设备发送流表建立指令,以使所述第一 网络设备根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中 包括用于对 OAM ^艮文进行匹配的匹配项。
9、根据权利要求 8所述的 OAM报文处理方法, 其特征在于, 还包括: 所述 OAM服务器接收所述第一网络设备发送的记录结果,根据所述记 录结果进行 OAM处理。
10、根据权利要求 6至 9任一所述的 OAM报文处理方法,其特征在于, 所述第一格式信息包括以下至少一种:
报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
11、 一种第一网络设备, 其特征在于, 包括:
指令接收单元, 用于接收操作、 管理和维护 OAM服务器发送的 OAM 指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的第一格式 信息和第一发送目标标识;
第一处理单元,用于根据所述第一格式信息生成第一 OAM报文,将所 述第一 OAM报文发往所述第一发送目标标识指示的网络设备。
12、 根据权利要求 11所述的第一网络设备, 其特征在于, 还包括: 报文转发单元,用于接收第二网络设备发送的第二 OAM报文,将所述 第二 OAM报文发送给所述 OAM服务器, 以使所述 OAM服务器根据所述 第二 OAM报文进行 OAM处理。
13、 根据权利要求 11所述的第一网络设备, 其特征在于, 还包括: 报文接收单元, 用于接收第二网络设备发送的第二 OAM报文; 第二处理单元,用于若没有存储所述第二 OAM报文对应的 OAM流表, 则将所述第二 OAM报文发送给所述 OAM服务器, 接收所述 OAM服务器 发送的流表建立指令, 根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表中包括用于对 OAM ^艮文进行匹配的匹配项。
14、 根据权利要求 13所述的第一网络设备, 其特征在于:
所述第二处理单元还用于若存储有所述第二 OAM报文对应的 OAM流 表,则对根据所述第二 OAM报文对记录结果进行更新; 将所述记录结果发 送给所述 OAM服务器 ,以使所述 OAM服务器根据所述记录结果进行 OAM 处理。
15、 根据权利要求 11至 14任一所述的第一网络设备, 其特征在于, 所述第一格式信息包括以下至少一种:
报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
16、 一种 OAM服务器, 其特征在于, 包括:
指令生成单元, 用于生成操作、 管理和维护 OAM指令, 其中, 所述 OAM指令中携带有用以指示 OAM报文格式的第一格式信息和第一发送目 标标识;
指令发送单元,用于向第一网络设备发送所述 OAM指令, 以使所述第 一网络设备根据所述第一格式信息生成第一 OAM报文, 将所述第一 OAM 文发往所述第一发送目标标识指示的网络设备。
17、 根据权利要求 16所述的 OAM服务器, 其特征在于, 还包括: 第一处理单元,用于接收所述第一网络设备发送的第二 OAM报文,根 据所述第二 OAM报文进行 OAM处理。
18、 根据权利要求 16所述的 OAM服务器, 其特征在于, 还包括: 第二处理单元,用于接收所述第一网络设备发送的第二 OAM报文,根 据所述第二 OAM报文向所述第一网络设备发送流表建立指令,以使所述第 一网络设备根据所述流表建立指令建立 OAM流表, 其中, 所述 OAM流表 中包括用于对 OAM ^艮文进行匹配的匹配项。
19、 根据权利要求 18所述的 OAM服务器, 其特征在于:
所述第二处理单元还用于接收所述第一网络设备发送的记录结果, 根 据所述记录结果进行 OAM处理。
20、根据权利要求 16至 19任一所述的 OAM服务器, 其特征在于, 所 述第一格式信息包括以下至少一种: 报文发送频率信息、 报文发送数目信息、 时戳信息、 计数信息和校验 信息。
21、 一种 OAM才艮文处理***, 其特征在于, 包括:
如权利要求 11-15任一项所述的第一网络设备; 以及
如权利要求 16-20任一项所述的 OAM服务器。
PCT/CN2014/071739 2013-01-31 2014-01-29 Oam报文处理方法、设备及*** WO2014117737A1 (zh)

Priority Applications (2)

Application Number Priority Date Filing Date Title
EP14746130.5A EP2916489B1 (en) 2013-01-31 2014-01-29 Oam packet processing method, device and system
US14/813,882 US10116545B2 (en) 2013-01-31 2015-07-30 Method, device and system for processing OAM packet

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201310038824.3 2013-01-31
CN201310038824.3A CN103078791B (zh) 2013-01-31 2013-01-31 Oam报文处理方法、设备及***

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/813,882 Continuation US10116545B2 (en) 2013-01-31 2015-07-30 Method, device and system for processing OAM packet

Publications (1)

Publication Number Publication Date
WO2014117737A1 true WO2014117737A1 (zh) 2014-08-07

Family

ID=48155200

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2014/071739 WO2014117737A1 (zh) 2013-01-31 2014-01-29 Oam报文处理方法、设备及***

Country Status (4)

Country Link
US (1) US10116545B2 (zh)
EP (1) EP2916489B1 (zh)
CN (1) CN103078791B (zh)
WO (1) WO2014117737A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852828A (zh) * 2015-04-30 2015-08-19 华为技术有限公司 一种网络时延检测方法,装置及***

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103078791B (zh) 2013-01-31 2016-08-10 华为技术有限公司 Oam报文处理方法、设备及***
CN104378250B (zh) * 2013-08-13 2019-06-25 中兴通讯股份有限公司 数据链路的检测方法、装置、***、控制器及网关
CN104378223A (zh) * 2013-08-16 2015-02-25 中兴通讯股份有限公司 链路性能测试方法、装置、逻辑处理器以及网络处理器
CN106549774A (zh) * 2015-09-17 2017-03-29 中兴通讯股份有限公司 一种基于软件定义网络的链路故障上报方法和转发设备
CN108206746B (zh) * 2016-12-16 2020-07-21 华为技术有限公司 一种网络传输控制方法及相关设备
CN110233753A (zh) * 2019-05-29 2019-09-13 中国联合网络通信集团有限公司 一种实现操作管理维护功能的***及方法
US11405299B2 (en) * 2020-06-03 2022-08-02 Cisco Technology, Inc. Determining node behavior in deterministic networks

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101426004A (zh) * 2007-10-29 2009-05-06 华为技术有限公司 三层会话的接入方法、***及设备
CN101741592A (zh) * 2008-11-13 2010-06-16 华为技术有限公司 多业务传送网中管理gpon支路的方法、设备及***
CN101897151A (zh) * 2007-10-12 2010-11-24 北方电讯网络有限公司 使用以太网oam的ip网络和性能监视
WO2012177213A2 (en) * 2011-06-20 2012-12-27 Telefonaktiebolaget L M Ericsson (Publ) Methods and devices for monitoring a data path
CN103078791A (zh) * 2013-01-31 2013-05-01 华为技术有限公司 Oam报文处理方法、设备及***

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4997196B2 (ja) * 2008-08-08 2012-08-08 株式会社日立製作所 通信ネットワークシステム、パス計算装置、通信路確立制御方法
CN102055598A (zh) * 2009-11-11 2011-05-11 中兴通讯股份有限公司 一种实现点到多点802.3ah协议OAM的方法及***
US8964563B2 (en) * 2011-07-08 2015-02-24 Telefonaktiebolaget L M Ericsson (Publ) Controller driven OAM for OpenFlow
US8711860B2 (en) * 2011-12-22 2014-04-29 Telefonaktiebolaget L M Ericsson (Publ) Controller for flexible and extensible flow processing in software-defined networks
US9680698B2 (en) * 2012-08-01 2017-06-13 Telefonaktiebolaget L M Ericsson (Publ) Operations, administration, and management (OAM) functions in a software defined network

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101897151A (zh) * 2007-10-12 2010-11-24 北方电讯网络有限公司 使用以太网oam的ip网络和性能监视
CN101426004A (zh) * 2007-10-29 2009-05-06 华为技术有限公司 三层会话的接入方法、***及设备
CN101741592A (zh) * 2008-11-13 2010-06-16 华为技术有限公司 多业务传送网中管理gpon支路的方法、设备及***
WO2012177213A2 (en) * 2011-06-20 2012-12-27 Telefonaktiebolaget L M Ericsson (Publ) Methods and devices for monitoring a data path
CN103078791A (zh) * 2013-01-31 2013-05-01 华为技术有限公司 Oam报文处理方法、设备及***

Non-Patent Citations (1)

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

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104852828A (zh) * 2015-04-30 2015-08-19 华为技术有限公司 一种网络时延检测方法,装置及***
CN104852828B (zh) * 2015-04-30 2018-06-15 华为技术有限公司 一种网络时延检测方法,装置及***

Also Published As

Publication number Publication date
CN103078791B (zh) 2016-08-10
EP2916489B1 (en) 2017-07-26
EP2916489A4 (en) 2015-11-18
CN103078791A (zh) 2013-05-01
EP2916489A1 (en) 2015-09-09
US10116545B2 (en) 2018-10-30
US20150341250A1 (en) 2015-11-26

Similar Documents

Publication Publication Date Title
US10756994B2 (en) Switch, controller, system, and link quality detection method
WO2014117737A1 (zh) Oam报文处理方法、设备及***
WO2013115177A1 (ja) ネットワークシステム、及びトポロジー管理方法
WO2016165463A1 (zh) 一种基于软件定义网络的链路故障上报方法和转发设备
WO2014112612A1 (ja) 通信システム、制御装置及びネットワークトポロジの管理方法
US11134009B2 (en) Packet processing method and apparatus
WO2013071801A1 (zh) 多协议标签交换环网的检测方法、装置及***
WO2014019348A1 (zh) 操作、管理和维护oam配置的方法、设备及***
JP5682568B2 (ja) ノード及びそれに用いる監視管理方法並びにそれを用いる転送システム、入力回路、出力回路
KR20140072343A (ko) Sdn 망의 장애 대처 방법
US8971195B2 (en) Querying health of full-meshed forwarding planes
WO2015149353A1 (zh) 一种oam报文处理方法、网络设备和网络***
WO2012088910A1 (zh) 连通性故障检测方法和***
WO2014101185A1 (zh) 组播通道的性能检测方法、装置和***
US8767736B2 (en) Communication device, communication method, and recording medium for recording communication program
WO2012079405A2 (zh) 链路的跟踪处理方法及***
WO2016101582A1 (zh) 一种操作维护管理功能的配置、实现方法及转发设备
WO2014180363A1 (zh) OpenFlow信令控制方法及装置
WO2015158058A1 (zh) 一种实现呼叫保存和恢复的方法及***
CN107317753B (zh) 双向转发检测bfd会话建立的方法、装置和***
WO2014119602A1 (ja) 制御装置、スイッチ、通信システム、スイッチの制御方法及びプログラム
JP2015005926A (ja) 経路確認装置、経路確認システム、経路確認方法、及びプログラム
WO2019071585A1 (zh) 路径切换过程中快速恢复业务的方法、装置和***
JP6932118B2 (ja) パケット処理方法および装置
JP2016092756A (ja) 制御装置、通信システム、ループ抑止方法及びプログラム

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

Country of ref document: EP

Kind code of ref document: A1

REEP Request for entry into the european phase

Ref document number: 2014746130

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2014746130

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE