WO2016101546A1 - Method and device for implementing operations, administration and maintenance function - Google Patents

Method and device for implementing operations, administration and maintenance function Download PDF

Info

Publication number
WO2016101546A1
WO2016101546A1 PCT/CN2015/080709 CN2015080709W WO2016101546A1 WO 2016101546 A1 WO2016101546 A1 WO 2016101546A1 CN 2015080709 W CN2015080709 W CN 2015080709W WO 2016101546 A1 WO2016101546 A1 WO 2016101546A1
Authority
WO
WIPO (PCT)
Prior art keywords
oam
message
path
packet
port
Prior art date
Application number
PCT/CN2015/080709
Other languages
French (fr)
Chinese (zh)
Inventor
孙德胜
赵福川
Original Assignee
中兴通讯股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中兴通讯股份有限公司 filed Critical 中兴通讯股份有限公司
Publication of WO2016101546A1 publication Critical patent/WO2016101546A1/en

Links

Images

Definitions

  • the present invention relates to the field of communications, and in particular to an implementation method and apparatus for an operation and maintenance management function.
  • SDN Software Defined Network
  • ONF Open Network Forum
  • the ONF has now released the OpenFlow Switch Specification for the interface between the controller and the forwarding plane.
  • the protocol implemented based on this interface specification is the Openflow protocol.
  • ONF has organized a number of interoperability tests in recent years, and is mature in supporting Layer 2 services and Layer 2 Virtual Private Network (VPN) services.
  • VPN Virtual Private Network
  • FIG. 1 is a schematic structural diagram of an SDN network according to the related art.
  • an Openflow channel is used for Openflow protocol interaction between a controller and a forwarding device.
  • the protocol processing component of the forwarding device terminates the protocol to extract the content information carried by the protocol packet, and forwards the content information to the corresponding component.
  • the information sent to the controller by the relevant components in the forwarding device needs to be first passed to the protocol processing component packaged as an Openflow protocol and sent to the controller.
  • the Openflow protocol defines a series of messages, including controller-to-switch, asynchronous, and symmetric. Each class defines many types.
  • the controller-to-switch message is initiated by the controller to manage or obtain the forwarding device status.
  • the asynchronous message is initiated by the forwarding device to notify the controller of the network event or forwarding device status change; the symmetric message may be forwarded by the device or controlled. Launched.
  • the controller sends a packet-out message in the controller-to-switch category and sends it through the Openflow protocol channel.
  • the forwarding device sends the packet according to the specified port of the message.
  • the receiving device forwards the packet statistics and error packets according to the message indication, and sends the packet to the protocol processing component.
  • the packet is encapsulated as a Packet-in message through the Openflow channel. Send to controller.
  • the above-mentioned mechanism is to perform message exchange between the controller and the forwarding device, and is not suitable for periodic fast transmission and reception, and is used for protection switching or other destination message packets.
  • This fast packet generally needs to be at the forwarding device level.
  • Fast send and receive For example, the MPLS-TP (Packet Transmission Technical Standard of the International Standard Specification such as ITU-T ITU-T) requires a Fast Connectivity Detection Message (CCM) that supports 3.33 milliseconds of periodic transmission and reception.
  • CCM Fast Connectivity Detection Message
  • the embodiment of the invention provides a method and a device for implementing an operation and maintenance management function, so as to at least solve the problem that the path OAM function cannot meet the high real-time requirement in the related art.
  • an implementation of an operation and maintenance management function including: the controller carries OAM configuration information in a configuration packet, where the OAM configuration information is used to indicate an OAM function of the path of the forwarding device implementation.
  • the path is a path between the forwarding devices; the controller sends the configuration packet to the forwarding device.
  • the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and is different from other OAM instances that are in effect at the same time;
  • the feature information is used to indicate a parameter corresponding to the OAM function;
  • the port information is used to indicate the local port to which the OAM function is bound.
  • the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to indicate a period in which the forwarding device sends a packet to the forwarding device at the other end of the path.
  • the foregoing OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting the OAM function.
  • the sending, by the controller, the configuration packet to the forwarding device includes at least one of the following: sending a configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the port information carried in the configuration packet includes Outbound port information and inbound port information, the outbound port information indicates the local port that sends the packet, the inbound port information indicates the local port that receives the packet, and the first endpoint forwarding device that sends the first configuration packet to the first endpoint forwarding path, and/or
  • the second configuration packet is sent to the tail-end forwarding device of the one-way forwarding path, where the port information carried in the first configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port information.
  • the foregoing configuration packet is a packet type based on a Packet-out message extension.
  • OAM configuration information is carried in at least one of the following: a port field, an action set field, a reserved field, or a data field.
  • a method for implementing an operation and maintenance management function including: a forwarding device receiving a configuration message sent by a controller; and a forwarding device acquiring operation and maintenance management OAM configuration information from the configuration message,
  • the OAM configuration information is used to indicate the OAM function of the path of the forwarding device, and the path is the path between the forwarding devices.
  • the forwarding device performs the OAM function of the path according to the OAM configuration information.
  • the OAM function of the forwarding device performing the path according to the OAM configuration information includes at least one of the following:
  • the timer corresponding to the OAM message packet period is started according to the OAM message packet period indicated by the feature information in the OAM configuration information, and the timer is sent to the other end of the path.
  • the forwarding device sends an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
  • the timer of the OAM message packet is stopped according to the OAM message packet period indicated by the feature information, and the timer corresponding to the OAM message packet period is started, and the forwarding device is sent to the other end of the path. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
  • the timer of the OAM message is suspended, and the OAM message is suspended and/or received.
  • the timer for restarting the OAM message is sent to the forwarding device at the other end of the path, and the OAM message sent by the forwarding device at the other end of the path is received.
  • the timer of the OAM message is deleted, and the identifier information in the OAM configuration information is deleted.
  • the forwarding device when the binding object of the OAM configuration information is a unidirectional forwarding path, if the forwarding device is the first endpoint of the path, the forwarding device sends an OAM message to the forwarding device at the other end of the path according to the operation type; The end device of the forwarding device forwards the OAM message sent by the device to the other end of the receiving path according to the operation type.
  • the forwarding device sends an OAM message to the forwarding device at the other end of the path according to the operation type, and the other end of the path forwards the OAM message sent by the device.
  • the method further includes: the forwarding device binding the corresponding local port according to the port information in the OAM configuration information; wherein the inflow port is identified by the flow table entry information, and the port is identified by the group table information, and the local port includes the physical port. Port and / or logical port.
  • the foregoing configuration packet is a packet type based on a Packet-out message extension.
  • an apparatus for implementing an operation and maintenance management function including: a processing module, configured to carry operation and maintenance management OAM configuration information in a configuration message, where OAM configuration information is used to indicate
  • the forwarding device implements the OAM function of the path, and the path is a path between the forwarding devices.
  • the sending module is configured to send the configuration packet to the forwarding device.
  • the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and is different from other OAM instances that are effective at the same time;
  • the feature information is used to indicate a parameter corresponding to the OAM function;
  • the port information is used to indicate the local port to which the OAM function is bound.
  • the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to indicate a period in which the forwarding device sends a packet to the forwarding device at the other end of the path.
  • the OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting the OAM function.
  • the sending module includes at least one of the following: the first sending unit is configured to send a configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the port information carried in the packet is configured. Including the outbound port information and the ingress port information, the outbound port information indicates the local port that sends the packet, the ingress port information indicates the local port that receives the packet, and the second sending unit is configured to send the first to the first endpoint forwarding device of the one-way forwarding path.
  • a configuration packet sends a second configuration packet to the tail-end forwarding device of the one-way forwarding path, where the port information carried in the first configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port. information.
  • the foregoing configuration packet is a packet type based on a Packet-out message extension.
  • the processing module is configured to carry the OAM configuration information in at least one of the following: a port field, an action set field, a reserved field, or a data field.
  • an apparatus for implementing an operation and maintenance management function includes: a receiving module configured to receive a configuration message sent by a controller; and an obtaining module configured to obtain an operation from the configuration message Maintain and manage OAM configuration information, where OAM configuration information is used to indicate the forwarding device implementation path.
  • the OAM function, the path is the path between the forwarding devices; the execution module is set to perform the OAM function of the path according to the OAM configuration information.
  • the foregoing execution module includes at least one of the following:
  • the first execution unit is configured to start the timing corresponding to the OAM message packet period according to the OAM message packet period indicated by the feature information in the OAM configuration information, when the type of the OAM configuration information indicates that the type of the OAM function is new.
  • the device sends an OAM message to the forwarding device at the other end of the path and/or an OAM message sent by the forwarding device at the other end of the path;
  • the second execution unit is configured to stop the timer of the OAM message packet and start the timer corresponding to the OAM message packet period according to the OAM message packet period indicated by the feature information, when the operation type indicates that the type of the OAM function is modified. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the path to the forwarding device at the other end of the path;
  • a third execution unit configured to suspend the timer of the OAM message, suspend sending and/or receiving the OAM message, when the operation type indicates that the type of the OAM function is paused;
  • the fourth execution unit is configured to: when the operation type indicates that the type of the OAM function is restarted, restart the timer of the OAM message, and send the OAM message to the forwarding device at the other end of the path and/or the forwarding device at the other end of the receiving path.
  • the sent OAM message packet
  • the fifth execution unit is configured to cancel the timer of the OAM message when the operation type indicates that the type of the OAM function is deleted, and delete the identifier information corresponding to the OAM instance in the OAM configuration information.
  • the binding object of the OAM configuration information is a one-way forwarding path
  • the forwarding device is the first endpoint of the path
  • the execution module is configured to send an OAM message to the forwarding device at the other end of the path according to the operation type
  • the device is the trailing edge of the path, and the execution module is configured to forward the OAM message sent by the device to the other end of the receiving path according to the operation type.
  • the execution module is configured to send an OAM message to the forwarding device of the other end of the path according to the operation type, and the other end of the path is forwarded to the OAM message sent by the device. Message.
  • the foregoing execution module is further configured to bind the corresponding local port according to the port information in the OAM configuration information; wherein the inflow port is identified by the flow table entry information, and the port is identified by the group table information, and the local port includes the physical port and / or logical port.
  • the foregoing configuration packet is a packet type based on a Packet-out message extension. .
  • the controller carries the OAM configuration information for indicating the OAM function of the path of the forwarding device in the configuration packet, and sends the configuration packet to the forwarding device, thereby instructing the forwarding device to implement the OAM function of the path.
  • the OAM function is implemented at the device level to avoid the problem of low real-time performance caused by the interaction between the forwarding device and the controller, and the high-real-time requirement of the path OAM function can be achieved.
  • FIG. 1 is a schematic structural diagram of an SDN network according to the related art
  • FIG. 2 is a schematic diagram of implementation of an OAM function according to the related art
  • FIG. 3 is a flowchart 1 of an implementation method of an operation and maintenance management function according to an embodiment of the present invention
  • FIG. 5 is a structural block diagram 1 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention
  • FIG. 6 is a structural block diagram of an optional transmitting module 20 according to an embodiment of the present invention.
  • FIG. 7 is a structural block diagram 2 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention.
  • FIG. 8 is a structural block diagram of an optional acquisition module 40 according to an embodiment of the present invention.
  • FIG. 9 is a block diagram showing the structure of an optional execution module 50 in accordance with an embodiment of the present invention.
  • FIG. 10 is a schematic diagram of a Packet-out message according to an embodiment of the present invention.
  • FIG. 11 is a schematic diagram of an optional bidirectional forwarding path OAM configured according to an embodiment of the present invention.
  • FIG. 12 is a schematic diagram of optionally configuring a one-way forwarding path OAM according to an embodiment of the present invention.
  • FIG. 13 is a schematic diagram of an OAM of an endpoint forwarding device configured to configure only a bidirectional forwarding path according to an embodiment of the present invention
  • FIG. 14 is a schematic diagram of an OAM configured to configure only a one-way forwarding path first-end forwarding device according to an embodiment of the present invention
  • FIG. 15 is a schematic diagram of an OAM configured to configure only a one-way forwarding path tail endpoint forwarding device according to an embodiment of the present invention.
  • FIG. 3 is a flowchart 1 of an implementation method of an operation and maintenance management function according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
  • the controller carries the OAM configuration information in the configuration packet, where the OAM configuration information is used to indicate the OAM function of the path of the forwarding device, and the path is a path between the forwarding devices.
  • Step S304 the controller sends the configuration packet to the forwarding device.
  • the controller carries the OAM configuration information for indicating the OAM function of the path of the forwarding device in the configuration packet, and sends the configuration packet to the forwarding device, thereby instructing the forwarding device to implement the OAM function of the path.
  • the OAM function is implemented at the device level to avoid the problem of low real-time performance caused by the interaction between the forwarding device and the controller, and the high-real-time requirement of the path OAM function can be achieved.
  • the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and The other OAM instances that are in effect at the same time are distinguished; the feature information is used to indicate the parameter corresponding to the OAM function; the port information is used to indicate the local port to which the OAM function is bound.
  • the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to instruct the forwarding device to send a packet to the forwarding device at the other end of the path. cycle.
  • the foregoing OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting an OAM function.
  • the controller sends a configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the configuration is carried in the packet.
  • the port information includes the outbound port information and the inbound port information.
  • the outbound port information indicates the local port that sends the packet.
  • the inbound port information indicates the local port that receives the packet.
  • the controller sends the first configuration packet to the first-end forwarding device of the one-way forwarding path, and/or sends the second configuration packet to the tail-end forwarding device of the one-way forwarding path, where the first The port information carried in the configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port information.
  • the ingress port is identified by the flow table entry information, and the port is identified by the group table information.
  • the configuration packet is a packet type based on the packet-out message extension.
  • other messages may also be conceived, and the embodiment of the present invention is not Limited to this.
  • One advantage of the Packet-out message is that it does not require additional messages to be added to the existing messages of the Openflow protocol.
  • the OAM configuration information is carried by the unused field in the packet-out message.
  • the OAM configuration information is carried in at least one of the following in the Packet-out message: The port field, the action set field, the reserved field, or the data field, of course, other fields are also conceivable, and the embodiment of the present invention is not limited thereto, and is exemplified herein.
  • FIG. 4 is a second flowchart of the method for implementing the operation and maintenance management function according to the embodiment of the present invention. As shown in FIG. 4, the flow includes the following steps. step:
  • Step S402 the forwarding device receives the configuration packet sent by the controller.
  • the forwarding device obtains the OAM configuration information from the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is the path between the forwarding devices.
  • Step S406 the forwarding device performs the OAM function of the path according to the OAM configuration information.
  • the forwarding device performs the OAM function of the path according to the OAM configuration information sent by the controller, which avoids the problem of low real-time performance caused by the interaction between the controller and the forwarding device, and can meet the requirements of high real-time performance.
  • the forwarding device determines, according to the indication information carried in the packet, whether the received packet is a configuration packet, and when the identifier information indicates that the packet is a configuration packet, the forwarding device Obtain OAM configuration information from the configuration packet.
  • the OAM configuration information may further include at least one of an operation type and a feature information, where the operation type is used to indicate a type of the OAM function, and the feature information is used to indicate the OAM function. Corresponding parameters.
  • step S406 may include at least one of the following:
  • the timer corresponding to the OAM message packet period is started according to the OAM message packet period indicated by the feature information in the OAM configuration information, and the timer is sent to the other end of the path.
  • the forwarding device sends an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
  • the timer of the OAM message packet is stopped according to the OAM message packet period indicated by the feature information, and the timer corresponding to the OAM message packet period is started, and the forwarding device is sent to the other end of the path. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
  • the timer of the OAM message is suspended, and the OAM message is suspended and/or received.
  • the timer for restarting the OAM message is sent to the forwarding device at the other end of the path, and the OAM message sent by the forwarding device at the other end of the path is received.
  • the timer of the OAM message is deleted, and the identifier information in the OAM configuration information is deleted.
  • the binding object of the OAM configuration information is a one-way forwarding path
  • the forwarding device if the forwarding device is the first endpoint of the path, the forwarding device sends the forwarding device to the other end of the path according to the operation type.
  • the OAM message packet if the forwarding device is the trailing edge of the path, the forwarding device forwards the OAM message sent by the device according to the operation type.
  • the forwarding device when the binding object of the OAM configuration information is a bidirectional forwarding path, the forwarding device sends an OAM message to the forwarding device of the other end of the path according to the operation type, and the other end of the path forwards the OAM message sent by the device. .
  • the method further includes: the forwarding device binding the corresponding local port according to the port information in the OAM configuration information; wherein the inflow port is identified by the flow table entry information, and the group table information is used.
  • the port is identified, and the local port includes a physical port and/or a logical port.
  • the above ports refer to physical ports, such as Ethernet, OTN or WDM physical ports, or logical ports, such as Ethernet VLAN ports, MPLS or MPLS_TP tunnels or pseudowire ports, and OTN ODUk channel ports.
  • the above port can be represented by a series of controller-generated feature information, such as the KEY of the Openflow flow table, and the forwarding plane can find the corresponding physical port or logical port according to the KEY to match the flow table.
  • controller-generated feature information such as the KEY of the Openflow flow table
  • the configuration packet is a packet type based on a Packet-out message extension.
  • Packet-out message is that it does not require additional messages to be added to the existing messages of the Openflow protocol.
  • an apparatus for implementing an operation and maintenance management function is provided.
  • the apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
  • FIG. 5 is a structural block diagram 1 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention. As shown in FIG. 5, the apparatus may include:
  • the processing module 10 is configured to carry the operation and maintenance management OAM configuration information in the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is a path between the forwarding devices;
  • the sending module 20 is connected to the processing module 10 and configured to send the configuration packet to the forwarding device.
  • the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and at the same time The other OAM instances that are in effect are distinguished; the operation type is used to indicate the type of the OAM function; the feature information is used to indicate the parameter corresponding to the OAM function; and the port information is used to indicate the local port to which the OAM function is bound.
  • the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to indicate that the forwarding device sends the packet to the forwarding device at the other end of the path. .
  • the OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting the OAM function.
  • the sending module 20 may include at least one of the following: the first sending unit 210 is configured to forward the device and/or the tail to the first endpoint of the bidirectional forwarding path.
  • the endpoint forwarding device sends a configuration packet, where the port information carried in the configuration packet includes the outbound port information and the inbound port information, the outbound port information indicates the local port that sends the packet, and the inbound port information indicates the local port that receives the packet;
  • the sending unit 220 is configured to send the first configuration packet to the first endpoint forwarding device of the one-way forwarding path, and/or to send the second configuration packet to the tail endpoint forwarding device of the one-way forwarding path, where the first configuration packet is sent
  • the port information carried is the outbound port information
  • the port information carried in the second configuration packet is the ingress port information.
  • the configuration packet is a packet type based on a Packet-out message extension.
  • the processing module 10 is configured to carry the OAM configuration information in at least one of the following: a port field, an action set field, a reserved field, or a data field.
  • FIG. 7 is a structural block diagram 2 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes:
  • the receiving module 30 is configured to receive a configuration message sent by the controller.
  • the obtaining module 40 is connected to the receiving module 30 and configured to obtain the OAM configuration information of the operation and maintenance management from the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is the path between the forwarding devices.
  • the execution module 50 is connected to the acquisition module 40 and configured to perform an OAM function of the path according to the OAM configuration information.
  • the receiving module 30 may include: a determining unit 310, configured to determine whether the received packet is configured with a packet; and the forwarding unit 320 is configured to be When the packet is a configuration packet, the configuration packet is forwarded to the obtaining module 40.
  • the foregoing execution module 50 includes at least one of the following:
  • the first execution unit 510 is configured to start the OAM message packet period according to the OAM message packet period indicated by the feature information in the OAM configuration information, when the type of the OAM configuration information indicates that the type of the OAM function is new.
  • the timer sends an OAM message to the forwarding device at the other end of the path and/or an OAM message sent by the forwarding device at the other end of the path;
  • the second execution unit 520 is configured to stop the timer of the OAM message packet and start the timer corresponding to the OAM message packet period according to the OAM message packet period indicated by the feature information when the operation type indicates that the type of the OAM function is modified. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the path to the forwarding device at the other end of the path;
  • the third executing unit 530 is configured to suspend the timer of the OAM message, suspend sending and/or receiving the OAM message, when the type of the operation type indicates that the type of the OAM function is paused;
  • the fourth execution unit 540 is configured to: when the operation type indicates that the type of the OAM function is restarted, restart the timer of the OAM message, and send the OAM message to the forwarding device at the other end of the path and/or the forwarding of the other end of the receiving path. OAM message sent by the device;
  • the fifth execution unit 550 is configured to cancel the timer of the OAM message when the type of the operation type indicates that the type of the OAM function is deleted, and delete the identifier information corresponding to the OAM instance in the OAM configuration information.
  • the binding object of the OAM configuration information is a one-way forwarding path
  • the forwarding device is the first endpoint of the path
  • the executing module 50 is set to another path according to the operation type.
  • the one-end forwarding device sends an OAM message to the device. If the forwarding device is the trailing edge of the path, the executing module 50 is configured to forward the OAM message sent by the device according to the other end of the receiving path.
  • the executing module 50 when the binding object of the OAM configuration information is a bidirectional forwarding path, the executing module 50 is configured to send an OAM message to the forwarding device of the other end of the path according to the operation type, and The other end of the receiving path forwards the OAM message sent by the device.
  • the executing module 50 is further configured to bind the corresponding local port according to the port information in the OAM configuration information, where the inflow port is identified by the flow table entry information, and the group table information is used.
  • the port is identified, and the local port includes a physical port and/or a logical port.
  • the configuration packet is a packet type based on a Packet-out message extension.
  • an OAM implementation method is proposed based on the existing standard interface of the OpenFlow Switch Specification, and the fast OAM function that cannot be implemented by the existing SDN standard is solved to meet MPLS-TP.
  • International standard requirements are proposed based on the existing standard interface of the OpenFlow Switch Specification, and the fast OAM function that cannot be implemented by the existing SDN standard is solved to meet MPLS-TP.
  • the optional implementation provides a method for implementing the OAM function, which is based on the Packet-out message structure of the existing Openflow protocol, and carries the OAM configuration information in the Packet-out message.
  • the Packet-out message generally includes an Openflow protocol header (hereinafter referred to as a header), a port on which the forwarding device sends the message (hereinafter referred to as in_port), and an action set to be executed after the designated forwarding device receives the message (hereinafter referred to as the short message).
  • Actions include reserved or padded bytes (hereinafter referred to as pads) and data fields/message contents (hereinafter referred to as data), all or part of the members.
  • the above-mentioned identification information (also referred to as OAM identification), operation type, feature information, port information, and the like are carried using the pad member or extension in_port or extended action or data of the message.
  • the forwarding device After receiving the Packet-out message, the forwarding device identifies whether the packet is an OAM type packet by parsing the pad or the extended in_port of the message or the extended action or data. If the packet is an OAM type, the packet includes the packet content. Other message members within and implement related processing.
  • the port can be a physical port, such as a physical port such as Ethernet, OTN or WDM, or a logical port, such as an Ethernet VLAN port, MPLS or MPLS_TP tunnel or pseudo Line port, ODUk channel port of OTN.
  • the software-defined network SDN uses the flow table entry information (including the Table id and match of the Flow Table) to identify the inbound port, and uses the group table information (including the Group id of the group table) to identify the outgoing port.
  • the information about the OAM ID, the operation type, and the feature to be received is the same as that of the OAM, the operation type, and the feature.
  • the local port bound to the OAM needs to carry the inbound port and the outbound port.
  • the controller needs to send information such as the identifier, operation type, feature, and outgoing port of the OAM to the forwarding device of the first endpoint of the path, and send information such as the identifier, operation type, feature, and incoming port of the received OAM to the The end of the path forwards the device.
  • the foregoing method implements the OAM function of the bidirectional forwarding path for the SDN network composed of the controller and the forwarding device, and further includes the following steps:
  • Step 1 The controller initiates the configuration of the bidirectional forwarding path OAM function, constructs a Packet-out message, and the extended message related member carries the OAM identifier, operation type, feature information, and local port, and sends the first or last end of the bidirectional forwarding path through the Openflow channel.
  • Endpoint forwarding device
  • Step 2 After receiving the Packet-out message, the Openflow protocol processing component of the first endpoint or the tail endpoint forwarding device determines whether the OAM type packet is forwarded according to the information carried by the related message member, and then forwards the packet to the OAM component and proceeds to the next step; Process processing required for other Packet-out messages;
  • Step 3 After receiving the OAM message packet, the OAM component identifies the OAM identifier, binds the local port, the type of operation required to be performed, and the OAM-related feature information, and implements the extended message member.
  • the controller can send the OAM configuration information to the forwarding device (the first endpoint and the trailing endpoint) simultaneously or separately.
  • the forwarding device the first endpoint and the trailing endpoint
  • the SDN network connecting to the traditional network or the different SDN networks
  • only one forwarding needs to be configured.
  • OAM of the device first or last endpoint.
  • the foregoing method implements the OAM function of the one-way forwarding path for the SDN network composed of the controller and the forwarding device, and further includes the following steps:
  • Step 1 The controller initiates the configuration of the OAM function of the one-way forwarding path, constructs a Packet-out message, and the extended message related member carries the OAM configuration information, and sends the first-end forwarding device to the one-way forwarding path through the Openflow channel;
  • Step 2 After receiving the Packet-out message, the Openflow protocol processing component of the first-end forwarding device determines whether it is an OAM-type packet according to the information carried by the related message member, and then forwards it to the OAM component and proceeds to the next step; otherwise, according to other Packets -out message required process processing;
  • Step 3 After receiving the OAM message packet, the OAM component identifies the OAM identifier, the bound local port, the type of operation required to be performed, and the OAM-related feature information, and implements the extended message member.
  • Step 4 The controller constructs a Packet-out message, and extends the related member of the message, and carries the OAM configuration information of Step 1 and sends the device to the tail endpoint forwarding device of the one-way forwarding path through the Openflow channel;
  • Step 5 After receiving the Packet-out message, the Openflow protocol processing component of the tail endpoint forwarding device forwards to the OAM component according to whether the information carried by the related message member is an OAM type packet, and then proceeds to the next step; otherwise, according to other Packet- Out process required for out message processing;
  • Step 6 After receiving the OAM message packet, the OAM component identifies the OAM identifier, the type of operation required to be performed, and the OAM-related feature information, and implements the extended message member.
  • the foregoing step identification information (also referred to as an OAM identifier) may be a string of numbers or a string of characters, and the operation type may include adding, modifying, starting, pausing, or deleting, and the feature information includes an OAM sending period, and the like. information.
  • the type of the OAM type packet may be OAM for forwarding paths such as Ethernet, IP, MPLS, MPLS-TP, PBB, OTN, WDM, and the like.
  • the foregoing steps extend the information about the OAM identifier, the operation type, and the feature.
  • the extension method includes extending the in_port member or the action member or the member of the pad to add an OAM identifier to distinguish other Packet-out messages. Then expand other unused members, including data, carrying OAM identifiers, operation types, features, and so on.
  • the above-mentioned bidirectional forwarding path and unidirectional forwarding path generally refer to transmission paths of various layers of communication technologies such as Ethernet, IP, MPLS, MPLS-TP, PBB, OTN, and WDM, such as Ethernet physical layer path and regenerative section of MPLS-TP.
  • Path tunnel layer path, pseudo-line layer path, etc.; such as OTN physical layer path, regenerator section path, multiplex section path, high-order ODU path, low-order ODU path, etc. of OTN network.
  • the functions of adding, modifying, suspending, starting, or deleting the fast OAM function are completed by extending the definition of the member of the Packet-out message, and the advantages are simple and reliable.
  • the fast OAM function of the bidirectional and unidirectional forwarding paths is completed through the newly defined Packet-out message based on the existing interface extension.
  • FIG. 11 is a schematic diagram of an optional configuration of a bidirectional forwarding path OAM according to an embodiment of the present invention
  • FIG. 12 is a schematic diagram of an optional configuration of a unidirectional forwarding path OAM according to an embodiment of the present invention
  • FIG. 14 is a schematic diagram of an OAM configured to configure only one-way forwarding path for a first-end forwarding device according to an embodiment of the present invention
  • FIG. 15 is a schematic diagram of an OAM according to an embodiment of the present invention.
  • the controller initiates a new bidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) to send a fast OAM function with a period of 10 milliseconds as an example.
  • the process which includes the following steps:
  • the controller initiates the configuration of the A-Z fast OAM.
  • the OAM is 1 and the type is bidirectional.
  • the operation type is new.
  • the sending period is 10 milliseconds.
  • the traffic table entry information X is used to identify the binding.
  • the inbound port of port A carries the group table information Y to identify the egress port bound to A.
  • the operation type of the packet is new.
  • the data packet carries the packet period of 10 milliseconds.
  • the bound path is AZ and the local port is A. It is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1] is 1, the identification operation type is newly added OAM; the data packet carries the packet period of 10 milliseconds, and the flow table entry information P is used to identify the inbound port of the binding port Z, and the group table information Q is carried to identify the binding A.
  • the port is bound to AZ and the local port is Z. It is delivered to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0].
  • the value of the pad[1] is 1 and the operation type is newly added OAM; according to the data packet.
  • the OAM message which is determined to be a 10-msec period, is bound to the inbound and outbound direction of the local port A. Then, the OAM message is configured, and the 10-ms timer is periodically sent to send the OAM message from the outbound direction of the A port. And receive the same type of OAM packet from the incoming detection of the A port.
  • the OAM component of the NE2 parses the Packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 1 to determine the operation type as a new OAM;
  • the OAM message of the 10 ms period is bound to the inbound and outbound direction of the local port Z. Then, the required OAM message is constructed, and the 10-ms timer is periodically sent from the Z outbound port to the port to send OAM messages.
  • the inbound detection of the Z port receives the same type of OAM packet.
  • the controller initiates an OAM transmission period of modifying the bidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2), and the modification is changed from 10 milliseconds to 3.33 milliseconds.
  • the process includes the following steps:
  • Step 1 The controller initiates the configuration of the AZ fast OAM configuration.
  • the OAM identifier is 1, the type is bidirectional, the operation type is modified, and the sending period is 3.33 milliseconds.
  • the flow table entry information P is used to identify the inbound port of the binding port Z.
  • the carrying group table information Q identifies the outgoing port of the binding A.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0].
  • the value of the pad[1] is 2, and the operation type is modified OAM;
  • the OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port A.
  • the 10 millisecond instance that has been in effect is found, the transmission period of the OAM message is modified, the 10 millisecond timer is stopped, and the 3.33 is started.
  • the millisecond timer updates the OAM message packet, periodically sends an OAM message from the outbound direction of the A port, and receives the same type of OAM packet from the incoming detection of the A port.
  • the OAM component of the NE2 parses the packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 2 to determine the operation type as the modified OAM;
  • the OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port Z. Then, the 10 millisecond OAM instance that has been in effect is found, the transmission period of the OAM message is modified, the 10 millisecond timer is stopped, and the 3.33 millisecond timer is started.
  • the OAM message packet is updated, and the OAM message is periodically sent from the outbound direction of the Z port, and the same type of OAM packet is received from the inbound detection of the Z port.
  • the controller initiates the OAM of the bidirectional forwarding path A-Z (the forwarding of the A port of the device NE1 to the Z port of the forwarding device NE2) as an example.
  • the process includes the following steps:
  • Step 1 The controller initiates the function of suspending the bidirectional forwarding path A-Z fast OAM.
  • the OAM flag is 1, the type is bidirectional, the operation type is pause, and the sending period is 3.33 milliseconds.
  • the bound path is A-Z and the local port is A. It is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, and the identifier is a bidirectional forwarding path.
  • the path OAM is set to the second byte of the pad, pad[1] is 3, the identification operation type is pause OAM, the data packet carries the message period of 3.33 milliseconds, and the flow table entry information P is used to identify the ingress port of the binding port Z.
  • the carrying group table information Q identifies the outgoing port of the binding A.
  • the bound path is A-Z and the local port is Z. It is delivered to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 3, and the operation type is suspended OAM; according to the data packet parsing
  • the OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port A. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is suspended, and the OAM packet is no longer sent.
  • the OAM component of the NE2 parses the Packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]; the value of pad[1] is 3, and the operation type is suspended OAM; according to the data packet parsing, it is determined as The OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port Z. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is suspended, and the OAM packet is no longer sent.
  • the OAM of the bidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) that has been suspended is described as an example.
  • the process includes the following steps:
  • Step 1 The controller initiates the configuration of the A-Z fast OAM that has been suspended.
  • the OAM flag is 1, the type is bidirectional, the operation type is startup, and the sending period is 3.33 milliseconds.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines the OAM type agreed with the controller to be forwarded to the OAM component according to the in_port value of 0xfffff01; NE2 The Openflow protocol processing component receives the Packet-out message, parses the message, and determines the OAM type agreed with the controller to be forwarded to the OAM component according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0].
  • the value of the pad[1] is 4 to determine the operation type is OAM; the data packet is parsed according to the data packet.
  • the OAM message of the 3.33 millisecond period is bound to the inbound port and the egress port of the local port A. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is restarted, and the OAM packet is sent through the outbound direction of the port A. .
  • the OAM component of the NE2 parses the packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0].
  • the value of the pad[1] is 4 to determine the operation type as OAM; according to the data packet parsing, it is determined as
  • the OAM message of the 3.33 millisecond period is bound to the outbound direction and the inbound direction of the local port Z. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is restarted, and the OAM packet is sent through the outbound direction of the port Z.
  • the OAM of the bidirectional forwarding path A-Z (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is used as an example.
  • the process includes the following steps:
  • Step 1 The controller initiates the configuration of deleting the A-Z fast OAM of the bidirectional forwarding path.
  • the OAM identifier is 1, the type is bidirectional, the operation type is deleted, and the sending period is 3.33 milliseconds.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 5, and the operation type is deleted OAM; according to the data packet parsing
  • the OAM message which is determined to be 3.33 milliseconds, is bound to the local port A; then it is found to have been valid. 3.33 millisecond instance, cancel the 3.33 millisecond timer, and delete this OAM instance.
  • the OAM component of the NE2 parses the Packet-out message structure, and determines that it is a bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 5, and the operation type is deleted OAM; The OAM message of the 3.33 millisecond period is bound to the local port Z. Then, the 3.33 millisecond instance that has been validated is found, the 3.33 millisecond timer is canceled, and the OAM instance is deleted.
  • the controller initiates the addition, modification, suspension, activation, or deletion of the OAM of the bidirectional forwarding path AZ (the forwarding port A of the device NE1 to the Z port of the forwarding device NE2), but Only NE1 or NE2 is controlled by the controller. In this way, the controller only needs to interact with NE1 or NE2.
  • each implementation step only considers the setting for NE1 or NE2, which is the embodiment in this scenario.
  • the controller initiates a new one-way forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) to send a fast OAM function with a period of 10 milliseconds as an example.
  • AZ the A port of the forwarding device NE1 to the Z port of the forwarding device NE2
  • Step 1 The controller initiates the configuration of the unidirectional forwarding path A-Z fast OAM.
  • the OAM flag is 1, the type is unidirectional, the operation type is new, and the sending period is 10 milliseconds.
  • the local port is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 1, the identification operation type is newly added OAM; the action [0] type is 0xfff1, the identification action is to receive OAM message packets; the data message carries the message period is 10 milliseconds, and the bound path is AZ.
  • the local port is Z and is delivered to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; and determines that the operation type is new OAM according to the value of pad[1]; according to actions[ The type of 0] is 0xfff0, and the action is to send an OAM message.
  • the OAM message of the 10 millisecond period is bound to the local port A. Then, the required OAM message is constructed. 10 milliseconds The timer periodically sends OAM messages from the A port.
  • the OAM component of NE2 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of pad[1] is 1 to determine the operation type as new OAM; according to actions[0] The type is 0xfff1, and the action is to receive the OAM message.
  • the OAM message of the 10 millisecond period is bound to the local port Z. Then, the Z port probe is monitored to receive the OAM packet of this type.
  • the OAM transmission period of the unidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is modified by the controller, and is modified from 10 milliseconds to 3.33 milliseconds.
  • the process includes the following steps:
  • Step 1 The controller initiates the configuration of the A-Z fast OAM configuration.
  • the OAM identifier is 1, the type is one-way, the operation type is modified, and the sending period is 3.33 milliseconds.
  • the local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 2, the identification operation type is modified OAM; the action [0] type is 0xfff1, the identification action is to receive the OAM message, the data message carries the message period is 3.33 milliseconds, and the bound path is AZ.
  • the local port is Z and is delivered to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of the pad[1] is 2 to determine the operation type as the modified OAM; according to the actions[0] The type is 0xfff0, and the action is to send an OAM message. According to the data packet parsing, it is determined that the OAM message of the 3.33 millisecond period is bound to the local port A. Then, the 10 millisecond instance that has been valid is found, and the OAM is modified.
  • the sending period of the message packet the 10 millisecond timer is stopped, the 3.33 millisecond timer is started, the OAM message packet is updated, and the OAM message is periodically sent from the A port.
  • the OAM component of NE2 parses the Packet-out message structure, and determines that it is a one-way forwarding path according to the value of pad[0]; and determines that the operation type is modified OAM according to the value of pad[1]; according to the type of actions[0] 0xfff1, the action is to receive the OAM message; according to the data packet parsing, it is determined that the OAM message is 3.33 milliseconds, and the local port Z is bound; The instance of the monitoring 10 ms OAM message that has been in effect is found to be modified to receive the 3.33 millisecond message from the Z port probe.
  • the OAM of the unidirectional forwarding path AZ (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is used as an example.
  • the process includes the following steps. :
  • Step 1 The controller initiates the function of suspending the one-way forwarding path A-Z fast OAM.
  • the OAM flag is 1, the type is one-way, the operation type is pause, and the sending period is 3.33 milliseconds.
  • the local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 3, the identification operation type is pause OAM; the type of operations[0] is set to 0xfff1, the identification action is to receive the OAM message, the data packet carries the packet period is 3.33 milliseconds, and the bound path is AZ.
  • the local port is Z and is delivered to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of the pad[1] is 3 to determine the operation type is pause OAM; according to actions[0] The type is 0xfff0, and the action is to send an OAM message. According to the data packet parsing, it is determined that the OAM message is 3.33 milliseconds, and is bound to the local port A. Then, the current 3.33 millisecond instance is valid, and the pause is 3.33. The millisecond timer does not send this OAM packet.
  • the OAM component of NE2 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of pad[1] determines that the operation type is pause OAM; according to the type of actions[0] If it is 0xfff1, it is determined that the action is to receive the OAM message. According to the data packet parsing, it is determined that the OAM message of the 3.33 millisecond period is bound to the local port Z. Then, the current 3.33 millisecond message instance that has been in effect is found. The Z port receives the monitoring of this OAM.
  • the OAM of the unidirectional forwarding path AZ (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) that has been suspended is described as an example. Including the following steps:
  • Step 1 The controller initiates the configuration of the A-Z fast OAM that has been suspended.
  • the OAM flag is 1, the type is one-way, the operation type is start, and the sending period is 3.33 milliseconds.
  • the local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 4, the identification operation type is start OAM; the action [0] type is 0xfff1, the identification action is to receive OAM message packets; the data message carries the message period is 3.33 milliseconds, and the bound path is AZ.
  • the local port is Z and is delivered to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the unidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 4 to determine the operation type as the start OAM; according to the actions[0] The type is 0xfff0, and the action is to send an OAM message.
  • the OAM message of the 3.33 millisecond period is bound to the local port A. Then, the 3.33 millisecond instance that has been valid is found. 3.33 millisecond timer, this OAM packet is sent.
  • the OAM component of NE2 parses the Packet-out message structure, and determines that it is a one-way forwarding path according to the value of pad[0]; the value of the pad[1] is 4 to determine the operation type as the start OAM; according to the type of actions[0] It is 0xfff1, and the action is to receive the OAM message.
  • the OAM message of the 3.33 millisecond period is bound to the local port Z. Then, an instance of the 3.33 millisecond OAM message that has been in effect is found. , restart the probe reception.
  • the OAM of the unidirectional forwarding path AZ (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is used as an example.
  • the process includes The following steps:
  • Step 1 The controller initiates the deletion of the A-Z fast OAM configuration.
  • the OAM identifier is 1, the type is one-way, the operation type is deleted, and the sending period is 3.33 milliseconds.
  • the local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xfffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 5, the identification operation type is deleted OAM; the action [0] type is 0xfff1, the identification action is to receive OAM message packets; the data message carries the packet period is 3.33 milliseconds, and the bound path is AZ.
  • the local port is Z, and the action is received. It is sent to NE2 through the Openflow channel.
  • Step 2 The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xfffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component.
  • the Openflow protocol processing component of the NE2 receives the packet.
  • the packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
  • Step 3 The OAM component of the NE1 parses the Packet-out message structure, and determines the unidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 5, and the operation type is deleted OAM; according to actions[0] The type is 0xfff0, and the action is to send an OAM message.
  • the OAM message of the 3.33 millisecond period is bound to the local port A.
  • the 3.33 millisecond instance that has been valid is found, and the 3.33 cancellation is canceled.
  • the OAM component of NE2 parses the Packet-out message structure, and determines that it is a one-way forwarding path according to the value of pad[0]; the value of pad[1] is 5 to determine the operation type as deleting OAM; according to the type of actions[0] It is 0xfff1, and the action is to receive the OAM message.
  • the OAM message of the 3.33 millisecond period is bound to the local port Z. Then, an instance of the 3.33 millisecond OAM message that has been in effect is found. , cancel the 3.33 millisecond timer and cancel the probe reception for this OAM.
  • the OAM of the unidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is initiated, modified, suspended, activated, or deleted by the controller. But only the NE1 belongs to the controller control, so the controller only needs to interact with NE1. In the above embodiment, each implementation step only considers the setting for NE1 as an embodiment in such a scenario.
  • the OAM of the unidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is initiated, modified, suspended, activated, or deleted by the controller. but Only the NE2 belongs to the controller control, so the controller only needs to interact with NE2. In the above embodiment, each implementation step only considers the setting for NE2, which is an embodiment in such a scenario.
  • the OAM is inherently existing, and the OAM addition, deletion, and modification operations are not required. Only the OAM monitoring function needs to be enabled or suspended, and the OAM monitoring function is enabled to be activated. Indicates that the OAM monitoring function is disabled.
  • the required OAM function can be completed whether it is a bidirectional forwarding path or a one-way forwarding path.
  • the related member definition of the Packet-out message is extended, and the Ethernet, IP, MPLS, and MPLS for the packet-based transmission technology are completed.
  • -TP, PBB and other networks non-packet transmission technology such as OTN, WDM and other networks, for the two-way or one-way forwarding path fast OAM addition, modification, suspension, start, delete and other functions, with simple and reliable advantages.
  • modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein.
  • the steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module.
  • the invention is not limited to any specific combination of hardware and software.
  • the controller carries the OAM configuration information indicating the OAM function of the path of the forwarding device in the configuration packet
  • the forwarding device sends the configuration packet to indicate that the forwarding device implements the OAM function of the path, and implements the OAM function at the forwarding device level, which avoids the problem that the forwarding device and the controller interact to cause low real-time performance, thereby achieving the path OAM function.

Abstract

Disclosed are a method and device for implementing an operations, administration and maintenance function. The method for implementing an operations, administration and maintenance function comprises: a controller carries OAM configuration information in a configuration packet, the OAM configuration information being used for instructing a forwarding device to carry out an OAM function of a path, the path being a path between forwarding devices; the controller sends the configuration packet to the forwarding device. Via the present invention, an OAM function is implemented on a forwarding device level, thereby satisfying OAM high real-time performance requirements.

Description

操作维护管理功能的实现方法及装置Method and device for implementing operation and maintenance management function 技术领域Technical field
本发明涉及通信领域,具体而言,涉及一种操作维护管理功能的实现方法及装置。The present invention relates to the field of communications, and in particular to an implementation method and apparatus for an operation and maintenance management function.
背景技术Background technique
软件定义网络(Software defined network,简称为SDN)是近年来通信领域的研究热点。国际标准组织开放网络论坛(Open networking forum,简称为ONF)拟定SDN相关标准建议,重点在于控制器(控制器,简称CP)和转发设备(转发设备,或者switcher)之间解耦,规范控制器与转发面之间的接口,方便不同厂家的控制器、转发设备联合组网。Software Defined Network (SDN) is a research hotspot in the field of communication in recent years. The International Standards Organization Open Network Forum (ONF) formulates SDN related standard recommendations, focusing on decoupling between controllers (controllers, CP) and forwarding devices (forwarding devices, or switchers). The interface between the forwarding plane and the forwarding plane facilitates the joint networking of controllers and forwarding devices from different vendors.
ONF目前已经发布了控制器与转发面之间接口规范OpenFlow Switch Specification,基于此接口规范实施的协议为Openflow协议。ONF近几年组织了多次互联互通测试,在支持二层业务、二层虚拟专用网络(Virtual Private Network,简称为VPN)业务方面比较成熟。The ONF has now released the OpenFlow Switch Specification for the interface between the controller and the forwarding plane. The protocol implemented based on this interface specification is the Openflow protocol. ONF has organized a number of interoperability tests in recent years, and is mature in supporting Layer 2 services and Layer 2 Virtual Private Network (VPN) services.
图1是根据相关技术的SDN网络的结构示意图,如图1所示,Openflow通道用于控制器与转发设备之间的Openflow协议交互。控制器发送的协议消息至转发设备后,转发设备的协议处理组件终结协议提取协议报文携带的内容信息,并转发至相应组件。同样转发设备内相关组件发送至控制器的信息,需要先传递至协议处理组件封装为Openflow协议并发送至控制器。1 is a schematic structural diagram of an SDN network according to the related art. As shown in FIG. 1, an Openflow channel is used for Openflow protocol interaction between a controller and a forwarding device. After the protocol message sent by the controller is sent to the forwarding device, the protocol processing component of the forwarding device terminates the protocol to extract the content information carried by the protocol packet, and forwards the content information to the corresponding component. Similarly, the information sent to the controller by the relevant components in the forwarding device needs to be first passed to the protocol processing component packaged as an Openflow protocol and sent to the controller.
Openflow协议定义了一系列消息,包括控制器-to-switch,asynchronous和symmetric三种大类,每个大类又定义了很多类型。控制器-to-switch消息由控制器发起,用来管理或获取转发设备状态;asynchronous消息由转发设备发起,用来将网络事件或转发设备状态变化通知到控制器;symmetric消息可由转发设备或者控制器发起。The Openflow protocol defines a series of messages, including controller-to-switch, asynchronous, and symmetric. Each class defines many types. The controller-to-switch message is initiated by the controller to manage or obtain the forwarding device status. The asynchronous message is initiated by the forwarding device to notify the controller of the network event or forwarding device status change; the symmetric message may be forwarded by the device or controlled. Launched.
在支持操作维护管理方面的功能(Operation,administration and maintenance,简称为OAM)方面,如图2所示,控制器通过发起控制器-to-switch类别的Packet-out的消息,通过Openflow协议通道发送至转发设备。转发设备根据消息指定的端口发送,接收端转发设备收到此消息后,根据消息指示进行收发包统计、错包统计等,并上送至协议处理组件,封装为Packet-in消息通过Openflow通道上送至控制器。 In the aspect of the operation, maintenance, and maintenance (OAM), as shown in Figure 2, the controller sends a packet-out message in the controller-to-switch category and sends it through the Openflow protocol channel. To the forwarding device. The forwarding device sends the packet according to the specified port of the message. After receiving the message, the receiving device forwards the packet statistics and error packets according to the message indication, and sends the packet to the protocol processing component. The packet is encapsulated as a Packet-in message through the Openflow channel. Send to controller.
然而,上述这种机制是在控制器和转发设备之间进行消息交互,不适合需要周期性快速发送和接收,用于保护倒换或其他目的消息包,这种快速报文一般需要在转发设备层面快速收发。例如,MPLS-TP(国际电联ITU-T等国际标准规范的分组传送技术标准)标准要求支持3.33毫秒周期性收发的快速连通性检测报文(CCM)。However, the above-mentioned mechanism is to perform message exchange between the controller and the forwarding device, and is not suitable for periodic fast transmission and reception, and is used for protection switching or other destination message packets. This fast packet generally needs to be at the forwarding device level. Fast send and receive. For example, the MPLS-TP (Packet Transmission Technical Standard of the International Standard Specification such as ITU-T ITU-T) requires a Fast Connectivity Detection Message (CCM) that supports 3.33 milliseconds of periodic transmission and reception.
发明内容Summary of the invention
本发明实施例提供了一种操作维护管理功能的实现方法及装置,以至少解决相关技术中路径OAM功能无法满足高实时性要求的问题。The embodiment of the invention provides a method and a device for implementing an operation and maintenance management function, so as to at least solve the problem that the path OAM function cannot meet the high real-time requirement in the related art.
根据本发明实施例的一个方面,提供了一种操作维护管理功能的实现方法,包括:控制器在配置报文中携带OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,该路径为转发设备之间的路径;控制器向转发设备发送该配置报文。According to an aspect of the embodiments of the present invention, an implementation of an operation and maintenance management function is provided, including: the controller carries OAM configuration information in a configuration packet, where the OAM configuration information is used to indicate an OAM function of the path of the forwarding device implementation. The path is a path between the forwarding devices; the controller sends the configuration packet to the forwarding device.
进一步的,上述OAM配置信息包括以下至少之一:标识信息、操作类型、特征信息、端口信息,其中:标识信息用于标识OAM功能的实例,并与同时生效的其他OAM实例相区别;操作类型用于指示OAM功能的类型;特征信息用于指示与OAM功能对应的参数;端口信息用于指示OAM功能所绑定的本地端口。Further, the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and is different from other OAM instances that are in effect at the same time; The type used to indicate the OAM function; the feature information is used to indicate a parameter corresponding to the OAM function; the port information is used to indicate the local port to which the OAM function is bound.
进一步的,上述特征信息包括:OAM消息报文发送周期,其中,OAM消息报文发送周期用于指示转发设备向路径另一端的转发设备发送报文的周期。Further, the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to indicate a period in which the forwarding device sends a packet to the forwarding device at the other end of the path.
进一步的,上述OAM操作类型包括以下至少之一:OAM功能的新增、修改、暂停、启动或删除。Further, the foregoing OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting the OAM function.
进一步的,控制器向转发设备发送配置报文包括以下至少之一:向双向转发路径的首端点转发设备和/或尾端点转发设备发送配置报文,其中,配置报文中携带的端口信息包括出端口信息和入端口信息,出端口信息指示发送报文的本地端口,入端口信息指示接收报文的本地端口;向单向转发路径的首端点转发设备发送第一配置报文,和/或向单向转发路径的尾端点转发设备发送第二配置报文,其中,第一配置报文携带的端口信息为上述出端口信息,所述第二配置报文携带的端口信息为上述入端口信息。Further, the sending, by the controller, the configuration packet to the forwarding device includes at least one of the following: sending a configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the port information carried in the configuration packet includes Outbound port information and inbound port information, the outbound port information indicates the local port that sends the packet, the inbound port information indicates the local port that receives the packet, and the first endpoint forwarding device that sends the first configuration packet to the first endpoint forwarding path, and/or The second configuration packet is sent to the tail-end forwarding device of the one-way forwarding path, where the port information carried in the first configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port information. .
进一步的,上述配置报文是基于Packet-out消息扩展的报文类型。Further, the foregoing configuration packet is a packet type based on a Packet-out message extension.
进一步的,上述OAM配置信息携带在Packet-out消息的以下至少之一:端口字段、动作集字段、保留字段或数据字段。 Further, the foregoing OAM configuration information is carried in at least one of the following: a port field, an action set field, a reserved field, or a data field.
根据本发明实施例的另一个方面,提供了一种操作维护管理功能的实现方法,包括:转发设备接收控制器发送的配置报文;转发设备从配置报文中获取操作维护管理OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,路径为转发设备之间的路径;转发设备根据OAM配置信息执行路径的OAM功能。According to another aspect of the present invention, a method for implementing an operation and maintenance management function is provided, including: a forwarding device receiving a configuration message sent by a controller; and a forwarding device acquiring operation and maintenance management OAM configuration information from the configuration message, The OAM configuration information is used to indicate the OAM function of the path of the forwarding device, and the path is the path between the forwarding devices. The forwarding device performs the OAM function of the path according to the OAM configuration information.
进一步的,转发设备根据OAM配置信息执行路径的OAM功能包括以下至少之一:Further, the OAM function of the forwarding device performing the path according to the OAM configuration information includes at least one of the following:
当OAM配置信息中的操作类型指示OAM功能的类型为新增时,根据OAM配置信息中的特征信息指示的OAM消息报文周期,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;When the type of the OAM configuration information indicates that the type of the OAM function is new, the timer corresponding to the OAM message packet period is started according to the OAM message packet period indicated by the feature information in the OAM configuration information, and the timer is sent to the other end of the path. The forwarding device sends an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
当操作类型指示OAM功能的类型为修改时,根据特征信息指示的OAM消息报文周期,停止OAM消息报文的定时器,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;When the operation type indicates that the type of the OAM function is modified, the timer of the OAM message packet is stopped according to the OAM message packet period indicated by the feature information, and the timer corresponding to the OAM message packet period is started, and the forwarding device is sent to the other end of the path. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
当操作类型指示OAM功能的类型为暂停时,暂停OAM消息报文的定时器,暂停发送和/或接收OAM消息报文;When the type of the operation indicates that the type of the OAM function is paused, the timer of the OAM message is suspended, and the OAM message is suspended and/or received.
当操作类型指示OAM功能的类型为重启时,重启OAM消息报文的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;When the type of the operation indicates that the type of the OAM function is restarted, the timer for restarting the OAM message is sent to the forwarding device at the other end of the path, and the OAM message sent by the forwarding device at the other end of the path is received.
当操作类型指示OAM功能的类型为删除时,取消OAM消息报文的定时器,删除OAM配置信息中的标识信息对应OAM实例。When the type of the OAM function is deleted, the timer of the OAM message is deleted, and the identifier information in the OAM configuration information is deleted.
进一步的,当OAM配置信息的绑定对象为单向转发路径时,如果转发设备为路径的首端点,转发设备根据操作类型向路径的另一端转发设备发送OAM消息报文;如果转发设备为路径的尾端点,转发设备根据操作类型接收路径的另一端转发设备发送的OAM消息报文。Further, when the binding object of the OAM configuration information is a unidirectional forwarding path, if the forwarding device is the first endpoint of the path, the forwarding device sends an OAM message to the forwarding device at the other end of the path according to the operation type; The end device of the forwarding device forwards the OAM message sent by the device to the other end of the receiving path according to the operation type.
进一步的,当OAM配置信息的绑定对象为双向转发路径时,转发设备根据操作类型向路径的另一端转发设备发送OAM消息报文,并接收路径的另一端转发设备发送的OAM消息报文。 Further, when the binding object of the OAM configuration information is a bidirectional forwarding path, the forwarding device sends an OAM message to the forwarding device at the other end of the path according to the operation type, and the other end of the path forwards the OAM message sent by the device.
进一步的,上述方法还包括:转发设备根据所述OAM配置信息中的端口信息绑定对应的本地端口;其中,通过流表条目信息标识入端口,用组表信息标识出端口,本地端口包括物理端口和/或逻辑端口。Further, the method further includes: the forwarding device binding the corresponding local port according to the port information in the OAM configuration information; wherein the inflow port is identified by the flow table entry information, and the port is identified by the group table information, and the local port includes the physical port. Port and / or logical port.
进一步的,上述配置报文是基于Packet-out消息扩展的报文类型。Further, the foregoing configuration packet is a packet type based on a Packet-out message extension.
根据本发明实施例的再一个方面,提供了一种操作维护管理功能的实现装置,包括:处理模块,设置为在配置报文中携带操作维护管理OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,路径为转发设备之间的路径;发送模块,设置为向转发设备发送配置报文。According to still another aspect of the embodiments of the present invention, an apparatus for implementing an operation and maintenance management function is provided, including: a processing module, configured to carry operation and maintenance management OAM configuration information in a configuration message, where OAM configuration information is used to indicate The forwarding device implements the OAM function of the path, and the path is a path between the forwarding devices. The sending module is configured to send the configuration packet to the forwarding device.
进一步的,上述OAM配置信息包括以下至少之一:标识信息、操作类型、特征信息、端口信息,其中:标识信息用于标识OAM功能的实例,并于同时生效的其他OAM实例相区别;操作类型用于指示OAM功能的类型;特征信息用于指示与OAM功能对应的参数;端口信息用于指示OAM功能所绑定的本地端口。Further, the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and is different from other OAM instances that are effective at the same time; The type used to indicate the OAM function; the feature information is used to indicate a parameter corresponding to the OAM function; the port information is used to indicate the local port to which the OAM function is bound.
进一步的,上述特征信息包括:OAM消息报文发送周期,其中,OAM消息报文发送周期用于指示转发设备向路径另一端的转发设备发送报文的周期。Further, the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to indicate a period in which the forwarding device sends a packet to the forwarding device at the other end of the path.
进一步的,OAM操作类型包括以下至少之一:OAM功能的新增、修改、暂停、启动或删除。Further, the OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting the OAM function.
进一步的,发送模块,包括以下至少之一:第一发送单元,设置为向双向转发路径的首端点转发设备和/或尾端点转发设备发送配置报文,其中,配置报文中携带的端口信息包括出端口信息和入端口信息,出端口信息指示发送报文的本地端口,入端口信息指示接收报文的本地端口;第二发送单元,设置为向单向转发路径的首端点转发设备发送第一配置报文,向单向转发路径的尾端点转发设备发送第二配置报文,其中,第一配置报文携带的端口信息为出端口信息,第二配置报文携带的端口信息为入端口信息。Further, the sending module includes at least one of the following: the first sending unit is configured to send a configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the port information carried in the packet is configured. Including the outbound port information and the ingress port information, the outbound port information indicates the local port that sends the packet, the ingress port information indicates the local port that receives the packet, and the second sending unit is configured to send the first to the first endpoint forwarding device of the one-way forwarding path. A configuration packet sends a second configuration packet to the tail-end forwarding device of the one-way forwarding path, where the port information carried in the first configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port. information.
进一步的,上述配置报文是基于Packet-out消息扩展的报文类型。Further, the foregoing configuration packet is a packet type based on a Packet-out message extension.
进一步的,处理模块,设置为将OAM配置信息携带在Packet-out消息的以下至少之一:端口字段、动作集字段、保留字段或数据字段。Further, the processing module is configured to carry the OAM configuration information in at least one of the following: a port field, an action set field, a reserved field, or a data field.
根据本发明实施例的再一个方面,提供了一种操作维护管理功能的实现装置,包括:接收模块,设置为接收控制器发送的配置报文;获取模块,设置为从配置报文中获取操作维护管理OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径 的OAM功能,路径为转发设备之间的路径;执行模块,设置为根据OAM配置信息执行路径的OAM功能。According to still another aspect of the embodiments of the present invention, an apparatus for implementing an operation and maintenance management function includes: a receiving module configured to receive a configuration message sent by a controller; and an obtaining module configured to obtain an operation from the configuration message Maintain and manage OAM configuration information, where OAM configuration information is used to indicate the forwarding device implementation path. The OAM function, the path is the path between the forwarding devices; the execution module is set to perform the OAM function of the path according to the OAM configuration information.
进一步的,上述执行模块包括以下至少之一:Further, the foregoing execution module includes at least one of the following:
第一执行单元,设置为当OAM配置信息中的操作类型指示OAM功能的类型为新增时,根据OAM配置信息中的特征信息指示的OAM消息报文周期,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;The first execution unit is configured to start the timing corresponding to the OAM message packet period according to the OAM message packet period indicated by the feature information in the OAM configuration information, when the type of the OAM configuration information indicates that the type of the OAM function is new. The device sends an OAM message to the forwarding device at the other end of the path and/or an OAM message sent by the forwarding device at the other end of the path;
第二执行单元,设置为当操作类型指示OAM功能的类型为修改时,根据特征信息指示的OAM消息报文周期,停止OAM消息报文的定时器,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;The second execution unit is configured to stop the timer of the OAM message packet and start the timer corresponding to the OAM message packet period according to the OAM message packet period indicated by the feature information, when the operation type indicates that the type of the OAM function is modified. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the path to the forwarding device at the other end of the path;
第三执行单元,设置为当操作类型指示OAM功能的类型为暂停时,暂停OAM消息报文的定时器,暂停发送和/或接收OAM消息报文;a third execution unit, configured to suspend the timer of the OAM message, suspend sending and/or receiving the OAM message, when the operation type indicates that the type of the OAM function is paused;
第四执行单元,设置为当操作类型指示OAM功能的类型为重启时,重启OAM消息报文的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;The fourth execution unit is configured to: when the operation type indicates that the type of the OAM function is restarted, restart the timer of the OAM message, and send the OAM message to the forwarding device at the other end of the path and/or the forwarding device at the other end of the receiving path. The sent OAM message packet;
第五执行单元,设置为当操作类型指示OAM功能的类型为删除时,取消OAM消息报文的定时器,删除所述OAM配置信息中的标识信息对应OAM实例。The fifth execution unit is configured to cancel the timer of the OAM message when the operation type indicates that the type of the OAM function is deleted, and delete the identifier information corresponding to the OAM instance in the OAM configuration information.
进一步的,当OAM配置信息的绑定对象为单向转发路径时,如果转发设备为路径的首端点,执行模块,设置为根据操作类型向路径的另一端转发设备发送OAM消息报文;如果转发设备为路径的尾端点,执行模块,设置为根据操作类型接收路径的另一端转发设备发送的OAM消息报文。Further, when the binding object of the OAM configuration information is a one-way forwarding path, if the forwarding device is the first endpoint of the path, the execution module is configured to send an OAM message to the forwarding device at the other end of the path according to the operation type; The device is the trailing edge of the path, and the execution module is configured to forward the OAM message sent by the device to the other end of the receiving path according to the operation type.
进一步的,当OAM配置信息的绑定对象为双向转发路径时,执行模块,设置为根据操作类型向路径的另一端转发设备发送OAM消息报文,并接收路径的另一端转发设备发送的OAM消息报文。Further, when the binding object of the OAM configuration information is a bidirectional forwarding path, the execution module is configured to send an OAM message to the forwarding device of the other end of the path according to the operation type, and the other end of the path is forwarded to the OAM message sent by the device. Message.
进一步的,上述执行模块,还设置为根据OAM配置信息中的端口信息绑定对应的本地端口;其中,通过流表条目信息标识入端口,用组表信息标识出端口,本地端口包括物理端口和/或逻辑端口。 Further, the foregoing execution module is further configured to bind the corresponding local port according to the port information in the OAM configuration information; wherein the inflow port is identified by the flow table entry information, and the port is identified by the group table information, and the local port includes the physical port and / or logical port.
进一步的,上述配置报文是基于Packet-out消息扩展的报文类型。。Further, the foregoing configuration packet is a packet type based on a Packet-out message extension. .
通过本发明实施例,控制器在配置报文中携带用于指示转发设备实施路径的OAM功能的OAM配置信息,向转发设备发送该配置报文,从而指示转发设备实施路径的OAM功能,在转发设备层面实现了OAM功能,可以避免转发设备与控制器交互导致实时性不高的问题,进而可以达到路径OAM功能的高实时性要求。According to the embodiment of the present invention, the controller carries the OAM configuration information for indicating the OAM function of the path of the forwarding device in the configuration packet, and sends the configuration packet to the forwarding device, thereby instructing the forwarding device to implement the OAM function of the path. The OAM function is implemented at the device level to avoid the problem of low real-time performance caused by the interaction between the forwarding device and the controller, and the high-real-time requirement of the path OAM function can be achieved.
附图说明DRAWINGS
此处所说明的附图用来提供对本发明的进一步理解,构成本申请的一部分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:The drawings described herein are intended to provide a further understanding of the invention, and are intended to be a part of the invention. In the drawing:
图1是根据相关技术的SDN网络的结构示意图;1 is a schematic structural diagram of an SDN network according to the related art;
图2是根据相关技术的OAM功能的实现示意图;2 is a schematic diagram of implementation of an OAM function according to the related art;
图3是根据本发明实施例的操作维护管理功能的实现方法的流程图一;3 is a flowchart 1 of an implementation method of an operation and maintenance management function according to an embodiment of the present invention;
图4是根据本发明实施例的操作维护管理功能的实现方法的流程图二;4 is a second flowchart of an implementation method of an operation and maintenance management function according to an embodiment of the present invention;
图5是根据本发明实施例的操作维护管理功能的实现装置的结构框图一;5 is a structural block diagram 1 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention;
图6是根据本发明实施例可选的发送模块20的结构框图;FIG. 6 is a structural block diagram of an optional transmitting module 20 according to an embodiment of the present invention; FIG.
图7是根据本发明实施例的操作维护管理功能的实现装置的结构框图二;7 is a structural block diagram 2 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention;
图8是根据本发明实施例可选的获取模块40的结构框图;FIG. 8 is a structural block diagram of an optional acquisition module 40 according to an embodiment of the present invention;
图9是根据本发明实施例可选的执行模块50的结构框图;9 is a block diagram showing the structure of an optional execution module 50 in accordance with an embodiment of the present invention;
图10是根据本发明实施例Packet-out消息的示意图;10 is a schematic diagram of a Packet-out message according to an embodiment of the present invention;
图11是根据本发明实施例可选的配置双向转发路径OAM的示意图;11 is a schematic diagram of an optional bidirectional forwarding path OAM configured according to an embodiment of the present invention;
图12是根据本发明实施例可选的配置单向转发路径OAM的示意图;FIG. 12 is a schematic diagram of optionally configuring a one-way forwarding path OAM according to an embodiment of the present invention; FIG.
图13是根据本发明实施例可选的只配置双向转发路径一个端点转发设备的OAM的示意图; FIG. 13 is a schematic diagram of an OAM of an endpoint forwarding device configured to configure only a bidirectional forwarding path according to an embodiment of the present invention; FIG.
图14是根据本发明实施例可选的只配置单向转发路径首端点转发设备的OAM的示意图;FIG. 14 is a schematic diagram of an OAM configured to configure only a one-way forwarding path first-end forwarding device according to an embodiment of the present invention; FIG.
图15是根据本发明实施例可选的只配置单向转发路径尾端点转发设备的OAM的示意图。FIG. 15 is a schematic diagram of an OAM configured to configure only a one-way forwarding path tail endpoint forwarding device according to an embodiment of the present invention.
具体实施方式detailed description
下文中将参考附图并结合实施例来详细说明本发明。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。The invention will be described in detail below with reference to the drawings in conjunction with the embodiments. It should be noted that the embodiments in the present application and the features in the embodiments may be combined with each other without conflict.
在本实施例中提供了一种操作维护管理功能的实现方法,图3是根据本发明实施例的操作维护管理功能的实现方法的流程图一,如图3所示,该流程包括如下步骤:In this embodiment, a method for implementing an operation and maintenance management function is provided. FIG. 3 is a flowchart 1 of an implementation method of an operation and maintenance management function according to an embodiment of the present invention. As shown in FIG. 3, the process includes the following steps:
步骤S302,控制器在配置报文中携带OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,该路径为转发设备之间的路径;In the step S302, the controller carries the OAM configuration information in the configuration packet, where the OAM configuration information is used to indicate the OAM function of the path of the forwarding device, and the path is a path between the forwarding devices.
步骤S304,控制器向转发设备发送该配置报文。Step S304, the controller sends the configuration packet to the forwarding device.
通过本发明实施例,控制器在配置报文中携带用于指示转发设备实施路径的OAM功能的OAM配置信息,向转发设备发送该配置报文,从而指示转发设备实施路径的OAM功能,在转发设备层面实现了OAM功能,可以避免转发设备与控制器交互导致实时性不高的问题,进而可以达到路径OAM功能的高实时性要求。According to the embodiment of the present invention, the controller carries the OAM configuration information for indicating the OAM function of the path of the forwarding device in the configuration packet, and sends the configuration packet to the forwarding device, thereby instructing the forwarding device to implement the OAM function of the path. The OAM function is implemented at the device level to avoid the problem of low real-time performance caused by the interaction between the forwarding device and the controller, and the high-real-time requirement of the path OAM function can be achieved.
在本发明实施例的一个可选实施方式中,上述OAM配置信息至少包括以下至少之一:标识信息、操作类型、特征信息、端口信息,其中:标识信息用于标识OAM功能的实例,并与同时生效的其他OAM实例相区别;特征信息用于指示与OAM功能对应的参数;端口信息用于指示OAM功能所绑定的本地端口。In an optional implementation manner of the embodiment of the present invention, the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and The other OAM instances that are in effect at the same time are distinguished; the feature information is used to indicate the parameter corresponding to the OAM function; the port information is used to indicate the local port to which the OAM function is bound.
在本发明实施例的一个可选实施方式中,上述特征信息至少包括:OAM消息报文发送周期,其中,OAM消息报文发送周期用于指示转发设备向路径另一端的转发设备发送报文的周期。In an optional implementation manner of the embodiment of the present invention, the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to instruct the forwarding device to send a packet to the forwarding device at the other end of the path. cycle.
在本发明实施例的一个可选实施方式中,上述OAM操作类型包括以下至少之一:OAM功能的新增、修改、暂停、启动或删除。In an optional implementation manner of the embodiment of the present invention, the foregoing OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting an OAM function.
在本发明实施例的一个可选实施方式中,对于双向转发路径,控制器向双向转发路径的首端点转发设备和/或尾端点转发设备发送配置报文,其中,配置报文中携带的 端口信息包括出端口信息和入端口信息,出端口信息指示发送报文的本地端口,入端口信息指示接收报文的本地端口。对于单向转发路径,由于控制器向单向转发路径的首端点转发设备发送第一配置报文,和/或向单向转发路径的尾端点转发设备发送第二配置报文,其中,第一配置报文携带携带的端口信息为出端口信息,所述第二配置报文携带的端口信息为所述入端口信息。可选地,通过流表条目信息标识入端口,用组表信息标识出端口。In an optional implementation manner of the embodiment of the present invention, the controller sends a configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the configuration is carried in the packet. The port information includes the outbound port information and the inbound port information. The outbound port information indicates the local port that sends the packet. The inbound port information indicates the local port that receives the packet. For the one-way forwarding path, the controller sends the first configuration packet to the first-end forwarding device of the one-way forwarding path, and/or sends the second configuration packet to the tail-end forwarding device of the one-way forwarding path, where the first The port information carried in the configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port information. Optionally, the ingress port is identified by the flow table entry information, and the port is identified by the group table information.
在本发明实施例的一个可选实施方式中,上述配置报文是基于Packet-out消息扩展的报文类型,当然,为了实现上述目的,其他消息也是可以被构想的,本发明实施例并不限于此。Packet-out消息的一个优点在于无需增加其他的消息,可在Openflow协议的现有消息上实现上述目的。In an optional implementation manner of the embodiment of the present invention, the configuration packet is a packet type based on the packet-out message extension. Of course, in order to achieve the foregoing object, other messages may also be conceived, and the embodiment of the present invention is not Limited to this. One advantage of the Packet-out message is that it does not require additional messages to be added to the existing messages of the Openflow protocol.
在本发明实施例的一个可选实施方式中,通过复用Packet-out消息中未被使用的字段携带上述OAM配置信息,例如,上述OAM配置信息携带在Packet-out消息的以下至少之一:端口字段、动作集字段、保留字段或数据字段,当然其他字段也是可以被构想的,本发明实施例不限于此,此处作为举例说明。In an optional implementation manner of the embodiment of the present invention, the OAM configuration information is carried by the unused field in the packet-out message. For example, the OAM configuration information is carried in at least one of the following in the Packet-out message: The port field, the action set field, the reserved field, or the data field, of course, other fields are also conceivable, and the embodiment of the present invention is not limited thereto, and is exemplified herein.
在本实施例中还提供了另一种操作维护管理功能的实现方法,图4是根据本发明实施例的操作维护管理功能的实现方法的流程图二,如图4所示,该流程包括如下步骤:In the embodiment, another method for implementing the operation and maintenance management function is provided. FIG. 4 is a second flowchart of the method for implementing the operation and maintenance management function according to the embodiment of the present invention. As shown in FIG. 4, the flow includes the following steps. step:
步骤S402,转发设备接收控制器发送的配置报文;Step S402, the forwarding device receives the configuration packet sent by the controller.
步骤S404,转发设备从配置报文中获取OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,路径为转发设备之间的路径;In the step S404, the forwarding device obtains the OAM configuration information from the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is the path between the forwarding devices.
步骤S406,转发设备根据OAM配置信息执行路径的OAM功能。Step S406, the forwarding device performs the OAM function of the path according to the OAM configuration information.
通过本发明实施例,转发设备根据控制器发送OAM配置信息执行路径的OAM功能,避免了控制器与转发设备交互实现方式导致的实时性较低的问题,可以满足高实时性的要求。According to the embodiment of the present invention, the forwarding device performs the OAM function of the path according to the OAM configuration information sent by the controller, which avoids the problem of low real-time performance caused by the interaction between the controller and the forwarding device, and can meet the requirements of high real-time performance.
在本发明实施例的一个可选实施方式中,转发设备根据报文中携带的指示信息判断接收到的报文是否为配置报文;当标识信息指示该报文为配置报文时,转发设备从配置报文中获取OAM配置信息。 In an optional implementation manner of the embodiment of the present invention, the forwarding device determines, according to the indication information carried in the packet, whether the received packet is a configuration packet, and when the identifier information indicates that the packet is a configuration packet, the forwarding device Obtain OAM configuration information from the configuration packet.
在本发明实施例的一个可选实施方式中,OAM配置信息还可以包括以下至少之一,操作类型、特征信息,其中,操作类型用于指示OAM功能的类型;特征信息用于指示与OAM功能对应的参数。In an optional implementation manner of the embodiment of the present invention, the OAM configuration information may further include at least one of an operation type and a feature information, where the operation type is used to indicate a type of the OAM function, and the feature information is used to indicate the OAM function. Corresponding parameters.
可选地,上述步骤S406可以包括以下至少之一:Optionally, the foregoing step S406 may include at least one of the following:
当OAM配置信息中的操作类型指示OAM功能的类型为新增时,根据OAM配置信息中的特征信息指示的OAM消息报文周期,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;When the type of the OAM configuration information indicates that the type of the OAM function is new, the timer corresponding to the OAM message packet period is started according to the OAM message packet period indicated by the feature information in the OAM configuration information, and the timer is sent to the other end of the path. The forwarding device sends an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
当操作类型指示OAM功能的类型为修改时,根据特征信息指示的OAM消息报文周期,停止OAM消息报文的定时器,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;When the operation type indicates that the type of the OAM function is modified, the timer of the OAM message packet is stopped according to the OAM message packet period indicated by the feature information, and the timer corresponding to the OAM message packet period is started, and the forwarding device is sent to the other end of the path. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the receiving path;
当操作类型指示OAM功能的类型为暂停时,暂停OAM消息报文的定时器,暂停发送和/或接收OAM消息报文;When the type of the operation indicates that the type of the OAM function is paused, the timer of the OAM message is suspended, and the OAM message is suspended and/or received.
当操作类型指示OAM功能的类型为重启时,重启OAM消息报文的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;When the type of the operation indicates that the type of the OAM function is restarted, the timer for restarting the OAM message is sent to the forwarding device at the other end of the path, and the OAM message sent by the forwarding device at the other end of the path is received.
当操作类型指示OAM功能的类型为删除时,取消OAM消息报文的定时器,删除OAM配置信息中的标识信息对应OAM实例。When the type of the OAM function is deleted, the timer of the OAM message is deleted, and the identifier information in the OAM configuration information is deleted.
在本发明实施例的一个可选实施方式中,当OAM配置信息的绑定对象为单向转发路径时,如果转发设备为路径的首端点,转发设备根据操作类型向路径的另一端转发设备发送OAM消息报文;如果转发设备为路径的尾端点,转发设备根据操作类型接收路径的另一端转发设备发送的OAM消息报文。In an optional implementation manner of the embodiment of the present invention, when the binding object of the OAM configuration information is a one-way forwarding path, if the forwarding device is the first endpoint of the path, the forwarding device sends the forwarding device to the other end of the path according to the operation type. The OAM message packet; if the forwarding device is the trailing edge of the path, the forwarding device forwards the OAM message sent by the device according to the operation type.
可选地,当OAM配置信息的绑定对象为双向转发路径时,转发设备根据操作类型向路径的另一端转发设备发送OAM消息报文,并接收路径的另一端转发设备发送的OAM消息报文。Optionally, when the binding object of the OAM configuration information is a bidirectional forwarding path, the forwarding device sends an OAM message to the forwarding device of the other end of the path according to the operation type, and the other end of the path forwards the OAM message sent by the device. .
在本发明实施例的一个可选实施方式中,上述方法还包括:转发设备根据OAM配置信息中的端口信息绑定对应的本地端口;其中,通过流表条目信息标识入端口,用组表信息标识出端口,本地端口包括物理端口和/或逻辑端口。 In an optional implementation manner of the embodiment of the present invention, the method further includes: the forwarding device binding the corresponding local port according to the port information in the OAM configuration information; wherein the inflow port is identified by the flow table entry information, and the group table information is used. The port is identified, and the local port includes a physical port and/or a logical port.
上述端口是指物理端口,比如以太网、OTN或WDM等物理端口,也可以是逻辑端口,比如以太网的VLAN端口,MPLS或MPLS_TP的隧道或伪线端口,OTN的ODUk通道端口。The above ports refer to physical ports, such as Ethernet, OTN or WDM physical ports, or logical ports, such as Ethernet VLAN ports, MPLS or MPLS_TP tunnels or pseudowire ports, and OTN ODUk channel ports.
上述端口可以由一系列控制器生成的特征信息来代表,比如Openflow流表的KEY,转发面根据这些KEY去匹配流表就可以找到对应的物理端口或逻辑端口。The above port can be represented by a series of controller-generated feature information, such as the KEY of the Openflow flow table, and the forwarding plane can find the corresponding physical port or logical port according to the KEY to match the flow table.
在本发明实施例的一个可选实施方式中,上述配置报文是基于Packet-out消息扩展的报文类型。当然,为了实现上述目的,其他消息也是可以被构想的,本发明实施例并不限于此。Packet-out消息的一个优点在于无需增加其他的消息,可在Openflow协议的现有消息上实现上述目的。In an optional implementation manner of the embodiment of the present invention, the configuration packet is a packet type based on a Packet-out message extension. Of course, in order to achieve the above object, other messages are also conceivable, and embodiments of the present invention are not limited thereto. One advantage of the Packet-out message is that it does not require additional messages to be added to the existing messages of the Openflow protocol.
在本实施例中还提供了一种操作维护管理功能的实现装置,该装置用于实现上述实施例及优选实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置较佳地以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In this embodiment, an apparatus for implementing an operation and maintenance management function is provided. The apparatus is used to implement the foregoing embodiments and preferred embodiments, and details are not described herein. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware, or a combination of software and hardware, is also possible and contemplated.
图5是根据本发明实施例的操作维护管理功能的实现装置的结构框图一,如图5所示,该装置可以包括:FIG. 5 is a structural block diagram 1 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention. As shown in FIG. 5, the apparatus may include:
处理模块10,设置为在配置报文中携带操作维护管理OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,路径为转发设备之间的路径;The processing module 10 is configured to carry the operation and maintenance management OAM configuration information in the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is a path between the forwarding devices;
发送模块20,与处理模块10相连,设置为向转发设备发送上述配置报文。The sending module 20 is connected to the processing module 10 and configured to send the configuration packet to the forwarding device.
在本发明实施例的一个可选实施方式中,上述OAM配置信息包括以下至少之一:标识信息、操作类型、特征信息、端口信息,其中:标识信息用于标识OAM功能的实例,并于同时生效的其他OAM实例相区别;操作类型用于指示OAM功能的类型;特征信息用于指示与OAM功能对应的参数;端口信息用于指示OAM功能所绑定的本地端口。In an optional implementation manner of the embodiment of the present invention, the foregoing OAM configuration information includes at least one of the following: the identifier information, the operation type, the feature information, and the port information, where the identifier information is used to identify an instance of the OAM function, and at the same time The other OAM instances that are in effect are distinguished; the operation type is used to indicate the type of the OAM function; the feature information is used to indicate the parameter corresponding to the OAM function; and the port information is used to indicate the local port to which the OAM function is bound.
在本发明实施例的一个可选实施方式中,上述特征信息包括:OAM消息报文发送周期,其中,OAM消息报文发送周期用于指示转发设备向路径另一端的转发设备发送报文的周期。In an optional implementation manner of the embodiment of the present invention, the foregoing feature information includes: an OAM message packet sending period, where the OAM message packet sending period is used to indicate that the forwarding device sends the packet to the forwarding device at the other end of the path. .
在本发明实施例的一个可选实施方式中,OAM操作类型包括以下至少之一:OAM功能的新增、修改、暂停、启动或删除。 In an optional implementation manner of the embodiment of the present invention, the OAM operation type includes at least one of the following: adding, modifying, suspending, starting, or deleting the OAM function.
在本发明实施例的一个可选实施方式中,如图6所示,发送模块20可以包括以下至少之一:第一发送单元210,设置为向双向转发路径的首端点转发设备和/或尾端点转发设备发送配置报文,其中,配置报文携带的端口信息包括出端口信息和入端口信息,出端口信息指示发送报文的本地端口,入端口信息指示接收报文的本地端口;第二发送单元220,设置为向单向转发路径的首端点转发设备发送第一配置报文,和/或向单向转发路径的尾端点转发设备发送第二配置报文,其中,第一配置报文携带的端口信息为出端口信息,第二配置报文携带的端口信息为入端口信息。In an optional implementation manner of the embodiment of the present invention, as shown in FIG. 6, the sending module 20 may include at least one of the following: the first sending unit 210 is configured to forward the device and/or the tail to the first endpoint of the bidirectional forwarding path. The endpoint forwarding device sends a configuration packet, where the port information carried in the configuration packet includes the outbound port information and the inbound port information, the outbound port information indicates the local port that sends the packet, and the inbound port information indicates the local port that receives the packet; The sending unit 220 is configured to send the first configuration packet to the first endpoint forwarding device of the one-way forwarding path, and/or to send the second configuration packet to the tail endpoint forwarding device of the one-way forwarding path, where the first configuration packet is sent The port information carried is the outbound port information, and the port information carried in the second configuration packet is the ingress port information.
在本发明实施例的一个可选实施方式中,上述配置报文是基于Packet-out消息扩展的报文类型。In an optional implementation manner of the embodiment of the present invention, the configuration packet is a packet type based on a Packet-out message extension.
在本发明实施例的一个可选实施方式中,处理模块10,设置为将OAM配置信息携带在Packet-out消息的以下至少之一:端口字段、动作集字段、保留字段或数据字段。In an optional implementation manner of the embodiment of the present invention, the processing module 10 is configured to carry the OAM configuration information in at least one of the following: a port field, an action set field, a reserved field, or a data field.
图7是根据本发明实施例的操作维护管理功能的实现装置的结构框图二,如图7所示,该装置包括:FIG. 7 is a structural block diagram 2 of an apparatus for implementing an operation and maintenance management function according to an embodiment of the present invention. As shown in FIG. 7, the apparatus includes:
接收模块30,设置为接收控制器发送的配置报文;The receiving module 30 is configured to receive a configuration message sent by the controller.
获取模块40,与接收模块30相连,设置为从配置报文中获取操作维护管理OAM配置信息,其中,OAM配置信息用于指示转发设备实施路径的OAM功能,路径为转发设备之间的路径;The obtaining module 40 is connected to the receiving module 30 and configured to obtain the OAM configuration information of the operation and maintenance management from the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is the path between the forwarding devices.
执行模块50,与获取模块40相连,设置为根据OAM配置信息执行路径的OAM功能。The execution module 50 is connected to the acquisition module 40 and configured to perform an OAM function of the path according to the OAM configuration information.
在本发明实施例的一个可选实施方式中,如图8所示,接收模块30可以包括:判断单元310,设置为判断接收到的报文是否配置报文;转发单元320,设置为当该报文是配置报文的情况下,将该配置报文转发至获取模块40。In an optional implementation manner of the embodiment of the present invention, as shown in FIG. 8, the receiving module 30 may include: a determining unit 310, configured to determine whether the received packet is configured with a packet; and the forwarding unit 320 is configured to be When the packet is a configuration packet, the configuration packet is forwarded to the obtaining module 40.
在本发明实施例的一个可选实施方式中,如图9所示,上述执行模块50包括以下至少之一:In an optional implementation manner of the embodiment of the present invention, as shown in FIG. 9, the foregoing execution module 50 includes at least one of the following:
第一执行单元510,设置为当OAM配置信息中的操作类型指示OAM功能的类型为新增时,根据OAM配置信息中的特征信息指示的OAM消息报文周期,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文; The first execution unit 510 is configured to start the OAM message packet period according to the OAM message packet period indicated by the feature information in the OAM configuration information, when the type of the OAM configuration information indicates that the type of the OAM function is new. The timer sends an OAM message to the forwarding device at the other end of the path and/or an OAM message sent by the forwarding device at the other end of the path;
第二执行单元520,设置为当操作类型指示OAM功能的类型为修改时,根据特征信息指示的OAM消息报文周期,停止OAM消息报文的定时器,启动OAM消息报文周期对应的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;The second execution unit 520 is configured to stop the timer of the OAM message packet and start the timer corresponding to the OAM message packet period according to the OAM message packet period indicated by the feature information when the operation type indicates that the type of the OAM function is modified. Sending an OAM message and/or an OAM message sent by the forwarding device at the other end of the path to the forwarding device at the other end of the path;
第三执行单元530,设置为当操作类型指示OAM功能的类型为暂停时,暂停OAM消息报文的定时器,暂停发送和/或接收OAM消息报文;The third executing unit 530 is configured to suspend the timer of the OAM message, suspend sending and/or receiving the OAM message, when the type of the operation type indicates that the type of the OAM function is paused;
第四执行单元540,设置为当操作类型指示OAM功能的类型为重启时,重启OAM消息报文的定时器,向路径另一端的转发设备发送OAM消息报文和/或接收路径另一端的转发设备发送的OAM消息报文;The fourth execution unit 540 is configured to: when the operation type indicates that the type of the OAM function is restarted, restart the timer of the OAM message, and send the OAM message to the forwarding device at the other end of the path and/or the forwarding of the other end of the receiving path. OAM message sent by the device;
第五执行单元550,设置为当操作类型指示OAM功能的类型为删除时,取消OAM消息报文的定时器,删除所述OAM配置信息中的标识信息对应OAM实例。The fifth execution unit 550 is configured to cancel the timer of the OAM message when the type of the operation type indicates that the type of the OAM function is deleted, and delete the identifier information corresponding to the OAM instance in the OAM configuration information.
在本发明实施例的一个可选实施方式中,当OAM配置信息的绑定对象为单向转发路径时,如果转发设备为路径的首端点,执行模块50,设置为根据操作类型向路径的另一端转发设备发送OAM消息报文;如果转发设备为路径的尾端点,执行模块50,设置为根据操作类型接收路径的另一端转发设备发送的OAM消息报文。In an optional implementation manner of the embodiment of the present invention, when the binding object of the OAM configuration information is a one-way forwarding path, if the forwarding device is the first endpoint of the path, the executing module 50 is set to another path according to the operation type. The one-end forwarding device sends an OAM message to the device. If the forwarding device is the trailing edge of the path, the executing module 50 is configured to forward the OAM message sent by the device according to the other end of the receiving path.
在本发明实施例的一个可选实施方式中,当OAM配置信息的绑定对象为双向转发路径时,执行模块50,设置为根据操作类型向路径的另一端转发设备发送OAM消息报文,并接收路径的另一端转发设备发送的OAM消息报文。In an optional implementation manner of the embodiment of the present invention, when the binding object of the OAM configuration information is a bidirectional forwarding path, the executing module 50 is configured to send an OAM message to the forwarding device of the other end of the path according to the operation type, and The other end of the receiving path forwards the OAM message sent by the device.
在本发明实施例的一个可选实施方式中,执行模块50,还设置为根据OAM配置信息中的端口信息绑定对应的本地端口;其中,通过流表条目信息标识入端口,用组表信息标识出端口,本地端口包括物理端口和/或逻辑端口。In an optional implementation manner of the embodiment of the present invention, the executing module 50 is further configured to bind the corresponding local port according to the port information in the OAM configuration information, where the inflow port is identified by the flow table entry information, and the group table information is used. The port is identified, and the local port includes a physical port and/or a logical port.
在本发明实施例的一个可选实施方式中,上述配置报文是基于Packet-out消息扩展的报文类型。In an optional implementation manner of the embodiment of the present invention, the configuration packet is a packet type based on a Packet-out message extension.
下面对本发明实施例的可选实施方式进行描述。Alternative embodiments of the embodiments of the present invention are described below.
可选实施方式一Alternative embodiment 1
在该可选实施方式中,基于ONF现有框架,在OpenFlow Switch Specification现有标准接口基础上,提出一种OAM实施方法,解决现有SDN标准无法实施的快速OAM功能,以满足MPLS-TP等国际标准要求。 In the optional implementation manner, based on the existing ONF framework, an OAM implementation method is proposed based on the existing standard interface of the OpenFlow Switch Specification, and the fast OAM function that cannot be implemented by the existing SDN standard is solved to meet MPLS-TP. International standard requirements.
该可选实施方式提供了一种OAM功能的实现方法,其基于现有Openflow协议的Packet-out消息结构,在Packet-out消息中携带OAM配置信息。The optional implementation provides a method for implementing the OAM function, which is based on the Packet-out message structure of the existing Openflow protocol, and carries the OAM configuration information in the Packet-out message.
如图10所示,Packet-out消息一般包含Openflow协议头(下文简称header)、转发设备发送该消息的端口(下文简称in_port)、指定转发设备接收到该消息后要执行的动作集(下文简称actions)、保留或填充字节(下文简称pad)和数据字段/报文内容(下文简称data)等全部或部分成员。As shown in FIG. 10, the Packet-out message generally includes an Openflow protocol header (hereinafter referred to as a header), a port on which the forwarding device sends the message (hereinafter referred to as in_port), and an action set to be executed after the designated forwarding device receives the message (hereinafter referred to as the short message). Actions), reserved or padded bytes (hereinafter referred to as pads) and data fields/message contents (hereinafter referred to as data), all or part of the members.
在该可选实施方式中,使用消息的pad成员或扩展in_port或扩展actions或data携带上述标识信息(也称为OAM标识)、操作类型、特征信息、端口信息等。转发设备接收到Packet-out消息后,通过解析消息的pad或扩展的in_port或扩展的actions或data的部分字节识别是否是OAM类型包,如果是OAM类型的包,则解析包括报文内容在内的其他消息成员,并实施相关处理。In this alternative embodiment, the above-mentioned identification information (also referred to as OAM identification), operation type, feature information, port information, and the like are carried using the pad member or extension in_port or extended action or data of the message. After receiving the Packet-out message, the forwarding device identifies whether the packet is an OAM type packet by parsing the pad or the extended in_port of the message or the extended action or data. If the packet is an OAM type, the packet includes the packet content. Other message members within and implement related processing.
对于本地端口,区分为入向端口和出向端口;端口可以是物理端口,比如以太网、OTN或WDM等物理端口,也可以是逻辑端口,比如以太网的VLAN端口,MPLS或MPLS_TP的隧道或伪线端口,OTN的ODUk通道端口。软件定义网络SDN采用流表条目信息(包括Flow Table的Table id和match等)标识入向端口,用组表信息(包括Group table的Group id等)标识出向端口。For the local port, it is divided into the inbound port and the outbound port; the port can be a physical port, such as a physical port such as Ethernet, OTN or WDM, or a logical port, such as an Ethernet VLAN port, MPLS or MPLS_TP tunnel or pseudo Line port, ODUk channel port of OTN. The software-defined network SDN uses the flow table entry information (including the Table id and match of the Flow Table) to identify the inbound port, and uses the group table information (including the Group id of the group table) to identify the outgoing port.
对于双向转发路径,期望接收的OAM标识、操作类型、特征等信息与发送的OAM标识、操作类型、特征等信息相同,OAM绑定的本地端口需要同时携带入向端口和出向端口信息。For the bidirectional forwarding path, the information about the OAM ID, the operation type, and the feature to be received is the same as that of the OAM, the operation type, and the feature. The local port bound to the OAM needs to carry the inbound port and the outbound port.
对于单向转发路径,控制器需要将发OAM的标识、操作类型、特征以及出向端口等信息发送至路径首端点转发设备,将收OAM的标识、操作类型、特征以及入向端口等信息发送至路径尾端点转发设备。For the one-way forwarding path, the controller needs to send information such as the identifier, operation type, feature, and outgoing port of the OAM to the forwarding device of the first endpoint of the path, and send information such as the identifier, operation type, feature, and incoming port of the received OAM to the The end of the path forwards the device.
上述方法对于由控制器和转发设备组成的SDN网络,实施双向转发路径的OAM功能,进一步包括如下步骤:The foregoing method implements the OAM function of the bidirectional forwarding path for the SDN network composed of the controller and the forwarding device, and further includes the following steps:
步骤一、控制器发起双向转发路径OAM功能的配置,构造Packet-out消息,扩展消息相关成员携带OAM标识、操作类型、特征信息、本地端口,并通过Openflow通道发送至双向转发路径的首或尾端点转发设备; Step 1: The controller initiates the configuration of the bidirectional forwarding path OAM function, constructs a Packet-out message, and the extended message related member carries the OAM identifier, operation type, feature information, and local port, and sends the first or last end of the bidirectional forwarding path through the Openflow channel. Endpoint forwarding device;
步骤二、首端点或尾端点转发设备的Openflow协议处理组件接收到Packet-out消息后,根据相关消息成员携带的信息判断是否OAM类型包,是则转发至OAM组件并转入下一步;否则按照其他Packet-out消息所需流程处理;Step 2: After receiving the Packet-out message, the Openflow protocol processing component of the first endpoint or the tail endpoint forwarding device determines whether the OAM type packet is forwarded according to the information carried by the related message member, and then forwards the packet to the OAM component and proceeds to the next step; Process processing required for other Packet-out messages;
步骤三、OAM组件接收到OAM消息包之后,通过扩展的消息成员,识别OAM标识,绑定本地端口、要求执行的操作类型,以及OAM相关的特征信息,并实施。Step 3: After receiving the OAM message packet, the OAM component identifies the OAM identifier, binds the local port, the type of operation required to be performed, and the OAM-related feature information, and implements the extended message member.
控制器可以将OAM配置信息同时或分别下发至转发设备(首端点和尾端点);在某些特殊情况下,比如SDN网络与传统网络对接,或者不同的SDN网络对接,只需要配置一个转发设备(首端点或尾端点)的OAM。上述技术方案覆盖这些场景。The controller can send the OAM configuration information to the forwarding device (the first endpoint and the trailing endpoint) simultaneously or separately. In some special cases, such as the SDN network connecting to the traditional network or the different SDN networks, only one forwarding needs to be configured. OAM of the device (first or last endpoint). The above technical solutions cover these scenarios.
上述方法对于由控制器和转发设备组成的SDN网络,实施单向转发路径的OAM功能,进一步包括如下步骤:The foregoing method implements the OAM function of the one-way forwarding path for the SDN network composed of the controller and the forwarding device, and further includes the following steps:
步骤一、控制器发起单向转发路径OAM功能的配置,构造Packet-out消息,扩展消息相关成员携带OAM配置信息,并通过Openflow通道发送至单向转发路径的首端点转发设备;Step 1: The controller initiates the configuration of the OAM function of the one-way forwarding path, constructs a Packet-out message, and the extended message related member carries the OAM configuration information, and sends the first-end forwarding device to the one-way forwarding path through the Openflow channel;
步骤二、首端点转发设备的Openflow协议处理组件接收到Packet-out消息后,根据相关消息成员携带的信息判断是否是OAM类型包,是则转发至OAM组件并转入下一步;否则按照其他Packet-out消息所需流程处理;Step 2: After receiving the Packet-out message, the Openflow protocol processing component of the first-end forwarding device determines whether it is an OAM-type packet according to the information carried by the related message member, and then forwards it to the OAM component and proceeds to the next step; otherwise, according to other Packets -out message required process processing;
步骤三、OAM组件接收到OAM消息包之后,通过扩展的消息成员,识别OAM标识,绑定的本地端口、要求执行的操作类型,以及OAM相关的特征信息,并实施。Step 3: After receiving the OAM message packet, the OAM component identifies the OAM identifier, the bound local port, the type of operation required to be performed, and the OAM-related feature information, and implements the extended message member.
步骤四、控制器构造Packet-out消息,扩展消息相关成员,携带步骤一的OAM配置信息,并通过Openflow通道发送至单向转发路径的尾端点转发设备;Step 4: The controller constructs a Packet-out message, and extends the related member of the message, and carries the OAM configuration information of Step 1 and sends the device to the tail endpoint forwarding device of the one-way forwarding path through the Openflow channel;
步骤五、尾端点转发设备的Openflow协议处理组件接收到Packet-out消息后,根据相关消息成员携带的信息是否是OAM类型包,是则转发至OAM组件并转入下一步;否则按照其他Packet-out消息所需流程处理;Step 5: After receiving the Packet-out message, the Openflow protocol processing component of the tail endpoint forwarding device forwards to the OAM component according to whether the information carried by the related message member is an OAM type packet, and then proceeds to the next step; otherwise, according to other Packet- Out process required for out message processing;
步骤六、OAM组件接收到OAM消息包之后,通过扩展的消息成员,识别OAM标识,要求执行的操作类型,以及OAM相关的特征信息,并实施。Step 6: After receiving the OAM message packet, the OAM component identifies the OAM identifier, the type of operation required to be performed, and the OAM-related feature information, and implements the extended message member.
在某些特殊情况下,比如SDN网络与传统网络对接,或者不同的SDN网络对接,只需要配置一个转发设备(首端点或尾端点)的OAM。上述技术方案覆盖这种场景。 In some special cases, such as SDN network connection with traditional network, or different SDN network connection, only need to configure OAM of a forwarding device (first endpoint or tail endpoint). The above technical solution covers this scenario.
在该可选实施方式中,上述步骤标识信息(也称为OAM标识)可以是一串数字或字符串,操作类型可以包括新增、修改、启动、暂停或删除,特征信息包含OAM发送周期等信息。In the optional implementation manner, the foregoing step identification information (also referred to as an OAM identifier) may be a string of numbers or a string of characters, and the operation type may include adding, modifying, starting, pausing, or deleting, and the feature information includes an OAM sending period, and the like. information.
上述步骤OAM类型包的类型可以是针对以太网、IP、MPLS、MPLS-TP、PBB、OTN、WDM等转发路径的OAM。The type of the OAM type packet may be OAM for forwarding paths such as Ethernet, IP, MPLS, MPLS-TP, PBB, OTN, WDM, and the like.
上述步骤扩展消息相关成员携带OAM标识、操作类型、特征等信息,扩展方法包括,扩展in_port成员或actions成员或pad成员定义,以新增OAM标识,用于区别其他Packet-out消息。然后扩展未用到的其他成员,包括data,携带OAM标识、操作类型、特征等信息。The foregoing steps extend the information about the OAM identifier, the operation type, and the feature. The extension method includes extending the in_port member or the action member or the member of the pad to add an OAM identifier to distinguish other Packet-out messages. Then expand other unused members, including data, carrying OAM identifiers, operation types, features, and so on.
上述双向转发路径以及单向转发路径,泛指以太网、IP、MPLS、MPLS-TP、PBB、OTN、WDM等通信技术的各层传输路径,比如MPLS-TP的以太网物理层路径、再生段路径、隧道层路径、伪线层路径等等;再比如OTN网络的OTN物理层路径、再生段路径、复用段路径、高阶ODU路径、低阶ODU路径等等。The above-mentioned bidirectional forwarding path and unidirectional forwarding path generally refer to transmission paths of various layers of communication technologies such as Ethernet, IP, MPLS, MPLS-TP, PBB, OTN, and WDM, such as Ethernet physical layer path and regenerative section of MPLS-TP. Path, tunnel layer path, pseudo-line layer path, etc.; such as OTN physical layer path, regenerator section path, multiplex section path, high-order ODU path, low-order ODU path, etc. of OTN network.
通过该可选实施方式,通过扩展Packet-out消息相关成员定义完成快速OAM功能的新增、修改、暂停、启动或删除等功能,具备简洁、可靠的优点。Through the optional implementation manner, the functions of adding, modifying, suspending, starting, or deleting the fast OAM function are completed by extending the definition of the member of the Packet-out message, and the advantages are simple and reliable.
可选实施方式二Optional implementation method 2
在该可选实施方式中,为解决目前SDN网络无法完成快速OAM功能,基于现有接口扩展,通过新定义的Packet-out消息,完成双向和单向转发路径的快速OAM功能。In this optional implementation manner, in order to solve the problem that the current SDN network cannot complete the fast OAM function, the fast OAM function of the bidirectional and unidirectional forwarding paths is completed through the newly defined Packet-out message based on the existing interface extension.
图11是根据本发明实施例可选的配置双向转发路径OAM的示意图;图12是根据本发明实施例可选的配置单向转发路径OAM的示意图;图13是根据本发明实施例可选的只配置双向转发路径一个端点转发设备的OAM的示意图;图14是根据本发明实施例可选的只配置单向转发路径首端点转发设备的OAM的示意图;图15是根据本发明实施例可选的只配置单向转发路径尾端点转发设备的OAM的示意图。FIG. 11 is a schematic diagram of an optional configuration of a bidirectional forwarding path OAM according to an embodiment of the present invention; FIG. 12 is a schematic diagram of an optional configuration of a unidirectional forwarding path OAM according to an embodiment of the present invention; FIG. FIG. 14 is a schematic diagram of an OAM configured to configure only one-way forwarding path for a first-end forwarding device according to an embodiment of the present invention; FIG. 15 is a schematic diagram of an OAM according to an embodiment of the present invention. A schematic diagram of an OAM that only configures a unidirectional forwarding path at the end of the endpoint forwarding device.
结合图1、图2、图10和图11,以控制器发起新增双向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)发送周期10毫秒的快速OAM功能为例说明该流程,该流程包括如下步骤:With reference to FIG. 1, FIG. 2, FIG. 10, and FIG. 11, the controller initiates a new bidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) to send a fast OAM function with a period of 10 milliseconds as an example. The process, which includes the following steps:
步骤一、控制器发起新增双向转发路径A-Z快速OAM的配置,OAM标识为1,类型为双向,操作类型为新增,发送周期为10毫秒,携带流表条目信息X标识绑定 端口A的入端口,携带组表信息Y标识绑定A的出端口。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型;设置pad第一个字节pad[0]为1,标识是双向转发路径;设置pad第二个字节pad[1]为1,标识操作类型为新增;data报文携带报文周期为10毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为1,标识操作类型为新增OAM;data报文携带报文周期为10毫秒,携带流表条目信息P标识绑定端口Z的入端口,携带组表信息Q标识绑定A的出端口,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。In the first step, the controller initiates the configuration of the A-Z fast OAM. The OAM is 1 and the type is bidirectional. The operation type is new. The sending period is 10 milliseconds. The traffic table entry information X is used to identify the binding. The inbound port of port A carries the group table information Y to identify the egress port bound to A. Construct a Packetout message, using the in_port identifier message with the value 0xffffff01 as the OAM type; setting the first byte of the pad pad[0] to 1, the identifier is the bidirectional forwarding path; setting the pad second byte pad[1] to 1 The operation type of the packet is new. The data packet carries the packet period of 10 milliseconds. The bound path is AZ and the local port is A. It is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1] is 1, the identification operation type is newly added OAM; the data packet carries the packet period of 10 milliseconds, and the flow table entry information P is used to identify the inbound port of the binding port Z, and the group table information Q is carried to identify the binding A. The port is bound to AZ and the local port is Z. It is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为1判断操作类型为新增OAM;根据data报文解析,判断为10毫秒周期的OAM消息报文,绑定本地端口A的入向以及出向;然后构造所需的OAM消息报文,启动10毫秒定时器周期性从A端口的出向发送OAM消息报文,并从A端口的入向探测接收同样类型的OAM包。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为1判断操作类型为新增OAM;根据data报文解析,判断为10毫秒周期的OAM消息报文,绑定本地端口Z的入向以及出向;然后构造所需的OAM消息报文,启动10毫秒定时器周期性从Z出向端口发送OAM消息报文,并从Z端口的入向探测接收同样类型的OAM包。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]. The value of the pad[1] is 1 and the operation type is newly added OAM; according to the data packet. The OAM message, which is determined to be a 10-msec period, is bound to the inbound and outbound direction of the local port A. Then, the OAM message is configured, and the 10-ms timer is periodically sent to send the OAM message from the outbound direction of the A port. And receive the same type of OAM packet from the incoming detection of the A port. The OAM component of the NE2 parses the Packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 1 to determine the operation type as a new OAM; The OAM message of the 10 ms period is bound to the inbound and outbound direction of the local port Z. Then, the required OAM message is constructed, and the 10-ms timer is periodically sent from the Z outbound port to the port to send OAM messages. The inbound detection of the Z port receives the same type of OAM packet.
结合图1、图2、图10和图11,以控制器发起修改双向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM发送周期,从10毫秒修改为3.33毫秒为例进行说明,该流程包括如下步骤:With reference to FIG. 1, FIG. 2, FIG. 10 and FIG. 11, the controller initiates an OAM transmission period of modifying the bidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2), and the modification is changed from 10 milliseconds to 3.33 milliseconds. For example, the process includes the following steps:
步骤一、控制器发起修改双向转发路径A-Z快速OAM的配置,OAM标识为1,类型为双向,操作类型为修改,发送周期为3.33毫秒,携带流表条目信息P标识绑定端口Z的入端口,携带组表信息Q标识绑定A的出端口。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为2,标识操作类型为修改OAM;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A, 通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为2,标识操作类型为修改OAM;data报文携带报文周期为3.33毫秒,携带流表条目信息P标识绑定端口Z的入端口,携带组表信息Q标识绑定A的出端口。绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the configuration of the AZ fast OAM configuration. The OAM identifier is 1, the type is bidirectional, the operation type is modified, and the sending period is 3.33 milliseconds. The flow table entry information P is used to identify the inbound port of the binding port Z. The carrying group table information Q identifies the outgoing port of the binding A. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1) is 2, the identification operation type is modified OAM; the data packet carries a packet period of 3.33 milliseconds, the bound path is AZ, and the local port is A, Delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1] is 2, the identification operation type is modified OAM; the data packet carries the packet period of 3.33 milliseconds, and the flow table entry information P is used to identify the inbound port of the binding port Z, and the group table information Q is carried to identify the outgoing port of the binding A. . The bound path is A-Z and the local port is Z. It is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为2判断操作类型为修改OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A的入向及出向;然后找到当前已经生效的10毫秒实例,修改OAM消息报文的发送周期,停止10毫秒定时器,启动3.33毫秒定时器,更新OAM消息包,周期性从A端口的出向发送OAM消息报文,并从A端口的入向探测接收同样类型的OAM包。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为2判断操作类型为修改OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z的入向和出向;然后找到当前已经生效的10毫秒OAM实例,修改OAM消息报文的发送周期,停止10毫秒定时器,启动3.33毫秒定时器,更新OAM消息包,并周期性从Z端口的出向发送OAM消息报文,并从Z端口的入向探测接收同样类型的OAM包。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]. The value of the pad[1] is 2, and the operation type is modified OAM; The OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port A. Then, the 10 millisecond instance that has been in effect is found, the transmission period of the OAM message is modified, the 10 millisecond timer is stopped, and the 3.33 is started. The millisecond timer updates the OAM message packet, periodically sends an OAM message from the outbound direction of the A port, and receives the same type of OAM packet from the incoming detection of the A port. The OAM component of the NE2 parses the packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 2 to determine the operation type as the modified OAM; The OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port Z. Then, the 10 millisecond OAM instance that has been in effect is found, the transmission period of the OAM message is modified, the 10 millisecond timer is stopped, and the 3.33 millisecond timer is started. The OAM message packet is updated, and the OAM message is periodically sent from the outbound direction of the Z port, and the same type of OAM packet is received from the inbound detection of the Z port.
结合图1、图2、图10和图11,以控制器发起暂停双向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM为例进行,该流程包括如下步骤:As shown in FIG. 1 , FIG. 2 , FIG. 10 , and FIG. 11 , the controller initiates the OAM of the bidirectional forwarding path A-Z (the forwarding of the A port of the device NE1 to the Z port of the forwarding device NE2) as an example. The process includes the following steps:
步骤一、控制器发起暂停双向转发路径A-Z快速OAM的功能,OAM标识为1,类型为双向,操作类型为暂停,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为3,标识操作类型为暂停OAM;data报文携带报文周期为3.33毫秒,携带流表条目信息P标识绑定端口Z的入端口,携带组表信息Q标识绑定A的出端口。绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路 径OAM;设置pad第二个字节pad[1]为3,标识操作类型为暂停OAM;data报文携带报文周期为3.33毫秒,携带流表条目信息P标识绑定端口Z的入端口,携带组表信息Q标识绑定A的出端口。绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the function of suspending the bidirectional forwarding path A-Z fast OAM. The OAM flag is 1, the type is bidirectional, the operation type is pause, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1] is 3, the identification operation type is suspended OAM; the data packet carries the packet period of 3.33 milliseconds, and the flow table entry information P is used to identify the inbound port of the binding port Z, and the group table information Q is carried to identify the outgoing port of the binding A. . The bound path is A-Z and the local port is A. It is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, and the identifier is a bidirectional forwarding path. The path OAM is set to the second byte of the pad, pad[1] is 3, the identification operation type is pause OAM, the data packet carries the message period of 3.33 milliseconds, and the flow table entry information P is used to identify the ingress port of the binding port Z. The carrying group table information Q identifies the outgoing port of the binding A. The bound path is A-Z and the local port is Z. It is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为3判断操作类型为暂停OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A的入向及出向;然后找到当前已经生效的3.33毫秒实例,暂停3.33毫秒定时器,不再发送此OAM包。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为3判断操作类型为暂停OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z的入向和出向;然后找到当前已经生效的3.33毫秒实例,暂停3.33毫秒定时器,不再发送此OAM包。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 3, and the operation type is suspended OAM; according to the data packet parsing The OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port A. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is suspended, and the OAM packet is no longer sent. The OAM component of the NE2 parses the Packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]; the value of pad[1] is 3, and the operation type is suspended OAM; according to the data packet parsing, it is determined as The OAM message of the 3.33 millisecond period is bound to the inbound and outbound direction of the local port Z. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is suspended, and the OAM packet is no longer sent.
结合图1、图2、图10和图11,以控制器控制器发起启动已经暂停的双向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM为例进行说明,该流程包括如下步骤:With reference to FIG. 1 , FIG. 2 , FIG. 10 and FIG. 11 , the OAM of the bidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) that has been suspended is described as an example. The process includes the following steps:
步骤一、控制器发起启动已经暂停的双向转发路径A-Z快速OAM的配置,OAM标识为1,类型为双向,操作类型为启动,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为4,标识操作类型为启动OAM;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为4,标识操作类型为启动OAM;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the configuration of the A-Z fast OAM that has been suspended. The OAM flag is 1, the type is bidirectional, the operation type is startup, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1) is 4, the identification operation type is to start OAM; the data packet carries a packet period of 3.33 milliseconds, the bound path is AZ, and the local port is A, which is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1) is 4, the identification operation type is to start OAM; the data packet carries a packet period of 3.33 milliseconds, the bound path is AZ, and the local port is Z, which is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2 的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines the OAM type agreed with the controller to be forwarded to the OAM component according to the in_port value of 0xffffff01; NE2 The Openflow protocol processing component receives the Packet-out message, parses the message, and determines the OAM type agreed with the controller to be forwarded to the OAM component according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为4判断操作类型为启动OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A的入端口和出端口;然后找到当前已经生效的3.33毫秒实例,重新启动3.33毫秒定时器,通过端口A的出向发送此OAM包。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为4判断操作类型为启动OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z的出向及入向;然后找到当前已经生效的3.33毫秒实例,重新启动3.33毫秒定时器,通过端口Z的出向发送此OAM包。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]. The value of the pad[1] is 4 to determine the operation type is OAM; the data packet is parsed according to the data packet. The OAM message of the 3.33 millisecond period is bound to the inbound port and the egress port of the local port A. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is restarted, and the OAM packet is sent through the outbound direction of the port A. . The OAM component of the NE2 parses the packet-out message structure, and determines that the pad is a bidirectional forwarding path according to the value of pad[0]. The value of the pad[1] is 4 to determine the operation type as OAM; according to the data packet parsing, it is determined as The OAM message of the 3.33 millisecond period is bound to the outbound direction and the inbound direction of the local port Z. Then, the 3.33 millisecond instance that has been in effect is found, the 3.33 millisecond timer is restarted, and the OAM packet is sent through the outbound direction of the port Z.
结合图1、图2、图10和图11,以控制器发起删除双向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM为例进行说明,该流程包括如下步骤:As shown in FIG. 1 , FIG. 2 , FIG. 10 , and FIG. 11 , the OAM of the bidirectional forwarding path A-Z (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is used as an example. The process includes the following steps:
步骤一、控制器发起删除双向转发路径A-Z快速OAM的配置,OAM标识为1,类型为双向,操作类型为删除,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为5,标识操作类型为删除OAM;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为1,标识是双向转发路径OAM;设置pad第二个字节pad[1]为5,标识操作类型为删除OAM;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the configuration of deleting the A-Z fast OAM of the bidirectional forwarding path. The OAM identifier is 1, the type is bidirectional, the operation type is deleted, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1) is 5, the identification operation type is deleted OAM; the data packet carries the packet period of 3.33 milliseconds, the bound path is AZ, the local port is A, and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 1, the identifier is the bidirectional forwarding path OAM; set the pad second byte pad[ 1) is 5, the identification operation type is deleted OAM; the data packet carries the packet period of 3.33 milliseconds, the bound path is AZ, and the local port is Z, which is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为5判断操作类型为删除OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A;然后找到当前已经生效的 3.33毫秒实例,取消3.33毫秒定时器,并删除此OAM实例。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为双向转发路径;根据pad[1]取值为5判断操作类型为删除OAM;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z;然后找到当前已经生效的3.33毫秒实例,取消3.33毫秒定时器,并删除此OAM实例。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 5, and the operation type is deleted OAM; according to the data packet parsing The OAM message, which is determined to be 3.33 milliseconds, is bound to the local port A; then it is found to have been valid. 3.33 millisecond instance, cancel the 3.33 millisecond timer, and delete this OAM instance. The OAM component of the NE2 parses the Packet-out message structure, and determines that it is a bidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 5, and the operation type is deleted OAM; The OAM message of the 3.33 millisecond period is bound to the local port Z. Then, the 3.33 millisecond instance that has been validated is found, the 3.33 millisecond timer is canceled, and the OAM instance is deleted.
结合图1、图2、图10和图13,以控制器发起新增、修改、暂停、启动或删除双向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM,但只有NE1或NE2归属控制器控制。如此控制器只需要和NE1或NE2交互即可。上述实施例中,各实施步骤只考虑针对NE1或NE2的设置即为此种场景下的各实施例。Referring to FIG. 1, FIG. 2, FIG. 10, and FIG. 13, the controller initiates the addition, modification, suspension, activation, or deletion of the OAM of the bidirectional forwarding path AZ (the forwarding port A of the device NE1 to the Z port of the forwarding device NE2), but Only NE1 or NE2 is controlled by the controller. In this way, the controller only needs to interact with NE1 or NE2. In the above embodiments, each implementation step only considers the setting for NE1 or NE2, which is the embodiment in this scenario.
结合图1、图2、图10和图12,以控制器发起新增单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)发送周期10毫秒的快速OAM功能为例进行说明,该流程包括如下步骤:Referring to FIG. 1, FIG. 2, FIG. 10, and FIG. 12, the controller initiates a new one-way forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) to send a fast OAM function with a period of 10 milliseconds as an example. Explain that the process includes the following steps:
步骤一、控制器发起新增单向转发路径A-Z快速OAM的配置,OAM标识为1,类型为单向,操作类型为新增,发送周期为10毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为1,标识操作类型为新增OAM;设置actions[0]的type为0xfff0,标识动作是发送OAM消息报文;data报文携带报文周期为10毫秒,绑定的路径为A-Z,本地端口为A通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为1,标识操作类型为新增OAM;设置actions[0]的type为0xfff1,标识动作是接收OAM消息报文;data报文携带报文周期为10毫秒,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the configuration of the unidirectional forwarding path A-Z fast OAM. The OAM flag is 1, the type is unidirectional, the operation type is new, and the sending period is 10 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 1, the identification operation type is new OAM; the action [0] type is 0xfff0, the identification action is to send OAM message packets; the data message carries the message period is 10 milliseconds, and the bound path is AZ. The local port is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 1, the identification operation type is newly added OAM; the action [0] type is 0xfff1, the identification action is to receive OAM message packets; the data message carries the message period is 10 milliseconds, and the bound path is AZ. The local port is Z and is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为1判断操作类型为新增OAM;根据actions[0]的type为0xfff0,判断动作是发送OAM消息报文;根据data报文解析,判断为10毫秒周期的OAM消息报文,绑定本地端口A;然后构造所需的OAM消息报文,启动10毫秒 定时器周期性从A端口发送OAM消息报文。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为1判断操作类型为新增OAM;根据actions[0]的type为0xfff1,判断动作是接收OAM消息报文;根据data报文解析,判断为10毫秒周期的OAM消息报文,绑定本地端口Z;然后监视Z端口探测接收此类型的OAM包。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; and determines that the operation type is new OAM according to the value of pad[1]; according to actions[ The type of 0] is 0xfff0, and the action is to send an OAM message. According to the parsing of the data packet, the OAM message of the 10 millisecond period is bound to the local port A. Then, the required OAM message is constructed. 10 milliseconds The timer periodically sends OAM messages from the A port. The OAM component of NE2 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of pad[1] is 1 to determine the operation type as new OAM; according to actions[0] The type is 0xfff1, and the action is to receive the OAM message. According to the data packet parsing, the OAM message of the 10 millisecond period is bound to the local port Z. Then, the Z port probe is monitored to receive the OAM packet of this type.
结合图1、图2、图10和图12,以控制器发起修改单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM发送周期,从10毫秒修改为3.33毫秒为例进行说明,该流程包括如下步骤:With reference to FIG. 1, FIG. 2, FIG. 10 and FIG. 12, the OAM transmission period of the unidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is modified by the controller, and is modified from 10 milliseconds to 3.33 milliseconds. As an example, the process includes the following steps:
步骤一、控制器发起修改单向转发路径A-Z快速OAM的配置,OAM标识为1,类型为单向,操作类型为修改,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为2,标识操作类型为修改OAM;设置actions[0]的type为0xfff0,标识动作是发送OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为2,标识操作类型为修改OAM;设置actions[0]的type为0xfff1,标识动作是接收OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the configuration of the A-Z fast OAM configuration. The OAM identifier is 1, the type is one-way, the operation type is modified, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 2, the identification operation type is modified OAM; the type of operations[0] is set to 0xfff0, the identification action is to send an OAM message, the data packet carries a packet period of 3.33 milliseconds, and the bound path is AZ. The local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 2, the identification operation type is modified OAM; the action [0] type is 0xfff1, the identification action is to receive the OAM message, the data message carries the message period is 3.33 milliseconds, and the bound path is AZ. The local port is Z and is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为2判断操作类型为修改OAM;根据actions[0]的type为0xfff0,判断动作是发送OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A;然后找到当前已经生效的10毫秒实例,修改OAM消息报文的发送周期,停止10毫秒定时器,启动3.33毫秒定时器,更新OAM消息包,周期性从A端口发送OAM消息报文。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为2判断操作类型为修改OAM;根据actions[0]的type为0xfff1,判断动作是接收OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z;然后 找到当前已经生效的监视10毫秒OAM消息报文的实例,修改为从Z端口探测接收3.33毫秒报文。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of the pad[1] is 2 to determine the operation type as the modified OAM; according to the actions[0] The type is 0xfff0, and the action is to send an OAM message. According to the data packet parsing, it is determined that the OAM message of the 3.33 millisecond period is bound to the local port A. Then, the 10 millisecond instance that has been valid is found, and the OAM is modified. The sending period of the message packet, the 10 millisecond timer is stopped, the 3.33 millisecond timer is started, the OAM message packet is updated, and the OAM message is periodically sent from the A port. The OAM component of NE2 parses the Packet-out message structure, and determines that it is a one-way forwarding path according to the value of pad[0]; and determines that the operation type is modified OAM according to the value of pad[1]; according to the type of actions[0] 0xfff1, the action is to receive the OAM message; according to the data packet parsing, it is determined that the OAM message is 3.33 milliseconds, and the local port Z is bound; The instance of the monitoring 10 ms OAM message that has been in effect is found to be modified to receive the 3.33 millisecond message from the Z port probe.
结合图1、图2、图10和图12,以控制器发起暂停单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM为例进行说明,该流程包括如下步骤:With reference to FIG. 1 , FIG. 2 , FIG. 10 and FIG. 12 , the OAM of the unidirectional forwarding path AZ (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is used as an example. The process includes the following steps. :
步骤一、控制器发起暂停单向转发路径A-Z快速OAM的功能,OAM标识为1,类型为单向,操作类型为暂停,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为3,标识操作类型为暂停OAM;设置actions[0]的type为0xfff0,标识动作是发送OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为3,标识操作类型为暂停OAM;设置actions[0]的type为0xfff1,标识动作是接收OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the function of suspending the one-way forwarding path A-Z fast OAM. The OAM flag is 1, the type is one-way, the operation type is pause, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 3, the identification operation type is pause OAM; the type of operations[0] is set to 0xfff0, the identification action is to send an OAM message, the data packet carries a packet period of 3.33 milliseconds, and the bound path is AZ. The local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 3, the identification operation type is pause OAM; the type of operations[0] is set to 0xfff1, the identification action is to receive the OAM message, the data packet carries the packet period is 3.33 milliseconds, and the bound path is AZ. The local port is Z and is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为1判断为单向转发路径;根据pad[1]取值为3判断操作类型为暂停OAM;根据actions[0]的type为0xfff0,判断动作是发送OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A;然后找到当前已经生效的3.33毫秒实例,暂停3.33毫秒定时器,不再发送此OAM包。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为3判断操作类型为暂停OAM;根据actions[0]的type为0xfff1,判断动作是接收OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z;然后找到当前已经生效的监视3.33毫秒报文实例,暂停从Z端口接收此OAM的监视工作。 Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of the pad[1] is 3 to determine the operation type is pause OAM; according to actions[0] The type is 0xfff0, and the action is to send an OAM message. According to the data packet parsing, it is determined that the OAM message is 3.33 milliseconds, and is bound to the local port A. Then, the current 3.33 millisecond instance is valid, and the pause is 3.33. The millisecond timer does not send this OAM packet. The OAM component of NE2 parses the Packet-out message structure, and determines the one-way forwarding path according to the value of pad[0]; the value of pad[1] determines that the operation type is pause OAM; according to the type of actions[0] If it is 0xfff1, it is determined that the action is to receive the OAM message. According to the data packet parsing, it is determined that the OAM message of the 3.33 millisecond period is bound to the local port Z. Then, the current 3.33 millisecond message instance that has been in effect is found. The Z port receives the monitoring of this OAM.
结合图1、图2、图10和图12,以控制器发起启动已经暂停的单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM为例进行说明,该流程包括如下步骤:With reference to FIG. 1 , FIG. 2 , FIG. 10 and FIG. 12 , the OAM of the unidirectional forwarding path AZ (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) that has been suspended is described as an example. Including the following steps:
步骤一、控制器发起启动已经暂停的单向转发路径A-Z快速OAM的配置,OAM标识为1,类型为单向,操作类型为启动,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为4,标识操作类型为启动OAM;设置actions[0]的type为0xfff0,标识动作是发送OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为4,标识操作类型为启动OAM;设置actions[0]的type为0xfff1,标识动作是接收OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为Z,通过Openflow通道下发至NE2。Step 1: The controller initiates the configuration of the A-Z fast OAM that has been suspended. The OAM flag is 1, the type is one-way, the operation type is start, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 4, the identification operation type is start OAM; the action [0] type is 0xfff0, the identification action is to send an OAM message message; the data message carries a message period of 3.33 milliseconds, and the bound path is AZ. The local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 4, the identification operation type is start OAM; the action [0] type is 0xfff1, the identification action is to receive OAM message packets; the data message carries the message period is 3.33 milliseconds, and the bound path is AZ. The local port is Z and is delivered to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为4判断操作类型为启动OAM;根据actions[0]的type为0xfff0,判断动作是发送OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A;然后找到当前已经生效的3.33毫秒实例,重新启动3.33毫秒定时器,发送此OAM包。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为4判断操作类型为启动OAM;根据actions[0]的type为0xfff1,判断动作是接收OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z;然后找到当前已经生效的监视3.33毫秒OAM消息报文的实例,重新启动探测接收。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the unidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 4 to determine the operation type as the start OAM; according to the actions[0] The type is 0xfff0, and the action is to send an OAM message. According to the data packet parsing, the OAM message of the 3.33 millisecond period is bound to the local port A. Then, the 3.33 millisecond instance that has been valid is found. 3.33 millisecond timer, this OAM packet is sent. The OAM component of NE2 parses the Packet-out message structure, and determines that it is a one-way forwarding path according to the value of pad[0]; the value of the pad[1] is 4 to determine the operation type as the start OAM; according to the type of actions[0] It is 0xfff1, and the action is to receive the OAM message. According to the data packet parsing, the OAM message of the 3.33 millisecond period is bound to the local port Z. Then, an instance of the 3.33 millisecond OAM message that has been in effect is found. , restart the probe reception.
结合图1、图2、图10和图12,以控制器控制器发起删除单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM为例进行说明,该流程包括如下步骤: With reference to FIG. 1 , FIG. 2 , FIG. 10 and FIG. 12 , the OAM of the unidirectional forwarding path AZ (the forwarding of the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is used as an example. The process includes The following steps:
步骤一、控制器发起删除单向转发路径A-Z快速OAM的配置,OAM标识为1,类型为单向,操作类型为删除,发送周期为3.33毫秒。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为5,标识操作类型为删除OAM;设置actions[0]的type为0xfff0,标识动作是发送OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为A,通过Openflow通道下发至NE1。构造Packetout消息,用取值为0xffffff01的in_port标识消息为OAM类型的消息包;设置pad第一个字节pad[0]为2,标识是单向转发路径OAM;设置pad第二个字节pad[1]为5,标识操作类型为删除OAM;设置actions[0]的type为0xfff1,标识动作是接收OAM消息报文;data报文携带报文周期为3.33毫秒,绑定的路径为A-Z,本地端口为Z,动作为接收,通过Openflow通道下发至NE2。Step 1: The controller initiates the deletion of the A-Z fast OAM configuration. The OAM identifier is 1, the type is one-way, the operation type is deleted, and the sending period is 3.33 milliseconds. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 5, the identification operation type is deleted OAM; the action[0] type is 0xfff0, the identification action is to send an OAM message message; the data message carries a message period of 3.33 milliseconds, and the bound path is AZ. The local port is A and is delivered to NE1 through the Openflow channel. Construct a Packetout message, and use the in_port identifier message with the value 0xffffff01 as the OAM type message packet; set the pad first byte pad[0] to 2, the identifier is the one-way forwarding path OAM; set the pad second byte pad [1] is 5, the identification operation type is deleted OAM; the action [0] type is 0xfff1, the identification action is to receive OAM message packets; the data message carries the packet period is 3.33 milliseconds, and the bound path is AZ. The local port is Z, and the action is received. It is sent to NE2 through the Openflow channel.
步骤二、NE1的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;NE2的Openflow协议处理组件接收到Packet-out消息,解析报文,根据in_port取值为0xffffff01,判断是与控制器约定的OAM类型,转发至OAM组件;Step 2: The OpenFlow protocol processing component of the NE1 receives the Packet-out message, parses the packet, and determines that the value of the in_port is 0xffffff01, and determines that the OAM type is agreed with the controller and is forwarded to the OAM component. The Openflow protocol processing component of the NE2 receives the packet. The packet-out message is parsed into the OAM component according to the OAM type agreed upon by the controller according to the in_port value of 0xffffff01.
步骤三、NE1的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为5判断操作类型为删除OAM;根据actions[0]的type为0xfff0,判断动作是发送OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口A;然后找到当前已经生效的3.33毫秒实例,取消3.33毫秒定时器,并删除此OAM实例。NE2的OAM组件解析Packet-out消息结构,根据pad[0]取值为2判断为单向转发路径;根据pad[1]取值为5判断操作类型为删除OAM;根据actions[0]的type为0xfff1,判断动作是接收OAM消息报文;根据data报文解析,判断为3.33毫秒周期的OAM消息报文,绑定本地端口Z;然后找到当前已经生效的监视3.33毫秒OAM消息报文的实例,取消3.33毫秒定时器,并取消对此OAM的探测接收。Step 3: The OAM component of the NE1 parses the Packet-out message structure, and determines the unidirectional forwarding path according to the value of pad[0]; the value of the pad[1] is 5, and the operation type is deleted OAM; according to actions[0] The type is 0xfff0, and the action is to send an OAM message. According to the data packet parsing, it is determined that the OAM message of the 3.33 millisecond period is bound to the local port A. Then, the 3.33 millisecond instance that has been valid is found, and the 3.33 cancellation is canceled. The millisecond timer and delete this OAM instance. The OAM component of NE2 parses the Packet-out message structure, and determines that it is a one-way forwarding path according to the value of pad[0]; the value of pad[1] is 5 to determine the operation type as deleting OAM; according to the type of actions[0] It is 0xfff1, and the action is to receive the OAM message. According to the data packet parsing, the OAM message of the 3.33 millisecond period is bound to the local port Z. Then, an instance of the 3.33 millisecond OAM message that has been in effect is found. , cancel the 3.33 millisecond timer and cancel the probe reception for this OAM.
结合图1、图2、图10和图14,以控制器发起新增、修改、暂停、启动或删除单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM,但只有NE1归属控制器控制,如此控制器只需要和NE1交互即可。上述实施例中,各实施步骤只考虑针对NE1的设置即为此种场景下的实施例。In conjunction with FIG. 1, FIG. 2, FIG. 10, and FIG. 14, the OAM of the unidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is initiated, modified, suspended, activated, or deleted by the controller. But only the NE1 belongs to the controller control, so the controller only needs to interact with NE1. In the above embodiment, each implementation step only considers the setting for NE1 as an embodiment in such a scenario.
结合图1、图2、图10和图15,以控制器发起新增、修改、暂停、启动或删除单向转发路径A-Z(转发设备NE1的A端口到转发设备NE2的Z端口)的OAM,但 只有NE2归属控制器控制,如此控制器只需要和NE2交互即可。上述实施例中,各实施步骤只考虑针对NE2的设置即为此种场景下的实施例。In conjunction with FIG. 1, FIG. 2, FIG. 10, and FIG. 15, the OAM of the unidirectional forwarding path AZ (the A port of the forwarding device NE1 to the Z port of the forwarding device NE2) is initiated, modified, suspended, activated, or deleted by the controller. but Only the NE2 belongs to the controller control, so the controller only needs to interact with NE2. In the above embodiment, each implementation step only considers the setting for NE2, which is an embodiment in such a scenario.
对于OTN等非分组的传输技术,其OAM固有存在,则不需要OAM的增加、删除和修改等操作,只需要启动或暂停,确定是否启用OAM监视功能,启动即标识启用OAM监视功能,暂停即表示禁用OAM监视功能。For the non-packet transmission technology such as OTN, the OAM is inherently existing, and the OAM addition, deletion, and modification operations are not required. Only the OAM monitoring function needs to be enabled or suspended, and the OAM monitoring function is enabled to be activated. Indicates that the OAM monitoring function is disabled.
从上面各个具体实施方式分析可知,无论是双向转发路径,还是单向转发路径,都可以完成所需的OAM功能。From the analysis of each of the above specific embodiments, it can be known that the required OAM function can be completed whether it is a bidirectional forwarding path or a one-way forwarding path.
在该可选实施方式中,以现有SDN的控制器和转发设备之间规范接口为基础,扩展Packet-out消息的相关成员定义,完成针对基于分组传送技术的以太网、IP、MPLS、MPLS-TP、PBB等网络,非分组传送技术的OTN、WDM等网络,针对双向或单向转发路径快速OAM的新增、修改、暂停、启动、删除等功能,具备简洁、可靠的优点。In this optional implementation manner, based on the specification interface between the controller and the forwarding device of the existing SDN, the related member definition of the Packet-out message is extended, and the Ethernet, IP, MPLS, and MPLS for the packet-based transmission technology are completed. -TP, PBB and other networks, non-packet transmission technology such as OTN, WDM and other networks, for the two-way or one-way forwarding path fast OAM addition, modification, suspension, start, delete and other functions, with simple and reliable advantages.
显然,本领域的技术人员应该明白,上述的本发明的各模块或各步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成各个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。这样,本发明不限制于任何特定的硬件和软件结合。It will be apparent to those skilled in the art that the various modules or steps of the present invention described above can be implemented by a general-purpose computing device that can be centralized on a single computing device or distributed across a network of multiple computing devices. Alternatively, they may be implemented by program code executable by the computing device such that they may be stored in the storage device by the computing device and, in some cases, may be different from the order herein. The steps shown or described are performed, or they are separately fabricated into individual integrated circuit modules, or a plurality of modules or steps thereof are fabricated as a single integrated circuit module. Thus, the invention is not limited to any specific combination of hardware and software.
以上仅为本发明的优选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有各种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above are only the preferred embodiments of the present invention, and are not intended to limit the present invention, and various modifications and changes can be made to the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and scope of the present invention are intended to be included within the scope of the present invention.
工业实用性Industrial applicability
如上所述,本发明实施例提供的一种操作维护管理功能的实现方法及装置具有以下有益效果:控制器在配置报文中携带用于指示转发设备实施路径的OAM功能的OAM配置信息,向转发设备发送该配置报文,从而指示转发设备实施路径的OAM功能,在转发设备层面实现了OAM功能,可以避免转发设备与控制器交互导致实时性不高的问题,进而可以达到路径OAM功能的高实时性要求。 As described above, the method and apparatus for implementing the operation and maintenance management function provided by the embodiment of the present invention have the following beneficial effects: the controller carries the OAM configuration information indicating the OAM function of the path of the forwarding device in the configuration packet, The forwarding device sends the configuration packet to indicate that the forwarding device implements the OAM function of the path, and implements the OAM function at the forwarding device level, which avoids the problem that the forwarding device and the controller interact to cause low real-time performance, thereby achieving the path OAM function. High real-time requirements.

Claims (26)

  1. 一种操作维护管理功能的实现方法,包括:An implementation method of an operation and maintenance management function includes:
    控制器在配置报文中携带操作维护管理OAM配置信息,其中,所述OAM配置信息用于指示转发设备实施路径的OAM功能,所述路径为转发设备之间的路径;The controller carries the operation and maintenance management OAM configuration information in the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is a path between the forwarding devices.
    所述控制器向所述转发设备发送所述配置报文。The controller sends the configuration packet to the forwarding device.
  2. 根据权利要求1所述的方法,其中,所述OAM配置信息包括以下至少之一:标识信息、操作类型、特征信息、端口信息,其中:The method of claim 1, wherein the OAM configuration information comprises at least one of: identification information, operation type, feature information, port information, wherein:
    所述标识信息用于标识OAM功能的实例,并与同时生效的其他OAM实例相区别;The identifier information is used to identify an instance of the OAM function, and is different from other OAM instances that are in effect at the same time;
    所述操作类型用于指示所述OAM功能的类型;The operation type is used to indicate a type of the OAM function;
    所述特征信息用于指示与所述OAM功能对应的参数;The feature information is used to indicate a parameter corresponding to the OAM function;
    所述端口信息用于指示OAM功能所绑定的本地端口。The port information is used to indicate a local port to which the OAM function is bound.
  3. 根据权利要求2所述的方法,其中,所述特征信息包括:OAM消息报文发送周期,其中,所述OAM消息报文发送周期用于指示所述转发设备向所述路径另一端的转发设备发送报文的周期。The method according to claim 2, wherein the feature information comprises: an OAM message packet sending period, wherein the OAM message packet sending period is used to indicate that the forwarding device forwards to the other end of the path The period during which the message is sent.
  4. 根据权利要求2或3所述的方法,其中,所述OAM操作类型包括以下至少之一:OAM功能的新增、修改、暂停、启动或删除。The method according to claim 2 or 3, wherein the OAM operation type comprises at least one of: addition, modification, suspension, activation or deletion of an OAM function.
  5. 根据权利要求2所述的方法,其中,所述控制器向所述转发设备发送所述配置报文包括以下至少之一:The method according to claim 2, wherein the sending, by the controller, the configuration message to the forwarding device comprises at least one of the following:
    向双向转发路径的首端点转发设备和/或尾端点转发设备发送所述配置报文,其中,所述配置报文携带的端口信息包括出端口信息和入端口信息,所述出端口信息指示发送报文的本地端口,所述入端口信息指示接收报文的本地端口;Sending the configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the port information carried in the configuration packet includes outbound port information and ingress port information, and the outbound port information indicates sending a local port of the packet, where the ingress port information indicates a local port that receives the packet;
    向单向转发路径的首端点转发设备发送第一配置报文,和/或向所述单向转发路径的尾端点转发设备发送第二配置报文,其中,所述第一配置报文携带的 端口信息为所述出端口信息,所述第二配置报文携带的端口信息为所述入端口信息。Transmitting the first configuration packet to the first-end forwarding device of the one-way forwarding path, and/or sending the second configuration packet to the tail-end forwarding device of the one-way forwarding path, where the first configuration packet is carried The port information is the outbound port information, and the port information carried in the second configuration packet is the ingress port information.
  6. 根据权利要求1至5中任一项所述方法,其中,所述配置报文是基于Packet-out消息扩展的报文类型。The method according to any one of claims 1 to 5, wherein the configuration message is a message type based on a Packet-out message extension.
  7. 根据权利要求6所述方法,其中,所述OAM配置信息携带在Packet-out消息的以下至少之一:端口字段、动作集字段、保留字段或数据字段。The method of claim 6, wherein the OAM configuration information is carried in at least one of the following: a port field, an action set field, a reserved field, or a data field.
  8. 一种操作维护管理功能的实现方法,包括:An implementation method of an operation and maintenance management function includes:
    转发设备接收控制器发送的配置报文;The forwarding device receives the configuration packet sent by the controller;
    所述转发设备从所述配置报文中获取操作维护管理OAM配置信息,其中,所述OAM配置信息用于指示所述转发设备实施路径的OAM功能,所述路径为转发设备之间的路径;The forwarding device obtains operation and maintenance management OAM configuration information from the configuration packet, where the OAM configuration information is used to indicate that the forwarding device implements an OAM function of a path, where the path is a path between forwarding devices;
    所述转发设备根据所述OAM配置信息执行路径的OAM功能。The forwarding device performs an OAM function of the path according to the OAM configuration information.
  9. 根据权利要求8所述的方法,其中,所述转发设备根据所述OAM配置信息执行路径的OAM功能包括以下至少之一:The method according to claim 8, wherein the forwarding device performs an OAM function of the path according to the OAM configuration information, including at least one of the following:
    当所述OAM配置信息中的操作类型指示所述OAM功能的类型为新增时,根据所述OAM配置信息中的特征信息指示的OAM消息报文周期,启动OAM消息报文周期对应的定时器,向所述路径另一端的转发设备发送OAM消息报文和/或接收所述路径另一端的转发设备发送的OAM消息报文;When the type of the OAM configuration information indicates that the type of the OAM function is new, the timer corresponding to the OAM message packet period is started according to the OAM message packet period indicated by the feature information in the OAM configuration information. Sending an OAM message to the forwarding device at the other end of the path and/or receiving an OAM message sent by the forwarding device at the other end of the path;
    当所述操作类型指示所述OAM功能的类型为修改时,根据所述特征信息指示的OAM消息报文周期,停止OAM消息报文的定时器,启动所述OAM消息报文周期对应的定时器,向所述路径另一端的转发设备发送OAM消息报文和/或接收所述路径另一端的转发设备发送的OAM消息报文;When the operation type indicates that the type of the OAM function is modified, the timer of the OAM message packet is stopped according to the OAM message packet period indicated by the feature information, and the timer corresponding to the OAM message packet period is started. Sending an OAM message to the forwarding device at the other end of the path and/or receiving an OAM message sent by the forwarding device at the other end of the path;
    当所述操作类型指示所述OAM功能的类型为暂停时,暂停OAM消息报文的定时器,暂停发送和/或接收OAM消息报文;When the type of the operation indicates that the type of the OAM function is paused, the timer of the OAM message is suspended, and the OAM message is suspended and/or received.
    当所述操作类型指示所述OAM功能的类型为重启时,重启OAM消息报文的定时器,向所述路径另一端的转发设备发送OAM消息报文和/或接收所述路径另一端的转发设备发送的OAM消息报文;And when the operation type indicates that the type of the OAM function is a restart, restarting the timer of the OAM message, sending an OAM message to the forwarding device at the other end of the path, and/or receiving the forwarding at the other end of the path. OAM message sent by the device;
    当所述操作类型指示所述OAM功能的类型为删除时,取消OAM消息报文的定时器,删除所述OAM配置信息中的标识信息对应OAM实例。 When the type of the operation indicates that the type of the OAM function is deleted, the timer of the OAM message is cancelled, and the identifier information in the OAM configuration information is deleted.
  10. 根据权利要求9所述的方法,其中,当所述OAM配置信息的绑定对象为单向转发路径时,The method according to claim 9, wherein when the binding object of the OAM configuration information is a one-way forwarding path,
    如果所述转发设备为所述路径的首端点,所述转发设备根据所述操作类型向所述路径的另一端转发设备发送OAM消息报文;和/或If the forwarding device is the first endpoint of the path, the forwarding device sends an OAM message to the forwarding device at the other end of the path according to the operation type; and/or
    如果所述转发设备为所述路径的尾端点,所述转发设备根据所述操作类型接收所述路径的另一端转发设备发送的OAM消息报文。If the forwarding device is the trailing endpoint of the path, the forwarding device receives the OAM message sent by the other end of the path according to the operation type.
  11. 根据权利要求9或10所述的方法,其中,当所述OAM配置信息的绑定对象为双向转发路径时,The method according to claim 9 or 10, wherein when the binding object of the OAM configuration information is a bidirectional forwarding path,
    所述转发设备根据所述操作类型向所述路径的另一端转发设备发送OAM消息报文,并接收所述路径的另一端转发设备发送的OAM消息报文。The forwarding device sends an OAM message to the forwarding device of the other end of the path according to the operation type, and receives the OAM message sent by the other end of the path.
  12. 根据权利要求10所述的方法,其中,还包括:所述转发设备根据所述OAM配置信息中的端口信息绑定对应的本地端口;其中,通过流表条目信息标识入端口,用组表信息标识出端口,所述本地端口包括物理端口和/或逻辑端口。The method of claim 10, further comprising: the forwarding device binding the corresponding local port according to the port information in the OAM configuration information; wherein the ingress port is identified by the flow table entry information, and the group table information is used. A port is identified, the local port including a physical port and/or a logical port.
  13. 根据权利要求8至12中任一项所述的方法,其中,所述配置报文是基于Packet-out消息扩展的报文类型。The method according to any one of claims 8 to 12, wherein the configuration message is a message type based on a Packet-out message extension.
  14. 一种操作维护管理功能的实现装置,包括:An implementation device for an operation and maintenance management function, comprising:
    处理模块,设置为在配置报文中携带操作维护管理OAM配置信息,其中,所述OAM配置信息用于指示转发设备实施路径的OAM功能,所述路径为转发设备之间的路径;The processing module is configured to carry the operation and maintenance management OAM configuration information in the configuration packet, where the OAM configuration information is used to indicate the OAM function of the forwarding device to implement the path, and the path is a path between the forwarding devices;
    发送模块,设置为向所述转发设备发送所述配置报文。And a sending module, configured to send the configuration packet to the forwarding device.
  15. 根据权利要求14所述的装置,其中,所述OAM配置信息包括以下至少之一:标识信息、操作类型、特征信息、端口信息,其中:The apparatus according to claim 14, wherein the OAM configuration information comprises at least one of: identification information, operation type, feature information, and port information, wherein:
    所述标识信息用于标识OAM功能的实例,并于同时生效的其他OAM实例相区别;The identifier information is used to identify an instance of the OAM function, and is distinguished by other OAM instances that are effective at the same time;
    所述操作类型用于指示所述OAM功能的类型;The operation type is used to indicate a type of the OAM function;
    所述特征信息用于指示与所述OAM功能对应的参数;The feature information is used to indicate a parameter corresponding to the OAM function;
    所述端口信息用于指示OAM功能所绑定的本地端口。 The port information is used to indicate a local port to which the OAM function is bound.
  16. 根据权利要求15所述的装置,其中,所述特征信息包括:OAM消息报文发送周期,其中,所述OAM消息报文发送周期用于指示所述转发设备向所述路径另一端的转发设备发送报文的周期。The device according to claim 15, wherein the feature information comprises: an OAM message packet sending period, wherein the OAM message packet sending period is used to indicate that the forwarding device forwards to the other end of the path The period during which the message is sent.
  17. 根据权利要求15或16所述的装置,其中,所述OAM操作类型包括以下至少之一:OAM功能的新增、修改、暂停、启动或删除。The apparatus according to claim 15 or 16, wherein the OAM operation type comprises at least one of: addition, modification, suspension, activation or deletion of an OAM function.
  18. 根据权利要求15所述的装置,其中,所述发送模块,包括以下至少之一:The apparatus of claim 15, wherein the transmitting module comprises at least one of:
    第一发送单元,设置为向双向转发路径的首端点转发设备和/或尾端点转发设备发送所述配置报文,其中,所述配置报文携带的端口信息包括出端口信息和入端口信息,所述出端口信息指示发送报文的本地端口,所述入端口信息指示接收报文的本地端口;The first sending unit is configured to send the configuration packet to the first-end forwarding device and/or the tail-end forwarding device of the bidirectional forwarding path, where the port information carried in the configuration packet includes the outbound port information and the ingress port information. The outbound port information indicates a local port that sends a packet, and the ingress port information indicates a local port that receives the packet;
    第二发送单元,设置为向单向转发路径的首端点转发设备发送第一配置报文,和/或向所述单向转发路径的尾端点转发设备发送第二配置报文,其中,所述第一配置报文携带的端口信息为所述出端口信息,所述第二配置报文携带的端口信息为所述入端口信息。a second sending unit, configured to send a first configuration packet to the first endpoint forwarding device of the one-way forwarding path, and/or to send a second configuration packet to the tail endpoint forwarding device of the one-way forwarding path, where The port information carried in the first configuration packet is the outbound port information, and the port information carried in the second configuration packet is the ingress port information.
  19. 根据权利要求14至18中任一项所述装置,其中,所述配置报文是基于Packet-out消息扩展的报文类型。The apparatus according to any one of claims 14 to 18, wherein the configuration message is a message type based on a Packet-out message extension.
  20. 根据权利要求19所述装置,其中,所述处理模块,设置为将所述OAM配置信息携带在Packet-out消息的以下至少之一:端口字段、动作集字段、保留字段或数据字段。The apparatus of claim 19, wherein the processing module is configured to carry the OAM configuration information in at least one of the following: a port field, an action set field, a reserved field, or a data field.
  21. 一种操作维护管理功能的实现装置,包括:An implementation device for an operation and maintenance management function, comprising:
    接收模块,设置为接收控制器发送的配置报文;a receiving module, configured to receive a configuration message sent by the controller;
    获取模块,设置为从所述配置报文中获取操作维护管理OAM配置信息,其中,所述OAM配置信息用于指示转发设备实施路径的OAM功能,所述路径为转发设备之间的路径;An acquiring module, configured to obtain operation and maintenance management OAM configuration information from the configuration packet, where the OAM configuration information is used to indicate an OAM function of a forwarding device to implement a path, where the path is a path between forwarding devices;
    执行模块,设置为根据所述OAM配置信息执行路径的OAM功能。The execution module is configured to perform an OAM function of the path according to the OAM configuration information.
  22. 根据权利要求21所述的装置,其中,所述执行模块包括以下至少之一:The apparatus of claim 21 wherein said execution module comprises at least one of:
    第一执行单元,设置为当所述OAM配置信息中的操作类型指示所述OAM功能的类型为新增时,根据所述OAM配置信息中的特征信息指示的OAM消息报文周期,启动OAM消息报文周期对应的定时器,向所述路径另一端的转 发设备发送OAM消息报文和/或接收所述路径另一端的转发设备发送的OAM消息报文;The first execution unit is configured to start the OAM message according to the OAM message packet period indicated by the feature information in the OAM configuration information, when the type of the OAM configuration information indicates that the type of the OAM function is new. The timer corresponding to the message period, the rotation to the other end of the path The sending device sends an OAM message and/or receives an OAM message sent by the forwarding device at the other end of the path;
    第二执行单元,设置为当所述操作类型指示所述OAM功能的类型为修改时,根据所述特征信息指示的OAM消息报文周期,停止OAM消息报文的定时器,启动所述OAM消息报文周期对应的定时器,向所述路径另一端的转发设备发送OAM消息报文和/或接收所述路径另一端的转发设备发送的OAM消息报文;a second execution unit, configured to: when the type of the operation indicates that the type of the OAM function is modified, stop the timer of the OAM message according to the OAM message packet period indicated by the feature information, and start the OAM message. The timer corresponding to the packet period sends an OAM message to the forwarding device at the other end of the path and/or receives an OAM message sent by the forwarding device at the other end of the path;
    第三执行单元,设置为当所述操作类型指示所述OAM功能的类型为暂停时,暂停OAM消息报文的定时器,暂停发送和/或接收OAM消息报文;a third execution unit, configured to suspend the timer of the OAM message, suspend sending and/or receiving the OAM message, when the operation type indicates that the type of the OAM function is paused;
    第四执行单元,设置为当所述操作类型指示所述OAM功能的类型为重启时,重启OAM消息报文的定时器,向所述路径另一端的转发设备发送OAM消息报文和/或接收所述路径另一端的转发设备发送的OAM消息报文;And a fourth execution unit, configured to: when the operation type indicates that the type of the OAM function is a restart, restart a timer of the OAM message, and send an OAM message and/or receive to the forwarding device at the other end of the path. An OAM message sent by the forwarding device at the other end of the path;
    第五执行单元,设置为当所述操作类型指示所述OAM功能的类型为删除时,取消OAM消息报文的定时器,删除所述OAM配置信息中的标识信息对应的OAM实例。And a fifth execution unit, configured to: when the operation type indicates that the type of the OAM function is deleted, cancel the timer of the OAM message, and delete the OAM instance corresponding to the identifier information in the OAM configuration information.
  23. 根据权利要求22所述的装置,其中,当所述OAM配置信息的绑定对象为单向转发路径时,The apparatus according to claim 22, wherein when the binding object of the OAM configuration information is a one-way forwarding path,
    如果所述转发设备为所述路径的首端点,所述执行模块,设置为根据所述操作类型向所述路径的另一端转发设备发送OAM消息报文;和/或If the forwarding device is the first endpoint of the path, the executing module is configured to send an OAM message to the forwarding device at the other end of the path according to the operation type; and/or
    如果所述转发设备为所述路径的尾端点,所述执行模块,设置为根据所述操作类型接收所述路径的另一端转发设备发送的OAM消息报文。If the forwarding device is the trailing endpoint of the path, the executing module is configured to receive, according to the operation type, an OAM message sent by the other end of the path forwarding device.
  24. 根据权利要求22或23所述的装置,其中,当所述OAM配置信息的绑定对象为双向转发路径时,The apparatus according to claim 22 or 23, wherein when the binding object of the OAM configuration information is a bidirectional forwarding path,
    所述执行模块,设置为根据所述操作类型向所述路径的另一端转发设备发送OAM消息报文,并接收所述路径的另一端转发设备发送的OAM消息报文。The execution module is configured to send an OAM message to the forwarding device of the other end of the path according to the operation type, and receive an OAM message sent by the other end of the path.
  25. 根据权利要求22所述的装置,其中,所述执行模块,还设置为根据所述OAM配置信息中的端口信息绑定对应的本地端口;其中,通过流表条目信息标识入端口,用组表信息标识出端口,所述本地端口包括物理端口和/或逻辑端口。The apparatus according to claim 22, wherein the execution module is further configured to bind a corresponding local port according to port information in the OAM configuration information; wherein the inflow port is identified by flow table entry information, and the group table is used. The information identifies the port, which includes the physical port and/or the logical port.
  26. 根据权利要求21至25中任一项所述的装置,其中,所述配置报文是基于Packet-out消息扩展的报文类型。 The apparatus according to any one of claims 21 to 25, wherein the configuration message is a message type based on a Packet-out message extension.
PCT/CN2015/080709 2014-12-23 2015-06-03 Method and device for implementing operations, administration and maintenance function WO2016101546A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201410815589.0A CN105790988B (en) 2014-12-23 2014-12-23 Method and device for realizing operation maintenance management function
CN201410815589.0 2014-12-23

Publications (1)

Publication Number Publication Date
WO2016101546A1 true WO2016101546A1 (en) 2016-06-30

Family

ID=56149111

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2015/080709 WO2016101546A1 (en) 2014-12-23 2015-06-03 Method and device for implementing operations, administration and maintenance function

Country Status (2)

Country Link
CN (1) CN105790988B (en)
WO (1) WO2016101546A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106850053B (en) * 2017-01-17 2019-03-12 烽火通信科技股份有限公司 A kind of method and system that the centralized optical channel based on hybrid network is found automatically
CN110545196A (en) * 2018-05-28 2019-12-06 华为技术有限公司 data transmission method and related network equipment
CN108989206B (en) * 2018-08-22 2021-10-15 迈普通信技术股份有限公司 Message forwarding method and device
CN109379234B (en) * 2018-11-30 2021-10-01 苏州盛科通信股份有限公司 Message forwarding processing method and system based on Hybrid switch
CN112804075B (en) * 2019-11-14 2022-10-11 华为技术有限公司 Method, device and system for sending message and receiving message for OAM (operation administration and maintenance)
CN112910773A (en) * 2019-11-19 2021-06-04 华为技术有限公司 Method for issuing OAM configuration information and control node

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110286324A1 (en) * 2010-05-19 2011-11-24 Elisa Bellagamba Link Failure Detection and Traffic Redirection in an Openflow Network
US20130010605A1 (en) * 2011-07-04 2013-01-10 Telefonaktiebolaget L M Ericsson (Publ) Generic Monitoring Packet Handling Mechanism for OpenFlow 1.1
CN103765823A (en) * 2011-07-08 2014-04-30 瑞典爱立信有限公司 Controller driven OAM for OpenFlow
CN103782552A (en) * 2013-09-03 2014-05-07 华为技术有限公司 Method for protecting service path, controller, device and system
CN104113792A (en) * 2014-07-30 2014-10-22 上海斐讯数据通信技术有限公司 OpenFlow control channel establishing method and system

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8971338B2 (en) * 2012-01-09 2015-03-03 Telefonaktiebolaget L M Ericsson (Publ) Expanding network functionalities for openflow based split-architecture networks
US10341232B2 (en) * 2012-11-13 2019-07-02 Netronome Systems, Inc. Packet prediction in a multi-protocol label switching network using openflow messaging
CN103001887B (en) * 2012-11-22 2018-01-05 中兴通讯股份有限公司 A kind of link keep-alive method, controller and interchanger

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110286324A1 (en) * 2010-05-19 2011-11-24 Elisa Bellagamba Link Failure Detection and Traffic Redirection in an Openflow Network
US20130010605A1 (en) * 2011-07-04 2013-01-10 Telefonaktiebolaget L M Ericsson (Publ) Generic Monitoring Packet Handling Mechanism for OpenFlow 1.1
CN103765823A (en) * 2011-07-08 2014-04-30 瑞典爱立信有限公司 Controller driven OAM for OpenFlow
CN103782552A (en) * 2013-09-03 2014-05-07 华为技术有限公司 Method for protecting service path, controller, device and system
CN104113792A (en) * 2014-07-30 2014-10-22 上海斐讯数据通信技术有限公司 OpenFlow control channel establishing method and system

Also Published As

Publication number Publication date
CN105790988B (en) 2020-01-14
CN105790988A (en) 2016-07-20

Similar Documents

Publication Publication Date Title
WO2016101546A1 (en) Method and device for implementing operations, administration and maintenance function
US10616091B2 (en) Exploratory linktrace operations in a computer network
US10756994B2 (en) Switch, controller, system, and link quality detection method
US11894970B2 (en) DCN packet processing method, network device, and network system
CN102333011B (en) One way link detection method and device
TR201802416T4 (en) A method and system for synchronization with a neighbor in a distributed flexible network interconnection (DRNI) link collection group.
US11563680B2 (en) Pseudo wire load sharing method and device
WO2010007603A2 (en) Establishing pseudowires in packet switching networks
US11489836B2 (en) Method, apparatus, and system for collecting access control list
WO2011160517A1 (en) Tunnel switching method and system for multi-protocol label switching services
US11601335B2 (en) Methods and systems for neighbor-acknowledged graceful insertion/removal protocol
WO2016101582A1 (en) Method for configuring and implementing operations, administration and maintenance function, and forwarding device
CN112671644B (en) SDN service isolation and routing method based on MPLS
US20160094367A1 (en) Migrating multicast flow
CN106161065B (en) Path protection switching processing method, device and system and forwarding equipment
JP6371399B2 (en) Interface parameter synchronization method and apparatus
WO2012062106A1 (en) Tunnel multiplexing method for linear protection group and tail-node of tunnel
CN105281953B (en) Network failure processing method and the edge device of service provider

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 15871621

Country of ref document: EP

Kind code of ref document: A1