WO2017036180A1 - Packet processing method and device - Google Patents

Packet processing method and device Download PDF

Info

Publication number
WO2017036180A1
WO2017036180A1 PCT/CN2016/082357 CN2016082357W WO2017036180A1 WO 2017036180 A1 WO2017036180 A1 WO 2017036180A1 CN 2016082357 W CN2016082357 W CN 2016082357W WO 2017036180 A1 WO2017036180 A1 WO 2017036180A1
Authority
WO
WIPO (PCT)
Prior art keywords
instance
field
message
action
packet
Prior art date
Application number
PCT/CN2016/082357
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 WO2017036180A1 publication Critical patent/WO2017036180A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L49/00Packet switching elements
    • H04L49/10Packet switching elements characterised by the switching fabric construction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/34Signalling channels for network management communication

Definitions

  • This application relates to, but is not limited to, the field of communications.
  • OSPF Open Shortest Path First
  • Border Gateway Protocol BGP
  • BGP Border Gateway Protocol
  • NAT Network Address Translation
  • MPLS multi-protocol label switching
  • SDN Software Defined Network
  • the SDN framework was only used in Ethernet scenarios, but as the heat became higher and higher, the application scenario extended from the packet switched network to the optical switching network.
  • the standardization of the SDN architecture of the optical switching network is handled by the ONF OTWG working group, which mainly includes optical transport network (OTN) optical layer control, electrical layer control, neighbor discovery, cross-layer technology, and protection switching technology.
  • OTN optical transport network
  • OAM Operation Administration and Maintenance
  • ONF released the OpenFlow protocol extension version 1.0, and completed the protocol schemes of optical layer control, electrical layer control, and neighbor discovery. It is possible to add a protocol solution for the remaining three research topics in the subsequent 1.1 version, in which the protection switching and the OAM technology are implemented using an autonomous function (AF).
  • OAM Operation Administration and Maintenance
  • An AF autonomous function is a functional object used to represent the flow table mode, and a logical switch written to the AF autonomous function can perform a series of path-related actions.
  • AF autonomous functions can be used to perform these data path behaviors; when the controller is unable to respond to specific stimuli or react in time, it will also need to These control functions are delegated to the switch for execution.
  • the controller adds the index to the flow table to deliver the message to the AF autonomous function for functional processing.
  • FIG. 1 is a schematic diagram of a usage mode of an AF autonomous function in the related art, as shown in FIG. 1.
  • the AF autonomous function instance exists in the AF autonomous function table.
  • the definition of AF includes the name of the type and the type-related configuration, mainly parameters and internal state data.
  • the AF instance exists in the AF table and has a unique AF ID.
  • One AF has the following functions:
  • the flow entry points to an AF instance, and the AF instance receives the message and processes it, modifies the message data or the metadata, and modifies the forwarding path.
  • the message is triggered by a timer or other time
  • the autonomous function AF instance in the related art described above cannot meet the functional requirements of the AF in terms of protection recovery and OAM.
  • the present invention provides a method and a device for processing a message, so as to solve at least the problem that the autonomous function AF instance cannot complete the forwarding process of the OAM-related message in the related art.
  • a method for processing a packet includes: in a software-defined network SDN architecture, forwarding a packet by performing a pre-configured autonomous function AF instance; wherein the AF instance includes at least the following One of the fields: AF identifier field, AF type field, AF index number field, instruction field, cycle time field, count field, status field.
  • the AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; the AF index number field is used to indicate the number of times the AF instance is referenced; It is used to indicate the pipeline processing and action performed by the AF instance.
  • the cycle time field is used to indicate the time when the AF instance periodically sends the packet or the time when the packet is periodically received.
  • the count field is used to indicate the report received by the AF instance. The number of texts; a status field that indicates whether the AF instance is valid.
  • the method before the autonomous function AF instance forwards the packet, the method further includes: acquiring the packet by using at least one of the following methods: receiving the packet sent by the controller by executing the AF instance; and receiving the packet The AF instance receives the packets sent by the switch. The AF instance generates packets.
  • the method before the AF instance obtains the message, the method further includes: setting an action of the AF instance in advance.
  • the message when the AF instance is used to implement the continuity verification function, the message is a Continuity Check Message (CCM) message; when the AF instance is the sender AF instance, the sender AF instance is used.
  • the actions include: Output Peer Maintenance entity assembly End Point (Output Peer MEP) Action, setting-domain Set-Field action, output port Output port action; when the AF instance is the receiving-end AF instance, the action of the receiving-end AF instance includes: outputting to an external software module, wherein the external software module is used to determine whether Triggering the Receiver Maintaining the Entity Group
  • the reverse AF instance in the endpoint MEP generates a CCM message with the remote defect indication RDI set.
  • the Set-Field action includes at least one of the following: setting a source media access control (MAC); setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group level; setting the operation Manage and maintain the OAM protocol version; set the CCM packet type; set the identifier bit; set the offset of the Type Length Value (TLV); set the serial number; set the maintenance entity assembly end point (Maintenance entity assembly End Point) , referred to as the MEP) identifier; set the Maintenance Entity Group (MEG) logo.
  • MAC source media access control
  • TLV Type Length Value
  • MEP Maintenance Entity Group
  • the packet when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port.
  • the packet when the AF instance is used to implement the Ethernet path tracking function, the packet is a Link Trace Message (LTM) packet; when the AF instance is a transmitting AF instance, the transmitting end AF
  • LTM Link Trace Message
  • the action of the example includes: sending to the port; when the AF instance is the AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance includes: Time To Line (TTL) minus 1 and setting the source address
  • TTL Time To Line
  • the LMS exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port is the media access control MAC address of the intermediate node or the tail node of the maintenance entity group where the AF instance is located.
  • the message when the AF instance is used to implement the Ethernet path tracking function, the message is a path tracking message LTM message; when the AF instance is a receiving end AF instance or an AF instance in an intermediate node, the AF instance is The action includes: setting an OpCode field in the OAM packet, copying the source MAC address field to the destination MAC address field of the Ethernet header, deleting the destination MAC address field of the source MAC address field, and adding the next exit identifier field to the identifier TLV. Output port.
  • the packet when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report.
  • Set the Ethernet type field set the OAM packet type to AIS packet; set the OAM protocol version field; set the identifier bit; set the source MAC; set the destination MAC; and set the maintenance entity group MEG level.
  • the action of the receiving end AF instance includes: sending the AIS message that has been successfully verified by the MEP of the receiving end AF instance to the external software module; wherein the external software module is used to determine whether to trigger The reverse AF instance in the receiving end maintenance entity group endpoint MEP generates an AIS message with the remote defect indication RDI set.
  • a packet processing apparatus including: a forwarding module, configured to: in a software-defined network SDN architecture, forward a packet by executing a pre-configured autonomous function AF instance;
  • the AF instance includes at least one of the following fields: an AF identifier field, an AF type field, an AF index number field, an instruction field, a cycle time field, a count field, and a status field.
  • the AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; the AF index number field is used to indicate the number of times the AF instance is referenced; The action is used to indicate the action performed by the AF instance.
  • the cycle time field is used to indicate the time when the AF instance periodically sends a message or the time when the message is periodically received.
  • the count field is used to indicate the number of packets received by the AF instance.
  • the status field is used to indicate whether the AF instance is valid.
  • the device further includes: an acquiring module, configured to: obtain a packet by using at least one of the following methods: receiving a packet sent by the controller by executing the AF instance, and receiving the packet sent by the AF instance to receive the switch The packet is generated by the AF instance.
  • the device further includes: a setting module, configured to: preset an action of the AF instance.
  • the packet when the AF instance is used for remote fault detection, the packet is a connection verification message CCM message; when the AF instance is the sender AF instance, the action of the sender AF instance includes: output peering Maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, output port Output port action; when the AF instance is the receiving end AF instance, the receiving end
  • the actions of the AF instance include: output to an external software module.
  • the Set-Field action includes at least one of: setting a source media access control MAC; setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group level; setting an operation management and maintenance OAM protocol version; CCM message type; set the identification bit; set the offset of the type length value TLV; set the serial number; set the identifier of the MEP at the sending end; set the MEG identifier of the maintenance entity group.
  • the packet when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port.
  • the packet is a path tracking message LTM packet; when the AF instance is the transmitting AF instance, the action of the transmitting AF instance includes: sending to If the AF instance is the AF instance of the receiving end AF instance or the intermediate node, the action of the AF instance includes: the time-to-live value TTL is decreased by 1, and the source address is set to the media of the intermediate node or the tail node of the maintenance entity group where the AF instance is located.
  • the access control MAC address is set, and the LTM exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port.
  • the message when the AF instance is used to implement the Ethernet path tracking function, the message is a path tracking message LTM message; when the AF instance is a receiving end AF instance or an AF instance in an intermediate node, the AF instance is The action includes: setting an OpCode field in the OAM packet, copying the source MAC address field to the destination MAC address field of the Ethernet header, deleting the destination MAC address field of the source MAC address field, and adding the next exit identifier field to the identifier TLV. Output port.
  • the packet when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report.
  • Set the Ethernet type field set the OAM packet type to AIS packet; set the OAM protocol version field; set the identifier bit; set the source MAC; set the destination MAC; and set the MEG level.
  • a computer readable storage medium storing computer executable instructions for performing the method of any of the above.
  • the newly defined AF autonomous function instance is used to forward the packet, and then the OAM-related packet is forwarded, and the problem that the autonomous AF instance cannot complete the OAM-related packet forwarding process is solved. It meets its functional requirements for protection recovery and OAM.
  • FIG. 1 is a schematic diagram of a usage mode of an AF autonomous function in the related art
  • FIG. 2 is a flowchart 1 of a method for processing a message according to an embodiment of the present invention
  • FIG. 3 is a second flowchart of a method for processing a message according to an embodiment of the present invention.
  • FIG. 4 is a third flowchart of a method for processing a message according to an embodiment of the present invention.
  • FIG. 5 is a structural block diagram 1 of a processing apparatus for a message according to an embodiment of the present invention.
  • FIG. 6 is a second structural block diagram of a message processing apparatus according to an embodiment of the present invention.
  • FIG. 7 is a block diagram 3 of a processing apparatus of a message according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a newly defined AF autonomous function example provided according to an alternative embodiment of the present invention.
  • FIG. 9 is a schematic diagram of an OAM related message field according to an alternative embodiment of the present invention.
  • FIG. 10 is a flow chart showing a connection verification function according to an alternative embodiment of the present invention.
  • FIG. 11 is a schematic diagram of a CCM message format according to an alternative embodiment of the present invention.
  • FIG. 12 is a schematic flow chart of a loopback function according to an alternative embodiment of the present invention.
  • FIG. 13 is a schematic flowchart of a path tracking function according to an alternative embodiment of the present invention.
  • FIG. 14 is a flow chart showing a fault indication function according to an alternative embodiment of the present invention.
  • FIG. 2 is a flowchart 1 of a method for processing a packet according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
  • Step S202 The software-defined network SDN architecture forwards the packet by executing the pre-configured autonomous function AF instance.
  • the AF instance includes at least one of the following fields: an AF identifier field, an AF type field, and an AF index number field. , instruction field, cycle time field, count field, status field.
  • the AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; and the AF index number field is used to indicate the number of times the AF instance is referenced. If the number of times referenced is 0, the switch Deleting the AF instance, if the number of references is set to the maximum value, the AF instance is permanently valid, the switch does not delete the AF instance; the instruction field is used to indicate the pipeline processing and actions performed by the AF instance; the cycle time field, The time is used to indicate the time when the AF instance periodically sends the message; the count field is used to indicate the number of the packets received by the AF instance; and the status field is used to indicate whether the AF instance is valid.
  • the above-mentioned packets can be OAM packets or other types of packets.
  • the forwarding of the OAM-related packet can be implemented, and the problem that the autonomous AF instance cannot complete the forwarding of the OAM-related packet can be solved. It meets its functional requirements for protection recovery and OAM.
  • FIG. 3 is a flowchart of a method for processing a message according to an embodiment of the present invention. As shown in FIG. 3, before the step S202, the method further includes:
  • step S302 the packet is obtained by receiving the message sent by the controller by executing the AF instance; receiving the packet sent by the switch through the AF instance; The instance generates a message.
  • the AF instance may be an AF instance in the first node (that is, the sender AF instance), or an AF instance in the intermediate node, or an AF instance in the tail node (that is, the receiving end AF instance), and the foregoing report is generated by the AF instance.
  • the main focus of the text is to generate a packet through the AF instance in the first node.
  • the other two methods do not limit the AF instance. That is, it can be either the AF instance of the sender or the AF instance of the intermediate node. Is the receiving end AF instance.
  • FIG. 4 is a flowchart 3 of a method for processing a packet according to an embodiment of the present invention. As shown in FIG. 4, before the step S302, the foregoing method includes:
  • step S402 the action of the AF instance is set in advance.
  • the action of the foregoing AF instance may be performed to augment the instruction field in the AF instance, that is, to extend the action indicated by the instruction field in the AF instance, thereby further completing the forwarding process of the OAM-related packet, thereby further improving Meet the functional requirements of AF in terms of protection recovery and OAM.
  • the AF instance can implement different functions, such as remote fault detection, Ethernet loopback, path tracking, and fault indication. When different functions are completed, the AF instance extension actions are different.
  • the message is a connection verification message CCM message
  • the action of the sender AF instance includes: output Peer-to-peer maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, output port Output port action
  • the action of the receiving end AF instance includes: outputting to an external software module, wherein The external software module is configured to determine whether to trigger the reverse AF instance in the endpoint maintenance MEE of the receiving end maintenance entity group to generate a CCM message with the remote defect indication RDI set.
  • the reverse AF instance is periodically triggered to send the reverse CCM packet to the sending end, where the reverse CCM is sent.
  • the RDI flag is set in the message.
  • the setting of the action of the AF instance on the sending end may be in a certain order. For example, first set the output peer peer group Peer MEP action, and then set the Set Field action, and finally set Set the Output port action.
  • the Output Peer MEP action is used to indicate that a new packet needs to be generated and sent to the peer MEP.
  • the Set-Field action includes at least one of the following: setting a source media access control MAC; setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group hierarchy; setting an operation management and maintenance OAM protocol version; setting a CCM message type; Identification bit; set the offset of the type length value TLV; set the serial number; set the identifier of the sender MEP; set the maintenance entity group MEG identifier.
  • the CCM packet type is set, and the corresponding field value is set to 1.
  • the foregoing identifier bit may include two, one is an RDI identifier, and one is a sending period identifier, which is used to identify whether the path is faulty.
  • the packet when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port. It should be noted that the OpCode in the ring report is set to 2, and is used to indicate that the type of the OAM message is a loopback response LBR message.
  • the packet is a path tracking message LTM packet; when the AF instance is the transmitting AF instance, the action of the transmitting AF instance includes: sending to If the AF instance is the AF instance of the receiving end AF instance or the intermediate node, the action of the AF instance includes: the time-to-live value TTL is decreased by 1, and the source address is set to the media of the intermediate node or the tail node of the maintenance entity group where the AF instance is located.
  • the access control MAC address is set, and the LTM exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port.
  • the action of the AF instance may also include: setting an OpCode field in the OAM packet, and copying the source MAC address field to the Ethernet header. In the MAC address field, delete the destination MAC address field of the source MAC address field, add the next exit identifier field to the identifier TLV, and output the port.
  • the packet when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report. Text; set the Ethernet type field; set the OAM packet type to AIS Set the OAM protocol version field; set the flag bit; set the source MAC; set the destination MAC; set the MEG level.
  • the action of the receiving end AF instance includes: sending an AIS message that has been successfully verified by the MEP of the receiving end AF instance to an external software module; wherein the external The software module is configured to determine whether to trigger the reverse AF instance in the MEP of the receiving end maintenance entity group to generate an AIS message with the remote defect indication RDI.
  • the external software module does not periodically trigger the reverberation AF instance to generate an AIS packet with the RDI set according to the information of the received AIS packet.
  • the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation.
  • the technical solution of the present application which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM).
  • the method includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present invention.
  • a message processing device is also provided, which is used to implement the foregoing embodiments and implementation manners, and has not been described again.
  • the term "module” may implement a combination of software and/or hardware of a predetermined function.
  • the devices described in the following embodiments may be 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 a processing apparatus of a message according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes:
  • the forwarding module 52 is configured to forward the packet by executing the preset autonomous function AF instance in the software-defined network SDN architecture.
  • the AF instance includes at least one of the following fields: an AF identifier field, and an AF type field. , AF index number field, instruction field, cycle time field, count field, status field.
  • the AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; and the AF index number field is used to indicate the number of times the AF instance is referenced. If the number of times of reference is 0, the switch deletes the AF instance. If the number of times of the reference is set to the maximum value, the AF instance is permanently valid, the switch does not delete the AF instance, and the command field is used to indicate the execution of the AF instance.
  • Pipeline processing and action the cycle time field is used to indicate the time when the AF instance periodically sends the message; the count field is used to indicate the number of packets received by the AF instance; and the status field is used to indicate whether the AF instance is valid.
  • the above messages can be used to transmit OAM messages or other forms of messages.
  • the device can forward the OAM-related packet by using the newly-defined AF instance to forward the OAM-related packet, and solve the problem that the autonomous AF instance cannot complete the OAM-related packet forwarding process in the related art. It meets its functional requirements for protection recovery and OAM.
  • FIG. 6 is a structural block diagram 2 of a processing apparatus for a message according to an embodiment of the present invention. As shown in FIG. 6, the apparatus further includes:
  • the obtaining module 62 is connected to the forwarding module 52, and is configured to: obtain a packet by using at least one of the following methods: receiving a packet sent by the controller by executing the AF instance, and receiving the packet sent by the switch by the AF instance; The message is generated by the AF instance.
  • the AF instance may be an AF instance in the first node (that is, the sender AF instance), or an AF instance in the intermediate node, or an AF instance in the tail node (that is, the receiving end AF instance), and the foregoing report is generated by the AF instance.
  • the main focus of the text is to generate a packet through the AF instance in the first node.
  • the other two methods do not limit the AF instance. That is, it can be either the AF instance of the sender or the AF instance of the intermediate node. Is the receiving end AF instance.
  • FIG. 7 is a structural block diagram 3 of a processing apparatus of a message according to an embodiment of the present invention. As shown in FIG. 7, the apparatus further includes:
  • the setting module 72 is connected to the obtaining module 62, and is configured to set an action of the AF instance in advance.
  • the action of the foregoing AF instance may be performed to augment the instruction field in the AF instance, that is, to extend the action indicated by the instruction field in the AF instance, thereby further completing the forwarding process of the OAM-related packet, thereby better satisfying the AF protection.
  • Recovery and functional requirements for OAM may be performed to augment the instruction field in the AF instance, that is, to extend the action indicated by the instruction field in the AF instance, thereby further completing the forwarding process of the OAM-related packet, thereby better satisfying the AF protection.
  • the above AF instance can implement different functions, such as remote fault detection.
  • the network loopback function, the path tracking function, and the fault indication function also have different actions for the AF instance extension when different functions are completed.
  • the message is a connection verification message CCM message
  • the action of the sender AF instance includes: output Peer-to-peer maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, output port Output port action
  • the action of the receiving end AF instance includes: outputting to an external software module, wherein The external software module is configured to determine whether to trigger the reverse AF instance in the endpoint maintenance MEE of the receiving end maintenance entity group to generate a CCM message with the remote defect indication RDI set.
  • the reverse AF instance is periodically triggered to send the reverse CCM packet to the sending end, where the reverse CCM is sent.
  • the RDI flag is set in the message.
  • the setting of the action of the AF instance on the sending end may be in a certain order. For example, first set the output peer Peer MEP action of the output peer group, set the Set Field action, and finally set the Output port action.
  • the Output Peer MEP action is used to indicate that a new packet needs to be generated and sent to the peer MEP.
  • the Set-Field action includes at least one of the following: setting a source media access control MAC; setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group hierarchy; setting an operation management and maintenance OAM protocol version; setting a CCM message type; Identification bit; set the offset of the type length value TLV; set the serial number; set the identifier of the sender MEP; set the maintenance entity group MEG identifier.
  • the CCM packet type is set, and the corresponding field value is set to 1.
  • the foregoing identifier bit may include two, one is an RDI identifier, and one is a sending period identifier, which is used to identify whether the path is faulty.
  • the packet when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port. It should be noted that the OpCode in the ring report is set to 2, and is used to indicate that the type of the OAM message is a loopback response LBR message.
  • the packet is a path tracking message LTM packet; when the AF instance is the transmitting AF instance, the action of the transmitting AF instance includes: sending to If the AF instance is the AF instance of the receiving end AF instance or the intermediate node, the action of the AF instance includes: the time-to-live value TTL is decreased by 1, and the source address is set to the media of the intermediate node or the tail node of the maintenance entity group where the AF instance is located.
  • the access control MAC address is set, and the LTM exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port.
  • the action of the AF instance may also include: setting an OpCode field in the OAM packet, and copying the source MAC address field to the Ethernet header. In the MAC address field, delete the destination MAC address field of the source MAC address field, add the next exit identifier field to the identifier TLV, and output the port.
  • the packet when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report.
  • Set the Ethernet type field set the OAM packet type to AIS packet; set the OAM protocol version field; set the identifier bit; set the source MAC; set the destination MAC; and set the MEG level.
  • the action of the receiving end AF instance includes: sending an AIS message that has been successfully verified by the MEP of the receiving end AF instance to an external processing module; wherein the external The software module is configured to determine whether to trigger the reverse AF instance in the MEP of the receiving end maintenance entity group to generate an AIS message with the remote defect indication RDI.
  • the external software module does not periodically trigger the reverberation AF instance to generate an AIS packet with the RDI set according to the information of the received AIS packet.
  • modules may be implemented by software or hardware.
  • the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are respectively located in multiple processes. In the device.
  • the embodiment of the present invention defines a mode-based autonomous function AF solution, that is, through the current standardized OpenFlow object and defining some new objects, to satisfy the AF autonomous function. Protection recovery and functional requirements for OAM.
  • FIG. 8 is a schematic diagram of a newly defined AF autonomous function example according to an alternative embodiment of the present invention, as shown in FIG.
  • each field is defined as follows:
  • AF identifier used to uniquely identify an AF autonomous function instance
  • AF type used to identify the type of AF autonomous function.
  • AF index number is a count field used to calculate the number of times the AF is referenced. If it is not referenced, the AF is deleted. If it is set to the maximum value, the instance is permanently valid, and the switch does not delete the AF autonomous function. Example.
  • each stream entry contains one or more Instructions fields. When there are messages matching this stream entry, these Instructions fields will be executed, also in an AF. In the autonomous function instance, multiple Instructions fields may also be used. When the AF autonomous function instance is referenced, these Instructions are executed.
  • the embodiment of the invention enriches the original structure, increases the data structure of the AF, uses the Instructions and adds some new actions to complete some complex OAM functions, for example, the action of generating a new data packet (this can be similar
  • CONTROLLER Instruction Port of the Controller
  • Period time The Period time field, used to record the time when packets are periodically sent or the time when packets are received periodically.
  • the Counter field is used to record the number of currently received packets, which can be used for subsequent packet loss statistics.
  • Status field used to indicate whether the current AF autonomous function instance is valid. If it is invalid, the corresponding instruction is not executed.
  • the newly defined mode-based AF autonomous function completes some complex protection recovery and some OAM behaviors that cannot be completed by the current flow table mode by combining the existing OpenFlow flow table and the group table, which may be The following three scenarios:
  • OpenFlow Logical Switch The matching of the matching flow table is performed, and the matched packet is forwarded to the AF instance for processing. After the AF instance is processed, the packet can be forwarded to the flow table for matching processing, or the group table can be forwarded to the group table. Go directly to the port to forward the message. In this case, the AF autonomous function processes only the received packets and then forwards them accordingly. Such an AF instance can be applied to the first node and the intermediate node.
  • the AF instance periodically generates a packet (such as a CCM packet) or generates a packet according to the OpenFlow pipeline and some external stimuli, and then forwards the packet to the corresponding flow table according to the previously configured flow table forwarding path. Do further forwarding processing.
  • a packet such as a CCM packet
  • This type of AF autonomous function is mainly applied to the first node.
  • AF instance supports out-of-band configuration mode, which is mainly based on some AF behavior complexity and configuration considerations, you can configure AF to point to an out-of-band object for processing. You can use a string parameter to point to an external object and pass the message to an external object for more complex processing.
  • the AF described above may use a chip having a programmable capability, or a chip with a fixed arrangement rule.
  • the AF is mainly applied to the protection recovery and the OAM scenario.
  • the embodiment of the present invention describes the usage mode of the AF according to the OAM function defined in Y.1731.
  • the AF instance described in the embodiment is mainly described in terms of the MEP AF at the transmitting end, the MEP AF at the receiving end, and the MA Intermediate Point (MIP) AF.
  • MIP MA Intermediate Point
  • FIG. 9 is a schematic diagram of an OAM-related packet field according to an alternative embodiment of the present invention, as shown in FIG. 9. As shown, each field has the following meaning:
  • MEL MEL level: Use an integer number to identify the level at which the MEG is located.
  • Version An integer number is used to identify the version of the OAM protocol.
  • OpCode The integer number is used to identify the type of OAM message.
  • TLV offset The offset of the first TLV in the OAM message.
  • the existing flow table needs to be extended to match the OpCode field of the OAM packet, that is, the type of the OAM packet is obtained, and then the OAM packet index is indexed according to the type of the OAM packet. Go to other AFs for further processing.
  • the behaviors in the following embodiments and in the figures are all actions performed after the OAM message type is clarified.
  • Embodiment 1 Ethernet connection verification function and remote fault detection
  • the Ethernet connection verification function is used in the active OAM scenario, and its function is to detect the connection failure between two MEPs in one MEG.
  • FIG. 10 is a schematic flowchart of the connection verification function according to an alternative embodiment of the present invention, as shown in FIG.
  • the MEP1 periodically sends a CCM message to the MEP2 for connection fault detection.
  • the remote defect identifier (Remote Defect Indication) is sent.
  • the CCM message referred to as RDI is sent to MEP1 to indicate that the connection is faulty.
  • Ethernet connection verification can be applied to fault management, performance monitoring and protection switching applications.
  • MEP1 sender MEP Source CC AF (maintaining entity group endpoint source connection verification message autonomous function):
  • the sender MEP needs to periodically generate and send a CCM (connection verification message) message to the receiver MEP, that is, it can pass
  • the external software module refers to the AF autonomous function instance and activates the AF autonomous function instance periodically to periodically send CCM packets.
  • the CCM message sent by the sender is generated by the MEP Source CC AF and sent to the corresponding port and sent to the next node.
  • the duration of the lifetime is set to the time of periodic transmission. That is, every other time period, the CCM message needs to be sent.
  • the Instruction field needs to perform the behavior of encapsulating the CCM message and forwarding it from the corresponding port.
  • the Instruction field performs these functions through the Apply-Actions action(s) or Write-Actions action(s), but
  • the actions defined in the existing OpenFlow protocol are not sufficient to satisfy these behaviors. You need to define the following new extended actions:
  • Peer MEP Peer-to-Peer MEP
  • Output MIP/Peer MEP uses the action Output MIP/Peer MEP to indicate that a new packet needs to be generated and sent to the peer MEP.
  • FIG. 11 is a schematic diagram of a CCM message format according to an alternative embodiment of the present invention, as shown in FIG. Set-Field actions include:
  • Set-Field Source MAC Set the source MAC
  • Set-Field Eth-Type Set the Ethernet type field to indicate that this is an OAM packet.
  • Set-Field MEL Set MEG level
  • Set-Field Version Set the OAM protocol version
  • Set-Field OpCode Sets the CCM packet type, which is currently set to 1.
  • Set-Field Flags Sets the identifier bit.
  • identifier bit There are only two identifiers, namely the RDI identifier and the period ID of the sending period. The RDI is set by the sending MEP to identify whether the path is faulty.
  • Set-Field TLV Offset Sets the offset of the TLV. For CCM messages, it is fixed at 70.
  • Set-Field MEP ID Set the ID of the sender MEP.
  • Set-Field MEG ID Set the MEG ID
  • Set-Field field offset, field length, field value. For example, for the first two Set-Fields above, you can set it as follows:
  • the forwarding model has another way to set the OAM message field by the AF autonomous function instance.
  • the AF autonomous function instance is used to set the same field for each message, for example, setting the Ethernet type and setting. OAM protocol version number, etc., then the group table uses the multicast attribute to set different fields of the message, such as setting the source address, destination address, etc., and forwarding to Different peer MEPs.
  • the action setting order is:
  • the status field is set to 1, it indicates that the function of sending packets periodically is enabled. If set to 0, the AF autonomous function instance does not work.
  • the count field is set to the number of currently received CCM messages.
  • MEP2 receiving end MEP CC Sink AF (maintaining entity group endpoint sink connection verification message autonomous function):
  • the receiving end MEP wants to receive periodic CCM messages, and the cycle time field of the MEP Sink CC AF autonomous function instance is set to one.
  • the expected value that is, the receiving MEP wants to receive the CCM message sent by the peer MEP within this time range. If it is not received, the path has failed.
  • the receiving end MEP first matches the destination address of the packet, and then matches the OAM packet type field, that is, the OpCode field, to determine that it is a CCM message, and delivers the packet to the corresponding AF autonomic function instance for processing.
  • the AF autonomous function instance at the receiving end sends the message to an external software module to record the status by extending the following actions.
  • the external software module mainly maintains a timer if there is no unit cycle time (usually three times the transmission time).
  • the reverse MEP Source CC AF instance (equivalent to the reverse AF instance in the above embodiment), that is, the MEP Source CC AF instance of the MEP2, is triggered periodically. Trigger the sending of reverse CCM messages.
  • the extended action is: Output external software module
  • the External software module completes the positioning of external software modules through a string of XML or JSON characters.
  • MEP2 sender MEP Source CC AF (maintaining entity group endpoint source connection verification message autonomous function): This CCM message is different from the aforementioned CCM message in that the source address is exchanged with Destination address, and the RDI flag is set.
  • MEP1 receiving end MEP Sink CC AF (maintaining entity group endpoint sink connection verification message autonomous function): MEP1 receives the CCM message set by the MEP2 and sets the RDI flag bit, and delivers the message to the external software module. After the packet is analyzed, the external software module reports the fault to the controller and triggers protection switching to switch the data stream to the standby path.
  • Embodiment 2 Ethernet loopback function
  • Ethernet loopback function The main function of the Ethernet loopback function is to detect the connectivity between the MEP and the MIP or the peer MEP. There are two forms of Ethernet loopback packets:
  • the Ethernet loopback function is an on-demand function and does not require a fast response speed.
  • the packet can be encapsulated in the traditional mode, that is, sent to the sender MEP, and the MEP is completed by the sender MEP.
  • the forwarding of the text can be triggered by the external software module on the switch, and the AF autonomous function instance can be sent to the AF autonomous function instance to complete the loop report forwarding.
  • the CCM message can also be used to trigger the message generation. This embodiment employs the second method.
  • FIG. 12 is a schematic flowchart of a loopback function according to an alternative embodiment of the present invention, as shown in FIG.
  • MEP Source LBM Loop Back Message
  • AF Maintenance Group Endpoint Source Loopback Message Autonomous Function: Receives the loop report sent by the controller or external software module and sends it to the corresponding egress port. The actions included are: sent to the port.
  • Swap source MAC address and destination MAC address Swap source address and destination address.
  • Set Field OpCode Set to 2, indicating that it is an LBR message.
  • Output port Forwarded from a port.
  • MEP sender MEP Sink LBM AF Mainntenance entity group endpoint sink loopback message autonomy function: Receive the returned LBR message and hand it to the local external software module, there is an external software module for further processing, if a certain time The response message is not received and the external software module sends a notification message to the controller.
  • Embodiment 3 Path tracking function
  • the Ethernet path tracking function is an on-demand function, which is mainly used for adjacency query and fault location.
  • FIG. 13 is a schematic flowchart of a path tracking function according to an alternative embodiment of the present invention, as shown in FIG.
  • MEP sender MEP Source LTM AF Maintenance entity group endpoint source path tracking message autonomous function: Receives the LTM path trace message sent by the external software module and forwards it from the established port. The actions included are: send to the out port.
  • MIP intermediate node MIP LTM AF maintaining entity group intermediate node path tracking message autonomous function: After receiving the LTR path tracking message, the intermediate node forwards the LTM path tracking message to the MIP LTM AF autonomous function after matching.
  • the main function of the MIP LTM AF autonomous function instance is to copy the TTL field and the Target MAC field to the metadata, and then pass the data packet and the metadata to the flow table for further matching; if the flow table matches the TTL to 0 If the TTL is not 0 and can match the Target MAC address, the packet is forwarded to the group table for forwarding processing, otherwise it is discarded; after receiving the sent LTM packet, the group table will To perform two different forwarding processes, one is to forward the LTM path tracking message to the next hop switch from the corresponding egress port.
  • the action to be performed at this time includes: TTL minus one, and the source address is set to the MAC address of the current MIP. Set the LTM egress identifier TLV value field to the node ID of the current relay LTM path tracking packet.
  • the actions included are as follows:
  • the other process is to send an LTR path tracking response message to the sending node based on the received LTM path tracking message, and the action to be performed includes setting the corresponding OpCode field and copying the original MAC address to the Ethernet header. In the destination address field, delete the original MAC address and Target MAC address fields, and add the Next egress identifier field to the identifier TLV.
  • the actions are as follows:
  • Copy Field (184, 48, 48), the three fields mean (copy source area offset, copy destination area offset, copy bit length)
  • Add Field (264, 48, value) where the value is the MAC address to be added to the next egress identifier field.
  • the actions in the above two processing modes are for the programmable AF autonomous function instance. If a chip with fixed programming rules is used, it is necessary to define related actions.
  • tail node MIP/MEP LTM AF performs an operation similar to the intermediate node after receiving the LTM path tracking message, except that the tail node only performs the LTR path tracking response.
  • Embodiment 4 Fault indication function
  • FIG. 14 is a schematic flowchart of a fault indication function according to an alternative embodiment of the present invention. As shown in FIG. 14, the middle two nodes in the figure are The service layer node, the other is the client layer node. After detecting the fault, the service layer node sends an Alarm Indication Signal (AIS) message to the relevant path of the service layer to suppress the transmission of the fault and the alarm message.
  • AIS Alarm Indication Signal
  • the external software module If the external software module does not receive the CCM message within the cycle time, it determines that the service layer path is faulty. At this time, the external software module sends the ETH-AIS AF, and the AIS message is periodically sent to the client layer. Pass the message to a specific group all type of table and then forward the message to a specific MEG level. At this time, the action of ETH-AIS AF:
  • Set-Field Eth-Type Set the Ethernet type field to indicate that this is an OAM packet.
  • Set-Field OpCode Sets the OAM packet type to AIS packets.
  • Set-Field Flags Set the flag, mainly to set the transmission period.
  • the group table is sent by the ETH-AIS AF.
  • Set-Field Source MAC Set the source MAC
  • the destination MAC address needs to be verified by the flow table to confirm that the node is the node that receives the AIS packet, and then matches the OpCode to confirm that it is an AIS packet.
  • the corresponding AIS AF is forwarded to the node.
  • the AIS AF sends the message to the external software module.
  • the external software module does not periodically trigger the corresponding MEP CC Source AF (corresponding to the reverse AF instance in the above embodiment) according to the information in the AIS message.
  • the message of the RDI flag bit is not periodically trigger the corresponding MEP CC Source AF (corresponding to the reverse AF instance in the above embodiment) according to the information in the AIS message.
  • the embodiments of the present invention can be applied not only to the Ethernet scenario in the embodiment but also to scenarios such as MPLS/MPLS-TP and optical switching networks.
  • Embodiments of the present invention also provide a storage medium.
  • the foregoing storage medium may be configured to store program code for performing the following steps:
  • the packet is forwarded by executing the pre-configured autonomous function AF instance; wherein the AF instance includes at least one of the following fields: an AF identifier field, AF type field, AF index number field, instruction field, cycle time field, count field, status field.
  • the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory.
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a mobile hard disk e.g., a hard disk
  • magnetic memory e.g., a hard disk
  • modules or steps of the embodiments of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device or distributed over 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 a plurality of integrated circuit modules, or a plurality of the modules or steps are fabricated as a single integrated circuit module.
  • the newly defined AF autonomous function instance is used to forward the packet, and then the OAM-related packet is forwarded, and the problem that the autonomous AF instance cannot complete the OAM-related packet forwarding process is solved. It meets its functional requirements for protection recovery and OAM.

Landscapes

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

Abstract

Disclosed are a packet processing method and device. The method comprises: in a software defined network (SDN) architecture, executing a pre-configured autonomic function (AF) instance to process and forward a packet, wherein, the AF instance comprises at least one of the following fields: an AF identifier field, AF type field, AF index number-of-times field, instruction field, cycle time field, count field, and state field.

Description

报文的处理方法及装置Message processing method and device 技术领域Technical field
本申请涉及但不限于通信领域。This application relates to, but is not limited to, the field of communications.
背景技术Background technique
由于现在的网络暴露出了越来越多的弊病以及人们对网络性能需求的提高,于是研究人员不得不把很多复杂功能加入到路由器的体系结构当中,例如开放式最短路径优先(Open Shortest Path First,简称OSPF),边界网关协议(Border Gateway Protocol,简称为BGP),组播,区分服务,流量工程,网络地址转换(Network Address Translation,简称NAT),防火墙,多协议标签交换(Multi-Protocol Label Switching,简称为MPLS)等等。这就使得路由器等交换设备越来越臃肿而且性能提升的空间越来越小。As the current network exposes more and more ills and people's demand for network performance, researchers have to add a lot of complex functions to the router's architecture, such as Open Shortest Path First. , referred to as OSPF), Border Gateway Protocol (BGP), multicast, differentiated services, traffic engineering, Network Address Translation (NAT), firewall, multi-protocol label switching (Multi-Protocol Label) Switching, referred to as MPLS) and so on. This makes switching devices such as routers more and more bloated and the space for performance improvement is getting smaller and smaller.
然而与网络领域的困境截然不同的是,计算机领域实现了日新月异的发展。仔细回顾计算机领域的发展,不难发现,计算机领域找到了一个简单可用的硬件底层(x86指令集)。由于有了这样一个公用的硬件底层,所以在软件方面,不论是应用程序还是操作系统都取得了飞速的发展。现在很多主张重新设计计算机网络体系结构的人士认为:网络可以复制计算机领域的成功来解决现在网络所遇到的所有问题。在这种思想的指导下,将来的网络必将是这样的:底层的数据通路(交换机、路由器)是“哑的、简单的、最小的”,并定义一个对外开放的关于流表的公用的应用程序编程接口(Application Programming Interface,简称API),同时采用控制器来控制整个网络。未来的研究人员就可以在控制器上自由的调用底层的API来编程,从而实现网络的创新。However, in contrast to the predicament in the network field, the computer field has achieved rapid development. A closer look at the development of the computer field, it is not difficult to find that the computer field has found a simple and usable hardware underlying (x86 instruction set). With such a common hardware underlying, in terms of software, both applications and operating systems have achieved rapid development. Many people who advocate redesigning the computer network architecture now believe that the network can replicate the success of the computer field to solve all the problems encountered by the current network. Under the guidance of this idea, the future network must be like this: the underlying data path (switch, router) is "dumb, simple, minimal" and defines a common open flow table for the flow table. The Application Programming Interface (API) uses a controller to control the entire network. Future researchers can freely call the underlying APIs on the controller to program, thus enabling network innovation.
基于上述的理念,出现了软件定义网络(Software Defined Network,简称SDN),其最初是由美国斯坦福大学clean slate研究组提出的一种新型网络创新架构。目前,其核心技术OpenFlow协议通过将网络设备控制面与数据面分离开来,从而实现了网络流量的灵活控制,为核心网络及应用的创新提供了良好的平台。 Based on the above concept, a Software Defined Network (SDN) emerged, which was originally a new network innovation architecture proposed by the Stanford University clean slate research group. At present, its core technology OpenFlow protocol realizes flexible control of network traffic by separating the control plane of the network device from the data plane, and provides a good platform for innovation of core networks and applications.
起初,SDN框架只应用在以太网场景中,但随着热度越来越高,应用的场景从包交换网络延伸到光交换网络。当前,光交换网络SDN架构的标准化工作由ONF OTWG工作组来负责,主要包括光传输网络(Optical Transport Network,简称为OTN)光层控制、电层控制、邻居发现、跨层技术、保护倒换技术、运行、管理和维护(Operation Administration and Maintenance,简称为OAM)等几个研究课题。ONF发布OpenFlow协议扩展1.0版本,完成了光层控制、电层控制、邻居发现三种技术的协议方案。其可能在后续的1.1版本中加入剩余三个研究课题的协议解决方案,其中保护倒换及OAM技术采用自治功能(Autonomous Function,简称AF)来实现。Initially, the SDN framework was only used in Ethernet scenarios, but as the heat became higher and higher, the application scenario extended from the packet switched network to the optical switching network. Currently, the standardization of the SDN architecture of the optical switching network is handled by the ONF OTWG working group, which mainly includes optical transport network (OTN) optical layer control, electrical layer control, neighbor discovery, cross-layer technology, and protection switching technology. Several research topics, such as Operation Administration and Maintenance (OAM). ONF released the OpenFlow protocol extension version 1.0, and completed the protocol schemes of optical layer control, electrical layer control, and neighbor discovery. It is possible to add a protocol solution for the remaining three research topics in the subsequent 1.1 version, in which the protection switching and the OAM technology are implemented using an autonomous function (AF).
一个AF自治功能是用来代表流表模式的功能对象,写入AF自治功能的逻辑交换机能够执行一系列路径相关的动作。当控制器无法使用已有的流条目控制或者更改交换机行为时,可以使用AF自治功能来完成这些数据路径行为;当控制器无法对特定的刺激因素做出反应或者及时做出反应,也需要将这些控制功能委派给交换机来执行。控制器通过在流表中加入索引来将报文传递给AF自治功能做功能处理。图1是相关技术中的AF自治功能的使用方式的示意图,如图1所示。An AF autonomous function is a functional object used to represent the flow table mode, and a logical switch written to the AF autonomous function can perform a series of path-related actions. When the controller is unable to control or change the behavior of the switch using existing flow entries, AF autonomous functions can be used to perform these data path behaviors; when the controller is unable to respond to specific stimuli or react in time, it will also need to These control functions are delegated to the switch for execution. The controller adds the index to the flow table to deliver the message to the AF autonomous function for functional processing. FIG. 1 is a schematic diagram of a usage mode of an AF autonomous function in the related art, as shown in FIG. 1.
AF自治功能实例存在于AF自治功能表中,AF的定义包括类型的名字以及类型相关的配置,主要是参数和内部状态数据。AF实例存在于AF表中,有唯一的AF ID,一个AF具有如下功能:The AF autonomous function instance exists in the AF autonomous function table. The definition of AF includes the name of the type and the type-related configuration, mainly parameters and internal state data. The AF instance exists in the AF table and has a unique AF ID. One AF has the following functions:
(1)流条目指向某个AF实例,AF实例接收报文并处理,修改报文数据或者中继数据(metadata),修改转发路径;(1) The flow entry points to an AF instance, and the AF instance receives the message and processes it, modifies the message data or the metadata, and modifies the forwarding path.
(2)使用packet-in发送报文到控制器;(2) using packet-in to send a message to the controller;
(3)根据给定参数,由定时器或其他时间触发产生报文;(3) According to the given parameter, the message is triggered by a timer or other time;
(4)根据OpenFlow流水线或者外部的激励因素来操作;(4) operate according to the OpenFlow pipeline or external stimulus factors;
(5)根据OF-Switch或者配置协议配置的信息来操作;(5) Operate according to the information configured by the OF-Switch or the configuration protocol;
(6)提供一些激励因素给OpenFlow流水线(例如通过watch监控AF,提供链路活性信息给组group);(6) Provide some incentives to the OpenFlow pipeline (for example, monitoring the AF through the watch, providing link activity information to the group group);
(7)同其他AF关联,例如支持在不同聚合层次的配置和处理。 (7) Associate with other AFs, for example, support configuration and processing at different aggregation levels.
上述相关技术中的自治功能AF实例还不能满足AF在保护恢复以及OAM方面的功能需求。The autonomous function AF instance in the related art described above cannot meet the functional requirements of the AF in terms of protection recovery and OAM.
发明内容Summary of the invention
以下是对本文详细描述的主题的概述。本概述并非是为了限制权利要求的保护范围。The following is an overview of the topics detailed in this document. This Summary is not intended to limit the scope of the claims.
本文提供了一种报文的处理方法及装置,以至少解决在相关技术中,自治功能AF实例不能完成OAM相关报文的转发处理的问题。The present invention provides a method and a device for processing a message, so as to solve at least the problem that the autonomous function AF instance cannot complete the forwarding process of the OAM-related message in the related art.
根据本发明的一个实施例,提供了一种报文的处理方法,包括:软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对报文进行转发;其中,AF实例中包括以下至少之一字段:AF标识符字段,AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。According to an embodiment of the present invention, a method for processing a packet is provided, which includes: in a software-defined network SDN architecture, forwarding a packet by performing a pre-configured autonomous function AF instance; wherein the AF instance includes at least the following One of the fields: AF identifier field, AF type field, AF index number field, instruction field, cycle time field, count field, status field.
在本发明实施例中,AF标识符字段,用于唯一标识一个AF实例;AF类型字段,用于标识AF实例的类型;AF索引次数字段,用于指示AF实例被引用的次数;指令字段,用于指示AF实例所执行的流水线处理及动作;周期时间字段,用于指示AF实例周期性发送报文的时间或者周期性接收报文的时间;计数字段,用于指示AF实例收到的报文的数目;状态字段,用于指示AF实例是否有效。In the embodiment of the present invention, the AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; the AF index number field is used to indicate the number of times the AF instance is referenced; It is used to indicate the pipeline processing and action performed by the AF instance. The cycle time field is used to indicate the time when the AF instance periodically sends the packet or the time when the packet is periodically received. The count field is used to indicate the report received by the AF instance. The number of texts; a status field that indicates whether the AF instance is valid.
在本发明实施例中,自治功能AF实例对报文进行转发之前,所述方法还包括:通过以下至少之一方式获取报文:接收通过执行AF实例接收控制器下发的报文;接收通过AF实例接收交换机上发送的报文;通过AF实例产生报文。In the embodiment of the present invention, before the autonomous function AF instance forwards the packet, the method further includes: acquiring the packet by using at least one of the following methods: receiving the packet sent by the controller by executing the AF instance; and receiving the packet The AF instance receives the packets sent by the switch. The AF instance generates packets.
在本发明实施例中,在AF实例获取报文之前,所述方法还包括:预先设置AF实例的动作。In the embodiment of the present invention, before the AF instance obtains the message, the method further includes: setting an action of the AF instance in advance.
在本发明实施例中,在AF实例用于实现连续性验证功能时,报文为连接验证消息(Continuity Check Message,简称CCM)报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:输出对等维护实体组端点(Output Peer Maintenance entity assembly End Point,简称Output Peer MEP) 动作、设置-域Set-Field动作、输出端口Output port动作;在AF实例为接收端AF实例时,接收端AF实例的动作包括:输出至外部软件模块,其中,该外部软件模块用于判断是否触发接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的CCM报文。In the embodiment of the present invention, when the AF instance is used to implement the continuity verification function, the message is a Continuity Check Message (CCM) message; when the AF instance is the sender AF instance, the sender AF instance is used. The actions include: Output Peer Maintenance entity assembly End Point (Output Peer MEP) Action, setting-domain Set-Field action, output port Output port action; when the AF instance is the receiving-end AF instance, the action of the receiving-end AF instance includes: outputting to an external software module, wherein the external software module is used to determine whether Triggering the Receiver Maintaining the Entity Group The reverse AF instance in the endpoint MEP generates a CCM message with the remote defect indication RDI set.
在本发明实施例中,Set-Field动作包括以下至少之一:设置源媒体接入控制(Media Access Control,简称MAC);设置目的MAC;设置以太网类型字段;设置维护实体组层次;设置运行管理维护OAM协议版本;设置CCM报文类型;设置标识位;设置类型长度值(Type Length Value,简称TLV)的偏移量;设置序列号;设置发送端维护实体组端点(Maintenance entity assembly End Point,简称MEP)的标识;设置维护实体组(Maintenance entity assembly,简称MEG)标识。In the embodiment of the present invention, the Set-Field action includes at least one of the following: setting a source media access control (MAC); setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group level; setting the operation Manage and maintain the OAM protocol version; set the CCM packet type; set the identifier bit; set the offset of the Type Length Value (TLV); set the serial number; set the maintenance entity assembly end point (Maintenance entity assembly End Point) , referred to as the MEP) identifier; set the Maintenance Entity Group (MEG) logo.
在本发明实施例中,在AF实例用于实现以太网环回时,报文为环回报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间端AF实例时,AF实例的动作包括:交换源地址和目的地址,设置环回报文的运行编码OpCode为2,设置输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port.
在本发明实施例中,在AF实例用于实现以太网路径跟踪功能时,报文为路径跟踪消息(Link Trace Message,简称LTM)报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间节点中的AF实例时,AF实例的动作包括:生存时间值(Time To Line,简称TTL)减1,将源地址设置为AF实例所在维护实体组中间节点或者尾节点的媒体接入控制MAC地址,将LTM出口标识类型长度值TLV值字段设置为当前中继LTM报文的节点标识,输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet path tracking function, the packet is a Link Trace Message (LTM) packet; when the AF instance is a transmitting AF instance, the transmitting end AF The action of the example includes: sending to the port; when the AF instance is the AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance includes: Time To Line (TTL) minus 1 and setting the source address The LMS exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port is the media access control MAC address of the intermediate node or the tail node of the maintenance entity group where the AF instance is located.
在本发明实施例中,在AF实例用于实现以太网路径跟踪功能时,报文为路径跟踪消息LTM报文;在AF实例为接收端AF实例或者中间节点中的AF实例时,AF实例的动作包括:设置OAM报文中的OpCode字段,将源MAC地址字段拷贝到以太网头部的目的MAC地址字段,删除源MAC地址字段目的MAC地址字段,添加下一个出口标识字段到标识TLV中,输出端口。 In the embodiment of the present invention, when the AF instance is used to implement the Ethernet path tracking function, the message is a path tracking message LTM message; when the AF instance is a receiving end AF instance or an AF instance in an intermediate node, the AF instance is The action includes: setting an OpCode field in the OAM packet, copying the source MAC address field to the destination MAC address field of the Ethernet header, deleting the destination MAC address field of the source MAC address field, and adding the next exit identifier field to the identifier TLV. Output port.
在本发明实施例中,在AF实例用于实现故障指示功能时,报文为告警指示信号AIS报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:产生新的报文;设置以太网类型字段;设置OAM报文类型为AIS报文;设置OAM协议版本字段;设置标识位;设置源MAC;设置目的MAC;设置维护实体组MEG层次。In the embodiment of the present invention, when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report. Set the Ethernet type field; set the OAM packet type to AIS packet; set the OAM protocol version field; set the identifier bit; set the source MAC; set the destination MAC; and set the maintenance entity group MEG level.
在AF实例为接收端AF实例时,接收端AF实例的动作包括:将经过接收端AF实例所在MEP验证成功后的AIS报文发送给外部软件模块;其中,该外部软件模块用于判断是否触发所述接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的AIS报文。When the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: sending the AIS message that has been successfully verified by the MEP of the receiving end AF instance to the external software module; wherein the external software module is used to determine whether to trigger The reverse AF instance in the receiving end maintenance entity group endpoint MEP generates an AIS message with the remote defect indication RDI set.
根据本发明的另一实施例,提供了一种报文的处理装置,包括:转发模块,设置为:在软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对报文进行转发;其中,AF实例中包括以下至少之一字段:AF标识符字段,AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。According to another embodiment of the present invention, a packet processing apparatus is provided, including: a forwarding module, configured to: in a software-defined network SDN architecture, forward a packet by executing a pre-configured autonomous function AF instance; The AF instance includes at least one of the following fields: an AF identifier field, an AF type field, an AF index number field, an instruction field, a cycle time field, a count field, and a status field.
在本发明实施例中,AF标识符字段,用于唯一标识一个AF实例;AF类型字段,用于标识AF实例的类型;AF索引次数字段,用于指示AF实例被引用的次数;指令字段,用于指示AF实例所执行的动作;周期时间字段,用于指示AF实例周期性发送报文的时间或者周期性接收报文的时间;计数字段,用于指示AF实例收到的报文的数目;状态字段,用于指示AF实例是否有效。In the embodiment of the present invention, the AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; the AF index number field is used to indicate the number of times the AF instance is referenced; The action is used to indicate the action performed by the AF instance. The cycle time field is used to indicate the time when the AF instance periodically sends a message or the time when the message is periodically received. The count field is used to indicate the number of packets received by the AF instance. The status field is used to indicate whether the AF instance is valid.
在本发明实施例中,装置还包括:获取模块,设置为:通过以下至少之一方式获取报文:接收通过执行AF实例接收控制器下发的报文;接收通过AF实例接收交换机上发送的报文;通过AF实例产生报文。In the embodiment of the present invention, the device further includes: an acquiring module, configured to: obtain a packet by using at least one of the following methods: receiving a packet sent by the controller by executing the AF instance, and receiving the packet sent by the AF instance to receive the switch The packet is generated by the AF instance.
在本发明实施例中,装置还包括:设置模块,设置为:预先设置AF实例的动作。In the embodiment of the present invention, the device further includes: a setting module, configured to: preset an action of the AF instance.
在本发明实施例中,在AF实例用于实现远端故障探测时,报文为连接验证消息CCM报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:输出对等维护实体组端点Output Peer MEP动作、设置-域Set-Field动作、输出端口Output port动作;在AF实例为接收端AF实例时,接收端 AF实例的动作包括:输出至外部软件模块。In the embodiment of the present invention, when the AF instance is used for remote fault detection, the packet is a connection verification message CCM message; when the AF instance is the sender AF instance, the action of the sender AF instance includes: output peering Maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, output port Output port action; when the AF instance is the receiving end AF instance, the receiving end The actions of the AF instance include: output to an external software module.
在本发明实施例中,Set-Field动作包括以下至少之一:设置源媒体接入控制MAC;设置目的MAC;设置以太网类型字段;设置维护实体组层次;设置运行管理维护OAM协议版本;设置CCM报文类型;设置标识位;设置类型长度值TLV的偏移量;设置序列号;设置发送端MEP的标识;设置维护实体组MEG标识。In the embodiment of the present invention, the Set-Field action includes at least one of: setting a source media access control MAC; setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group level; setting an operation management and maintenance OAM protocol version; CCM message type; set the identification bit; set the offset of the type length value TLV; set the serial number; set the identifier of the MEP at the sending end; set the MEG identifier of the maintenance entity group.
在本发明实施例中,在AF实例用于实现以太网环回时,报文为环回报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间端AF实例时,AF实例的动作包括:交换源地址和目的地址,设置环回报文的运行编码OpCode为2,设置输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port.
在本发明实施例中,在AF实例用于实现以太网路径跟踪功能时,报文为路径跟踪消息LTM报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间节点中的AF实例时,AF实例的动作包括:生存时间值TTL减1,将源地址设置为AF实例所在维护实体组中间节点或者尾节点的媒体接入控制MAC地址,将LTM出口标识类型长度值TLV值字段设置为当前中继LTM报文的节点标识,输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet path tracking function, the packet is a path tracking message LTM packet; when the AF instance is the transmitting AF instance, the action of the transmitting AF instance includes: sending to If the AF instance is the AF instance of the receiving end AF instance or the intermediate node, the action of the AF instance includes: the time-to-live value TTL is decreased by 1, and the source address is set to the media of the intermediate node or the tail node of the maintenance entity group where the AF instance is located. The access control MAC address is set, and the LTM exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port.
在本发明实施例中,在AF实例用于实现以太网路径跟踪功能时,报文为路径跟踪消息LTM报文;在AF实例为接收端AF实例或者中间节点中的AF实例时,AF实例的动作包括:设置OAM报文中的OpCode字段,将源MAC地址字段拷贝到以太网头部的目的MAC地址字段,删除源MAC地址字段目的MAC地址字段,添加下一个出口标识字段到标识TLV中,输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet path tracking function, the message is a path tracking message LTM message; when the AF instance is a receiving end AF instance or an AF instance in an intermediate node, the AF instance is The action includes: setting an OpCode field in the OAM packet, copying the source MAC address field to the destination MAC address field of the Ethernet header, deleting the destination MAC address field of the source MAC address field, and adding the next exit identifier field to the identifier TLV. Output port.
在本发明实施例中,在AF实例用于实现故障指示功能时,报文为告警指示信号AIS报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:产生新的报文;设置以太网类型字段;设置OAM报文类型为AIS报文;设置OAM协议版本字段;设置标识位;设置源MAC;设置目的MAC;设置MEG层次。 In the embodiment of the present invention, when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report. Set the Ethernet type field; set the OAM packet type to AIS packet; set the OAM protocol version field; set the identifier bit; set the source MAC; set the destination MAC; and set the MEG level.
一种计算机可读存储介质,存储有计算机可执行指令,所述计算机可执行指令用于执行上述任一项的方法。A computer readable storage medium storing computer executable instructions for performing the method of any of the above.
通过本发明实施例,采用新定义的AF自治功能实例,对报文进行转发,进而能够完成对OAM相关报文的转发,解决了自治功能AF实例不能完成OAM相关报文的转发处理的问题,满足了其在保护恢复以及OAM方面的功能需求。With the embodiment of the present invention, the newly defined AF autonomous function instance is used to forward the packet, and then the OAM-related packet is forwarded, and the problem that the autonomous AF instance cannot complete the OAM-related packet forwarding process is solved. It meets its functional requirements for protection recovery and OAM.
在阅读并理解了附图和详细描述后,可以明白其他方面。Other aspects will be apparent upon reading and understanding the drawings and detailed description.
附图概述BRIEF abstract
图1是相关技术中的AF自治功能的使用方式的示意图;1 is a schematic diagram of a usage mode of an AF autonomous function in the related art;
图2是根据本发明实施例的报文的处理方法的流程图一;2 is a flowchart 1 of a method for processing a message according to an embodiment of the present invention;
图3是根据本发明实施例的报文的处理方法的流程图二;FIG. 3 is a second flowchart of a method for processing a message according to an embodiment of the present invention; FIG.
图4是根据本发明实施例的报文的处理方法的流程图三;4 is a third flowchart of a method for processing a message according to an embodiment of the present invention;
图5是根据本发明实施例的报文的处理装置的结构框图一;FIG. 5 is a structural block diagram 1 of a processing apparatus for a message according to an embodiment of the present invention; FIG.
图6是根据本发明实施例的报文的处理装置的结构框图二;FIG. 6 is a second structural block diagram of a message processing apparatus according to an embodiment of the present invention; FIG.
图7是根据本发明实施例的报文的处理装置的结构框图三;7 is a block diagram 3 of a processing apparatus of a message according to an embodiment of the present invention;
图8是根据本发明可选实施例提供的新定义的AF自治功能实例的示意图;FIG. 8 is a schematic diagram of a newly defined AF autonomous function example provided according to an alternative embodiment of the present invention; FIG.
图9是根据本发明可选实施例的OAM相关的报文字段的示意图;9 is a schematic diagram of an OAM related message field according to an alternative embodiment of the present invention;
图10是根据本发明可选实施例的连接验证功能流程示意图;10 is a flow chart showing a connection verification function according to an alternative embodiment of the present invention;
图11是根据本发明可选实施例的一个CCM报文格式的示意图;11 is a schematic diagram of a CCM message format according to an alternative embodiment of the present invention;
图12是根据本发明可选实施例的环回功能流程示意图;12 is a schematic flow chart of a loopback function according to an alternative embodiment of the present invention;
图13是根据本发明可选实施例的路径跟踪功能流程示意图;FIG. 13 is a schematic flowchart of a path tracking function according to an alternative embodiment of the present invention; FIG.
图14是根据本发明可选实施例的故障指示功能流程示意图。 FIG. 14 is a flow chart showing a fault indication function according to an alternative embodiment of the present invention.
本发明的实施方式Embodiments of the invention
下文中将参考附图并结合实施例来详细说明本发明的实施方式。需要说明的是,在不冲突的情况下,本申请中的实施例及实施例中的特征可以相互组合。Embodiments of the present 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.
需要说明的是,本文的说明书和权利要求书及上述附图中的术语“第一”、“第二”等是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。It should be noted that the terms "first", "second" and the like in the specification and claims of the present specification and the above drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or order.
在本实施例中提供了一种报文的处理方法,图2是根据本发明实施例的报文的处理方法的流程图一,如图2所示,该流程包括如下步骤:A method for processing a packet is provided in this embodiment. FIG. 2 is a flowchart 1 of a method for processing a packet according to an embodiment of the present invention. As shown in FIG. 2, the process includes the following steps:
步骤S202,软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对报文进行转发;其中,AF实例中包括以下至少之一字段:AF标识符字段,AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。Step S202: The software-defined network SDN architecture forwards the packet by executing the pre-configured autonomous function AF instance. The AF instance includes at least one of the following fields: an AF identifier field, an AF type field, and an AF index number field. , instruction field, cycle time field, count field, status field.
上述AF标识符字段,用于唯一标识一个AF实例;AF类型字段,用于标识AF实例的类型;AF索引次数字段,用于指示AF实例被引用的次数,如果被引用次数为0,则交换机删除该AF实例,如果该引用次数设置为最大值,则表示该AF实例永久有效,交换机不会删除该AF实例;指令字段,用于指示AF实例所执行的流水线处理及动作;周期时间字段,用于指示AF实例周期性发送报文的时间;计数字段,用于指示AF实例收到的报文的数目;状态字段,用于指示AF实例是否有效。The AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; and the AF index number field is used to indicate the number of times the AF instance is referenced. If the number of times referenced is 0, the switch Deleting the AF instance, if the number of references is set to the maximum value, the AF instance is permanently valid, the switch does not delete the AF instance; the instruction field is used to indicate the pipeline processing and actions performed by the AF instance; the cycle time field, The time is used to indicate the time when the AF instance periodically sends the message; the count field is used to indicate the number of the packets received by the AF instance; and the status field is used to indicate whether the AF instance is valid.
上述报文可以为OAM报文,也可以是其他形式的报文。The above-mentioned packets can be OAM packets or other types of packets.
通过上述步骤,通过新定义的AF实例对报文进行转发,能够实现对OAM相关报文的转发,进而解决了在相关技术中,自治功能AF实例不能完成OAM相关报文的转发处理的问题,满足了其在保护恢复以及OAM方面的功能需求。After the packet is forwarded by the newly defined AF instance, the forwarding of the OAM-related packet can be implemented, and the problem that the autonomous AF instance cannot complete the forwarding of the OAM-related packet can be solved. It meets its functional requirements for protection recovery and OAM.
在本发明的一个可选实施例中,图3是根据本发明实施例的报文的处理方法的流程图二,如图3所示,在步骤S202之前,上述方法还包括:In an optional embodiment of the present invention, FIG. 3 is a flowchart of a method for processing a message according to an embodiment of the present invention. As shown in FIG. 3, before the step S202, the method further includes:
步骤S302,通过以下至少之一方式获取报文:接收通过执行AF实例接收控制器下发的报文;接收通过AF实例接收交换机上发送的报文;通过AF 实例产生报文。In step S302, the packet is obtained by receiving the message sent by the controller by executing the AF instance; receiving the packet sent by the switch through the AF instance; The instance generates a message.
AF实例可以为首节点中的AF实例(即发送端AF实例),也可以为中间节点中的AF实例,也可以是尾节点中的AF实例(即接收端AF实例),上述通过AF实例产生报文主要侧重指通过首节点中的AF实例产生报文,其他两种方式对AF实例并不做任何的限定,即其既可以是发送端AF实例,也可以是中间节点的AF实例,也可以是接收端AF实例。The AF instance may be an AF instance in the first node (that is, the sender AF instance), or an AF instance in the intermediate node, or an AF instance in the tail node (that is, the receiving end AF instance), and the foregoing report is generated by the AF instance. The main focus of the text is to generate a packet through the AF instance in the first node. The other two methods do not limit the AF instance. That is, it can be either the AF instance of the sender or the AF instance of the intermediate node. Is the receiving end AF instance.
在本发明实施例中,图4是根据本发明实施例的报文的处理方法的流程图三,如图4所示,在步骤S302之前,上述方法包括:In the embodiment of the present invention, FIG. 4 is a flowchart 3 of a method for processing a packet according to an embodiment of the present invention. As shown in FIG. 4, before the step S302, the foregoing method includes:
步骤S402,预先设置AF实例的动作。In step S402, the action of the AF instance is set in advance.
需要说明的是,上述AF实例的动作可以指对AF实例中的指令字段进行扩充,即扩展AF实例中指令字段所指示的动作,进而能够进一步地完成OAM相关报文的转发处理,进而更好的满足AF在保护恢复以及OAM方面的功能需求。It should be noted that the action of the foregoing AF instance may be performed to augment the instruction field in the AF instance, that is, to extend the action indicated by the instruction field in the AF instance, thereby further completing the forwarding process of the OAM-related packet, thereby further improving Meet the functional requirements of AF in terms of protection recovery and OAM.
上述AF实例可以实现不同的功能,比如实现远端故障探测功能,以太网环回功能,路径跟踪功能,故障指示功能,在完成不同的功能时,对AF实例扩展的动作也有所不同。The AF instance can implement different functions, such as remote fault detection, Ethernet loopback, path tracking, and fault indication. When different functions are completed, the AF instance extension actions are different.
在一个可选的实施例中,在AF实例用于实现远端故障探测时,报文为连接验证消息CCM报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:输出对等维护实体组端点Output Peer MEP动作、设置-域Set-Field动作、输出端口Output port动作;在AF实例为接收端AF实例时,接收端AF实例的动作包括:输出至外部软件模块,其中,该外部软件模块用于判断是否触发接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的CCM报文。In an optional embodiment, when the AF instance is used for remote fault detection, the message is a connection verification message CCM message; when the AF instance is a sender AF instance, the action of the sender AF instance includes: output Peer-to-peer maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, output port Output port action; when the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: outputting to an external software module, wherein The external software module is configured to determine whether to trigger the reverse AF instance in the endpoint maintenance MEE of the receiving end maintenance entity group to generate a CCM message with the remote defect indication RDI set.
在外部软件模块在单位周期时间内没有接收到发送端AF发送过来的报文的情况下,则会周期性的触发反向AF实例发送反向CCM报文给发送端,其中,该反向CCM报文中设置了RDI标识位。If the external software module does not receive the packet sent by the transmitting end AF in the unit period, the reverse AF instance is periodically triggered to send the reverse CCM packet to the sending end, where the reverse CCM is sent. The RDI flag is set in the message.
上述发送端AF实例的动作的设置可以有一定的顺序,比如,先设置输出对等维护实体组端点Output Peer MEP动作,再设置Set Field动作,最后设 置Output port动作。其中,Output Peer MEP动作用于指示需要产生一个新的报文,并发送至对端MEP。The setting of the action of the AF instance on the sending end may be in a certain order. For example, first set the output peer peer group Peer MEP action, and then set the Set Field action, and finally set Set the Output port action. The Output Peer MEP action is used to indicate that a new packet needs to be generated and sent to the peer MEP.
上述Set-Field动作包括以下至少之一:设置源媒体接入控制MAC;设置目的MAC;设置以太网类型字段;设置维护实体组层次;设置运行管理维护OAM协议版本;设置CCM报文类型;设置标识位;设置类型长度值TLV的偏移量;设置序列号;设置发送端MEP的标识;设置维护实体组MEG标识。需要说明的是,设置CCM报文类型,设置其对应的字段值为1,;上述标识位可以包括两个,一个为RDI标识,一个为发送周期标识,用于标识路径是否出现故障。The Set-Field action includes at least one of the following: setting a source media access control MAC; setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group hierarchy; setting an operation management and maintenance OAM protocol version; setting a CCM message type; Identification bit; set the offset of the type length value TLV; set the serial number; set the identifier of the sender MEP; set the maintenance entity group MEG identifier. It should be noted that the CCM packet type is set, and the corresponding field value is set to 1. The foregoing identifier bit may include two, one is an RDI identifier, and one is a sending period identifier, which is used to identify whether the path is faulty.
在本发明实施例中,在AF实例用于实现以太网环回时,报文为环回报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间端AF实例时,AF实例的动作包括:交换源地址和目的地址,设置环回报文的运行编码OpCode为2,设置输出端口。需要说明的是,将环回报文中的OpCode设置为2,用于指示上述OAM报文的类型为环回应答LBR报文。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port. It should be noted that the OpCode in the ring report is set to 2, and is used to indicate that the type of the OAM message is a loopback response LBR message.
在本发明实施例中,在AF实例用于实现以太网路径跟踪功能时,报文为路径跟踪消息LTM报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间节点中的AF实例时,AF实例的动作包括:生存时间值TTL减1,将源地址设置为AF实例所在维护实体组中间节点或者尾节点的媒体接入控制MAC地址,将LTM出口标识类型长度值TLV值字段设置为当前中继LTM报文的节点标识,输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet path tracking function, the packet is a path tracking message LTM packet; when the AF instance is the transmitting AF instance, the action of the transmitting AF instance includes: sending to If the AF instance is the AF instance of the receiving end AF instance or the intermediate node, the action of the AF instance includes: the time-to-live value TTL is decreased by 1, and the source address is set to the media of the intermediate node or the tail node of the maintenance entity group where the AF instance is located. The access control MAC address is set, and the LTM exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port.
另外,在AF实例为接收端AF实例或者中间节点中的AF实例时,上述AF实例的动作也可以包括:设置OAM报文中的OpCode字段,将源MAC地址字段拷贝到以太网头部的目的MAC地址字段,删除源MAC地址字段目的MAC地址字段,添加下一个出口标识字段到标识TLV中,输出端口。In addition, when the AF instance is the AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance may also include: setting an OpCode field in the OAM packet, and copying the source MAC address field to the Ethernet header. In the MAC address field, delete the destination MAC address field of the source MAC address field, add the next exit identifier field to the identifier TLV, and output the port.
在本发明实施例中,在AF实例用于实现故障指示功能时,报文为告警指示信号AIS报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:产生新的报文;设置以太网类型字段;设置OAM报文类型为AIS报 文;设置OAM协议版本字段;设置标识位;设置源MAC;设置目的MAC;设置MEG层次。In the embodiment of the present invention, when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report. Text; set the Ethernet type field; set the OAM packet type to AIS Set the OAM protocol version field; set the flag bit; set the source MAC; set the destination MAC; set the MEG level.
在所述AF实例为接收端AF实例时,所述接收端AF实例的动作包括:将经过所述接收端AF实例所在MEP验证成功后的AIS报文发送给外部软件模块;其中,所述外部软件模块用于判断是否触发所述接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的AIS报文。When the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: sending an AIS message that has been successfully verified by the MEP of the receiving end AF instance to an external software module; wherein the external The software module is configured to determine whether to trigger the reverse AF instance in the MEP of the receiving end maintenance entity group to generate an AIS message with the remote defect indication RDI.
该外部软件模块根据接收到AIS报文的信息,不再定期触发该反响AF实例产生设置了RDI的AIS报文。The external software module does not periodically trigger the reverberation AF instance to generate an AIS packet with the RDI set according to the information of the received AIS packet.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到根据上述实施例的方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本申请的技术方案本质上或者说对相关技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括多个指令用以使得一台终端设备(可以是手机,计算机,服务器,或者网络设备等)执行本发明实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course, by hardware, but in many cases, the former is A better implementation. Based on such understanding, the technical solution of the present application, which is essential or contributes to the related art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk, CD-ROM). The method includes a plurality of instructions for causing a terminal device (which may be a mobile phone, a computer, a server, or a network device, etc.) to perform the method described in the embodiments of the present invention.
在本实施例中还提供了一种报文的处理装置,该装置用于实现上述实施例及实施方式,已经进行过说明的不再赘述。如以下所使用的,术语“模块”可以实现预定功能的软件和/或硬件的组合。尽管以下实施例所描述的装置可以以软件来实现,但是硬件,或者软件和硬件的组合的实现也是可能并被构想的。In the embodiment, a message processing device is also provided, which is used to implement the foregoing embodiments and implementation manners, and has not been described again. As used below, the term "module" may implement a combination of software and/or hardware of a predetermined function. Although the devices described in the following embodiments may be 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 a processing apparatus of a message according to an embodiment of the present invention. As shown in FIG. 5, the apparatus includes:
转发模块52,设置为:在软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对报文进行转发;其中,AF实例中包括以下至少之一字段:AF标识符字段,AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。The forwarding module 52 is configured to forward the packet by executing the preset autonomous function AF instance in the software-defined network SDN architecture. The AF instance includes at least one of the following fields: an AF identifier field, and an AF type field. , AF index number field, instruction field, cycle time field, count field, status field.
上述AF标识符字段,用于唯一标识一个AF实例;AF类型字段,用于标识AF实例的类型;AF索引次数字段,用于指示AF实例被引用的次数, 如果被引用次数为0,则交换机删除该AF实例,如果该引用次数设置为最大值,则表示该AF实例永久有效,交换机不会删除该AF实例;指令字段,用于指示AF实例所执行的流水线处理及动作;周期时间字段,用于指示AF实例周期性发送报文的时间;计数字段,用于指示AF实例收到的报文的数目;状态字段,用于指示AF实例是否有效。The AF identifier field is used to uniquely identify an AF instance; the AF type field is used to identify the type of the AF instance; and the AF index number field is used to indicate the number of times the AF instance is referenced. If the number of times of reference is 0, the switch deletes the AF instance. If the number of times of the reference is set to the maximum value, the AF instance is permanently valid, the switch does not delete the AF instance, and the command field is used to indicate the execution of the AF instance. Pipeline processing and action; the cycle time field is used to indicate the time when the AF instance periodically sends the message; the count field is used to indicate the number of packets received by the AF instance; and the status field is used to indicate whether the AF instance is valid.
上述报文可以输OAM报文,也可以是其他形式的报文。The above messages can be used to transmit OAM messages or other forms of messages.
通过上述装置,通过新定义的AF实例对报文进行转发,能够实现对OAM相关报文的转发,进而解决了在相关技术中,自治功能AF实例不能完成OAM相关报文的转发处理的问题,满足了其在保护恢复以及OAM方面的功能需求。The device can forward the OAM-related packet by using the newly-defined AF instance to forward the OAM-related packet, and solve the problem that the autonomous AF instance cannot complete the OAM-related packet forwarding process in the related art. It meets its functional requirements for protection recovery and OAM.
在本发明的一个可选实施例中,图6是根据本发明实施例的报文的处理装置的结构框图二,如图6所示,上述装置还包括:In an alternative embodiment of the present invention, FIG. 6 is a structural block diagram 2 of a processing apparatus for a message according to an embodiment of the present invention. As shown in FIG. 6, the apparatus further includes:
获取模块62,与上述转发模块52连接,设置为:通过以下至少之一方式获取报文:接收通过执行AF实例接收控制器下发的报文;接收通过AF实例接收交换机上发送的报文;通过AF实例产生报文。The obtaining module 62 is connected to the forwarding module 52, and is configured to: obtain a packet by using at least one of the following methods: receiving a packet sent by the controller by executing the AF instance, and receiving the packet sent by the switch by the AF instance; The message is generated by the AF instance.
AF实例可以为首节点中的AF实例(即发送端AF实例),也可以为中间节点中的AF实例,也可以是尾节点中的AF实例(即接收端AF实例),上述通过AF实例产生报文主要侧重指通过首节点中的AF实例产生报文,其他两种方式对AF实例并不做任何的限定,即其既可以是发送端AF实例,也可以是中间节点的AF实例,也可以是接收端AF实例。The AF instance may be an AF instance in the first node (that is, the sender AF instance), or an AF instance in the intermediate node, or an AF instance in the tail node (that is, the receiving end AF instance), and the foregoing report is generated by the AF instance. The main focus of the text is to generate a packet through the AF instance in the first node. The other two methods do not limit the AF instance. That is, it can be either the AF instance of the sender or the AF instance of the intermediate node. Is the receiving end AF instance.
图7是根据本发明实施例的报文的处理装置的结构框图三,如图7所示,上述装置还包括:FIG. 7 is a structural block diagram 3 of a processing apparatus of a message according to an embodiment of the present invention. As shown in FIG. 7, the apparatus further includes:
设置模块72,与上述获取模块62连接,设置为:预先设置AF实例的动作。The setting module 72 is connected to the obtaining module 62, and is configured to set an action of the AF instance in advance.
上述AF实例的动作可以指对AF实例中的指令字段进行扩充,即扩展AF实例中指令字段所指示的动作,进而能够进一步地完成OAM相关报文的转发处理,进而更好的满足AF在保护恢复以及OAM方面的功能需求。The action of the foregoing AF instance may be performed to augment the instruction field in the AF instance, that is, to extend the action indicated by the instruction field in the AF instance, thereby further completing the forwarding process of the OAM-related packet, thereby better satisfying the AF protection. Recovery and functional requirements for OAM.
上述AF实例可以实现不同的功能,比如实现远端故障探测功能,以太 网环回功能,路径跟踪功能,故障指示功能,在完成不同的功能时,对AF实例扩展的动作也有所不同。The above AF instance can implement different functions, such as remote fault detection. The network loopback function, the path tracking function, and the fault indication function also have different actions for the AF instance extension when different functions are completed.
在一个可选的实施例中,在AF实例用于实现远端故障探测时,报文为连接验证消息CCM报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:输出对等维护实体组端点Output Peer MEP动作、设置-域Set-Field动作、输出端口Output port动作;在AF实例为接收端AF实例时,接收端AF实例的动作包括:输出至外部软件模块,其中,该外部软件模块用于判断是否触发接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的CCM报文。In an optional embodiment, when the AF instance is used for remote fault detection, the message is a connection verification message CCM message; when the AF instance is a sender AF instance, the action of the sender AF instance includes: output Peer-to-peer maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, output port Output port action; when the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: outputting to an external software module, wherein The external software module is configured to determine whether to trigger the reverse AF instance in the endpoint maintenance MEE of the receiving end maintenance entity group to generate a CCM message with the remote defect indication RDI set.
在外部软件模块在单位周期时间内没有接收到发送端AF发送过来的报文的情况下,则会周期性的触发反向AF实例发送反向CCM报文给发送端,其中,该反向CCM报文中设置了RDI标识位。If the external software module does not receive the packet sent by the transmitting end AF in the unit period, the reverse AF instance is periodically triggered to send the reverse CCM packet to the sending end, where the reverse CCM is sent. The RDI flag is set in the message.
上述发送端AF实例的动作的设置可以有一定的顺序,比如,先设置输出对等维护实体组端点Output Peer MEP动作,再设置Set Field动作,最后设置Output port动作。其中,Output Peer MEP动作用于指示需要产生一个新的报文,并发送至对端MEP。The setting of the action of the AF instance on the sending end may be in a certain order. For example, first set the output peer Peer MEP action of the output peer group, set the Set Field action, and finally set the Output port action. The Output Peer MEP action is used to indicate that a new packet needs to be generated and sent to the peer MEP.
上述Set-Field动作包括以下至少之一:设置源媒体接入控制MAC;设置目的MAC;设置以太网类型字段;设置维护实体组层次;设置运行管理维护OAM协议版本;设置CCM报文类型;设置标识位;设置类型长度值TLV的偏移量;设置序列号;设置发送端MEP的标识;设置维护实体组MEG标识。需要说明的是,设置CCM报文类型,设置其对应的字段值为1,;上述标识位可以包括两个,一个为RDI标识,一个为发送周期标识,用于标识路径是否出现故障。The Set-Field action includes at least one of the following: setting a source media access control MAC; setting a destination MAC; setting an Ethernet type field; setting a maintenance entity group hierarchy; setting an operation management and maintenance OAM protocol version; setting a CCM message type; Identification bit; set the offset of the type length value TLV; set the serial number; set the identifier of the sender MEP; set the maintenance entity group MEG identifier. It should be noted that the CCM packet type is set, and the corresponding field value is set to 1. The foregoing identifier bit may include two, one is an RDI identifier, and one is a sending period identifier, which is used to identify whether the path is faulty.
在本发明实施例中,在AF实例用于实现以太网环回时,报文为环回报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间端AF实例时,AF实例的动作包括:交换源地址和目的地址,设置环回报文的运行编码OpCode为2,设置输出端口。需要说明的是,将环回报文中的OpCode设置为2,用于指示上述OAM报文的类型为环回应答LBR报文。 In the embodiment of the present invention, when the AF instance is used to implement the Ethernet loopback, the packet is a loopback text; when the AF instance is the sender AF instance, the action of the sender AF instance includes: sending to the port; When the instance is the receiving end AF instance or the intermediate end AF instance, the action of the AF instance includes: exchanging the source address and the destination address, setting the running code of the loop report text OpCode to 2, and setting the output port. It should be noted that the OpCode in the ring report is set to 2, and is used to indicate that the type of the OAM message is a loopback response LBR message.
在本发明实施例中,在AF实例用于实现以太网路径跟踪功能时,报文为路径跟踪消息LTM报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:发送到端口;在AF实例为接收端AF实例或者中间节点中的AF实例时,AF实例的动作包括:生存时间值TTL减1,将源地址设置为AF实例所在维护实体组中间节点或者尾节点的媒体接入控制MAC地址,将LTM出口标识类型长度值TLV值字段设置为当前中继LTM报文的节点标识,输出端口。In the embodiment of the present invention, when the AF instance is used to implement the Ethernet path tracking function, the packet is a path tracking message LTM packet; when the AF instance is the transmitting AF instance, the action of the transmitting AF instance includes: sending to If the AF instance is the AF instance of the receiving end AF instance or the intermediate node, the action of the AF instance includes: the time-to-live value TTL is decreased by 1, and the source address is set to the media of the intermediate node or the tail node of the maintenance entity group where the AF instance is located. The access control MAC address is set, and the LTM exit identifier type length value TLV value field is set to the node identifier of the current relay LTM packet, and the output port.
另外,在AF实例为接收端AF实例或者中间节点中的AF实例时,上述AF实例的动作也可以包括:设置OAM报文中的OpCode字段,将源MAC地址字段拷贝到以太网头部的目的MAC地址字段,删除源MAC地址字段目的MAC地址字段,添加下一个出口标识字段到标识TLV中,输出端口。In addition, when the AF instance is the AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance may also include: setting an OpCode field in the OAM packet, and copying the source MAC address field to the Ethernet header. In the MAC address field, delete the destination MAC address field of the source MAC address field, add the next exit identifier field to the identifier TLV, and output the port.
在本发明实施例中,在AF实例用于实现故障指示功能时,报文为告警指示信号AIS报文;在AF实例为发送端AF实例时,发送端AF实例的动作包括:产生新的报文;设置以太网类型字段;设置OAM报文类型为AIS报文;设置OAM协议版本字段;设置标识位;设置源MAC;设置目的MAC;设置MEG层次。In the embodiment of the present invention, when the AF instance is used to implement the fault indication function, the packet is an alarm indication signal AIS packet; when the AF instance is the sender AF instance, the action of the sender AF instance includes: generating a new report. Set the Ethernet type field; set the OAM packet type to AIS packet; set the OAM protocol version field; set the identifier bit; set the source MAC; set the destination MAC; and set the MEG level.
在所述AF实例为接收端AF实例时,所述接收端AF实例的动作包括:将经过所述接收端AF实例所在MEP验证成功后的AIS报文发送给外部处理模块;其中,所述外部软件模块用于判断是否触发所述接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的AIS报文。When the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: sending an AIS message that has been successfully verified by the MEP of the receiving end AF instance to an external processing module; wherein the external The software module is configured to determine whether to trigger the reverse AF instance in the MEP of the receiving end maintenance entity group to generate an AIS message with the remote defect indication RDI.
需要说明的是,该外部软件模块根据接收到AIS报文的信息,不再定期触发该反响AF实例产生设置了RDI的AIS报文。It should be noted that the external software module does not periodically trigger the reverberation AF instance to generate an AIS packet with the RDI set according to the information of the received AIS packet.
需要说明的是,上述模块是可以通过软件或硬件来实现的,对于后者,可以通过以下方式实现,但不限于此:上述模块均位于同一处理器中;或者,上述模块分别位于多个处理器中。It should be noted that the above modules may be implemented by software or hardware. For the latter, the foregoing may be implemented by, but not limited to, the foregoing modules are all located in the same processor; or, the modules are respectively located in multiple processes. In the device.
以下结合可选的实施例作进一步地解释。The following is further explained in conjunction with alternative embodiments.
本发明实施例定义了一种基于模式的自治功能AF解决方案,即通过当前标准化的OpenFlow对象以及定义一些新的对象,用来满足AF自治功能在 保护恢复以及OAM方面的功能需求。The embodiment of the present invention defines a mode-based autonomous function AF solution, that is, through the current standardized OpenFlow object and defining some new objects, to satisfy the AF autonomous function. Protection recovery and functional requirements for OAM.
图8是根据本发明可选实施例提供的新定义的AF自治功能实例的示意图,如图8所示,FIG. 8 is a schematic diagram of a newly defined AF autonomous function example according to an alternative embodiment of the present invention, as shown in FIG.
其中,每个字段的定义如下:Among them, each field is defined as follows:
AF标识符:用于唯一标识一个AF自治功能实例AF identifier: used to uniquely identify an AF autonomous function instance
AF类型:用于标识AF自治功能的类型AF type: used to identify the type of AF autonomous function.
AF索引次数:是一个计数字段,用来计算此AF被引用的次数,如果没有被引用,则删除这个AF;如果设置为最大值,则表示此实例永久有效,交换机不会删除此AF自治功能实例。AF index number: is a count field used to calculate the number of times the AF is referenced. If it is not referenced, the AF is deleted. If it is set to the maximum value, the instance is permanently valid, and the switch does not delete the AF autonomous function. Example.
指令:指令(Instructions)字段,沿用原来OpenFlow标准中的定义,即每一个流条目包含一个或者多个Instructions字段,当有报文匹配此流条目,这些Instructions字段将会被执行,同样在一个AF自治功能实例中,也可以由多个Instructions字段,在此条AF自治功能实例被引用的时候,这些Instructions都要被执行。本发明实施例丰富了原有的结构,增加了AF的数据结构,使用Instructions以及加入了一些新的动作能够完成一些复杂的OAM功能,比如说,产生新的数据包的动作(这个可以通过类似于控制器(CONTROLLER)的保留端口或者定义相关的产生报文的动作来实现),Instructions指令字段的扩充在以下实施例中进行进一步地描述。Instruction: The Instruction field, which follows the definition in the original OpenFlow standard, that is, each stream entry contains one or more Instructions fields. When there are messages matching this stream entry, these Instructions fields will be executed, also in an AF. In the autonomous function instance, multiple Instructions fields may also be used. When the AF autonomous function instance is referenced, these Instructions are executed. The embodiment of the invention enriches the original structure, increases the data structure of the AF, uses the Instructions and adds some new actions to complete some complex OAM functions, for example, the action of generating a new data packet (this can be similar The implementation of the Instruction Port of the Controller (CONTROLLER) or the associated action of generating a message is further described in the following embodiments.
周期时间:Periodic time字段,用于记录周期性发送报文的时间或者周期性接收报文的时间。Period time: The Period time field, used to record the time when packets are periodically sent or the time when packets are received periodically.
计数:Counter字段,用来记录当前收到的报文的数目,可以用于后续的丢包统计。Count: The Counter field is used to record the number of currently received packets, which can be used for subsequent packet loss statistics.
状态:Status字段,用来说明当前的AF自治功能实例是否有效,如果无效,则不执行相应的指令。Status: Status field, used to indicate whether the current AF autonomous function instance is valid. If it is invalid, the corresponding instruction is not executed.
在本发明可选的实施例中新定义的基于模式的AF自治功能通过结合已有的OpenFlow流表以及组表,完成一些当前流表模式无法完成的复杂的保护恢复以及一些OAM行为,可以是以下三种场景:In the optional embodiment of the present invention, the newly defined mode-based AF autonomous function completes some complex protection recovery and some OAM behaviors that cannot be completed by the current flow table mode by combining the existing OpenFlow flow table and the group table, which may be The following three scenarios:
1)、OpenFlow逻辑交换机(OpenFlow Logic Switch,简称OFLS)对报 文进行匹配流表匹配,将匹配到的报文转发到AF实例进行处理,AF实例在处理完之后,可以将报文转到流表做匹配处理,也可以转到组表做转发,更可以直接转到端口将报文转发出去。这种情形下,AF自治功能只对接收到报文进行处理,然后做相应的转发。此种AF实例可以应用在首节点、中间节点。1) OpenFlow Logical Switch (OFLS) The matching of the matching flow table is performed, and the matched packet is forwarded to the AF instance for processing. After the AF instance is processed, the packet can be forwarded to the flow table for matching processing, or the group table can be forwarded to the group table. Go directly to the port to forward the message. In this case, the AF autonomous function processes only the received packets and then forwards them accordingly. Such an AF instance can be applied to the first node and the intermediate node.
2)、AF实例周期性的产生报文(比如CCM报文)或根据OpenFlow流水线以及一些外部激励因素产生报文,然后根据事先配置好的流表转发路径,将报文转发到相应的流表做进一步的转发处理。此种AF自治功能实例主要应用在首节点。2) The AF instance periodically generates a packet (such as a CCM packet) or generates a packet according to the OpenFlow pipeline and some external stimuli, and then forwards the packet to the corresponding flow table according to the previously configured flow table forwarding path. Do further forwarding processing. This type of AF autonomous function is mainly applied to the first node.
3)、AF实例支持带外配置方式,这主要是基于一些AF行为复杂度以及配置方面的考虑,可以配置AF指向一个带外的对象来处理。可以通过一个字符串参数来指向外部对象,将报文传递到外部对象来做更复杂的处理。3), AF instance supports out-of-band configuration mode, which is mainly based on some AF behavior complexity and configuration considerations, you can configure AF to point to an out-of-band object for processing. You can use a string parameter to point to an external object and pass the message to an external object for more complex processing.
上述AF可以使用具有可编程的能力的芯片,也可以使用固定编排规则的芯片。The AF described above may use a chip having a programmable capability, or a chip with a fixed arrangement rule.
AF主要应用到保护恢复以及OAM场景中,基于此,本发明实施例按照Y.1731中定义的OAM功能来说明AF的使用方式。实施例中介绍的AF实例,主要从发送端MEP AF,接收端MEP AF,以及中间节点维护实体组中间点(MA Intermediate Point,简称MIP)AF等三方面来说明。The AF is mainly applied to the protection recovery and the OAM scenario. Based on this, the embodiment of the present invention describes the usage mode of the AF according to the OAM function defined in Y.1731. The AF instance described in the embodiment is mainly described in terms of the MEP AF at the transmitting end, the MEP AF at the receiving end, and the MA Intermediate Point (MIP) AF.
对于以太网OAM报文来说,头部报文是一样的,除了以太网报文头部之外,图9是根据本发明可选实施例的OAM相关的报文字段的示意图,如图9所示,每个字段的含义如下:For the Ethernet OAM packet, the header packet is the same. In addition to the Ethernet packet header, FIG. 9 is a schematic diagram of an OAM-related packet field according to an alternative embodiment of the present invention, as shown in FIG. 9. As shown, each field has the following meaning:
MEL(MEG层次):使用一个整型数字,标识MEG所在的层次。MEL (MEG level): Use an integer number to identify the level at which the MEG is located.
Version(版本):整数数字用来标识OAM协议的版本。Version: An integer number is used to identify the version of the OAM protocol.
OpCode(运行编码):整数数字用来标识OAM报文的类型。OpCode: The integer number is used to identify the type of OAM message.
Flags(标识):和OAM报文相关。Flags: Corresponding to OAM messages.
TLV offset(TLV偏移量):OAM报文中第一个TLV的偏移量。TLV offset: The offset of the first TLV in the OAM message.
首先需要对已有的流表做扩展,使其能够匹配OAM报文的OpCode字段,也即获取OAM报文的类型,然后根据OAM报文的类型,将OAM报文索引 到其他的AF来做进一步的处理。如下的实施例以及附图中的行为均是在明确OAM报文类型之后所做的行为。First, the existing flow table needs to be extended to match the OpCode field of the OAM packet, that is, the type of the OAM packet is obtained, and then the OAM packet index is indexed according to the type of the OAM packet. Go to other AFs for further processing. The behaviors in the following embodiments and in the figures are all actions performed after the OAM message type is clarified.
实施例一:以太网连接验证功能及远端故障探测Embodiment 1: Ethernet connection verification function and remote fault detection
以太网连接验证功能用于主动OAM场景,其功能是用于探测一个MEG中两个MEP之间连接故障,图10是根据本发明可选实施例的连接验证功能流程示意图,如图10所示,MEP1周期性的发送CCM报文到MEP2,用于连接故障检测,当MEP2在单位周期时间内未检测到MEP1发送过来的CCM报文,会发送设置了远端故障标识位(Remote Defect Indication,简称RDI)的CCM报文到MEP1,用于表示连接出现故障。以太网连接验证功能可以应用到故障管理,性能监控和保护倒换应用。The Ethernet connection verification function is used in the active OAM scenario, and its function is to detect the connection failure between two MEPs in one MEG. FIG. 10 is a schematic flowchart of the connection verification function according to an alternative embodiment of the present invention, as shown in FIG. The MEP1 periodically sends a CCM message to the MEP2 for connection fault detection. When the MEC2 does not detect the CCM message sent by the MEP1 within the unit period, the remote defect identifier (Remote Defect Indication) is sent. The CCM message referred to as RDI is sent to MEP1 to indicate that the connection is faulty. Ethernet connection verification can be applied to fault management, performance monitoring and protection switching applications.
1)、MEP1发送端MEP Source CC AF(维护实体组端点源连接验证消息自治功能):发送端MEP需要周期性的产生并发送CCM(连接验证消息)报文给接收端MEP,也即可以通过外部软件模块引用到此AF自治功能实例,通过周期性的触发激活此AF自治功能实例,来周期性的发送CCM报文。发送端的CCM报文由MEP Source CC AF产生,并发送到相应的端口,发送到下一个节点。MEP Source CC AF自治功能实例中,存活持续时间设置为周期性发送的时间,即每隔这个时间段,需要发送一次CCM消息。指令(Instructions)字段需要执行封装CCM报文,并从对应的端口转发出去等行为,其中,指令(Instructions)字段通过Apply-Actions action(s)或者Write-Actions action(s)完成这些功能,但已有的OpenFlow协议中定义的动作并不足以满足上述这些行为,需要定义如下几种新扩展的动作:1), MEP1 sender MEP Source CC AF (maintaining entity group endpoint source connection verification message autonomous function): The sender MEP needs to periodically generate and send a CCM (connection verification message) message to the receiver MEP, that is, it can pass The external software module refers to the AF autonomous function instance and activates the AF autonomous function instance periodically to periodically send CCM packets. The CCM message sent by the sender is generated by the MEP Source CC AF and sent to the corresponding port and sent to the next node. In the MEP Source CC AF autonomous function instance, the duration of the lifetime is set to the time of periodic transmission. That is, every other time period, the CCM message needs to be sent. The Instruction field needs to perform the behavior of encapsulating the CCM message and forwarding it from the corresponding port. The Instruction field performs these functions through the Apply-Actions action(s) or Write-Actions action(s), but The actions defined in the existing OpenFlow protocol are not sufficient to satisfy these behaviors. You need to define the following new extended actions:
a)、新定义一个预留端口,Peer MEP(对等MEP),使用动作Output MIP/Peer MEP表示需要产生一个新的报文,并发送到对端MEP。a). A new reserved port, Peer MEP (Peer-to-Peer MEP), uses the action Output MIP/Peer MEP to indicate that a new packet needs to be generated and sent to the peer MEP.
b)、在产生新的报文之后,需要通过扩展Set-Field动作来对字段进行设置,图11是根据本发明可选实施例的一个CCM报文格式的示意图,如图11所示,所以Set-Field动作包括:b) After the new message is generated, the field needs to be set by extending the Set-Field action. FIG. 11 is a schematic diagram of a CCM message format according to an alternative embodiment of the present invention, as shown in FIG. Set-Field actions include:
Set-Field Source MAC:设置源MACSet-Field Source MAC: Set the source MAC
Set-Field Destination MAC:设置目的MAC Set-Field Destination MAC: Set the destination MAC
Set-Field Eth-Type:设置以太网类型字段,说明这是一个OAM报文Set-Field Eth-Type: Set the Ethernet type field to indicate that this is an OAM packet.
Set-Field MEL:设置MEG level;Set-Field MEL: Set MEG level;
Set-Field Version:设置OAM协议版本;Set-Field Version: Set the OAM protocol version;
Set-Field OpCode:设置CCM报文类型,当前设置为1;Set-Field OpCode: Sets the CCM packet type, which is currently set to 1.
Set-Field Flags:设置标识位,当前只有两个标识位,即RDI标识以及发送周期Period标识,RDI由发送端MEP设置,标识路径是否出现故障。Set-Field Flags: Sets the identifier bit. Currently, there are only two identifiers, namely the RDI identifier and the period ID of the sending period. The RDI is set by the sending MEP to identify whether the path is faulty.
Set-Field TLV Offset:设置TLV的偏移量,对于CCM报文来说,固定为70;Set-Field TLV Offset: Sets the offset of the TLV. For CCM messages, it is fixed at 70.
Set-Field Sequence Number:当前全设置为0;Set-Field Sequence Number: The current setting is all 0;
Set-Field MEP ID:设置发送端MEP的标识;Set-Field MEP ID: Set the ID of the sender MEP.
Set-Field MEG ID:设置MEG ID;Set-Field MEG ID: Set the MEG ID;
其余字段暂不设置。The remaining fields are not set yet.
或者采用另外一种设置字段的方式,即:Or use another way to set the field, namely:
Set-Field(字段偏移量,字段长度,字段值)的方式来设置每个字段,举个例子来说,对于上述前两项Set-Field,可以设置为如下:Set each field by way of Set-Field (field offset, field length, field value). For example, for the first two Set-Fields above, you can set it as follows:
Set-Field(0,48,源MAC地址)Set-Field (0, 48, source MAC address)
Set-Field(48,96,目的MAC地址)Set-Field (48, 96, destination MAC address)
Set-Field(96,112,报文负载类型)Set-Field (96, 112, message payload type)
Set-Field(112,3,实际的MEG level值)Set-Field (112, 3, actual MEG level value)
Set-Field(115,5,当前的OAM协议版本号)Set-Field (115, 5, current OAM protocol version number)
(对于越来越复杂的硬件编程,采用上述的偏移量、长度的方式复制能够带来统一的编码方式。)(For more and more complex hardware programming, copying with the above offset and length can bring a unified encoding.)
转发模型除了上述由AF自治功能实例来设置OAM报文字段的方式之外,还有另外一种方式,即使用AF自治功能实例设置每个报文相同的字段,比如说设置以太网类型、设置OAM协议版本号等,然后组表使用多播属性来来设置报文不同的字段,比如说设置源地址,目的地址等信息,并转发到 不同的对端MEP。The forwarding model has another way to set the OAM message field by the AF autonomous function instance. The AF autonomous function instance is used to set the same field for each message, for example, setting the Ethernet type and setting. OAM protocol version number, etc., then the group table uses the multicast attribute to set different fields of the message, such as setting the source address, destination address, etc., and forwarding to Different peer MEPs.
c)、对于发送端MEP来说,其动作的设置顺序为:c) For the sender MEP, the action sequence is set as follows:
Output MIP/Peer MEP–所有的Set Field动作–Output portOutput MIP/Peer MEP – all Set Field actions – Output port
如果采用上述组表的方式,那么动作的设置顺序为:If the above group table method is adopted, the action setting order is:
Output MIP/Peer MEP–Set Field设置数据包相同的字段–跳转组表–设置数据包不同的字段–Output portOutput MIP/Peer MEP–Set Field Sets the same field for the packet – Jump Group Table – sets the different fields of the packet – Output port
状态字段设置为1,表示使能周期性发送报文的功能,如果设置为0,此AF自治功能实例不起作用。If the status field is set to 1, it indicates that the function of sending packets periodically is enabled. If set to 0, the AF autonomous function instance does not work.
计数字段设置为当前收到的CCM报文的数量。The count field is set to the number of currently received CCM messages.
2)、中间节点MIP:中间节点不需要关心CCM报文。2) Intermediate node MIP: The intermediate node does not need to care about CCM messages.
3)、MEP2接收端MEP CC Sink AF(维护实体组端点宿连接验证消息自治功能):接收端MEP希望接收到周期性的CCM报文,MEP Sink CC AF自治功能实例的周期时间字段设置为一个期望值,即接收端MEP希望在此时间范围内接收到对端MEP发送过来的CCM消息报文,如果没有接收到,则说明路径已经出现故障。接收端MEP首先匹配报文的目的地址,然后匹配OAM报文类型字段,也即OpCode字段,确定是CCM消息报文,将报文传递到相应的接收端AF自治功能实例做处理。3) MEP2 receiving end MEP CC Sink AF (maintaining entity group endpoint sink connection verification message autonomous function): The receiving end MEP wants to receive periodic CCM messages, and the cycle time field of the MEP Sink CC AF autonomous function instance is set to one. The expected value, that is, the receiving MEP wants to receive the CCM message sent by the peer MEP within this time range. If it is not received, the path has failed. The receiving end MEP first matches the destination address of the packet, and then matches the OAM packet type field, that is, the OpCode field, to determine that it is a CCM message, and delivers the packet to the corresponding AF autonomic function instance for processing.
接收端的AF自治功能实例通过扩展下述的动作将报文发送给外部的软件模块来记录状态,外部软件模块主要维持一个定时器,如果在单位周期时间(一般是三倍的发送时间)内没有接收到MEP Sink CC AF实例发送过来的报文,则会周期性的触发反向MEP Source CC AF实例(相当于上述实施例中的反向AF实例),也即MEP2的MEP Source CC AF实例,触发反向CCM报文的发送。The AF autonomous function instance at the receiving end sends the message to an external software module to record the status by extending the following actions. The external software module mainly maintains a timer if there is no unit cycle time (usually three times the transmission time). After receiving the packet sent by the MEP Sink CC AF instance, the reverse MEP Source CC AF instance (equivalent to the reverse AF instance in the above embodiment), that is, the MEP Source CC AF instance of the MEP2, is triggered periodically. Trigger the sending of reverse CCM messages.
扩展的动作为:Output external software moduleThe extended action is: Output external software module
External software module通过一串XML或者JSON字符完成外部软件模块的定位。The External software module completes the positioning of external software modules through a string of XML or JSON characters.
4)、MEP2发送端MEP Source CC AF(维护实体组端点源连接验证消息自治功能):此CCM报文与前述的CCM报文的不同在于交换了源地址与 目的地址,以及设置了RDI标识位。4) MEP2 sender MEP Source CC AF (maintaining entity group endpoint source connection verification message autonomous function): This CCM message is different from the aforementioned CCM message in that the source address is exchanged with Destination address, and the RDI flag is set.
5)、MEP1接收端MEP Sink CC AF(维护实体组端点宿连接验证消息自治功能):MEP1在接收到MEP2发送过来的设置了RDI标识位的CCM报文,将报文交给外部软件模块做处理,外部软件模块在对报文做分析之后,上报故障给控制器,同时触发保护倒换,将数据流倒换到备路径上。5) MEP1 receiving end MEP Sink CC AF (maintaining entity group endpoint sink connection verification message autonomous function): MEP1 receives the CCM message set by the MEP2 and sets the RDI flag bit, and delivers the message to the external software module. After the packet is analyzed, the external software module reports the fault to the controller and triggers protection switching to switch the data stream to the standby path.
实施例二:以太网环回功能Embodiment 2: Ethernet loopback function
以太网环回功能的主要作用是探测MEP与MIP或者对等MEP之间的连接性。有如下两种形式的以太网环回功能的报文:The main function of the Ethernet loopback function is to detect the connectivity between the MEP and the MIP or the peer MEP. There are two forms of Ethernet loopback packets:
单播以太网环回和多播以太网环回。Unicast Ethernet loopback and multicast Ethernet loopback.
以太网环回功能是一种按需的功能,并不需要较快的响应速度,可以通过传统的方式,即通过控制器来封装报文,然后发送给发送端MEP,由发送端MEP完成环回报文的转发;也可以有交换机上的外部软件模块来封装环回报文,发送给AF自治功能实例完成环回报文的转发;还可以使用类似于CCM报文的方式来触发报文的产生,本实施例采用了第二种方法。The Ethernet loopback function is an on-demand function and does not require a fast response speed. The packet can be encapsulated in the traditional mode, that is, sent to the sender MEP, and the MEP is completed by the sender MEP. The forwarding of the text can be triggered by the external software module on the switch, and the AF autonomous function instance can be sent to the AF autonomous function instance to complete the loop report forwarding. The CCM message can also be used to trigger the message generation. This embodiment employs the second method.
图12是根据本发明可选实施例的环回功能流程示意图,如图12所示:FIG. 12 is a schematic flowchart of a loopback function according to an alternative embodiment of the present invention, as shown in FIG.
1)、MEP发送端MEP Source LBM(Loop Back Message)AF(维护实体组端点源环回消息自治功能):接收控制器或者外部软件模块发送过来的环回报文,并发送到相应的出端口。包含的动作有:发送到端口。1) MEP Source LBM (Loop Back Message) AF (Maintenance Group Endpoint Source Loopback Message Autonomous Function): Receives the loop report sent by the controller or external software module and sends it to the corresponding egress port. The actions included are: sent to the port.
2)、MIP/MEP LBR(Loop Back Request)AF(维护实体组端点环回应答自治功能):接收远端发送过来的环回报文,如果此自治功能实例是处理单播报文的,则执行如下扩展后的动作:2), MIP/MEP LBR (Loop Back Request) AF (Maintenance Entity Endpoint Loopback Response Autonomous Function): Receives the loopback message sent by the remote end. If the autonomous function instance processes unicast packets, the following is performed: Extended action:
Swap source MAC address and destination MAC address:交换源地址和目的地址。Swap source MAC address and destination MAC address: Swap source address and destination address.
Set Field OpCode:设置为2,说明是LBR报文。Set Field OpCode: Set to 2, indicating that it is an LBR message.
Output port:从某个端口转发回去。Output port: Forwarded from a port.
或者采用另外一种通用的方式,即(字段偏移量,字段长度,字段值) 的方式,如下:Or use another common way, namely (field offset, field length, field value) The way is as follows:
Swap(0,48,48),这里三个字段的含义不等同于上述的(字段偏移量,字段长度,字段值),含义变更为(交换区域1起始比特位,交换区域2的起始比特位,区域长度)Swap (0, 48, 48), the meaning of the three fields here is not equivalent to the above (field offset, field length, field value), the meaning is changed to (the starting bit of the exchange area 1, the start of the exchange area 2 Start bit, area length)
Set-Field(120,8,2)Set-Field(120,8,2)
Output portOutput port
3)、MEP发送端MEP Sink LBM AF(维护实体组端点宿环回消息自治功能):接收返回的LBR消息,并交给本地外部软件模块,有外部软件模块做进一步的处理,如果一定时间内没有收到应答消息,外部软件模块会发送通知消息给控制器。3) MEP sender MEP Sink LBM AF (Maintenance entity group endpoint sink loopback message autonomy function): Receive the returned LBR message and hand it to the local external software module, there is an external software module for further processing, if a certain time The response message is not received and the external software module sends a notification message to the controller.
实施例三:路径跟踪功能Embodiment 3: Path tracking function
以太网路径跟踪功能是一种按需的功能,主要用来做邻接关系查询以及故障定位,图13是根据本发明可选实施例的路径跟踪功能流程示意图,如图13所示。The Ethernet path tracking function is an on-demand function, which is mainly used for adjacency query and fault location. FIG. 13 is a schematic flowchart of a path tracking function according to an alternative embodiment of the present invention, as shown in FIG.
1)、MEP发送端MEP Source LTM AF(维护实体组端点源路径跟踪消息自治功能):接收外部软件模块发送的LTM路径跟踪消息,从既定好的端口转发出去。包含的动作有:发送到出端口。1) MEP sender MEP Source LTM AF (Maintenance entity group endpoint source path tracking message autonomous function): Receives the LTM path trace message sent by the external software module and forwards it from the established port. The actions included are: send to the out port.
2)、MIP中间节点MIP LTM AF(维护实体组中间节点路径跟踪消息自治功能):中间节点在接收到LTR路径跟踪消息之后,匹配之后,将LTM路径跟踪消息报文转发到MIP LTM AF自治功能实例做进一步的处理,MIP LTM AF自治功能实例的主要功能是将TTL字段以及Target MAC字段拷贝到metadata中,然后将数据包以及metadata传递到流表做进一步的匹配;流表如果匹配TTL为0,则丢弃数据包,如果TTL不为0,且能匹配到Target MAC地址,则将数据包转发到组表做转发的处理,否则丢弃;组表在接收到发送过来的LTM报文之后,会做两种不同的转发处理,一种是从对应的出端口转发LTM路径跟踪消息报文给下一跳交换机,此时要做的动作包括:TTL减一,源地址设置为当前MIP的MAC地址,设置LTM egress identifier TLV值字段为当前中继此LTM路径跟踪报文的节点标识,包含的动作如下: 2) MIP intermediate node MIP LTM AF (maintaining entity group intermediate node path tracking message autonomous function): After receiving the LTR path tracking message, the intermediate node forwards the LTM path tracking message to the MIP LTM AF autonomous function after matching. For further processing, the main function of the MIP LTM AF autonomous function instance is to copy the TTL field and the Target MAC field to the metadata, and then pass the data packet and the metadata to the flow table for further matching; if the flow table matches the TTL to 0 If the TTL is not 0 and can match the Target MAC address, the packet is forwarded to the group table for forwarding processing, otherwise it is discarded; after receiving the sent LTM packet, the group table will To perform two different forwarding processes, one is to forward the LTM path tracking message to the next hop switch from the corresponding egress port. The action to be performed at this time includes: TTL minus one, and the source address is set to the MAC address of the current MIP. Set the LTM egress identifier TLV value field to the node ID of the current relay LTM path tracking packet. The actions included are as follows:
Set Field(176,8,当前值-1)Set Field (176, 8, current value -1)
Set Field(0,48,当前节点的MAC地址)Set Field (0, 48, the MAC address of the current node)
Set Field(296,48,当前节点的MAC地址)Set Field (296, 48, the MAC address of the current node)
Output portOutput port
另一种处理是基于接收到的LTM路径跟踪消息报文,发送LTR路径跟踪应答报文给发送节点,此时要做的动作包括:设置相应的OpCode字段,拷贝original MAC address到以太网头部的destination address字段,删除original MAC address和Target MAC address字段,添加Next egress identifier字段到identifier TLV中,动作如下:The other process is to send an LTR path tracking response message to the sending node based on the received LTM path tracking message, and the action to be performed includes setting the corresponding OpCode field and copying the original MAC address to the Ethernet header. In the destination address field, delete the original MAC address and Target MAC address fields, and add the Next egress identifier field to the identifier TLV. The actions are as follows:
Set Field(120,8,4),设置为LTR报文Set Field (120, 8, 4), set to LTR message
Copy Field(184,48,48),三个字段含义为(拷贝源区域偏移量,拷贝目的区域偏移量,拷贝比特位长度)Copy Field (184, 48, 48), the three fields mean (copy source area offset, copy destination area offset, copy bit length)
Delete Field(184,96),两个字段的含义为(删除区域偏移量,删除区域长度)Delete Field (184, 96), the meaning of the two fields is (delete area offset, delete area length)
Add Field(264,48,值)这里的值为要添加到next egress identifier字段的MAC地址。Add Field (264, 48, value) where the value is the MAC address to be added to the next egress identifier field.
Output PortOutput Port
上述两种处理方式中的动作是针对可编程的AF自治功能实例的,如果使用固定编排规则的芯片,需要定义相关的动作。The actions in the above two processing modes are for the programmable AF autonomous function instance. If a chip with fixed programming rules is used, it is necessary to define related actions.
3)、尾节点MIP/MEP LT AF:尾节点MIP/MEP LTM AF在接收到LTM路径跟踪报文之后,执行与中间节点类似的操作,不同的是,尾节点只做LTR路径跟踪应答。3), tail node MIP/MEP LT AF: tail node MIP/MEP LTM AF performs an operation similar to the intermediate node after receiving the LTM path tracking message, except that the tail node only performs the LTR path tracking response.
实施例四:故障指示功能Embodiment 4: Fault indication function
一个MEP,在检测到服务层故障的时候,会通知客户层路径压制告警的产生,这样能够避免大范围的故障告警引起的路径倒换。图14是根据本发明可选实施例的故障指示功能流程示意图,如图14所示,图中中间两个节点为 服务层节点,其他为客户层节点,服务层节点在探测到故障之后,会向服务层的相关路径发送告警指示信号(Alarm Indication Signal,简称AIS)消息,压制故障及告警消息的发送。A MEP notifies the client layer to suppress the generation of alarms when a service layer failure is detected. This avoids path switching caused by a large number of fault alarms. FIG. 14 is a schematic flowchart of a fault indication function according to an alternative embodiment of the present invention. As shown in FIG. 14, the middle two nodes in the figure are The service layer node, the other is the client layer node. After detecting the fault, the service layer node sends an Alarm Indication Signal (AIS) message to the relevant path of the service layer to suppress the transmission of the fault and the alarm message.
1)、外部软件模块在周期时间内没有接收到CCM报文,则认定服务层路径出现故障,此时外部软件模块促发ETH-AIS AF,周期性的产生AIS报文发送到客户层,然后将报文传递到特定的group all类型的表,然后将报文转发到特定的MEG level(MEG层次)。此时,ETH-AIS AF的动作:1) If the external software module does not receive the CCM message within the cycle time, it determines that the service layer path is faulty. At this time, the external software module sends the ETH-AIS AF, and the AIS message is periodically sent to the client layer. Pass the message to a specific group all type of table and then forward the message to a specific MEG level. At this time, the action of ETH-AIS AF:
Output MIP/Peer MEP:产生新的报文Output MIP/Peer MEP: Generate new message
Set-Field Eth-Type:设置以太网类型字段,说明这是一个OAM报文Set-Field Eth-Type: Set the Ethernet type field to indicate that this is an OAM packet.
Set-Field OpCode:设置OAM报文类型为AIS报文Set-Field OpCode: Sets the OAM packet type to AIS packets.
Set-Field Version:设置版本字段Set-Field Version: Set the version field
Set-Field Flags:设置标识位,主要是设置发送周期。Set-Field Flags: Set the flag, mainly to set the transmission period.
组表在接收到ETH-AIS AF发送过来的The group table is sent by the ETH-AIS AF.
Set-Field Source MAC:设置源MACSet-Field Source MAC: Set the source MAC
Set-Field Destination MAC:设置目的MACSet-Field Destination MAC: Set the destination MAC
Set-Field MEL:设置MEG levelSet-Field MEL: Set MEG level
2)、在接收端,需要先通过流表验证目的MAC地址,确认节点是接收AIS报文的节点,然后匹配OpCode,确认是AIS报文之后,验证成功之后,转给相应的AIS AF来做进一步的处理,AIS AF将此报文交给外部软件模块,外部软件模块根据AIS报文中的信息,不在定期触发相应MEP CC Source AF(相当于上述实施例中的反向AF实例)产生设置了RDI标识位的报文。2) At the receiving end, the destination MAC address needs to be verified by the flow table to confirm that the node is the node that receives the AIS packet, and then matches the OpCode to confirm that it is an AIS packet. After the verification succeeds, the corresponding AIS AF is forwarded to the node. For further processing, the AIS AF sends the message to the external software module. The external software module does not periodically trigger the corresponding MEP CC Source AF (corresponding to the reverse AF instance in the above embodiment) according to the information in the AIS message. The message of the RDI flag bit.
本发明实施例不仅可以应用到实施例中的以太网场景中,也可以应用到MPLS/MPLS-TP、光交换网络等场景中。The embodiments of the present invention can be applied not only to the Ethernet scenario in the embodiment but also to scenarios such as MPLS/MPLS-TP and optical switching networks.
本发明的实施例还提供了一种存储介质。可选地,在本实施例中,上述存储介质可以被设置为存储用于执行以下步骤的程序代码:Embodiments of the present invention also provide a storage medium. Optionally, in the embodiment, the foregoing storage medium may be configured to store program code for performing the following steps:
S1,软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对报文进行转发;其中,AF实例中包括以下至少之一字段:AF标识符字段, AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。S1, in the software-defined network SDN architecture, the packet is forwarded by executing the pre-configured autonomous function AF instance; wherein the AF instance includes at least one of the following fields: an AF identifier field, AF type field, AF index number field, instruction field, cycle time field, count field, status field.
可选地,在本实施例中,上述存储介质可以包括但不限于:U盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、移动硬盘、磁碟或者光盘等多种可以存储程序代码的介质。Optionally, in this embodiment, the foregoing storage medium may include, but not limited to, a USB flash drive, a Read-Only Memory (ROM), a Random Access Memory (RAM), a mobile hard disk, and a magnetic memory. A variety of media that can store program code, such as a disc or a disc.
可选地,本实施例中的示例可以参考上述实施例及可选实施方式中所描述的示例,本实施例在此不再赘述。For example, the examples in this embodiment may refer to the examples described in the foregoing embodiments and the optional embodiments, and details are not described herein again.
显然,本领域的技术人员应该明白,上述的本发明实施例的模块或步骤可以用通用的计算装置来实现,它们可以集中在单个的计算装置上,或者分布在多个计算装置所组成的网络上,可选地,它们可以用计算装置可执行的程序代码来实现,从而,可以将它们存储在存储装置中由计算装置来执行,并且在某些情况下,可以以不同于此处的顺序执行所示出或描述的步骤,或者将它们分别制作成多个集成电路模块,或者将它们中的多个模块或步骤制作成单个集成电路模块来实现。It will be apparent to those skilled in the art that the above-described modules or steps of the embodiments of the present invention can be implemented by a general-purpose computing device, which can be centralized on a single computing device or distributed over 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 a plurality of integrated circuit modules, or a plurality of the modules or steps are fabricated as a single integrated circuit module.
以上所述仅为本发明的可选实施例而已,并不用于限制本发明,对于本领域的技术人员来说,本发明可以有多种更改和变化。凡在本发明的精神和原则之内,所作的任何修改、等同替换、改进等,均应包含在本发明的保护范围之内。The above is only an alternative embodiment of the present invention, and is 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
通过本发明实施例,采用新定义的AF自治功能实例,对报文进行转发,进而能够完成对OAM相关报文的转发,解决了自治功能AF实例不能完成OAM相关报文的转发处理的问题,满足了其在保护恢复以及OAM方面的功能需求。 With the embodiment of the present invention, the newly defined AF autonomous function instance is used to forward the packet, and then the OAM-related packet is forwarded, and the problem that the autonomous AF instance cannot complete the OAM-related packet forwarding process is solved. It meets its functional requirements for protection recovery and OAM.

Claims (18)

  1. 一种报文的处理方法,包括:A method for processing a message, comprising:
    软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对所述报文进行处理及转发;其中,所述AF实例中包括以下至少之一字段:AF标识符字段,AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。The software-defined network SDN architecture processes and forwards the packet by performing a pre-configured autonomous function AF instance. The AF instance includes at least one of the following fields: an AF identifier field, an AF type field, and an AF. Index number field, instruction field, cycle time field, count field, status field.
  2. 根据权利要求1所述的方法,其中,The method of claim 1 wherein
    所述AF标识符字段,用于唯一标识一个所述AF实例;The AF identifier field is used to uniquely identify one AF instance;
    所述AF类型字段,用于标识所述AF实例的类型;The AF type field is used to identify a type of the AF instance;
    所述AF索引次数字段,用于指示所述AF实例被引用的次数;The AF index number field is used to indicate the number of times the AF instance is referenced;
    所述指令字段,用于指示所述AF实例所执行的流水线处理及动作;The instruction field is used to indicate pipeline processing and actions performed by the AF instance;
    所述周期时间字段,用于指示所述AF实例周期性发送所述报文的时间或者周期性接收所述报文的时间;The period time field is used to indicate the time when the AF instance periodically sends the packet or the time when the packet is periodically received.
    所述计数字段,用于指示所述AF实例收到的报文的数目;The count field is used to indicate the number of packets received by the AF instance;
    所述状态字段,用于指示所述AF实例是否有效。The status field is used to indicate whether the AF instance is valid.
  3. 根据权利要求1所述的方法,其中,自治功能AF实例对报文进行转发之前,所述方法还包括:通过以下至少之一方式获取所述报文:The method according to claim 1, wherein before the autonomous function AF instance forwards the packet, the method further includes: obtaining the packet by using at least one of the following methods:
    接收通过执行所述AF实例接收控制器下发的所述报文;Receiving, by the execution of the AF instance, the message sent by the controller;
    接收通过所述AF实例接收交换机发送的所述报文;Receiving, by the AF instance, the packet sent by the switch;
    通过所述AF实例产生所述报文。The message is generated by the AF instance.
  4. 根据权利要求3所述的方法,其中,在所述AF实例获取所述报文之前,所述方法还包括:The method of claim 3, wherein before the obtaining, by the AF instance, the method, the method further comprises:
    预先设置所述AF实例的动作。The action of the AF instance is set in advance.
  5. 根据权利要求4所述的方法,其中,在所述AF实例用于实现连续性验证功能时,所述报文为连接验证消息CCM报文;The method according to claim 4, wherein, when the AF instance is used to implement a continuity verification function, the message is a connection verification message CCM message;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括: 输出对等维护实体组端点Output Peer MEP动作、设置-域Set-Field动作、输出端口Output port动作;When the AF instance is a sender AF instance, the action of the sender AF instance includes: Output peer maintenance entity group endpoint Output Peer MEP action, set-domain Set-Field action, output port Output port action;
    在所述AF实例为接收端AF实例时,所述接收端AF实例的动作包括:输出至外部软件模块,其中,所述外部软件模块用于判断是否触发接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的CCM报文。When the AF instance is a receiving end AF instance, the action of the receiving end AF instance includes: outputting to an external software module, where the external software module is configured to determine whether to trigger the receiving end to maintain the inverse of the entity group endpoint MEP. A CCM message with a remote defect indication RDI set is generated to the AF instance.
  6. 根据权利要求5所述的方法,其中,所述Set-Field动作包括以下至少之一:The method of claim 5 wherein said Set-Field action comprises at least one of:
    设置源媒体接入控制MAC;设置目的MAC;设置以太网类型字段;设置维护实体组层次;设置运行管理维护OAM协议版本;设置CCM报文类型;设置标识位;设置类型长度值TLV的偏移量;设置序列号;设置发送端维护实体组端点MEP的标识;设置维护实体组MEG标识。Set the source media access control MAC; set the destination MAC; set the Ethernet type field; set the maintenance entity group level; set the operation management and maintenance OAM protocol version; set the CCM message type; set the identification bit; set the type length value TLV offset Quantity; set the serial number; set the identifier of the MEP of the endpoint of the maintenance entity group; set the MEG identifier of the maintenance entity group.
  7. 根据权利要求4所述的方法,其中,在所述AF实例用于实现以太网环回时,所述报文为环回报文;The method according to claim 4, wherein, when the AF instance is used to implement Ethernet loopback, the message is a ring report text;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:发送到端口;When the AF instance is a sender AF instance, the action of the sender AF instance includes: sending to a port;
    在所述AF实例为接收端AF实例或者中间端AF实例时,所述AF实例的动作包括:交换源地址和目的地址,设置所述环回报文的运行编码OpCode为2,设置输出端口。When the AF instance is a receiving AF instance or an intermediate AF instance, the action of the AF instance includes: exchanging a source address and a destination address, setting a running code OpCode of the loop report to 2, and setting an output port.
  8. 根据权利要求4所述的方法,其中,在所述AF实例用于实现以太网路径跟踪功能时,所述报文为路径跟踪消息LTM报文;The method according to claim 4, wherein, when the AF instance is used to implement an Ethernet path tracking function, the message is a path tracking message LTM message;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:发送到端口;When the AF instance is a sender AF instance, the action of the sender AF instance includes: sending to a port;
    在所述AF实例为接收端AF实例或者中间节点中的AF实例时,所述AF实例的动作包括:生存时间值TTL减1,将源地址设置为所述AF实例所在维护实体组中间节点或者尾节点的媒体接入控制MAC地址,将LTM出口标识类型长度值TLV值字段设置为当前中继所述LTM报文的节点标识,输出端口。 When the AF instance is the AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance includes: the lifetime time value TTL is decreased by 1, and the source address is set to the intermediate node of the maintenance entity group where the AF instance is located or The media access control MAC address of the tail node sets the LTM exit identifier type length value TLV value field to the node identifier of the current relay LTM message, and the output port.
  9. 根据权利要求4所述的方法,其中,在所述AF实例用于实现以太网路径跟踪功能时,所述报文为路径跟踪消息LTM报文;The method according to claim 4, wherein, when the AF instance is used to implement an Ethernet path tracking function, the message is a path tracking message LTM message;
    在所述AF实例为接收端AF实例或者中间节点中的AF实例时,所述AF实例的动作包括:设置所述OAM报文中的OpCode字段,将源MAC地址字段拷贝到以太网头部的目的MAC地址字段,删除所述源MAC地址字段所述目的MAC地址字段,添加下一个出口标识字段到标识TLV中,输出端口。When the AF instance is an AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance includes: setting an OpCode field in the OAM packet, and copying the source MAC address field to the Ethernet header. The destination MAC address field deletes the destination MAC address field of the source MAC address field, adds the next exit identifier field to the identifier TLV, and outputs the port.
  10. 根据权利要求4所述的方法,其中,在所述AF实例用于实现故障指示功能时,所述报文为告警指示信号AIS报文;The method according to claim 4, wherein, when the AF instance is used to implement a fault indication function, the message is an alarm indication signal AIS message;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:产生新的报文;设置以太网类型字段;设置OAM报文类型为所述AIS报文;设置OAM协议版本字段;设置标识位;设置源MAC;设置目的MAC;设置维护实体组MEG层次;When the AF instance is a sender AF instance, the action of the sender AF instance includes: generating a new packet; setting an Ethernet type field; setting an OAM packet type to the AIS packet; setting an OAM protocol version. Field; set the identification bit; set the source MAC; set the destination MAC; set the maintenance entity group MEG level;
    在所述AF实例为接收端AF实例时,所述接收端AF实例的动作包括:将经过所述接收端AF实例所在MEP验证成功后的AIS报文发送给外部处理模块;其中,所述外部处理模块用于判断是否触发所述接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的AIS报文。When the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: sending an AIS message that has been successfully verified by the MEP of the receiving end AF instance to an external processing module; wherein the external The processing module is configured to determine whether to trigger the reverse AF instance in the MEP of the receiving end maintenance entity group to generate an AIS packet with the remote defect indication RDI.
  11. 一种报文的处理装置,包括:A message processing device, comprising:
    处理模块,设置为:在软件定义网络SDN架构中,通过执行预先设置的自治功能AF实例对报文进行处理及转发;其中,所述AF实例中包括以下至少之一字段:AF标识符字段,AF类型字段,AF索引次数字段,指令字段,周期时间字段,计数字段,状态字段。The processing module is configured to process and forward the message by executing the pre-configured autonomous function AF instance in the software-defined network SDN architecture, where the AF instance includes at least one of the following fields: an AF identifier field, AF type field, AF index number field, instruction field, cycle time field, count field, status field.
  12. 根据权利要求11所述的装置,所述装置还包括:获取模块,设置为:通过以下至少之一方式获取所述报文:The apparatus according to claim 11, further comprising: an obtaining module, configured to: obtain the message by at least one of:
    接收通过执行所述AF实例接收控制器下发的所述报文;Receiving, by the execution of the AF instance, the message sent by the controller;
    接收通过所述AF实例接收交换机上发送的所述报文;Receiving, by the AF instance, the packet sent by the switch;
    通过所述AF实例产生所述报文。The message is generated by the AF instance.
  13. 根据权利要求12所述的装置,所述装置还包括:The device of claim 12, the device further comprising:
    设置模块,设置为:预先设置所述AF实例的动作。 The setting module is set to: preset the action of the AF instance.
  14. 根据权利要求13所述的装置,其中,在所述AF实例用于实现远端故障探测时,所述报文为连接验证消息CCM报文;The device according to claim 13, wherein, when the AF instance is used to implement remote fault detection, the message is a connection verification message CCM message;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:输出对等维护实体组端点Output Peer MEP动作、设置-域Set-Field动作、输出端口Output port动作;When the AF instance is a sender AF instance, the action of the sender AF instance includes: outputting a peer-to-peer maintenance entity group endpoint Output Peer MEP action, setting-domain Set-Field action, and output port Output port action;
    在所述AF实例为接收端AF实例时,所述接收端AF实例的动作包括:输出至外部软件模块,其中,所述外部软件模块用于判断是否触发接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的CCM报文。When the AF instance is a receiving end AF instance, the action of the receiving end AF instance includes: outputting to an external software module, where the external software module is configured to determine whether to trigger the receiving end to maintain the inverse of the entity group endpoint MEP. A CCM message with a remote defect indication RDI set is generated to the AF instance.
  15. 根据权利要求13所述的装置,其中,在所述AF实例用于实现以太网环回时,所述报文为环回报文;The device according to claim 13, wherein, when the AF instance is used to implement Ethernet loopback, the message is a ring report text;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:发送到端口;When the AF instance is a sender AF instance, the action of the sender AF instance includes: sending to a port;
    在所述AF实例为接收端AF实例或者中间端AF实例时,所述AF实例的动作包括:交换源地址和目的地址,设置所述环回报文的运行编码OpCode为2,设置输出端口。When the AF instance is a receiving AF instance or an intermediate AF instance, the action of the AF instance includes: exchanging a source address and a destination address, setting a running code OpCode of the loop report to 2, and setting an output port.
  16. 根据权利要求13所述的装置,其中,在所述AF实例用于实现以太网路径跟踪功能时,所述报文为路径跟踪消息LTM报文;The apparatus according to claim 13, wherein, when the AF instance is used to implement an Ethernet path tracking function, the message is a path tracking message LTM message;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:发送到端口;When the AF instance is a sender AF instance, the action of the sender AF instance includes: sending to a port;
    在所述AF实例为接收端AF实例或者中间节点中的AF实例时,所述AF实例的动作包括:生存时间值TTL减1,将源地址设置为所述AF实例所在维护实体组中间节点或者尾节点的媒体接入控制MAC地址,将LTM出口标识类型长度值TLV值字段设置为当前中继所述LTM报文的节点标识,输出端口。When the AF instance is the AF instance in the receiving end AF instance or the intermediate node, the action of the AF instance includes: the lifetime time value TTL is decreased by 1, and the source address is set to the intermediate node of the maintenance entity group where the AF instance is located or The media access control MAC address of the tail node sets the LTM exit identifier type length value TLV value field to the node identifier of the current relay LTM message, and the output port.
  17. 根据权利要求13所述的装置,其中,在所述AF实例用于实现以太网路径跟踪功能时,所述报文为路径跟踪消息LTM报文;The apparatus according to claim 13, wherein, when the AF instance is used to implement an Ethernet path tracking function, the message is a path tracking message LTM message;
    在所述AF实例为接收端AF实例或者中间节点中的AF实例时,所述AF 实例的动作包括:设置所述OAM报文中的OpCode字段,将源MAC地址字段拷贝到以太网头部的目的MAC地址字段,删除所述源MAC地址字段所述目的MAC地址字段,添加下一个出口标识字段到标识TLV中,输出端口。When the AF instance is an AF instance in a receiving end AF instance or an intermediate node, the AF The action of the example includes: setting an OpCode field in the OAM packet, copying the source MAC address field to a destination MAC address field of the Ethernet header, deleting the destination MAC address field of the source MAC address field, and adding the next one. Export ID field to ID TLV, output port.
  18. 根据权利要求13所述的装置,其中,在所述AF实例用于实现故障指示功能时,所述报文为告警指示信号AIS报文;The device according to claim 13, wherein, when the AF instance is used to implement a fault indication function, the message is an alarm indication signal AIS message;
    在所述AF实例为发送端AF实例时,所述发送端AF实例的动作包括:产生新的报文;设置以太网类型字段;设置OAM报文类型为所述AIS报文;设置OAM协议版本字段;设置标识位;设置源MAC;设置目的MAC;设置维护实体组MEG层次;When the AF instance is a sender AF instance, the action of the sender AF instance includes: generating a new packet; setting an Ethernet type field; setting an OAM packet type to the AIS packet; setting an OAM protocol version. Field; set the identification bit; set the source MAC; set the destination MAC; set the maintenance entity group MEG level;
    在所述AF实例为接收端AF实例时,所述接收端AF实例的动作包括:将经过所述接收端AF实例所在MEP验证成功后的AIS报文发送给外部软件模块;其中,所述外部软件模块用于判断是否触发所述接收端维护实体组端点MEP中的反向AF实例产生设置了远端缺陷指示RDI的AIS报文。 When the AF instance is the receiving end AF instance, the action of the receiving end AF instance includes: sending an AIS message that has been successfully verified by the MEP of the receiving end AF instance to an external software module; wherein the external The software module is configured to determine whether to trigger the reverse AF instance in the MEP of the receiving end maintenance entity group to generate an AIS message with the remote defect indication RDI.
PCT/CN2016/082357 2015-09-02 2016-05-17 Packet processing method and device WO2017036180A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510559479.7 2015-09-02
CN201510559479.7A CN106487572A (en) 2015-09-02 2015-09-02 The processing method and processing device of message

Publications (1)

Publication Number Publication Date
WO2017036180A1 true WO2017036180A1 (en) 2017-03-09

Family

ID=58186640

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/082357 WO2017036180A1 (en) 2015-09-02 2016-05-17 Packet processing method and device

Country Status (2)

Country Link
CN (1) CN106487572A (en)
WO (1) WO2017036180A1 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247797A (en) * 2019-06-04 2019-09-17 深圳市中航比特通讯技术有限公司 One kind accurate Remote Defect when multiple spot ETH is connected to indicates system
CN114422609A (en) * 2021-12-30 2022-04-29 北京机电工程总体设计部 Data communication method for coexistence of equipment digital identification and name
WO2022236621A1 (en) * 2021-05-10 2022-11-17 北京小米移动软件有限公司 Data packet sending method and apparatus, and storage medium

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110166311B (en) * 2018-02-14 2022-09-23 华为技术有限公司 Method, equipment and network system for measuring network performance
CN110233800A (en) * 2019-05-09 2019-09-13 星融元数据技术(苏州)有限公司 A kind of message forwarding method and system of open programmable
CN113259143B (en) * 2020-02-07 2023-04-18 阿里巴巴集团控股有限公司 Information processing method, device, system and storage medium
CN112073256B (en) * 2020-06-01 2022-07-19 新华三信息安全技术有限公司 Packet loss processing method, device, equipment and machine readable storage medium
CN112532544B (en) * 2020-11-20 2022-12-09 锐捷网络股份有限公司 Method for processing message and switching equipment
CN114448865B (en) * 2021-12-23 2024-01-02 东莞市李群自动化技术有限公司 Service message processing method, system, equipment and storage medium
CN115242736B (en) * 2022-07-15 2024-04-12 云合智网(上海)技术有限公司 Light load message transmission method

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369613A (en) * 2013-07-05 2013-10-23 中国科学院计算机网络信息中心 System and method for realizing mobile switching based on Open Flow
WO2015023344A2 (en) * 2013-06-17 2015-02-19 The Board Of Trustees Of The University Of Illinois Network-wide verification of invariants

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015023344A2 (en) * 2013-06-17 2015-02-19 The Board Of Trustees Of The University Of Illinois Network-wide verification of invariants
CN103369613A (en) * 2013-07-05 2013-10-23 中国科学院计算机网络信息中心 System and method for realizing mobile switching based on Open Flow

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
OPEN NETWORKING FOUNDATION.: "OF-PI: A Protocol Independent Layer", ONF TR-505 VERSION 1.1, 5 September 2014 (2014-09-05), XP055237647 *
SHI, YANWEI ET AL.: "Interconnection mechanism for IP subnet and SDN subnet in autonomous system", JOURNAL ON COMMUNICATIONS, vol. 35, no. Z1, 31 October 2014 (2014-10-31) *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110247797A (en) * 2019-06-04 2019-09-17 深圳市中航比特通讯技术有限公司 One kind accurate Remote Defect when multiple spot ETH is connected to indicates system
WO2022236621A1 (en) * 2021-05-10 2022-11-17 北京小米移动软件有限公司 Data packet sending method and apparatus, and storage medium
CN114422609A (en) * 2021-12-30 2022-04-29 北京机电工程总体设计部 Data communication method for coexistence of equipment digital identification and name

Also Published As

Publication number Publication date
CN106487572A (en) 2017-03-08

Similar Documents

Publication Publication Date Title
WO2017036180A1 (en) Packet processing method and device
JP4031500B2 (en) Node redundancy method, interface card, interface device, node device, and packet ring network system
US11374857B2 (en) Network device management method and apparatus, and system for indicating a network device to perform management operation
US9407526B1 (en) Network liveliness detection using session-external communications
US8923112B2 (en) Technique for controlling data forwarding in computer networks
CN113411834B (en) Message processing method, device, equipment and storage medium
US20180091445A1 (en) Evpn designated forwarder state propagation to customer edge devices using connectivity fault management
US9258208B2 (en) Multiple path availability between walkable clusters
US11611509B2 (en) Communication method, communications device, and communications system
EP2996287A1 (en) Method for notifying information of pe device and pe device
US11489836B2 (en) Method, apparatus, and system for collecting access control list
US20230067091A1 (en) Method and device for segment routing service processing, routing equipment, and storage medium
US8971195B2 (en) Querying health of full-meshed forwarding planes
CN111614505B (en) Message processing method and gateway equipment
US8670299B1 (en) Enhanced service status detection and fault isolation within layer two networks
CN110380966B (en) Method for discovering forwarding path and related equipment thereof
EP2858302A1 (en) Connectivity check method of service stream link, related apparatus and system
CN105790984B (en) Configuration and implementation method of operation maintenance management function and forwarding equipment
CN104426778A (en) Routing updating method and routing equipment
CN111885630A (en) Data transmission method and communication device
US8396955B2 (en) Systems and methods for discovery of network topology using service OAM
WO2022257854A1 (en) Message publishing method and apparatus, and forwarding path processing method and apparatus
CN116261166A (en) Link detection method, public network node and storage medium
JP2009194648A (en) Information transfer method, information transfer system and node device

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

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

Country of ref document: EP

Kind code of ref document: A1