WO2015100551A1 - 发送信息的方法、装置及系统 - Google Patents

发送信息的方法、装置及系统 Download PDF

Info

Publication number
WO2015100551A1
WO2015100551A1 PCT/CN2013/090948 CN2013090948W WO2015100551A1 WO 2015100551 A1 WO2015100551 A1 WO 2015100551A1 CN 2013090948 W CN2013090948 W CN 2013090948W WO 2015100551 A1 WO2015100551 A1 WO 2015100551A1
Authority
WO
WIPO (PCT)
Prior art keywords
flow entry
message
label
working path
protection path
Prior art date
Application number
PCT/CN2013/090948
Other languages
English (en)
French (fr)
Inventor
李刚
Original Assignee
华为技术有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司 filed Critical 华为技术有限公司
Priority to PCT/CN2013/090948 priority Critical patent/WO2015100551A1/zh
Priority to EP13900783.5A priority patent/EP3079327B1/en
Priority to CN201380002960.5A priority patent/CN105264857B/zh
Publication of WO2015100551A1 publication Critical patent/WO2015100551A1/zh
Priority to US15/199,178 priority patent/US10171346B2/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/22Alternate routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/64Routing or path finding of packets in data switching networks using an overlay routing layer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • H04L45/745Address table lookup; Address filtering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/23Bit dropping
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/24Traffic characterised by specific attributes, e.g. priority or QoS
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]

Definitions

  • Embodiments of the present invention relate to communication technologies, and in particular, to a method, device, and system for transmitting information. Background technique
  • OpenFlow technology With the continuous development of the Internet, OpenFlow technology has emerged. The flow of packets in a traditional network is artificially specified. Network devices (such as switches or routers) exchange at the packet level. In an OpenFlow network, the controller can determine the path of the packet in the network. OpenFlow technology transforms the packet forwarding process originally controlled by the switch/router into a separate process performed by the OpenFlow switch and the controller.
  • the present invention provides a method, apparatus and system for transmitting information, which helps to better support services with higher QoS requirements.
  • an embodiment of the present invention provides a method for sending information, including: a controller determining a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the working path and the The end node of the protection path is a second device, the working path corresponds to the first label, and the protection path corresponds to the second label;
  • the controller sends the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, and the matching domain Including the identifier of the destination, the instruction field includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first group of actions is used to indicate that the first device is to be the first stream
  • the entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • Action bucket is used to refer to
  • the first device is configured to push the first label into a first packet that matches the first flow entry to generate a second packet, and send the first packet to the second device by using the working path.
  • a second packet the second action bucket is configured to instruct the second device to push the second label into the third packet to generate a fourth packet, and send the second packet to the second device by using the protection path
  • the controller sends the second information to the second device, where the second information includes a second flow entry and a second set of entries; where the second flow entry includes a working path flow entry and protection a path flow entry; the matching domain of the working path flow entry includes the first label, the instruction domain of the working path flow entry includes a second set of actions, and the operand of the second set of actions is a second a group identifier, the second group of actions is used to instruct the second device to associate the working path flow entry with the second group entry; the matching domain of the protection path flow entry includes the a second label, the command field of the protection path flow entry includes a discarding action, where the discarding action is used to instruct the second device to discard the received fourth packet; wherein the second group of entries includes a third action bucket and a fourth action bucket, the third action bucket is configured to instruct the second device to pop the first label in the second packet and output the first packet, where a fourth action bucket is used to indicate that the second device will The second tag in the fourth packet pops up and outputs the third
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty
  • the fourth action bucket includes a second action for instructing the second device to monitor whether the protection path has failed.
  • the third action bucket includes first state information that identifies whether the working path is faulty, a state information is determined by the second device according to the first action, the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is the second The device is determined according to the second action.
  • an embodiment of the present invention provides a method for sending information, including:
  • the second device receiving controller sends the second information, where the second information includes the second flow entry and the second set of entries; wherein the second flow entry includes the working path flow entry and the protection path flow entry
  • the matching field of the working path flow entry includes a first label
  • the instruction domain of the working path flow entry includes a second set of actions
  • the operand of the second set of actions is a second set of identifiers, where the The second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries;
  • the matching domain of the protection path flow entry includes a second label
  • the instruction field of the entry includes a discarding action; wherein the second set of entries includes a third action bucket and a fourth action bucket, where the third action bucket is used to indicate that the second device is in the second packet
  • the first tag pops up and outputs a first packet
  • the fourth action bucket is used to instruct the second device to pop the second tag in the fourth packet and output a third packet, where the The second device determines
  • the second packet is generated by the first device pushing the first label into the first packet, where the fourth packet is that the first device pushes the second label into the first And generating, by the third packet, the third packet is the same as the first packet, the first label corresponds to the working path, the second label corresponds to the protection path, the working path, and the working path
  • the protection path is determined by the controller, the working path and the starting node of the protection path are the first device, and the ending node of the working path and the protection path is the second device.
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty
  • the fourth action bucket includes a second action for instructing the second device to monitor whether the protection path has failed.
  • the second device determines, by using the second action, that the working path is faulty
  • the second device determines that the fourth action bucket in the second group of entries is alive; and, the discarding action in the command domain of the protection path flow entry Updating to the second group of actions, the operand of the second group of actions is the second group of identifiers, and the second group of actions is used to instruct the second device to use the protection path flow entry and the The second set of entries is associated.
  • the third action bucket includes first state information that identifies whether the working path is faulty, The first state information is determined by the second device according to the first action, and the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is the first The second device is determined according to the second action.
  • the second device determines, by using the first state information, that the working path is faulty;
  • the operand of the second group of actions is the second group of identifiers, and the second set of actions is used to instruct the second device to use the protection path flow entry and the The second set of entries is associated.
  • the second device sends the updated protection path flow to the controller Entry.
  • an embodiment of the present invention provides a method for sending information, including:
  • the first device receives the first information sent by the controller, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where the matching domain includes a destination And the instruction field includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first group of actions is used to instruct the first device to use the first flow entry
  • the first set of entries is associated with the first set of entries, and the first set of entries includes the first action bucket and the second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into the first packet matching the first flow entry to generate a second packet, where the second action bucket is used to indicate that the first device is to be The second packet is pushed into the third packet to generate a fourth packet, where the third packet is the same as the first packet;
  • an embodiment of the present invention provides a method for sending information, including:
  • the controller determines a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the ending node of the working path and the protection path is a second device, where the working path corresponds to the first label, The protection path corresponds to the second label;
  • the controller sends the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, and the matching
  • the domain includes an identifier of the destination, the command domain includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first set of actions is used to indicate that the first device
  • the first-class entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • An action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and to the second through the working path
  • the device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and use the protection path to
  • the second device sends the fourth packet, where the third packet
  • the controller sends the second information to the second device, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry;
  • the matching field of the working path flow entry includes the first label, where the instruction field of the working path flow entry is used to instruct the second device to pop the first label of the second packet and output The first packet;
  • the matching field of the protection path flow entry includes the second label, the instruction field of the protection path flow entry includes a discarding action, and the discarding action is used to indicate the second device Discarding the fourth packet.
  • the controller receives a notification message that the working path is faulty, and sends a flow table update message to the second device, where the flow table is An update message is used to indicate that the second device sends the protection path flow table
  • the item is updated to a new protection path flow entry; the matching field of the new protection path flow entry includes the second tag, and the command field of the new protection path flow entry is used to indicate the second device And ejecting the second label in the sixth packet and outputting a fifth packet, where the sixth packet is generated by the first device pushing the second label into the fifth packet.
  • the flow table update message is further used to indicate that the second device updates the working path flow entry a new working path flow entry; the matching field of the new working path flow entry includes the first label, and the command field of the new working path flow entry is used to indicate that the second device discards And an eighth message, where the eighth message is generated by the first device pushing the first label into the seventh message.
  • an embodiment of the present invention provides a method for sending information, including: receiving, by a second device, second information that is sent by a controller, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry; wherein the matching domain of the working path flow entry includes a first label, and the instruction domain of the working path flow entry is used to indicate that the second device is to be the second
  • the first label in the packet is popped up and the first packet is output;
  • the matching field of the protection path flow entry includes a second label, and the instruction field of the protection path flow entry includes a discarding action;
  • the second device pops the first label in the second packet to output the first packet according to the working path flow entry, and discards the fourth report according to the protection path flow entry Text
  • the working path and the protection path are determined by the controller, the first device is a starting node of the working path and the protection path, and the second device is the working path and the protection path.
  • the end node, the first label is a label corresponding to the working path, and the second label is a label corresponding to the protection path.
  • the second device receives a flow table update message sent by the controller, where the flow table update message is used to indicate the second device Updating the protection path flow entry to a new protection path flow entry, where the flow table update message is generated by the controller based on the notification message that the working path is faulty received by the controller;
  • the matching field of the new protection path flow entry includes the second label, where the new protection path flow entry is used to indicate that the second device is to be in the sixth message.
  • the second label is popped up and outputs a fifth packet, where the sixth packet is generated by the first device pushing the second label into the fifth packet, and the sixth packet is The first device is sent to the second device through the protection path.
  • the flow table update message further includes: indicating, by the second device, the working path flow The entry is updated to a new working path flow entry; the matching domain of the new working path flow entry includes the first label, and the new working path flow entry is used to indicate that the second device will discard An eighth packet, wherein the eighth packet is generated by the first device pushing the first label into the seventh packet, and the eighth packet is that the first device passes the working path Sent to the second device.
  • an embodiment of the present invention provides a controller, including:
  • a determining unit configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the working node and the ending node of the protection path are a second device, the working path Corresponding to the first label, the protection path corresponds to the second label;
  • a first sending unit configured to send first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching domain includes an identifier of the destination, the command domain includes a first group of actions, and the operand of the first group of actions is a first group of identifiers, where the first group of actions is used to indicate that the first device is
  • the first flow entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and use the working path to
  • the second device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and pass the protection path. Sending the fourth packet to the second device, where the third packet
  • a second sending unit configured to send the second information to the second device, where the second information includes a second flow entry and a second set of entries; where the second flow entry includes a working path flow table And the protection path flow entry; the matching domain of the working path flow entry includes the first label, the instruction domain of the working path flow entry includes a second set of actions, and the second set of actions
  • the number of the operations is a second group of identifiers, the second group of actions is used to instruct the second device to associate the working path flow entry with the second group of entries;
  • the domain includes the second label, where the command field of the protection path flow entry includes a discarding action, and the discarding action is used to instruct the second device to discard the received fourth packet;
  • the second action bucket is configured to instruct the second device to pop the first label in the second packet and output the first a packet
  • the fourth action bucket is configured to instruct the second device to pop the second label in the fourth packet and output the third packet, where the third action bucket is The second device determines to be alive, and the group
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty.
  • the fourth action bucket includes a second action for instructing the second device to monitor whether the protection path is faulty.
  • the third action bucket includes first state information that identifies whether the working path is faulty, The first state information is determined by the second device according to the first action, and the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is the first The second device is determined according to the second action.
  • the receiving unit is configured to receive the updated protection path that is sent by the second device Flow entry.
  • the embodiment of the present invention provides a second device, including:
  • a receiving unit configured to receive, by the controller, second information, where the second information includes a second flow entry and a second set of entries; where the second flow entry includes a working path flow entry and a protection path flow
  • the matching field of the working path flow entry includes a first label
  • the instruction domain of the working path flow entry includes a second set of actions
  • the operand of the second set of actions is a second set of identifiers
  • the second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries;
  • the matching domain of the protected path flow entry includes a second label, the protection
  • the command field of the path flow entry includes a discarding action; wherein the second set of entries includes a third action bucket and a fourth action bucket, and the third action bucket is configured to indicate that the second device sends the second report
  • the first tag in the text pops up and outputs a first packet
  • the fourth action bucket is used to instruct the second device to pop the second tag in the fourth packet and output a third packet
  • a processing unit configured to discard the fourth packet according to the protection path flow entry, pop the first label in the second packet according to the working path flow entry, and output the first packet Message
  • the second packet is generated by the first device pushing the first label into the first packet, where the fourth packet is that the first device pushes the second label into the first And generating, by the third packet, the third packet is the same as the first packet, the first label corresponds to the working path, the second label corresponds to the protection path, the working path, and the working path
  • the protection path is determined by the controller, the working path and the starting node of the protection path are the first device, and the ending node of the working path and the protection path is the second device.
  • the third action bucket in the second information received by the second device is configured to indicate the second device monitoring a first action of whether a fault occurs in the working path, and the fourth action bucket includes a second action for instructing the second device to monitor whether the protection path is faulty.
  • the second device further includes a first updating unit, configured to determine, by using the second action The working path is faulty; based on the result of the determining, the second device determines that the fourth action bucket in the second group of entries is alive; and, the instruction of the protection path flow entry
  • the discarding action in the domain is updated to the second group of actions, the operand of the second group of actions is the second group of identifiers, and the second set of actions is used to instruct the second device to use the protection path
  • the flow entry is associated with the second set of entries.
  • the third action bucket in the second information received by the second device includes the identifier a first state information of whether the working path is faulty, the first state information is determined by the second device according to the first action, and the fourth action bucket includes a second identifier that identifies whether the protection path is faulty. Status information, the second status information is determined by the second device according to the second action.
  • the second device further includes a second updating unit, configured to determine, by using the first state information, The working path has failed;
  • the operand of the second group of actions is the second group of identifiers, and the second set of actions is used to instruct the second device to use the protection path flow entry and the The second set of entries is associated.
  • the second device further includes: a sending unit, configured to send the update to the controller The protection path flow entry.
  • an embodiment of the present invention provides a first device, including:
  • a receiving unit configured to receive first information that is sent by the controller, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where the matching domain includes An identifier of the destination, the instruction field includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first group of actions is used to indicate that the first device is to use the first flow table
  • the item is associated with the first group of entries, the first group of the table includes a first action bucket and a second action bucket, and the group type of the first group of entries is all;
  • the action bucket is configured to instruct the first device to push the first label into the first packet that matches the first flow entry to generate a second packet, where the second action bucket is used to indicate the first device Pushing the second label into the third packet to generate a fourth packet, where the third packet is the same as the first packet;
  • a processing unit configured to send the second packet to the second device by using the working path according to the first information, and send the fourth packet to the second device by using a protection path;
  • the working path and the protection path are determined by the controller, the starting node of the working path and the protection path is the first device, and the ending node of the working path and the protection path is the first In the second device, the working path corresponds to the first label, and the protection path corresponds to the second label.
  • a ninth aspect, the embodiment of the present invention provides a controller, including:
  • Determining a unit determining a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the ending node of the working path and the protection path is a second device
  • the working path corresponds to the first label
  • the protection path corresponds to the second label
  • a first sending unit configured to send first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching field includes the identifier of the destination, the command domain includes a first group of actions, and the operand of the first group of actions is a first group of identifiers, where the first group of actions is used to indicate that the first device
  • the first flow entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and use the working path to
  • the second device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and pass the protection. Transmitting, by the path, the fourth packet to the second device,
  • a second sending unit configured to send the second information to the second device, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry;
  • the matching field of the working path flow entry includes the first label, and the command field of the working path flow entry is used to instruct the second device to use the first label of the second packet Popping up and outputting the first packet;
  • the matching field of the protection path flow entry includes the second label, the instruction field of the protection path flow entry includes a discarding action, and the discarding action is used to indicate the The second device discards the fourth packet.
  • the controller further includes a third sending unit, configured to receive a notification message that the working path is faulty, to the second device And sending a flow table update message, where the flow table update message is used to indicate that the second device updates the protection path flow entry to a new protection path flow entry; the matching domain of the new protection path flow entry Including the second label, the command field of the new protection path flow entry is used to instruct the second device to pop the second label in the sixth packet and output a fifth packet, where The sixth message is generated by the first device pushing the second tag into the fifth message.
  • the flow table update message that is sent by the third sending unit is further used to indicate The second device updates the working path flow entry to a new working path flow
  • the entry field of the new working path flow entry includes the first label
  • the command field of the new working path flow entry is used to instruct the second device to discard the eighth packet
  • the eighth message is generated by the first device pushing the first label into the seventh message.
  • the embodiment of the present invention provides a second device, including:
  • a first receiving unit configured to receive second information that is sent by the controller, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry;
  • the matching field of the working path flow entry includes a first label, where the command field of the working path flow entry is used to instruct the second device to pop the first label in the second packet and output the first packet.
  • the matching field of the protection path flow entry includes a second label, and the instruction domain of the protection path flow entry includes a discarding action;
  • a first processing unit configured to: eject the first label in the second packet to output the first packet according to the working path flow entry, and discard the first packet according to the protection path flow entry Four messages;
  • the working path and the protection path are determined by the controller, the first device is a starting node of the working path and the protection path, and the second device is the working path and the protection path.
  • the end node, the first label is a label corresponding to the working path, and the second label is a label corresponding to the protection path.
  • the second device further includes:
  • a second receiving unit configured to receive a flow table update message sent by the controller, where the flow table update message is used to instruct the second device to update the protection path flow entry to a new protection path flow entry
  • the flow table update message is generated by the controller according to the notification message that the working path is faulty, and the matching field of the new protection path flow entry includes the second label.
  • a second processing unit configured to: eject the second label in the sixth packet according to the new protection path flow entry, and output a fifth packet, where the sixth packet is that the first device The second label is pushed into the fifth message, and the sixth message is sent by the first device to the second device by using the protection path.
  • the flow table update message received by the second receiving unit further includes Instructing the second device to update the working path flow entry to a new working path flow entry; the matching domain of the new working path flow entry includes the first label;
  • the second processing unit is further configured to: discard the eighth packet according to the new working path flow entry, where the eighth packet is that the first device pushes the first label into the seventh packet And generated, and the eighth message is sent by the first device to the second device by using the working path.
  • an embodiment of the present invention provides a controller, including:
  • a processor configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the working node and an ending node of the protection path are a second device, where the working path is Corresponding to the first label, the protection path corresponds to the second label;
  • a transmitter configured to send first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where the matching The domain includes an identifier of the destination, the command domain includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first set of actions is used to indicate that the first device A first-class entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • An action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and to the second through the working path The device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and use the protection path to The second device sends the fourth packet, the third packet and the first packet And sending the second
  • the third action bucket in the second information sent by the sender is configured to indicate that the second device monitors a first action of whether the fault occurs in the working path, and the fourth action bucket includes a second action for instructing the second device to monitor whether the protection path is faulty.
  • the third action bucket in the second information sent by the sender includes the identifier a first state information of whether the working path is faulty, the first state information is determined by the second device according to the first action, and the fourth action bucket includes a second identifier that identifies whether the protection path is faulty. Status information, the second status information is determined by the second device according to the second action
  • the controller further includes a receiver, configured to receive, by the second device, The updated protection path flow entry.
  • the embodiment of the present disclosure provides a second device, including:
  • a receiver configured to receive, by the controller, second information, where the second information includes a second flow entry and a second set of entries; where the second flow entry includes a working path flow entry and a protection path flow
  • the matching field of the working path flow entry includes a first label
  • the instruction domain of the working path flow entry includes a second set of actions
  • the operand of the second set of actions is a second set of identifiers
  • the second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries;
  • the matching domain of the protected path flow entry includes a second label, the protection
  • the command field of the path flow entry includes a discarding action; wherein the second set of entries includes a third action bucket and a fourth action bucket, and the third action bucket is configured to indicate that the second device sends the second packet
  • the first tag is popped up and outputs a first packet
  • the fourth action bucket is used to instruct the second device to pop the second tag in the fourth packet and output a third packet.
  • Said second device determines that said third action bucket is alive, The group type of the second group of entries is fast failover; the processor is configured to discard the fourth packet according to the protection path flow entry, according to the The working path flow entry pops up the first label in the second packet and outputs the first packet;
  • the second packet is generated by the first device pushing the first label into the first packet, where the fourth packet is that the first device pushes the second label into the first And generating, by the third packet, the third packet is the same as the first packet, the first label corresponds to the working path, the second label corresponds to the protection path, the working path, and the working path
  • the protection path is determined by the controller, the working path and the starting node of the protection path are the first device, and the ending node of the working path and the protection path is the second device.
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty
  • the second action bucket includes a second action for instructing the second device to monitor whether the protection path is faulty.
  • the processor is further configured to:
  • the second device determines that the fourth action bucket in the second group of entries is alive; and, the discarding action in the command domain of the protection path flow entry Updating to the second group of actions, the operand of the second group of actions is the second group of identifiers, and the second group of actions is used to instruct the second device to use the protection path flow entry and the The second set of entries is associated.
  • the third action bucket includes first state information that identifies whether the working path is faulty, The first state information is determined by the second device according to the first action, and the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is the The second device is determined according to the second action.
  • the processor is further configured to:
  • the second device determines that the fourth action bucket in the second group of entries is alive; and, the discarding action in the command domain of the protection path flow entry is further
  • the operand of the second group of actions is the second group of identifiers, and the second group of actions is used to instruct the second device to use the protection path flow entry and the The second set of entries is associated.
  • the second device further includes:
  • the embodiment of the present invention provides a first device, including:
  • a receiver configured to receive first information sent by the controller, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where the matching domain includes An identifier of the destination, the instruction field includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first group of actions is used to indicate that the first device is to use the first flow table
  • the item is associated with the first group of entries, the first group of the table includes a first action bucket and a second action bucket, and the group type of the first group of entries is all;
  • the action bucket is configured to instruct the first device to push the first label into the first packet that matches the first flow entry to generate a second packet, where the second action bucket is used to indicate the first device Pushing the second label into the third packet to generate a fourth packet, where the third packet is the same as the first packet;
  • a processor configured to send the second packet to the second device by using the working path according to the first information, and send the fourth packet to the second device by using a protection path;
  • the working path and the protection path are determined by the controller, the starting node of the working path and the protection path is the first device, and the ending node of the working path and the protection path is the first In the second device, the working path corresponds to the first label, and the protection path corresponds to the second label.
  • an embodiment of the present invention provides a controller, including:
  • a processor configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the ending node of the working path and the protection path is a second device, where the working path corresponds to a label, the protection path corresponding to the second label;
  • a transmitter configured to send the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching field includes an identifier of the destination, the command domain includes a first group of actions, and the operand of the first group of actions is a first group of identifiers, where the first group of actions is used to indicate that the first device First
  • the first-class entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • An action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and to the second through the working path
  • the device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and use the protection path to
  • the second device sends the fourth packet, where the third
  • the matching domain of the working path flow entry includes the first label, and the instruction domain of the working path flow entry is used. Instructing the second device to pop up and output the first label of the second packet a first packet; the matching field of the protection path flow entry includes the second label, the instruction field of the protection path flow entry includes a discarding action, and the discarding action is used to indicate that the second device discards The fourth message.
  • the transmitter is further configured to: receive a notification message that the working path is faulty, and send a flow table update to the second device.
  • a message, the flow table update message is used to indicate that the second device updates the protection path flow entry to a new protection path flow entry;
  • the matching domain of the new protection path flow entry includes the a second label, where the command field of the new protection path flow entry is used to instruct the second device to pop the second label in the sixth packet and output a fifth packet, where the sixth packet is The first device pushes the second label into the fifth message generated.
  • the flow table update message is further used to indicate that the second device sends the working path
  • the entry is updated to a new working path flow entry; the matching domain of the new working path flow entry includes the first label, and the command domain of the new working path flow entry is used to indicate the second
  • the device discards the eighth packet, where the eighth packet is generated by the first device pushing the first label into the seventh packet.
  • the embodiment of the present invention provides a second device, including:
  • a receiver configured to receive the second information that is sent by the controller, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry;
  • the matching field of the working path flow entry includes a first label, and the instruction of the working path flow entry The domain is used to instruct the second device to pop the first label in the second packet and output the first packet.
  • the matching field of the protection path flow entry includes a second label, where the protection path flow entry is
  • the instruction field includes a discarding action;
  • a processor configured to: eject the first label in the second packet to output the first packet according to the working path flow entry, and discard the fourth report according to the protection path flow entry Text
  • the working path and the protection path are determined by the controller, the first device is a starting node of the working path and the protection path, and the second device is the working path and the protection path.
  • the end node, the first label is a label corresponding to the working path, and the second label is a label corresponding to the protection path.
  • the receiver is further configured to: receive a flow table update message sent by the controller, where the flow table update message is used to indicate The second device updates the protection path flow entry to a new protection path flow entry, where the flow table update message is a notification that the controller fails based on the working path received by the controller And the matching field of the new protection path flow entry includes the second label, where the new protection path flow entry is used to indicate that the second device is to be in the sixth message.
  • the second packet is popped up and outputs a fifth packet, where the sixth packet is generated by the first device pushing the second label into the fifth packet, and the sixth packet is the first packet.
  • a device transmits to the second device through the protection path.
  • the flow table update message is further included to indicate that the second device is to use the working path.
  • the flow entry is updated to a new working path flow entry; the matching domain of the new working path flow entry includes the first tag, and the new working path flow entry is used to indicate that the second device will Discarding an eighth packet, where the eighth packet is generated by the first device pushing the first label into the seventh packet, and the eighth packet is that the first device passes the work The path is sent to the second device.
  • the embodiment of the present invention provides a system for transmitting information, including: the controller of the sixth aspect, the first aspect to the second possible implementation manner, the seventh aspect, the seventh A second device of any one of the first to the second possible aspects, the first device of the eighth aspect.
  • a seventeenth aspect the embodiment of the present invention provides a system for transmitting information, including: the controller of the ninth aspect, the first aspect to the second possible implementation manner, the tenth aspect, the tenth A second device of any one of the first to the second possible aspects, the first device of the eighth aspect.
  • the embodiment of the present invention provides a system for transmitting information, including: the controller of the eleventh aspect, the eleventh aspect, the first to the second possible implementation manner, the twelfth aspect The twelfth aspect, the second device of any one of the first to the second possible implementations, the first device of the thirteenth aspect.
  • the embodiment of the present invention provides a system for transmitting information, including: the controller of the fourteenth aspect, the fourteenth aspect, the first to the second possible implementation manner, the fifteenth aspect The fifteenth aspect, the second device of any one of the possible implementations of the first to the second, the first device of the sixteenth aspect.
  • Embodiments of the present invention provide a method, an apparatus, and a system for transmitting information.
  • the working path and the protection path are determined by the controller.
  • the working path corresponds to the first label
  • the protection path corresponds to a second label.
  • the controller sends the first information to the first device, to instruct the first device to send the second message and the fourth report to the second device by using the working path and the protection path according to the first information, respectively.
  • Text The second packet is generated by pushing the first label into the first packet, and the fourth packet is generated by pushing the second label into the third packet.
  • the first message and the third message are the same.
  • the controller sends second information to the second device, to instruct the second device to receive the second packet by using the working path according to the second information, and discarding receiving from the protection path
  • the fourth message realizes selective reception. Further, the first message is output.
  • the above technical solutions help to support services with higher QoS requirements.
  • a service with higher QoS requirements may be a banking service or a mobile backhaul service.
  • Embodiment 1 is a schematic flowchart of Embodiment 1 of a method for transmitting information according to the present invention
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of a method for transmitting information according to the present invention
  • Embodiment 3 is a schematic flowchart of Embodiment 3 of a method for transmitting information according to the present invention
  • Embodiment 4 is a signaling flowchart of Embodiment 4 of a method for transmitting information according to the present invention
  • FIG. 5 is a schematic diagram of Embodiment 4 of a method for transmitting information according to the present invention.
  • FIG. 6 is a schematic diagram of first information of Embodiment 4 of a method for transmitting information according to the present invention
  • FIG. 7 is a schematic diagram of a second information of Embodiment 4 of a method for transmitting information according to the present invention.
  • FIG. 8 is a schematic diagram of another second information of the fourth embodiment of the method for transmitting information according to the present invention
  • FIG. 9 is a schematic diagram of the second information after updating the fourth embodiment of the method for transmitting information according to the present invention
  • FIG. 11 is a first information diagram of Embodiment 5 of a method for transmitting information according to the present invention
  • FIG. 12 is a second information diagram of Embodiment 5 of a method for transmitting information according to the present invention.
  • FIG. 14 is a first schematic diagram of a sixth embodiment of a method for transmitting information according to the present invention
  • FIG. 15 is a second schematic diagram of a sixth embodiment of a method for transmitting information according to the present invention. The second information schematic diagram;
  • Embodiment 7 is a schematic flowchart of Embodiment 7 of a method for transmitting information according to the present invention.
  • Embodiment 8 is a schematic flowchart of Embodiment 8 of a method for transmitting information according to the present invention.
  • Embodiment 9 is a signaling flowchart of Embodiment 9 of a method for transmitting information according to the present invention.
  • Embodiment 9 of a method for transmitting information according to the present invention.
  • FIG. 21 is a schematic diagram of a second information of a method for transmitting information according to Embodiment 9 of the present invention
  • FIG. 22 is a schematic diagram of an updated second information of Embodiment 9 of the method for transmitting information according to the present invention
  • FIG. 23 is a schematic structural diagram of an embodiment of a controller according to the present invention.
  • FIG. 24 is a schematic structural view of an embodiment of a second device of the present invention.
  • Figure 25 is a schematic structural view of an embodiment of a first device of the present invention
  • 26 is a schematic structural diagram of another embodiment of a controller according to the present invention
  • Figure 27 is a schematic structural view of another embodiment of a second device according to the present invention.
  • 29 is a schematic structural diagram of a second device according to an embodiment of the present invention.
  • Figure 30 is a schematic structural view of an embodiment of a first device of the present invention.
  • FIG. 31 is a schematic structural diagram of another embodiment of a controller device according to the present invention.
  • FIG. 32 is a schematic structural diagram of another embodiment of a second device according to the present invention.
  • Embodiment 33 is a schematic structural diagram of Embodiment 1 of a system for transmitting information according to the present invention.
  • Figure 34 is a schematic structural diagram of Embodiment 2 of a system for transmitting information according to the present invention.
  • Embodiment 3 is a schematic structural diagram of Embodiment 3 of a system for transmitting information according to the present invention.
  • FIG. 36 is a schematic structural diagram of Embodiment 4 of a system for transmitting information according to the present invention. detailed description
  • the implementation scenario of the embodiment of the present invention is an OpenFlow network.
  • the controller involved in the embodiment of the present invention is an OpenFlow controller.
  • OpenFlow Switch Specification Version 1.4.0 (English: OpenFlow Switch Specification version 1.4.0).
  • sub-technical terms include but are not limited to: flow table (English: flow table), flow table entry (English: flow entry), group table (group table), group table entry (English: group entry), Yun Li Zuo : action) , action bucket (English: action bucket), instruction (English: instruction), group type (English: group type), group identifier (group identifier), fast failover (English: fast failover).
  • the action may be a push tag (English: Push-Tag), a bullet tag (English: Pop-Tag), a discard (English: Drop), an output (English: Output), or a group (English: Grou).
  • a group action can be used to indicate that a flow entry is associated with a group entry. Specifically, the flow entry The group action can be included.
  • the operand of the group action may be a group identifier of the group entry. A person skilled in the art may understand that, when performing the group action in the flow entry, the group entry corresponding to the group identifier needs to be accessed.
  • FIG. 1 is a schematic flowchart of Embodiment 1 of a method for transmitting information according to the present invention, including:
  • the controller determines a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the working node and the ending node of the protection path are a second device, where the working path corresponds to The first label, the protection path corresponds to the second label.
  • the first device may be a network device.
  • the network device may be an operator edge (English: provider edge, referred to as PE), and the first device may be a service originating end or an intermediate node.
  • PE provider edge
  • the second device can be a network device.
  • the network device can be a PE.
  • the second device may be a service terminating end or an intermediate node.
  • the protection path may be multiple protection paths.
  • the second tag can be a plurality of tags.
  • the plurality of protection paths are in one-to-one correspondence with the plurality of labels.
  • the controller sends the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching field includes an identifier of the destination, the command domain includes a first group of actions, and the operand of the first group of actions is a first group of identifiers, where the first group of actions is used to indicate that the first device
  • the first flow entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and send the second packet to the first
  • the second device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and the protection path is The second device sends the fourth packet, where the third packet is The same as
  • the identity of the destination may be the address of the destination.
  • the address may be an internet protocol (IP) address, an IP address prefix, or a media access control (MAC) protocol address.
  • IP internet protocol
  • MAC media access control
  • the destination can be a host.
  • the host can be a personal computer, a personal digital assistant, or a set top box.
  • the controller sends the second information to the second device, where the second information includes a second flow entry and a second set of entries; where the second flow entry includes a working path flow entry And the protection path flow entry; the matching domain of the working path flow entry includes the first label, the instruction domain of the working path flow entry includes a second set of actions, and the operand of the second set of actions is a second group of actions, the second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries; the matching domain of the protection path flow entry includes The second tag, the command field of the protection path flow entry includes a discard (English: Drop) action, and the discarding action is used to instruct the second device to discard the received fourth message;
  • the second set of entries includes a third action bucket and a fourth action bucket, the third action bucket is configured to instruct the second device to pop the first label in the second packet and output the a first message, the fourth action bucket is used to indicate the The second device pops up the second label in the fourth packet and outputs the third packet,
  • the third action bucket may include an Output action.
  • the Output action is used to perform outputting the first message.
  • the outputting the first packet may be forwarding the first packet to a next hop network device, or may be outputting the first packet to a module of the second device.
  • the module of the second device may be a module for performing IP processing, or may be a module for performing a transmission control protocol (English: transmission control protocol, referred to as TCP). It should be noted that other embodiments in this application also relate to outputting messages.
  • the output message may be that the message is sent to the next hop network device, or may be a module that outputs the message to the local device.
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty, and the fourth action bucket includes a second action bucket for indicating the second device monitoring station. The second action of whether or not the protection path is faulty.
  • the third action bucket includes first state information that identifies whether the working path is faulty, and the first state information is determined by the second device according to the first action
  • the fourth The action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is determined by the second device according to the second action.
  • the controller receives the updated protection path flow entry sent by the second device.
  • the controller determines the working path and the protection path.
  • the working path corresponds to the first label.
  • the protection path corresponds to the second label.
  • the controller sends the first information to the first device, to instruct the first device to send the second message and the fourth report to the second device by using the working path and the protection path according to the first information, respectively.
  • Text The second packet is generated by pushing the first label into the first packet.
  • the fourth packet is generated by pushing the second label into the third packet.
  • the first message and the third message are the same.
  • the controller sends second information to the second device, to instruct the second device to receive the second packet by using the working path according to the second information, and discarding receiving from the protection path
  • the fourth message realizes selective reception. Further, the first message is output.
  • the technical solution provided in this embodiment helps to support services with high quality of service (English: quality of service, QoS for short).
  • a service with higher QoS requirements may be a banking service or a mobile backhaul service.
  • Embodiment 2 is a schematic flowchart of Embodiment 2 of a method for transmitting information according to the present invention, including: 21: a second device receiving controller sends second information, where the second information includes a second flow entry and a second group entry;
  • the second flow entry includes a working path flow entry and a protection path flow entry;
  • the matching domain of the working path flow entry includes a first label, and the instruction domain of the working path flow entry includes a second group
  • the second set of actions is used by the second device to associate the working path flow entry with the second set of entries;
  • the matching field of the protection path flow entry includes a second label, where the instruction field of the protection path flow entry includes a discarding action, where the second group of entries includes a third action bucket and a fourth action bucket.
  • the third action bucket is configured to instruct the second device to pop the first label in the second packet and output a first message, where the fourth action bucket is used to indicate that the second device is to be the fourth The second standard in the message Pop and outputs the third packet, the second means determining the third live action barrels, type of the second set of entries is set fast failover.
  • the second device discards the fourth packet according to the protection path flow entry, pops the first label in the second packet according to the working path flow entry, and outputs the First message.
  • the second packet is generated by the first device pushing the first label into the first packet, and the fourth packet is sent by the first device to the second label.
  • Third message The third packet is the same as the first packet, the first label corresponds to the working path, the second label corresponds to the protection path, and the working path and the protection path are The controller determines that the working path and the starting node of the protection path are the first device, and the working node and the ending node of the protection path are the second device.
  • the first device may be a network device.
  • the network device may be a PE, and the first device may be a service initiator or an intermediate node.
  • the second device can be a network device.
  • the network device can be a PE.
  • the second device may be a service terminating end or an intermediate node.
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty
  • the fourth action bucket includes a second action box for indicating the second device A second action of monitoring whether the protection path has failed.
  • the second device Determining, by the second action, that the working path is faulty by the second action; based on the determined result, the second device determines that the fourth action bucket in the second group of entries is alive And updating the discarding action in the command field of the protection path flow entry to the second group of actions, the operand of the second group of actions being the second group of identifiers, the second group The action is used to instruct the second device to associate the protection path flow entry with the second group entry.
  • the third action bucket includes first state information that identifies whether the working path is faulty, and the first state information is determined by the second device according to the first action
  • the fourth The action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is determined by the second device according to the second action.
  • the action is used to instruct the second device to associate the protection path flow entry with the second group entry.
  • the second device sends the updated protection path flow entry to the controller.
  • the second information is sent by the second device, where the second information packet is sent by the second device.
  • the second flow entry and the second set of entries are included.
  • the second flow entry includes a working path flow entry and a protection path flow entry.
  • the matching field of the working path flow entry includes a first label.
  • the instruction field of the working path flow entry includes a second set of actions.
  • the second set of actions is used by the second device to associate the working path flow entry with the second set of entries.
  • the matching field of the protection path flow entry includes a second label.
  • the instruction field of the protection path flow entry includes a discarding action.
  • the second set of entries includes a third action bucket and a fourth action bucket.
  • the third action bucket is configured to instruct the second device to pop the first label in the second packet and output the first packet.
  • the fourth action bucket is configured to instruct the second device to pop the second label in the fourth packet and output a third packet.
  • the first packet is the same as the third packet.
  • the second device determines that the third action bucket is alive.
  • the group type of the second group of entries is fast failover.
  • the second device discards the fourth packet according to the protection path flow entry, pops the first label in the second packet according to the working path flow entry, and outputs the first packet.
  • the same packet is sent to the second device by using multiple paths, and the second device selects to receive the second packet sent by using the working path.
  • the above technical solutions help to support services with higher QoS requirements, such as banking services or mobile backhaul services.
  • FIG. 3 is a schematic flowchart of Embodiment 3 of a method for sending information according to the present invention, including:
  • the first device receives the first information sent by the controller, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where the matching domain includes An identifier of the destination, the instruction field includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first group of actions is used to indicate that the first device is to use the first flow table
  • the item is associated with the first group of entries, the first group of the table includes a first action bucket and a second action bucket, and the group type of the first group of entries is all;
  • the action bucket is configured to instruct the first device to push the first label into the first packet that matches the first flow entry to generate a second packet, where the second action bucket is used to indicate the first device Pushing the second label into the third packet to generate a fourth packet, where the third packet is the same as the first packet.
  • the first device sends the second packet to the second device by using the working path according to the first information, and sends the fourth packet to the second device by using a protection path.
  • the working path and the protection path are determined by the controller, and the working node and the starting node of the protection path are the first device, the working path and the protection path
  • the end node of the trail is the second device, the working path corresponds to the first label, and the protection path corresponds to the second label.
  • the first device receives the first information sent by the controller by using the first device, where the first information includes the first flow entry and the first group entry.
  • the first flow entry includes a matching domain and an instruction domain.
  • the matching domain includes an identification of a destination.
  • the instruction field includes a first set of actions.
  • the operands of the first set of actions are the first set of identities.
  • the first group of actions is used to instruct the first device to associate the first flow entry with the first set of entries.
  • the first set of entries includes a first action bucket and a second action bucket.
  • the group type of the first group of entries is all.
  • the first action bucket is configured to instruct the first device to push the first label into the first packet that matches the first flow entry to generate a second packet.
  • the second action bucket is configured to instruct the first device to push the second label into the third packet to generate a fourth packet.
  • the third packet is the same as the first packet.
  • the first device sends the second packet to the second device by using the working path according to the first information, and sends the fourth packet to the second device by using a protection path.
  • the same packet is sent through multiple paths.
  • the above technical solutions help to support services with high QoS requirements, such as banking services or mobile backhaul services.
  • FIG. 4 is a signaling flowchart of Embodiment 4 of a method for transmitting information according to the present invention.
  • FIG. 5 is a schematic diagram of Embodiment 4 of a method for transmitting information according to the present invention.
  • FIG. 6 is a schematic diagram of the first information of Embodiment 4 of the method for transmitting information according to the present invention.
  • FIG. 7 is a schematic diagram of a second information of Embodiment 4 of a method for transmitting information according to the present invention.
  • FIG. 8 is a schematic diagram of another second information of Embodiment 4 of the method for transmitting information according to the present invention.
  • FIG. 9 is a schematic diagram of the updated second information according to Embodiment 4 of the method for transmitting information according to the present invention.
  • FIG. 5 is a schematic diagram of Embodiment 4 of a method for transmitting information according to the present invention.
  • FIG. 6 is a schematic diagram of the first information of Embodiment 4 of the method for transmitting information
  • FIG. 10 is a schematic diagram of another updated second information according to Embodiment 4 of the method for transmitting information according to the present invention.
  • the method for transmitting information according to Embodiment 4 of the present invention relates to a controller, a first device, and a second device.
  • the thin client (English: thin client, TC for short) is the controller
  • S is the first device
  • D is the second device
  • E, F, and G are intermediate devices.
  • the destination address of the service request is 1.0.0.0/8.
  • the method for sending information includes:
  • S401 The first device sends a service request to the controller.
  • S402 The controller determines a working path and a protection path according to the service request.
  • the controller determines a working path and at least one protection path.
  • the number of protection paths can be one or multiple.
  • the working path and the starting node of the protection path are the first device.
  • the working path and the end node of the protection path are second installed Set. Specifically, the working path corresponds to the first label, and the protection path corresponds to the second label. If there are multiple protection paths, each protection path has a different second label.
  • the working path is SEFD.
  • the protection path is SGD.
  • S is the starting node.
  • D is the end node.
  • E, F, and G are intermediate nodes.
  • S403 The controller sends the first information to the first device.
  • the first information is as shown in FIG. 6.
  • the first information includes a first flow entry and a first set of entries.
  • the first flow entry contains a matching domain and an instruction domain.
  • the matching domain entry includes the identity of the destination.
  • the identity of the destination may be the IP address of the destination.
  • the IP address of the destination here is 1.0.0.0/8, which is used to match packets with the destination IP address of 1.0.0.0/8.
  • the destination IP address of the first packet matches the matching domain entry.
  • An instruction in the instruction field is executed on the first message.
  • the instruction field includes a first set of actions.
  • the operand of the first set of actions is a first set of identities.
  • the first group of actions is used to instruct the first device to associate the first flow entry with the first group entry.
  • the first set of entries contains the group ID, the group type, and the action bucket.
  • the action bucket includes a first action bucket and a second action bucket.
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and use the working path to The second device sends the second message.
  • the second action bucket is configured to instruct the second device to push the second label into the third packet to generate a fourth packet, and send the fourth device to the second device by using the protection path.
  • the third packet is the same as the first packet.
  • the first packet may be copied to generate the third packet.
  • the first action bucket in the action bucket shown in FIG. 6 indicates pushing in the tag 10 and outputting from the port P1.
  • Tag 10 corresponds to the working path.
  • the first action bucket indicates that the second message is sent to the second device by using the working path.
  • the first action bucket may include a push-tag (English: Push-Tag) action and an output (English: Output) action.
  • the push tag action is used to implement the push tag 10.
  • the output action is used to implement output from port P1.
  • the second action bucket indicates that the tag 11 is pushed in and output from the port P2. That is, the label 11 is pushed into the third packet to generate a fourth packet, and the fourth packet is forwarded through the port P2.
  • Tag 11 corresponds to the protection path.
  • the second action bucket indicates that the fourth packet is sent to the second device by using the protection path.
  • the group type is OFGPT-ALL, which is used to indicate that all action buckets in the action bucket are valid. In this embodiment, the group type indicates that both the first action bucket and the second action bucket are valid.
  • the second information includes a second flow entry and a second set of entries.
  • the second flow entry includes a working path flow entry and a protection path flow entry, where the working path flow entry and the The protection path flow entry includes a matching domain and a command domain.
  • the matching domain of the working path includes a label 10
  • the command domain includes a second group of actions
  • the second group of actions The operand is a second group of identifiers, and the second group of identifiers is 1 in the embodiment, where the second group of actions is used to instruct the second device to use the working path flow entry and the second group
  • the entry is associated
  • the matching field of the protection path flow entry includes a label 11
  • the instruction field includes a discarding action
  • the discarding action is used to instruct the second device to discard the received fourth packet.
  • the second set of entries includes a group identifier, a group type, and an action bucket.
  • the action bucket includes a third action bucket and a fourth action bucket. According to FIG. 5, the second device forwards the data out port to P3.
  • the action bucket in the second group of entries may be in the following two manners.
  • the actions in the third action bucket include a watch path, a pop-up tag 10 (pop tag 10), and an output from the port P3.
  • the action in the fourth action bucket includes a watch path, a pop-up tag 1 1 (pop tag 1 1 ), and a slave port P3, and the group type of the second group entry is fast failover (OFGPT_FF).
  • the third action bucket is alive, so only the action in the third action bucket is performed. When the working path is faulty, the action in the fourth action bucket is executed.
  • the third action bucket further includes first state information that identifies whether the working path is faulty.
  • the first status information is determined by the second device based on a watch path action.
  • the first state information is valid.
  • the fourth action bucket further includes second state information that identifies whether the protection path is faulty.
  • the second status information is determined by the second device according to a watch path action.
  • the second status information is invalid.
  • S405 The second device detects whether the working path is faulty.
  • Manner 1 After the controller calculates the working path and the protection path for the first device and the second device, and sends the first information and the second information, the second device and the first device start the BFD, OAM, etc. malfunction.
  • Manner 2 The controller sends a message to the first device, and the first device sends the message to the first device. The second device considers that the working path has failed if the second device does not receive the message. As shown in Figure 5, the link EF fails. According to the above two methods, the second device can obtain whether the working path is faulty.
  • the instruction field in the working path flow entry of the second information is updated to be discarded, and the path of the protection path is The instruction is updated to the second group of actions, and the operand of the second group of actions is the second group of identifiers 1, as shown in FIG. 9; if the action bucket described in the second method of S404 is used, the second group of the second information is The valid update of the first state information in the third action bucket in the entry is invalid, and the invalid update of the second state information in the fourth action bucket is valid, and the third action bucket is corresponding according to the state information in the action bucket.
  • the instruction field of the working path flow entry of the working path is updated to be discarded, and the instruction field of the protection path flow entry of the protection path corresponding to the third action bucket is updated to the second group of actions, and the operand of the second group of actions
  • the second group is identified as 1, as shown in FIG. Therefore, the second device receives the packet from the protection path, and achieves the purpose of fast protection switching.
  • S407 The second device sends the updated second information to the controller.
  • the second information is a second flow entry and a second set of entries of the second device.
  • a service request is sent to the controller by the first device.
  • the controller determines a working path and a protection path based on the service request.
  • the working path and the starting node of the protection path are the first device, and the ending node is the second device.
  • the controller sends the first information to the first device and the second information to the second device, so that the end-to-end service communication has a multiple-selection function.
  • the second device detects whether the working path has failed. If the working path link is normal, the original second information is used to receive the message. If the working path fails, the second information is changed.
  • the second device transmits the updated second information to the controller.
  • the foregoing technical solution implements the multi-selection fast route protection feature in the OpenFlow control data network. When the working path is faulty, the second device receives the packet from the effective protection path, thereby achieving the purpose of fast protection switching and reducing the fault. The impact on the continuity and reliability of service transmission effectively improves the quality of service transmission.
  • the multiple-selection fast route protection feature in the OpenFlow control data network is implemented by using one working path and multiple protection paths, but this embodiment does not use this as a Limitation
  • the working path can be selected from multiple
  • the protection path is selected by multiple
  • the two working paths and the two protection paths are used as an example.
  • the group type is OFGPT-ALL-FF
  • the group type indicates that two effective working paths in the action bucket are alive, that is, two devices are established for the first device and the second device by the controller. After the working path and the two protection paths, the first device sends the same packet through only two working paths, and the protection path does not send the packet temporarily.
  • the second device only receives the message sent by one working path.
  • the second device first receives the packet through another effective working path, and then activates a protection path as a valid path, and the first device simultaneously sends the same packet through the effective working path and the protection path.
  • 11 is a first information diagram of Embodiment 5 of a method for transmitting information according to the present invention
  • FIG. 12 is a second information diagram of Embodiment 5 of a method for transmitting information according to the present invention
  • FIG. 13 is an update of Embodiment 5 of a method for transmitting information according to the present invention
  • the second information diagram after the second. As shown in FIG. 11, the controller sends the first information as shown in FIG.
  • the first information includes the first flow entry and the first set of entries
  • the instruction domain of the first flow entry includes The first set of actions
  • the operation array 1 of the first set of actions is used to associate with the corresponding first set of entries
  • the set type of the first set of entries is OFGPT_ALL_FF, which is used to indicate two working paths in the action bucket.
  • the tag 10 and the tag 11 are alive, and the packets are sent through the port P1 and the port P1 1, respectively.
  • the controller sends the second information as shown in FIG. 12 to the second device.
  • the second information includes the second flow entry and the second set of entries, where the second flow entry includes the working path flow.
  • the entry and the protection path flow entry, the instruction fields of the two work paths 10 and 11 in the work path flow entry include the second set of actions, and the operand of the second set of actions is the group 1, which is used to associate with the corresponding second group In the entry, the two protection paths 12 and 13 in the protection path flow entry are discarded.
  • the group type in the second group is OFGPT-FF, which is used to indicate that only one protection path is sent.
  • the same packet is sent through a working path and multiple protection paths, or the same packet is sent through multiple working paths, so as to achieve multiple purposes. But this embodiment It is not limited to this.
  • the sixth embodiment selects multiple working paths and multiple protection paths.
  • the use of the working path for sending packets may be performed by load sharing, that is, through different work.
  • the path sends different packets in the service.
  • the difference from the implementation of the fourth embodiment is that, in the first group of the first information, the group type is OFGPT_SELECT_FF, and the group type indicates that the working path for sending different packets is valid, and other paths are invalid.
  • 14 is a first information diagram of Embodiment 6 of a method for transmitting information according to the present invention.
  • FIG. 15 is a second information diagram of Embodiment 6 of a method for transmitting information according to the present invention
  • FIG. 16 is an update of Embodiment 6 of a method for transmitting information according to the present invention
  • the second information diagram after the second.
  • the controller sends the first information as shown in FIG. 14 to the first device.
  • the group type of the first group of the first information is SELECT_FF, which is used to indicate that the working path is 10
  • And 1 1 sends different packets in the service through the ports P1 and P1, and the two protection paths 12 and 13 do not send packets.
  • the controller sends the second information as shown in FIG.
  • the second flow entry includes a working path flow entry and a protection path flow entry
  • the working path flow entry in the working path flow entry is 10, 1 1
  • the operands of the group action of the domain are all group 1 and are used to associate with the corresponding second group of entries.
  • the protection path 12 and 13 action instructions in the protection path flow entry are discarded.
  • the group type is OFGPT- SELECT-FF, which is used to indicate that both working paths are active, and the packets are forwarded through the corresponding port P3, and the second device receives all the valid protection path packets.
  • the first device When the working path 10 fails, the first device first uses the working path 1 1 to send different packets to implement fast protection switching, and further, the protection path 12 is set to be effective, and the first device passes the protection path 12 and the working path. 11: Sending different packets, according to the status information in the second group entry, changing the operand of the group action of the instruction field of the path 12 to the group 1 in the corresponding second flow entry, and changing the command field of the path 10 to discarding Therefore, the initial load sharing state is restored, the first device sends different messages through the paths 1 1 and 12, and the second device receives the messages sent by all the valid paths.
  • FIG. 17 is a schematic flowchart of Embodiment 7 of a method for sending information according to the present invention, including:
  • the controller determines a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the ending node of the working path and the protection path is a second device, where the working path corresponds to the first device a label, the protection path corresponding to the second label.
  • the controller sends the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching field includes the identifier of the destination, the command domain includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first set of actions is used to indicate that the first device is
  • the first flow entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and use the working path to
  • the second device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and pass the protection path. Sending the fourth packet to the second device, where the third packet is the same as
  • the controller sends the second information to the second device, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry;
  • the matching field of the working path flow entry includes the first label, where the command field of the working path flow entry is used to instruct the second device to pop the first label of the second packet And outputting the first packet;
  • the matching field of the protection path flow entry includes the second label, where the instruction domain of the protection path flow entry includes a discarding action, and the discarding action is used to indicate the first packet
  • the second device discards the fourth packet.
  • the first device may be a network device.
  • the network device may be a PE, and the first device may be a service initiator or an intermediate node.
  • the second device can be a network device.
  • the network device can be a PE.
  • the second device may be a service terminating end or an intermediate node.
  • the controller receives the notification message that the working path is faulty, and sends a flow table update message to the second device, where the flow table update message is used to indicate that the second device will protect the
  • the path flow entry is updated to a new protection path flow entry; the matching domain of the new protection path flow entry includes the second tag, and the command domain of the new protection path flow entry is used to indicate the
  • the second device pops up the second label in the sixth packet and outputs a fifth packet, where the sixth packet is that the first device pushes the second label into the fifth packet. of.
  • the flow table update message is further used to indicate that the second device updates the working path flow entry to a new working path flow entry; the matching domain of the new working path flow entry includes a first label, where an instruction field of the new working path flow entry is used to indicate the first
  • the second device discards the eighth packet, where the eighth packet is generated by the first device pushing the first label into the seventh packet.
  • a working path and at least one protection path are determined by the controller.
  • the working path and the starting node of the protection path are first devices.
  • the end node of the working path and the protection path is a second device.
  • the working path corresponds to the first label.
  • the protection path corresponds to the second label.
  • the controller sends the first information to the first device, so that the first device sends the same content message to different paths according to the first information.
  • the above technical solution realizes that the same content message is sent through different paths, thereby achieving the purpose of multiple transmissions.
  • the controller sends the second information to the second device, so that the second device selects, according to the second information, a packet that is forwarded by the valid path, and the foregoing solution implements selective reception.
  • the technical solution provided by this embodiment helps to support services with higher QoS requirements.
  • a service with higher QoS requirements may be a banking service or a mobile backhaul service.
  • FIG. 18 is a schematic flowchart of Embodiment 8 of a method for transmitting information according to the present invention, including:
  • the second device receives the second information that is sent by the controller, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry.
  • the matching field of the working path flow entry includes a first label, where the command field of the working path flow entry is used to instruct the second device to pop the first label in the second packet and output the first packet;
  • the matching field of the protection path flow entry includes a second label, and the instruction field of the protection path flow entry includes a discarding action.
  • Step 102 The second device pops the first label in the second packet to output the first packet according to the working path flow entry, and discards the first packet according to the protection path flow entry.
  • the working path and the protection path are determined by the controller, the first device is a starting node of the working path and the protection path, and the second device is the working path and the The end node of the protection path, the first label is a label corresponding to the working path, and the second label is a label corresponding to the protection path.
  • the first device may be a network device.
  • the network device may be a PE, and the first device may be a service originating end or an intermediate node.
  • the second device can be a network device.
  • the network device can be a PE.
  • the second device may be a service terminating end or an intermediate node.
  • the second device receives a flow table update message sent by the controller, where the flow table update message is used to instruct the second device to update the protection path flow entry to a new protection path flow.
  • the flow table update message is generated by the controller according to the notification message that the working path is faulty, and the matching field of the new protection path flow entry includes the a second label, the new protection path flow entry is used to instruct the second device to pop the second label in the sixth packet and output a fifth packet, where the sixth packet is the first packet A device pushes the second tag into the fifth message, and the sixth message is sent by the first device to the second device by using the protection path.
  • the flow table update message further includes means for instructing the second device to update the working path flow entry to a new working path flow entry; the matching of the new working path flow entry
  • the domain includes the first label, where the new working path flow entry is used to indicate that the second device will discard the eighth packet, and the eighth packet is that the first device uses the first label Pushing in the seventh message, and the eighth message is sent by the first device to the second device by using the working path.
  • the second device receives the second information by using the second device, and the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry, where the The second device pops the first packet in the second packet to output the first packet according to the working path flow entry, and discards the fourth packet according to the protection path flow entry, thereby
  • the second device selects to receive the message sent by the working path.
  • FIG. 19 is a schematic flowchart of a method for transmitting information according to Embodiment 9 of the present invention
  • FIG. 20 is a schematic diagram of Embodiment 9 of a method for transmitting information according to the present invention.
  • FIG. 20 is a schematic diagram of where S is a first device and D is a second device. , E, F, and G are intermediate devices, and TC is a controller.
  • FIG. 21 is a second information diagram of Embodiment 9 of the method for transmitting information according to the present invention
  • FIG. 22 is an updated embodiment of Embodiment 9 of the method for transmitting information according to the present invention.
  • the second information is different from the fourth embodiment in that the second information sent by the controller to the second device is different, and when the working path fails, the second information is updated by the controller and delivered.
  • the method embodiment includes:
  • S1 101 The first device sends a service request to the controller.
  • SI 102 The controller determines the working path and the protection path based on the service request.
  • S1 103 The controller sends the first information to the first device.
  • S1 101 to S 1103 are the same as S401 to S403 of the fourth embodiment, and details are not described herein.
  • S1 104 The controller sends the second information to the second device.
  • the second information includes a second flow entry, and the second flow entry includes a working path flow entry and a protection path flow entry, where the working path flow entry includes a matching domain and an instruction domain, where
  • the matching field includes a first label
  • the protection path flow entry includes a matching domain and an instruction domain
  • the matching domain includes a second label.
  • the first label is 10
  • the second label is 1
  • the matching field in the working path flow entry includes the label 10
  • the command field includes the outbound port P3, which is used to instruct the second device to pop the first label in the second packet and output the first packet through the port P3.
  • the matching field in the protection path flow entry includes the label 11, and the command field includes the discarding, and is used to indicate that the second device discards the fourth packet received through the protection path, thereby achieving the purpose of the selection.
  • S1 105 The controller detects if the working path has failed.
  • the link fault information is reported to the controller, and the controller analyzes the fault information. If the link EF fails as shown in Figure 20, the intermediate device F sends a fault message to the TC.
  • S1 106 If the working path link is normal, the second device uses the original second information to receive the message, and if the working path fails, the controller changes the second information.
  • the command field in the protection path flow entry of the second information is updated to the egress port P3, and is used to instruct the second device to pop the second label in the sixth packet.
  • the fifth packet is outputted through the port P3, and the fifth packet has the same attribute as the third packet.
  • the instruction field in the working path flow entry is updated to be discarded, and is used to indicate that the second device discards the work.
  • the properties are the same, as shown in Figure 22.
  • the second device receives the packet sent by the first device from the protection path, thereby achieving the purpose of fast protection switching.
  • S1 107 The controller sends the updated second flow table information to the second device.
  • the updated second information is a protection path flow entry and a working path updated by the controller. Runoff entry.
  • the second device receives the message sent by the first device according to the updated second information.
  • the first device initiates a service request
  • the controller determines the working path and the protection path according to the service request, where the working path and the protection path have the same first device and the second device to be reached by the service request, and the controller is first
  • the device sends the first information, and sends the second information to the second device, so that the end-to-end service communication has a multi-selection function. Further, the controller detects whether the working path is faulty, and if the working path link is normal, the second device Using the original second information, the message is received.
  • the controller changes the second information, and the controller sends the updated second information to the second device, and the second device is updated according to the second device.
  • Information is used to receive messages.
  • the foregoing technical solution implements the multi-selection fast route protection feature in the OpenFlow control data network.
  • the second device receives the packet from the effective protection path, thereby achieving the purpose of fast protection switching and reducing the fault.
  • the impact on the continuity and reliability of service transmission effectively improves the quality of service transmission and helps support services with higher QoS requirements.
  • FIG. 23 is a schematic structural diagram of an embodiment of a controller according to the present invention.
  • the controller can be used to perform the method shown in FIG.
  • the controller determining unit 151, the first transmitting unit 152, and the second transmitting unit 153 of this embodiment.
  • a determining unit 151 configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the working node and the ending node of the protection path are a second device, where the working The path corresponds to the first label, and the protection path corresponds to the second label.
  • the first sending unit 152 is configured to send the first information to the first device, where the first information includes the first flow entry and the first group
  • the first flow entry includes a matching domain and an instruction domain
  • the matching domain includes an identifier of the destination
  • the command domain includes a first group of actions
  • the operand of the first group of actions is a first group of identifiers.
  • the first group of actions is used to instruct the first device to associate the first flow entry with the first set of entries, where the first set of entries includes a first action bucket and a second action bucket.
  • the first action bucket is configured to instruct the first device to push the first label into the first packet that matches the first flow entry.
  • the device sends the second information, the The second information includes a second flow entry and a second set of entries; wherein the second flow entry includes a working path flow entry and a protection path flow entry; and the matching domain of the working path flow entry includes the a first label, the instruction field of the working path flow entry includes a second set of actions, the operand of the second set of actions is a second set of identifiers, and the second set of actions is used to indicate that the second device
  • the working path flow entry is associated with the second set of entries; the matching domain of the protection path flow entry includes the second label, and the instruction domain of the protection path flow entry includes a discarding action, The discard
  • the third action bucket may include a Pop-Tag action and an Output action.
  • the Pop-Tag action is used to pop the second label in the fourth packet.
  • the Output action is used to indicate that the third message is output.
  • the third action bucket includes a first action for instructing the second device to monitor whether the working path is faulty
  • the fourth action bucket includes a second action box for indicating the second device A second action of monitoring whether the protection path has failed.
  • the third action bucket includes first state information that identifies whether the working path is faulty, and the first state information is determined by the second device according to the first action
  • the fourth The action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is determined by the second device according to the second action.
  • controller provided in this implementation further includes: a receiving unit 154, configured to receive the updated protection path flow entry sent by the second device
  • the controller provided by the embodiment determines the working path and the protection path between the first device and the second device according to the first device, and sends the first information to the first device, so that the first device is configured according to the first information.
  • Sending the same content message to the second device, and sending the second information to the second device, so that the second device selects the packet that is forwarded by the valid path according to the second information, so that the same content message is sent through different paths and Selecting packets sent by the valid path helps to support services with higher QoS requirements.
  • the service with higher QoS requirements can be Banking or mobile backhaul.
  • Figure 24 is a schematic structural view of an embodiment of a second device of the present invention.
  • the second device can be used to perform the method illustrated in Figure 2.
  • the second device of this embodiment includes a receiving unit 161 and a processing unit 162.
  • the receiving unit 161 is configured to receive, by the controller, second information, where the second information includes a second flow entry and a second set of entries, where the second flow entry includes a working path flow entry and a protection path.
  • the matching domain of the working path flow entry includes a first label
  • the instruction domain of the working path flow entry includes a second set of actions
  • the operand of the second set of actions is a second set of identifiers
  • the second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries
  • the matching domain of the protected path flow entry includes a second label
  • the command field of the protection path flow entry includes a discarding action
  • the second set of entries includes a third action bucket and a fourth action bucket, and the third action bucket is configured to indicate that the second device sends the second report
  • the first label is popped up and the first packet is output
  • the fourth action bucket is configured to instruct the second device to pop the second label in the fourth packet and output a third packet.
  • the second device determines the third action
  • the group type of the second group of entries is fast failover; the processing unit 162 is configured to discard the fourth packet according to the protection path flow entry, according to the working path flow entry
  • the first tag in the second packet pops up and outputs the first packet.
  • the second packet is generated by the first device pushing the first label into the first packet, where the fourth packet is that the first device pushes the second label into the first And generating, by the third packet, the third packet is the same as the first packet, the first label corresponds to the working path, the second label corresponds to the protection path, the working path, and the working path
  • the protection path is determined by the controller, the working path and the starting node of the protection path are the first device, and the ending node of the working path and the protection path is the second device.
  • the first device may be a network device.
  • the network device may be a PE, and the first device may be a service originating end or an intermediate node.
  • the second device can be a network device.
  • the network device can be a PE.
  • the second device may be a service terminating end or an intermediate node.
  • the third action bucket in the second information received by the second device includes a first action for instructing the second device to monitor whether the working path is faulty, the first Included in the four action buckets for indicating that the second device monitors the protection path The second action of failure;
  • the second device further includes a first updating unit 163, configured to determine, by the second action, that the working path is faulty; based on the determined result, the second device determines that the first The fourth action bucket in the two group entries is alive; and, the discarding action in the command domain of the protection path flow entry is updated to the second group action, and the operation of the second group action
  • the number is the second group of identifiers, and the second group of actions is used to instruct the second device to associate the protection path flow entry with the second group of entries.
  • the third action bucket in the second information received by the second device includes first state information that identifies whether the working path is faulty, and the first state information is that the second device is based on Determined by the first action, the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is determined by the second device according to the second action.
  • the second device may further include a second update unit 164, configured to determine, by using the first state information, that the working path is faulty.
  • the operand of the second group of actions is the second group of identifiers, and the second set of actions is used to instruct the second device to use the protection path flow entry and the The second set of entries is associated.
  • the second device further includes a sending module 165, configured to send the updated protection path flow entry to the controller.
  • the second device receives the second information by the second device.
  • the second information includes a second flow entry and a second set of entries.
  • the second flow entry includes a working path flow entry and a protection path flow entry.
  • the matching field of the working path flow entry includes a first label.
  • the instruction field of the working path flow entry includes a second set of actions.
  • the operand of the second set of actions is a second set of identifiers.
  • the second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries.
  • the matching field of the protection path flow entry includes a second label.
  • the instruction field of the protection path flow entry includes a discarding action, and is used to instruct the second device to discard the received message sent by the protection path.
  • the second set of entries includes a third action bucket and a fourth action bucket.
  • the third action bucket is configured to instruct the second device to use the first part in the second message A tag pops up and outputs the first message.
  • the fourth action bucket is configured to instruct the second device to pop the second label in the fourth packet and output a third packet.
  • the second device determines that the third action bucket is alive.
  • the group type of the second group of entries is fast failover.
  • multiple paths send the same content message to the second device.
  • the second device selects to receive the message sent by the working path.
  • the above technical solutions help to support multiple elections under the OpenFlow mechanism. Helps better support services with higher QoS requirements.
  • Figure 25 is a schematic structural view of an embodiment of a first device of the present invention.
  • the first device can be used to perform the method illustrated in Figure 3.
  • the first device of this embodiment includes a receiving unit 171 and a processing unit 172.
  • the receiving unit 171 is configured to receive first information that is sent by the controller, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, and the matching domain Including the identifier of the destination, the instruction field includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first group of actions is used to indicate that the first device is to be the first stream
  • An entry is associated with the first set of entries, where the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • An action bucket is configured to instruct the first device to push the first label into the first packet that matches the first flow entry to generate a second
  • the second device sends the second packet and passes the protection path Sending the fourth packet to the second device;
  • the working path and the protection path are determined by the controller, and the working node and the starting node of the protection path are the first device,
  • the working node and the ending node of the protection path are the second device, the working path corresponds to the first label, and the protection path corresponds to the second label.
  • the first device may be a network device.
  • the network device may be a PE, and the first device may be a service originating end or an intermediate node.
  • the second device can be a network device.
  • the network device can be a PE.
  • the second device may be a service terminating end or an intermediate node.
  • the first device receives the first information sent by the controller, and sends the first packet and the third packet having the same content to the second device by using the working path and the protection path, respectively, according to the first information. , realizes the function of multiple transmission under the OpenFlow mechanism, making the phase The same content packet is sent through multiple paths to ensure that the packet reaches the service destination.
  • FIG. 26 is a schematic structural diagram of another embodiment of a controller according to the present invention.
  • the controller can be used to perform the method shown in FIG.
  • the controller of this embodiment includes a determining unit 181, a first transmitting unit 182, and a second transmitting unit 183.
  • the determining unit 181 is configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the ending node of the working path and the protection path is a second device, where the working path corresponds to the first device a label, the protection path corresponding to the second label, the first sending unit 182, configured to send the first information to the first device, where the first information includes a first flow entry and a first set of entries;
  • the first flow entry includes a matching domain and an instruction domain, the matching domain includes an identifier of the destination, the command domain includes a first group of actions, and the operand of the first group of actions is a first group of identifiers, where the a set of actions for instructing the first device to associate the first flow entry with the first set of entries, where the first set of entries includes a first action bucket and a second action bucket, where
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate
  • the second device sends the second information, where the second information includes the second flow entry, the second flow entry includes a working path flow entry and a protection path flow entry, where the working path flow entry matches
  • the domain includes the first label, and the instruction field of the working path flow entry is used to instruct the second device to pop the first label of the second packet and output the first packet.
  • the matching field of the protection path flow entry includes the second label, where the instruction field of the protection path flow entry includes a discarding action, and the discarding action is used to instruct the second device to discard the fourth packet.
  • the controller may further include a third sending unit 184, configured to receive a notification message that the working path is faulty, and send a flow table update message to the second device, where the flow table update message is used by Instructing the second device to update the protection path flow entry to a new protection path flow entry; the matching domain of the new protection path flow entry includes the second label, the new protection path
  • the instruction field of the flow entry is used to instruct the second device to pop the second label in the sixth message and output a fifth message, where the sixth message is the first device Pushing the second label into the fifth message generated.
  • the flow table update message sent by the third sending unit further includes means for instructing the second device to update the working path flow entry to a new working path flow entry; the new The matching field of the working path flow entry includes the first label, and the command field of the new working path flow entry is used to instruct the second device to discard the eighth packet, where the eighth packet is The first device pushes the first label into the seventh message generated.
  • a working path and at least one protection path are determined by the controller.
  • the working path and the starting node of the protection path are first devices, and the ending nodes of the working path and the protection path are second devices.
  • the controller sends the first information to the first device, so that the first device sends the same content message to different paths according to the first information, thereby achieving multiple purposes.
  • the controller sends the second information to the second device, so that the second device selects the packet that is forwarded by the valid path according to the second information, so as to achieve the purpose of the selection.
  • This embodiment implements the multi-selection function under the OpenFlow mechanism, which helps to better support services with higher QoS requirements.
  • FIG. 27 is a schematic structural view of another embodiment of a second device according to the present invention.
  • the second device can be used to perform the method illustrated in Figure 18.
  • the second device of this embodiment includes a first receiving unit 191 and a first processing unit 192.
  • the first receiving unit 191 is configured to receive the second information that is sent by the controller, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry.
  • the matching field of the working path flow entry includes a first label, where the instruction field of the working path flow entry is used to instruct the second device to pop the first label in the second packet and output the first report.
  • the matching field of the protection path flow entry includes a second label, and the instruction field of the protection path flow entry includes a discarding action; the first processing unit 192 is configured to: according to the working path flow entry The first packet in the second packet is popped up to output the first packet, and the fourth packet is discarded according to the protection path flow entry.
  • the working path and the protection path are determined by the controller, the first device is a starting node of the working path and the protection path, and the second device is the working path and the The end node of the protection path, the first label is a label corresponding to the working path, and the second label is a label corresponding to the protection path.
  • the second device of this embodiment may further include a second receiving unit 193 and a second portion Unit 194.
  • the second receiving unit 193 is configured to receive a flow table update message sent by the controller, where the flow table update message is used to instruct the second device to update the protection path flow entry to a new protection path flow table.
  • the flow table update message is generated by the controller based on the notification message that the working path is faulty, and the matching field of the new protection path flow entry includes the second a second processing unit 194, configured to: eject the second label in the sixth packet according to the new protection path flow entry, and output a fifth packet, where the sixth packet is the first packet A device pushes the second tag into the fifth message, and the sixth message is sent by the first device to the second device by using the protection path.
  • the flow table update message received by the second receiving unit 193 further includes means for instructing the second device to update the working path flow entry to a new working path flow entry;
  • the matching field of the new working path flow entry includes the first label;
  • the second processing unit 194 is further configured to discard the eighth packet according to the new working path flow entry, the eighth packet And the first device generates the first label by pushing the first label, and the eighth message is sent by the first device to the second device by using the working path.
  • the second device receives the second information by the second device.
  • the second information includes a second flow entry.
  • the second flow entry includes a working path flow entry and a protection path flow entry.
  • the matching field of the working path flow entry includes a first label, where the command field of the working path flow entry is used to instruct the second device to pop the first label in the second packet and output the first packet. .
  • the matching field of the protection path flow entry includes a second label, and the instruction field of the protection path flow entry includes a discarding action.
  • the second device pops the first label in the second packet to output the first packet according to the working path flow entry, and discards the fourth report according to the protection path flow entry Text. Therefore, when multiple paths send the same content message to the second device, the second device selects to receive the message sent by the working path, and implements the function of selecting and receiving under the OpenFlow mechanism.
  • the controller provided by the embodiment of the present invention includes a processor 201 and a transmitter 202.
  • the processor 201 is configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the working node and the ending node of the protection path are second devices.
  • the working path corresponds to the first label
  • the protection path corresponds to the first Two labels
  • the transmitter 202 is configured to send the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching field includes an identifier of the destination, the command domain includes a first group of actions, and the operand of the first group of actions is a first group of identifiers, where the first group of actions is used to indicate that the first device
  • the first flow entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and send the second packet to the first
  • the second device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and the protection path is Transmitting, by the second device, the fourth packet,
  • the third action bucket in the second information sent by the transmitter 202 includes a first action for instructing the second device to monitor whether the working path is faulty, the first The fourth action bucket includes a second action for instructing the second device to monitor whether the protection path is faulty;
  • the third action bucket in the second information sent by the sender 202 includes first state information that identifies whether the working path is faulty, and the first state information is The second device determines, according to the first action, that the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is that the second device is configured according to the second The second action is determined.
  • controller further includes: a receiver 203, configured to receive the updated protection path flow entry sent by the second device.
  • the controller provided by the embodiment of the present invention can be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 29 is a schematic structural diagram of a second device according to an embodiment of the present invention. As shown in FIG. 29, the second device includes a receiver 211 and a processor 212.
  • the receiver 211 is configured to receive, by the controller, second information, where the second information includes a second flow entry and a second set of entries, where the second flow entry includes a working path flow entry and a protection path flow entry; the matching domain of the working path flow entry includes a first label, the instruction domain of the working path flow entry includes a second set of actions, and the operand of the second set of actions is a second set
  • the second set of actions is used to instruct the second device to associate the working path flow entry with the second set of entries;
  • the matching domain of the protection path flow entry includes a second label,
  • the instruction field of the protection path flow entry includes a discarding action; wherein, the second group of entries includes a third action bucket and a fourth action bucket, where the third action bucket is used to indicate that the second device is to be
  • the first label in the second packet is popped up and the first packet is output, and the fourth action bucket is configured to instruct the second device to pop the second label in the fourth packet and output the third packet.
  • the second device determine
  • the processor 212 is configured to discard the fourth packet according to the protection path flow entry, pop the first label in the second packet according to the working path flow entry, and output the first packet. a message
  • the second packet is generated by the first device pushing the first label into the first packet, where the fourth packet is that the first device pushes the second label into the first And generating, by the third packet, the third packet is the same as the first packet, the first label corresponds to the working path, the second label corresponds to the protection path, the working path, and the working path
  • the protection path is determined by the controller, the working path and the starting node of the protection path are the first device, and the ending node of the working path and the protection path is the second device.
  • the third action bucket in the second flow table information received by the receiver 21 1 includes a first action for instructing the second device to monitor whether the working path is faulty, and the fourth action.
  • the action bucket includes a second action for instructing the second device to monitor whether the protection path is faulty;
  • the processor 212 is further configured to determine, by using the second action, that the working path is faulty; based on the result of the determining, the second device determines that the second group of entries is The fourth action bucket is alive; and, the discarding action in the command field of the protection path flow entry is updated to the second group action, and the operand of the second group action is the second group And the second group of actions is used to instruct the second device to associate the protection path flow entry with the second group entry.
  • the third action bucket in the second flow table information received by the receiver 21 1 includes first state information that identifies whether the working path is faulty, and the first state information is the second Determining, according to the first action, the fourth action bucket includes second state information that identifies whether the protection path is faulty, and the second state information is determined by the second device according to the second action of.
  • the processor 212 is further configured to determine, by using the first state information, that the working path is faulty; and based on the result of the determining, the second device determines, in the second group of entries The fourth action bucket is alive; and, the discarding action in the command field of the protection path flow entry is updated to the second group action, and the operand of the second group action is the second group And the second group of actions is used to instruct the second device to associate the protection path flow entry with the second group entry.
  • the second device further includes:
  • the sender 213 is configured to send the updated protection path flow entry to the controller.
  • the second device provided by the embodiment of the present invention may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 30 is a schematic structural diagram of a first device according to an embodiment of the present invention. As shown in FIG. 30, the first device includes a receiver 221 and a processor 222.
  • the receiver 221 is configured to receive the first information that is sent by the controller, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching domain includes an identifier of the destination, and the instruction domain includes a first group of actions, the first group The operand of the action is a first group of identifiers, where the first group of actions is used to instruct the first device to associate the first flow entry with the first set of entries, where the first set of entries includes The first action bucket and the second action bucket, the group type of the first group of entries is all; wherein the first action bucket is used to instruct the first device to push the first label into the first The first packet matched by the first-class entry to generate a second packet, where the second action bucket is used to instruct the first device to push the second label into the third packet to generate a fourth packet, where the The third message is the same as the first message; the processor 223 is configured to send the second message to the second device by using the working path according to the first
  • the working path and the protection path are determined by the controller, the starting node of the working path and the protection path is the first device, and the ending node of the working path and the protection path is the first In the second device, the working path corresponds to the first label, and the protection path corresponds to the second label.
  • the first device provided by the embodiment of the present invention may be used to perform the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 31 is a schematic structural diagram of another embodiment of a controller device according to the present invention. As shown in FIG. 31, the controller includes a processor 231 and a transmitter 232.
  • the processor 231 is configured to determine a working path and a protection path, where the starting node of the working path and the protection path is a first device, and the ending node of the working path and the protection path is a second device, where the working The path corresponds to the first label, and the protection path corresponds to the second label;
  • the transmitter 232 is configured to send the first information to the first device, where the first information includes a first flow entry and a first set of entries; the first flow entry includes a matching domain and an instruction domain, where The matching field includes the identifier of the destination, the command domain includes a first group of actions, the operand of the first group of actions is a first group of identifiers, and the first set of actions is used to indicate that the first device is
  • the first flow entry is associated with the first set of entries, the first set of entries includes a first action bucket and a second action bucket, and the group type of the first set of entries is all;
  • the first action bucket is configured to instruct the first device to push the first label into a first packet that matches the first flow entry to generate a second packet, and use the working path to
  • the second device sends the second packet, where the second action bucket is used to instruct the second device to push the second label into the third packet to generate a fourth packet, and pass the protection path.
  • the third packet is the same as the first packet; the second device sends the second information, the second information includes a second flow entry, and the second flow entry includes a work a path flow entry and a protection path flow entry; wherein the matching domain of the working path flow entry includes the first label, and the instruction domain of the working path flow entry is used to indicate that the second device is The first label of the second packet is popped up and the first packet is output; the matching field of the protection path flow entry includes the second label, and the instruction field of the protection path flow entry includes discarding The discarding action is used to instruct the second device to discard the fourth packet.
  • the processor 232 is further configured to: receive a notification message that the working path is faulty, and send a flow table update message to the second device, where the flow table update message is used to indicate the second
  • the device updates the protection path flow entry to a new protection path flow entry; the matching domain of the new protection path flow entry includes the second label, and the instruction domain of the new protection path flow entry Instructing the second device to pop the second label in the sixth message and output a fifth message, where the sixth message is that the first device pushes the second label into the The fifth message is generated.
  • the flow table update message is further used to instruct the second device to update the working path flow entry to a new working path flow entry; the new working path flow entry
  • the matching field includes the first label, where the command field of the new working path flow entry is used to indicate that the second device discards the eighth packet, where the eighth packet is that the first device The first label is pushed into the seventh message.
  • the controller provided by the embodiment of the present invention can be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 32 is a schematic structural diagram of another embodiment of a second device according to the present invention. As shown in FIG. 32, the second device includes a receiver 241 and a processor 242.
  • the receiver 241 is configured to receive the second information that is sent by the controller, where the second information includes a second flow entry, where the second flow entry includes a working path flow entry and a protection path flow entry.
  • the matching field of the working path flow entry includes a first label, where the instruction field of the working path flow entry is used to instruct the second device to pop the first label in the second packet and output the first report.
  • the matching field of the protection path flow entry includes a second label, and the instruction field of the protection path flow entry includes a discarding action;
  • the processor 242 is configured to: according to the working path flow entry, the foregoing in the second packet The first label is popped up to output the first packet, and the fourth packet is discarded according to the protection path flow entry.
  • the working path and the protection path are determined by the controller, the first device is a starting node of the working path and the protection path, and the second device is the working path and the protection path.
  • the end node, the first label is a label corresponding to the working path, and the second label is a label corresponding to the protection path.
  • the receiver 241 is further configured to: receive a flow table update message sent by the controller, where the flow table update message is used to instruct the second device to update the protection path flow entry to a new one. a protection path flow entry, the flow table update message being generated by the controller based on the notification message that the working path is faulty received by the controller; the matching domain of the new protection path flow entry Including the second label, the new protection path flow entry is used to instruct the second device to pop the second label in the sixth packet and output a fifth packet, where the sixth packet is The first device is configured to push the second label into the fifth packet, and the sixth packet is sent by the first device to the second device by using the protection path;
  • the flow table update message further includes: indicating, by the second device, that the working path flow entry is updated to a new working path flow entry; the matching of the new working path flow entry
  • the domain includes the first label, where the new working path flow entry is used to indicate that the second device will discard the eighth packet, and the eighth packet is that the first device uses the first label Pushing in the seventh message, and the eighth message is sent by the first device to the second device by using the working path.
  • the second device provided by the embodiment of the present invention may be used to implement the technical solution of the foregoing method embodiment, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 33 is a schematic structural diagram of Embodiment 1 of a system for transmitting information according to the present invention. As shown in FIG. 33, the system for transmitting information includes a controller 251, a second device 252, and a first device 253.
  • the controller 251 can adopt the structure of the device embodiment of FIG. 15 , and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the second device 252 can adopt the structure of the device embodiment of FIG. 16, which correspondingly The technical solution of the method embodiment is implemented, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the first device 253 can adopt the structure of the device embodiment of FIG. 17, which can correspondingly implement the technical solution of the method embodiment thereof, and the implementation principle and the technical effect are similar, and FIG. 34 is no longer the system for transmitting information according to the present invention.
  • a schematic diagram of the structure of the second embodiment, as shown in FIG. 34, the system for transmitting information includes a controller 261, a second device 262, and a first device 263.
  • the controller 261 can adopt the structure of the device embodiment of FIG. 18, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the second device 262 can adopt the structure of the device embodiment of FIG. 19, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and technical effects are similar, and details are not described herein again.
  • the first device 263 can adopt the structure of the device embodiment of FIG. 17, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the system for transmitting information includes a controller 271, a second device 272, and a first device 273.
  • the controller 271 can adopt the structure of the device embodiment of FIG. 20, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the second device 272 can adopt the structure of the device embodiment of FIG. 21, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the first device 273 can adopt the structure of the device embodiment of FIG. 22, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • FIG. 36 is a schematic structural diagram of Embodiment 4 of a system for transmitting information according to the present invention, as shown in FIG. 36.
  • the system for transmitting information includes a controller 281, a second device 282, and a first device 283.
  • controller 281 may employ the structure of the embodiment of the apparatus of FIG. 23, which corresponds to, which may be performed Technical solutions in the embodiments, similar to the implementation principles and technical effects, not repeated here ⁇
  • the second device 282 can adopt the structure of the device embodiment of FIG. 24, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the first device 283 can adopt the structure of the device embodiment of FIG. 22, and correspondingly, the technical solution of the method embodiment can be performed, and the implementation principle and the technical effect are similar, and details are not described herein again.
  • the disclosed apparatus and method may be implemented in other manners.
  • the device embodiments described above are merely illustrative.
  • the division of the unit is only a logical function division.
  • there may be another division manner for example, multiple units or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separated, and the components displayed as the unit may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. . Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of hardware plus software functional units.
  • the above-described integrated unit implemented in the form of a software functional unit can be stored in a computer readable storage medium.
  • the software functional unit is stored in a storage medium and includes a plurality of instructions for causing a computer device (which may be a personal computer, a server, or a network device) or a processor (English: processor) to perform the method of various embodiments of the present invention. Part of the steps.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviation: RAM), a magnetic disk or an optical disk, and the like.
  • ROM Read-Only Memory
  • RAM Random Access Memory

Landscapes

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

Abstract

 本发明实施例提供一种发送信息的方法、装置以及系统。发送信息的方法,包括:控制器确定工作路径和保护路径,工作路径对应第一标签,保护路径对应第二标签;控制器向第一装置发送第一信息,以指示第一装置根据第一信息分别通过工作路径和保护路径向第二装置发送第二报文和第四报文,第二报文是将第一标签推入第一报文而生成的,第四报文是将第二标签推入第三报文生成的,第一报文和第三报文相同;控制器向第二装置发送第二信息,以指示第二装置根据第二信息通过工作路径接收第二报文,并丢弃从保护路径接收到的第四报文。进一步地,将所述第一报文输出。

Description

发送信息的方法、 装置及系统
技术领域
本发明实施例涉及通信技术, 尤其涉及一种发送信息的方法、 装置 及系统。 背景技术
随着互联网的不断发展, 开放流(英文: OpenFlow)技术应运而生。 传统网络中数据包的流向是人为指定的。 网络装置 (例如交换机或者路由 器) 进行数据包级别的交换。 在 OpenFlow网络中, 控制器可以决定数据 包在网络中传输路径。 OpenFlow技术将原本由交换机 /路由器控制的数据 包转发过程, 转化为由 OpenFlow交换机 (OpenFlow switch) 和控制器 ( controller) 分别完成的过程。
在 OpenFlow控制数据网络的情况下, 现有 OpenFlow技术中无法支 持服务质量 (英文: quality of service , 简称 QoS ) 要求较高的业务。 发明内容
本发明提供一种用于发送信息的方法、 装置及系统, 有助于较好地 支持 QoS要求较高的业务。
第一方面, 本发明实施例提供一种发送信息的方法, 包括: 控制器确定工作路径和保护路径, 所述工作路径和所述保护路径的 开始节点是第一装置, 所述工作路径和所述保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
所述控制器向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配 域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操 作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流 表项与所述第一组表项进行关联, 所述第一组表项包括第一动作桶和第二 动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于指 示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一报文 以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二报 文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报文 以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同;
所述控制器向所述第二装置发送第二信息, 所述第二信息包括第二 流表项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保 护路径流表项; 所述工作路径流表项的匹配域包括所述第一标签, 所述工 作路径流表项的指令域包括第二组动作, 所述第二组动作的操作数是第二 组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与 所述第二组表项进行关联; 所述保护路径流表项的匹配域包括所述第二 标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于 指示所述第二装置丢弃接收到的所述第四报文; 其中, 所述第二组表项 包括第三动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将 所述第二报文中的所述第一标签弹出并输出所述第一报文, 所述第四动作 桶用于指示所述第二装置将所述第四报文中的所述第二标签弹出并输出 所述第三报文, 所述第三动作桶被所述第二装置确定为是活的, 所述第二 组表项的组类型是快速故障切换。
结合第一方面, 在第一方面第一种可能实现的方式中, 所述第三动 作桶中包含用于指示所述第二装置监控所述工作路径的是否发生故障的 第一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路 径的是否发生故障的第二动作。
结合第一方面的第一种可能实现的方式, 在第一方面第二种可能实 现的方式中, 所述第三动作桶包含标识所述工作路径是否发生故障的第 —状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定 的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信 息, 所述第二状态信息是所述第二装置根据所述第二动作确定的。
结合第一方面的第一种或第二种可能实现的方式, 在第一方面第三种 可能实现的方式中, 所述控制器接收所述第二装置发送的更新后的所述保 护路径流表项。 第二方面, 本发明实施例提供一种发送信息的方法, 包括:
第二装置接收控制器发送第二信息, 所述第二信息包括第二流表项 和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保护路径 流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流表 项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标识, 所 述第二组动作用于指示所述第二装置将所述工作路径流表项与所述第二 组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述保护 路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第三动 作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报文中 的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述第二 装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装置确 定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切换; 所述第二装置根据所述保护路径流表项丢弃所述第四报文, 根据所 述工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述第 一报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
结合第二方面, 在第二方面第一种可能实现的方式中, 所述第三动 作桶中包含用于指示所述第二装置监控所述工作路径的是否发生故障的 第一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路 径的是否发生故障的第二动作。
结合第二方面的第一种可能实现的方式, 第二方面的第二种可能实 现的方式中, 所述第二装置通过所述第二动作确定所述工作路径发生故 障;
基于所述确定的结果, 所述第二装置确定将所述第二组表项中的所述 第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作 更新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所 述第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二 组表项进行关联。
结合第二方面的第一种可能实现的方式, 在第二方面的第三种可能实 现的方式中, 所述第三动作桶包含标识所述工作路径是否发生故障的第一 状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信息, 所 述第二状态信息是所述第二装置根据所述第二动作确定的。
结合第二方面的第三种可能实现的方式, 在第二方面的第四种可能实 现的方式中, 所述第二装置通过所述第一状态信息确定所述工作路径发生 故障;
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
结合第二方面的第二种或第四种可能实现的方式, 在第二方面的第五 种可能实现的方式中, 所述第二装置向所述控制器发送更新后的所述保护 路径流表项。
第三方面, 本发明实施例提供一种发送信息的方法, 包括:
第一装置接收控制器发送的第一信息, 所述第一信息中包括第一流 表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域包 括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操作数 是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流表 项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶和第二 动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于指 示所述第一装置将第一标签推入与所述第一流表项匹配的第一报文以生 成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推入第三 报文以生成第四报文, 所述第三报文与所述第一报文相同;
所述第一装置根据所述第一信息通过工作路径向第二装置发送所述 第二报文, 并通过保护路径向所述第二装置发送所述第四报文;
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。 第四方面, 本发明实施例提供一种发送信息的方法, 包括:
控制器确定工作路径和保护路径, 所述工作路径和所述保护路径的 开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
所述控制器向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述的匹 配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的 操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项和所述第一组表项进行关联, 所述第一组表项包括第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一 报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二 报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报 文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同;
所述控制器向所述第二装置发送第二信息, 所述第二信息包括第二 流表项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其 中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路径流表 项的指令域用于指示所述第二装置将所述第二报文的所述第一标签弹出 并输出所述第一报文; 所述保护路径流表项的匹配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于指示所 述第二装置丢弃所述第四报文。
结合第四方面, 在第四方面第一种可能实现的方式中, 所述控制器 接收到所述工作路径发生故障的通知消息, 向所述第二装置发送流表更 新消息, 所述流表更新消息用于指示所述第二装置将所述保护路径流表 项更新为新的保护路径流表项; 所述新的保护路径流表项的匹配域包括 所述第二标签, 所述新的保护路径流表项的指令域用于指示所述第二装置 将第六报文中的所述第二标签弹出并输出第五报文, 所述第六报文是所述 第一装置将所述第二标签推入所述第五报文生成的。
结合第四方面第一种可能实现的方式, 在第四方面第二种可能实现 的方式中, 所述流表更新消息中还用于指示所述第二装置将所述工作路 径流表项更新为新的工作路径流表项; 所述新的工作路径流表项的匹配 域包括所述第一标签, 所述新的工作路径流表项的指令域用于指示所述第 二装置丢弃第八报文, 所述第八报文是所述第一装置将所述第一标签推入 第七报文生成的。
第五方面, 本发明实施例提供一种发送信息的方法, 包括: 第二装置接收控制器发送的第二信息, 所述第二信息包括第二流表 项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其中, 所 述工作路径流表项的匹配域包括第一标签, 所述工作路径流表项的指令域 用于指示所述第二装置将第二报文中的第一标签弹出并输出第一报文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径流表项的指令 域包括丢弃动作;
所述第二装置根据所述工作路径流表项将所述第二报文中的所述第 一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第四 报文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
结合第五方面, 在第五方面的第一种可能实现的方式中, 所述第二 装置接收所述控制器发送的流表更新消息, 所述流表更新消息用于指示 所述第二装置将所述保护路径流表项更新为新的保护路径流表项, 所述流 表更新消息是所述控制器基于所述控制器接收到的所述工作路径发生故 障的通知消息生成的; 所述新的保护路径流表项的匹配域包括所述第二 标签, 所述新的保护路径流表项用于指示所述第二装置将第六报文中的所 述第二标签弹出并输出第五报文, 所述第六报文是所述第一装置将所述第 二标签推入所述第五报文生成的, 并且所述第六报文是所述第一装置通过 所述保护路径向所述第二装置发送的。
结合第五方面的第一种可能实现的方式, 在第五方面的第二种可能 实现的方式中, 所述流表更新消息中还包括用于指示所述第二装置将所 述工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表 项的匹配域包括所述第一标签, 所述新的工作路径流表项用于指示所述第 二装置将丢弃第八报文, 所述第八报文是所述第一装置将所述第一标签推 入第七报文生成的, 并且所述第八报文是所述第一装置通过所述工作路径 向所述第二装置发送的。
第六方面, 本发明实施例提供一种控制器, 包括:
确定单元, 用于确定工作路径和保护路径, 所述工作路径和所述保 护路径的开始节点是第一装置, 所述工作路径和所述保护路径的结束节点 是第二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标 签;
第一发送单元, 用于向所述第一装置发送第一信息, 所述第一信息 中包括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组 动作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所 述第一流表项与所述第一组表项进行关联, 所述第一组表项包括第一动作 桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作 桶用于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的 第一报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述 第二报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第 三报文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第 四报文, 所述第三报文与所述第一报文相同;
第二发送单元, 用于向所述第二装置发送第二信息, 所述第二信息 包括第二流表项和第二组表项; 其中, 所述第二流表项包括工作路径流 表项和保护路径流表项; 所述工作路径流表项的匹配域包括所述第一标 签, 所述工作路径流表项的指令域包括第二组动作, 所述第二组动作的操 作数是第二组标识, 所述第二组动作用于指示所述第二装置将所述工作路 径流表项与所述第二组表项进行关联; 所述保护路径流表项的匹配域包 括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢 弃动作用于指示所述第二装置丢弃接收到的所述第四报文; 其中, 所述 第二组表项包括第三动作桶和第四动作桶, 所述第三动作桶用于指示所述 第二装置将所述第二报文中的所述第一标签弹出并输出所述第一报文, 所 述第四动作桶用于指示所述第二装置将所述第四报文中的所述第二标签 弹出并输出所述第三报文, 所述第三动作桶被所述第二装置确定为是活 的, 所述第二组表项的组类型是快速故障切换。
结合第六方面, 在第六方面的第一种可能实现的方式中, 所述第三 动作桶中包含用于指示所述第二装置监控所述工作路径的是否发生故障 的第一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护 路径的是否发生故障的第二动作。
结合第六方面的第一种可能实现的方式, 在第六方面的第二种可能 实现的方式中, 所述第三动作桶包含标识所述工作路径是否发生故障的 第一状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定 的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信 息, 所述第二状态信息是所述第二装置根据所述第二动作确定的。
结合第六方面的第一种或第二种可能实现的方式, 在第六方面的三种 可能实现的方式中, 接收单元, 用于接收所述第二装置发送的更新后的所 述保护路径流表项。
第七方面, 本发明实施例提供一种第二装置, 包括:
接收单元, 用于接收控制器发送第二信息, 所述第二信息包括第二 流表项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保 护路径流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路 径流表项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标 识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与所述 第二组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述 保护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第 三动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报 文中的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述 第二装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装 置确定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切 换;
处理单元, 用于根据所述保护路径流表项丢弃所述第四报文, 根据 所述工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述 第一报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
结合第七方面, 在第七方面的第一种可能实现的方式中, 所述第二 装置接收的所述第二信息中所述第三动作桶中包含用于指示所述第二装 置监控所述工作路径的是否发生故障的第一动作, 所述第四动作桶中包含 用于指示所述第二装置监控所述保护路径的是否发生故障的第二动作。
结合第七方面的第一种可能实现的方式, 在第七方面的第二种可能 实现的方式中, 所述第二装置还包括第一更新单元, 用于通过所述第二动 作确定所述工作路径发生故障; 基于所述确定的结果, 所述第二装置确定 将所述第二组表项中的所述第四动作桶是活的; 以及, 将所述保护路径流 表项的指令域中的丢弃动作更新为所述第二组动作, 所述第二组动作的操 作数是所述第二组标识, 所述第二组动作用于指示所述第二装置将所述保 护路径流表项与所述第二组表项进行关联。
结合第七方面的第一种可能实现的方式, 在第七方面的第三种可能实 现的方式中, 所述第二装置接收的所述第二信息中所述第三动作桶包含标 识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所述 第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护路 径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根据 所述第二动作确定的。 结合第七方面第三种可能实现的方式, 在第七方面的第四种可能实现 的方式中, 所述第二装置还包括第二更新单元, 用于通过所述第一状态信 息确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
结合第七方面第二种或第四种可能实现的方式, 在第七方面的第五种 可能实现的方式中, 所述第二装置还包括发送单元, 用于向所述控制器发 送更新后的所述保护路径流表项。
第八方面, 本发明实施例提供一种第一装置, 包括:
接收单元, 用于接收控制器发送的第一信息, 所述第一信息中包括 第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹 配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的 操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶 和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶 用于指示所述第一装置将第一标签推入与所述第一流表项匹配的第一报 文以生成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推 入第三报文以生成第四报文, 所述第三报文与所述第一报文相同;
处理单元, 用于根据所述第一信息通过工作路径向第二装置发送所 述第二报文, 并通过保护路径向所述第二装置发送所述第四报文;
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。
第九方面, 本发明实施例提供一种控制器, 包括:
确定单元, 确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
第一发送单元, 用于向所述第一装置发送第一信息, 所述第一信息 中包括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述的匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一 组动作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置 将所述第一流表项和所述第一组表项进行关联, 所述第一组表项包括第一 动作桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一 动作桶用于指示所述第一装置将所述第一标签推入与所述第一流表项匹 配的第一报文以生成第二报文, 并通过所述工作路径向所述第二装置发送 所述第二报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推 入第三报文以生成第四报文, 并通过所述保护路径向所述第二装置发送所 述第四报文, 所述第三报文与所述第一报文相同;
第二发送单元, 用于向所述第二装置发送第二信息, 所述第二信息 包括第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表 项; 其中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路 径流表项的指令域用于指示所述第二装置将所述第二报文的所述第一标 签弹出并输出所述第一报文; 所述保护路径流表项的匹配域包括所述第 二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于 指示所述第二装置丢弃所述第四报文。
结合第九方面, 在第九方面的第一种可能实现的方式中, 所述控制 器还包括第三发送单元, 用于接收到所述工作路径发生故障的通知消 息, 向所述第二装置发送流表更新消息, 所述流表更新消息用于指示所 述第二装置将所述保护路径流表项更新为新的保护路径流表项; 所述新 的保护路径流表项的匹配域包括所述第二标签, 所述新的保护路径流表项 的指令域用于指示所述第二装置将第六报文中的所述第二标签弹出并输 出第五报文, 所述第六报文是所述第一装置将所述第二标签推入所述第五 报文生成的。
结合第九方面的第一种可能实现的方式, 在第九方面的第二种可能 实现的方式中, 所述第三发送单元发送的所述流表更新消息中还包括用 于用于指示所述第二装置将所述工作路径流表项更新为新的工作路径流 表项; 所述新的工作路径流表项的匹配域包括所述第一标签, 所述新的工 作路径流表项的指令域用于指示所述第二装置丢弃第八报文, 所述第八报 文是所述第一装置将所述第一标签推入第七报文生成的。
第十方面, 本发明实施例提供一种第二装置, 包括:
第一接收单元, 用于接收控制器发送的第二信息, 所述第二信息包 括第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表 项; 其中, 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流 表项的指令域用于指示所述第二装置将第二报文中的第一标签弹出并输 出第一报文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径 流表项的指令域包括丢弃动作;
第一处理单元, 用于根据所述工作路径流表项将所述第二报文中的 所述第一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所 述第四报文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
结合第十方面, 在第十方面的第一种可能实现的方式中, 所述第二 装置还包括:
第二接收单元, 用于接收所述控制器发送的流表更新消息, 所述流 表更新消息用于指示所述第二装置将所述保护路径流表项更新为新的保 护路径流表项, 所述流表更新消息是所述控制器基于所述控制器接收到的 所述工作路径发生故障的通知消息生成的, 所述新的保护路径流表项的匹 配域包括所述第二标签;
第二处理单元, 用于根据所述新的保护路径流表项将第六报文中的所 述第二标签弹出并输出第五报文, 所述第六报文是所述第一装置将所述第 二标签推入所述第五报文生成的, 并且所述第六报文是所述第一装置通过 所述保护路径向所述第二装置发送的。
结合第十方面第一种可能实现的方式, 在第十方面的第二种可能实 现的方式中, 所述第二接收单元接收的所述流表更新消息中还包括用于 指示所述第二装置将所述工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表项的匹配域包括所述第一标签;
所述第二处理单元, 还用于根据所述新的工作路径流表项丢弃第八报 文, 所述第八报文是所述第一装置将所述第一标签推入第七报文生成的, 并且所述第八报文是所述第一装置通过所述工作路径向所述第二装置发 送的。
第十一方面, 本发明实施例提供一种控制器, 包括:
处理器, 用于确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和所述保护路径的结束节点是第 二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
发送器, 用于向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配 域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操 作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流 表项与所述第一组表项进行关联, 所述第一组表项包括第一动作桶和第二 动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于指 示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一报文 以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二报 文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报文 以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同; 向所述第二装置发送第二信息, 所述第二信息包括第二流表项和第二组表项; 其中, 所述第二流表项包 括工作路径流表项和保护路径流表项; 所述工作路径流表项的匹配域包 括所述第一标签, 所述工作路径流表项的指令域包括第二组动作, 所述第 二组动作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置 将所述工作路径流表项与所述第二组表项进行关联; 所述保护路径流表 项的匹配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃 动作, 所述丢弃动作用于指示所述第二装置丢弃接收到的所述第四报 文; 其中, 所述第二组表项包括第三动作桶和第四动作桶, 所述第三动作 桶用于指示所述第二装置将所述第二报文中的所述第一标签弹出并输出 所述第一报文, 所述第四动作桶用于指示所述第二装置将所述第四报文中 的所述第二标签弹出并输出所述第三报文, 所述第三动作桶被所述第二装 置确定为是活的, 所述第二组表项的组类型是快速故障切换。
结合第十一方面, 在第十一方面的第一种可能实现的方式中, 所述 发送器发送的所述第二信息中所述第三动作桶中包含用于指示所述第二 装置监控所述工作路径的是否发生故障的第一动作, 所述第四动作桶中包 含用于指示所述第二装置监控所述保护路径的是否发生故障的第二动 作。
结合第十一方面第一种可能实现的方式, 在第十一方面的第二种可能 实现的方式中, 所述发送器发送的所述第二信息中所述第三动作桶包含标 识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所述 第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护路 径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根据 所述第二动作确定的
结合第十一方面第一种或者第二种可能实现的方式, 在第十一方面 的第三种可能实现的方式中, 所述控制器还包括接收器, 用于接收所述 第二装置发送的更新后的所述保护路径流表项。
第十二方面, 本方面实施例提供一种第二设备, 包括:
接收器, 用于接收控制器发送第二信息, 所述第二信息包括第二流表 项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保护路 径流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流 表项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与所述第 二组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述保 护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第三 动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报文 中的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述第 二装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装置 确定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切换; 处理器, 用于根据所述保护路径流表项丢弃所述第四报文, 根据所述 工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述第一 报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
结合第十二方面, 在第十二方面的第一种可能实现的方式中, 所述 第三动作桶中包含用于指示所述第二装置监控所述工作路径的是否发生 故障的第一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述 保护路径的是否发生故障的第二动作。
结合第十二方面第一种可能实现的方式, 在第十二方面的第二种可 能实现的方式中, 所述处理器还用于:
通过所述第二动作确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定将所述第二组表项中的所述 第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作 更新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所 述第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二 组表项进行关联。
结合第十二方面第一种可能实现的方式, 在第十二方面的第三种可能 实现的方式中, 所述第三动作桶包含标识所述工作路径是否发生故障的第 一状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定 的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信 息, 所述第二状态信息是所述第二装置根据所述第二动作确定的。
结合第十二方面第三种可能实现的方式, 在第十二方面的第四种可能 实现的方式中, 所述处理器还用于:
通过所述第一状态信息确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
结合第十二方面第二种或者第四种可能实现的方式, 在第十二方面的 第五种可能实现的方式中, 所述第二设备还包括:
发送器, 用于向所述控制器发送更新后的所述保护路径流表项。 第十三方面, 本发明实施例提供一种第一设备, 包括:
接收器, 用于接收控制器发送的第一信息, 所述第一信息中包括第一 流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域 包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操作 数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流 表项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶和第 二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于 指示所述第一装置将第一标签推入与所述第一流表项匹配的第一报文以 生成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推入第 三报文以生成第四报文, 所述第三报文与所述第一报文相同;
处理器, 用于根据所述第一信息通过工作路径向第二装置发送所述第 二报文, 并通过保护路径向所述第二装置发送所述第四报文;
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。
第十四方面, 本发明实施例提供一种控制器, 包括:
处理器, 用于确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
发送器, 用于向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述的匹 配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的 操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项和所述第一组表项进行关联, 所述第一组表项包括第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一 报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二 报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报 文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同; 所述第二装置发送第二信息, 所 述第二信息包括第二流表项, 所述第二流表项包括工作路径流表项和保 护路径流表项; 其中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路径流表项的指令域用于指示所述第二装置将所述第二报文的 所述第一标签弹出并输出所述第一报文; 所述保护路径流表项的匹配域 包括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢 弃动作用于指示所述第二装置丢弃所述第四报文。
结合第十四方面, 在第十四方面第一种可能实现的方式中, 所述发 送器还用于: 接收到所述工作路径发生故障的通知消息, 向所述第二装 置发送流表更新消息, 所述流表更新消息用于指示所述第二装置将所述 保护路径流表项更新为新的保护路径流表项; 所述新的保护路径流表项 的匹配域包括所述第二标签, 所述新的保护路径流表项的指令域用于指示 所述第二装置将第六报文中的所述第二标签弹出并输出第五报文, 所述第 六报文是所述第一装置将所述第二标签推入所述第五报文生成的。
结合第十四方面第一种可能实现的方式, 在第十四方面的第二种可 能实现的方式中, 所述流表更新消息中还用于指示所述第二装置将所述 工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表项 的匹配域包括所述第一标签, 所述新的工作路径流表项的指令域用于指示 所述第二装置丢弃第八报文, 所述第八报文是所述第一装置将所述第一标 签推入第七报文生成的。
第十五方面, 本发明实施例提供一种第二设备, 包括:
接收器, 用于接收控制器发送的第二信息, 所述第二信息包括第二流 表项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其中, 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流表项的指令 域用于指示所述第二装置将第二报文中的第一标签弹出并输出第一报 文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径流表项的 指令域包括丢弃动作;
处理器, 用于根据所述工作路径流表项将所述第二报文中的所述第一 标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第四报 文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
结合第十五方面, 在第十五方面的第一种可能实现的方式中, 所述 接收器还用于: 接收所述控制器发送的流表更新消息, 所述流表更新消 息用于指示所述第二装置将所述保护路径流表项更新为新的保护路径流 表项, 所述流表更新消息是所述控制器基于所述控制器接收到的所述工作 路径发生故障的通知消息生成的; 所述新的保护路径流表项的匹配域包 括所述第二标签, 所述新的保护路径流表项用于指示所述第二装置将第六 报文中的所述第二标签弹出并输出第五报文, 所述第六报文是所述第一装 置将所述第二标签推入所述第五报文生成的, 并且所述第六报文是所述第 一装置通过所述保护路径向所述第二装置发送的。
结合第十五方面第一种可能实现的方式, 在第十五方面的第二种可 能实现的方式中, 所述流表更新消息中还包括用于指示所述第二装置将 所述工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流 表项的匹配域包括所述第一标签, 所述新的工作路径流表项用于指示所述 第二装置将丢弃第八报文, 所述第八报文是所述第一装置将所述第一标签 推入第七报文生成的, 并且所述第八报文是所述第一装置通过所述工作路 径向所述第二装置发送的。
第十六方面, 本发明实施例提供一种发送信息的系统, 包括: 第六方面、 第六方面第一种至第二种任一种可能的实现方式的控制 器, 第七方面、 第七方面第一种至第二种任一种可能的实现方式的第二 装置, 第八方面的第一装置。 第十七方面, 本发明实施例提供一种发送信息的系统, 包括: 第九方面、 第九方面第一种至第二种任一种可能的实现方式的控制 器, 第十方面、 第十方面第一种至第二种任一种可能的实现方式的第二 装置, 第八方面的第一装置。
第十八方面, 本发明实施例提供一种发送信息的系统, 包括: 第十一方面、 第十一方面第一种至第二种任一种可能的实现方式的 控制器, 第十二方面、 第十二方面第一种至第二种任一种可能的实现方 式的第二设备, 第十三方面的第一设备。
第十九方面, 本发明实施例提供一种发送信息的系统, 包括: 第十四方面、 第十四方面第一种至第二种任一种可能的实现方式的 控制器, 第十五方面、 第十五方面第一种至第二种任一种可能的实现方 式的第二设备, 第十六方面的第一设备。
本发明实施例提供了发送信息的方法、 装置及系统。 通过控制器确定 工作路径和保护路径。 所述工作路径对应所述第一标签, 所述保护路径对 应第二标签。 所述控制器向第一装置发送第一信息, 以指示所述第一装置 根据所述第一信息分别通过所述工作路径和所述保护路径向第二装置发 送第二报文和第四报文。所述第二报文是将所述第一标签推入第一报文而 生成的, 所述第四报文是将所述第二标签推入第三报文生成的。 所述第一 报文和所述第三报文相同。上述技术方案实现了相同信息通过不同路径进 行发送。 所述控制器向所述第二装置发送第二信息, 以指示所述第二装置 根据所述第二信息通过所述工作路径接收所述第二报文, 并丢弃从所述保 护路径接收到的所述第四报文。上述技术方案实现了选择接收。进一歩地, 将所述第一报文输出。 上述技术方案有助于支持 QoS 要求较高的业务。 QoS要求较高的业务可以是银行业务或者移动回传业务。 附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将 对实施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易 见地, 下面描述中的附图是本发明的一些实施例, 对于本领域普通技术 人员来讲, 在不付出创造性劳动性的前提下, 还可以根据这些附图获得 其他的附图。
图 1为本发明发送信息的方法实施例一的流程示意图;
图 2为本发明发送信息的方法实施例二的流程示意图;
3为本发明发送信息的方法实施例三的流程示意图;
图 4为本发明发送信息的方法实施例四的信令流程图;
图 5为本发明发送信息的方法实施例四的示意图;
图 6为本发明发送信息的方法实施例四的第一信息示意图;
图 7为本发明发送信息的方法实施例四的第二信息示意图;
图 8为本发明发送信息的方法实施例四的另一种第二信息的示意图; 图 9为本发明发送信息的方法实施例四的更新后的第二信息示意图; 图 10为本发明发送信息的方法实施例四的另一种更新后的第二信息 的示意图;
图 11为本发明发送信息的方法实施例五的第一信息示意图; 图 12为本发明发送信息的方法实施例五的第二信息示意图; 图 13为本发明发送信息的方法实施例五的更新后的第二信息示意 图;
图 14为本发明发送信息的方法实施例六的第一信息示意图; 图 15为本发明发送信息的方法实施例六的第二信息示意图; 图 16为本发明发送信息的方法实施例六的更新后的第二信息示意 图;
图 17为本发明发送信息的方法实施例七的流程示意图;
图 18为本发明发送信息的方法实施例八的流程示意图;
图 19为本发明发送信息的方法实施例九的信令流程图;
图 20为本发明发送信息的方法实施例九的示意图;
图 21为本发明发送信息的方法实施例九的第二信息示意图; 图 22为本发明发送信息的方法实施例九的更新后的第二信息示意 图;
图 23为本发明控制器实施例的结构示意图;
图 24为本发明第二装置实施例的结构示意图;
图 25为本发明第一装置实施例的结构示意图; 图 26为本发明另一种控制器实施例的结构示意图;
图 27为本发明另一种第二装置实施例的结构示意图;
图 28为本发明控制器设备是实施例的结构示意图;
图 29为本发明第二设备实施例的结构示意图;
图 30为本发明第一设备实施例的结构示意图;
图 31为本发明另一种控制器设备实施例的结构示意图;
图 32为本发明另一种第二设备实施例的结构示意图;
图 33为本发明发送信息的系统实施例一的结构示意图;
图 34为本发明发送信息的系统实施例二的结构示意图;
图 35为本发明发送信息的系统实施例三的结构示意图;
图 36为本发明发送信息的系统实施例四的结构示意图。 具体实施方式
为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于本发明 中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获得的所 有其他实施例, 都属于本发明保护的范围。
本发明实施例的实施场景为 OpenFlow网络。 本发明实施例所涉及的 控制器为 OpenFlow控制器。
关于本发明实施例涉及到的部分技术术语, 可以参见开放流交换机说 明书第 1.4.0版 (英文: OpenFlow Switch Specification version 1.4.0 ) 。 咅 β 分技术术语包括但不限于: 流表(英文: flow table )、 流表项(英文: flow entry) 、 组表 ( group table ) 、 组表项 (英文: group entry) 、 云力作(英文: action) 、 动作桶 (英文: action bucket) 、 指令 (英文: instruction) 、 组 类型(英文: group type ) 、 组标识 ( group identifier ) 、 快速故障切换(英 文: fast failover) 。 所述动作可以是推标签 (英文: Push-Tag ) 、 弹标签 (英文: Pop-Tag) 、 丢弃 (英文: Drop ) 、 输出 (英文: Output) 或者组 (英文: Grou ) 。
组动作可以用于指示将流表项与组表项关联。 具体来说, 所述流表项 中可以包括所述组动作。 所述组动作的操作数可以是所述组表项的组标 识。 本领域的技术人员可以理解, 执行所述流表项中的所述组动作时, 需 要访问所述组标识对应的所述组表项。
图 1为本发明发送信息的方法实施例一的流程示意图, 包括:
11: 控制器确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和所述保护路径的结束节点是第 二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标签。
举例来说, 所述第一装置可以是网络装置。 所述网络装置可以是运营 商边缘 (英文: provider edge, 简称: PE ) , 所述第一装置可以为业务发 起端, 也可以为中间节点。
举例来说, 所述第二装置可以是网络装置。 所述网络装置可以是 PE。 所述第二装置可以为业务终结端, 也可以为中间节点。
举例来说, 所述保护路径可以是多条保护路径。 相应地, 所述第二标 签可以是多个标签。 所述多条保护路径与所述多个标签一一对应。
12: 所述控制器向所述第一装置发送第一信息, 所述第一信息中包 括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述 匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作 的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项与所述第一组表项进行关联, 所述第一组表项包括第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一 报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二 报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报 文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同。
举例来说, 所述目的地的标识可以是所述目的地的地址。 所述地址可 以是网际协议 (英文: internet protocol, 简称 IP ) 地址、 IP地址前缀或者 媒体访问控制 (英文: media access control, 简称: MAC ) 协议地址。 所 述目的地可以是主机。 所述主机可以是个人电脑、 个人数字助理或者机顶 盒。 13: 所述控制器向所述第二装置发送第二信息, 所述第二信息包括 第二流表项和第二组表项; 其中, 所述第二流表项包括工作路径流表项 和保护路径流表项; 所述工作路径流表项的匹配域包括所述第一标签, 所 述工作路径流表项的指令域包括第二组动作, 所述第二组动作的操作数是 第二组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表 项与所述第二组表项进行关联; 所述保护路径流表项的匹配域包括所述 第二标签, 所述保护路径流表项的指令域包括丢弃 (英文: Drop ) 动作, 所述丢弃动作用于指示所述第二装置丢弃接收到的所述第四报文; 其 中, 所述第二组表项包括第三动作桶和第四动作桶, 所述第三动作桶用于 指示所述第二装置将所述第二报文中的所述第一标签弹出并输出所述第 一报文, 所述第四动作桶用于指示所述第二装置将所述第四报文中的所述 第二标签弹出并输出所述第三报文, 所述第三动作桶被所述第二装置确定 为是活的, 所述第二组表项的组类型是快速故障切换。
举例来说, 所述第三动作桶可以包括 Output动作。 所述 Output动作 用于执行输出所述第一报文。输出所述第一报文可以是将所述第一报文转 发至下一跳网络装置, 也可以是所述第一报文输出到所述第二装置的模 块。 所述第二装置的模块可以是用于执行 IP 处理的模块, 也可以是用于 执行传输控制协议 (英文: transmission control protocol, 简称: TCP ) 处 理的模块。 需要说的是, 本申请中的其他实施例也涉及到输出报文。 输出 报文可以是将该报文发送至下一跳网络装置, 也可以是将该报文输出到本 地装置中的模块。
其中, 所述第三动作桶中包含用于指示所述第二装置监控所述工作路 径的是否发生故障的第一动作, 所述第四动作桶中包含用于指示所述第二 装置监控所述保护路径的是否发生故障的第二动作。
可选地, 所述第三动作桶包含标识所述工作路径是否发生故障的第一 状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信息, 所 述第二状态信息是所述第二装置根据所述第二动作确定的。
进一歩地, 所述控制器接收所述第二装置发送的更新后的所述保护路 径流表项。 上述技术方案中, 控制器确定工作路径和保护路径。 所述工作路径对 应第一标签。 所述保护路径对应第二标签。 所述控制器向第一装置发送第 一信息, 以指示所述第一装置根据所述第一信息分别通过所述工作路径和 所述保护路径向第二装置发送第二报文和第四报文。所述第二报文是将所 述第一标签推入第一报文生成的。所述第四报文是将所述第二标签推入第 三报文生成的。 所述第一报文和所述第三报文相同。 上述技术方案实现了 相同信息通过不同路径进行发送。所述控制器向所述第二装置发送第二信 息, 以指示所述第二装置根据所述第二信息通过所述工作路径接收所述第 二报文, 并丢弃从所述保护路径接收到的所述第四报文。 上述技术方案实 现了选择接收。 进一歩地, 将所述第一报文输出。 本实施例提供的技术方 案有助于支持服务质量 (英文: quality of service, 简称: QoS ) 要求较高 的业务。 QoS要求较高的业务可以是银行业务或者移动回传业务。
图 2为本发明发送信息的方法实施例二的流程示意图, 包括: 21: 第二装置接收控制器发送第二信息, 所述第二信息包括第二流 表项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保护 路径流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路径 流表项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标 识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与所述 第二组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述 保护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第 三动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报 文中的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述 第二装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装 置确定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切 换。
22: 所述第二装置根据所述保护路径流表项丢弃所述第四报文, 根 据所述工作路径流表项将所述第二报文中的所述第一标签弹出并输出所 述第一报文。
其中, 所述第二报文为第一装置将所述第一标签推入所述第一报文 生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文 生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作 路径, 所述第二标签对应所述保护路径, 所述工作路径和所述保护路径为 所述控制器确定的, 所述工作路径和所述保护路径的开始节点是所述第 一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
举例来说, 所述第一装置可以是网络装置。 所述网络装置可以是 PE , 所述第一装置可以为业务发起端, 也可以为中间节点。
举例来说, 所述第二装置可以是网络装置。 所述网络装置可以是 PE。 所述第二装置可以为业务终结端, 也可以为中间节点。
进一歩地, 所述第三动作桶中包含用于指示所述第二装置监控所述工 作路径的是否发生故障的第一动作, 所述第四动作桶中包含用于指示所述 第二装置监控所述保护路径的是否发生故障的第二动作。
所述第二装置通过所述第二动作确定所述工作路径发生故障; 基于所述确定的结果, 所述第二装置确定将所述第二组表项中的所述 第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作 更新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所 述第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二 组表项进行关联。
可选地, 所述第三动作桶包含标识所述工作路径是否发生故障的第一 状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信息, 所 述第二状态信息是所述第二装置根据所述第二动作确定的。
所述第二装置通过所述第一状态信息确定所述工作路径发生故障; 基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
进一歩地, 所述第二装置向所述控制器发送更新后的所述保护路径流 表项。
本实施例通过第二装置接收控制器发送的第二信息, 所述第二信息包 括第二流表项和第二组表项。其中, 所述第二流表项包括工作路径流表项 和保护路径流表项。 所述工作路径流表项的匹配域包括第一标签。 所述工 作路径流表项的指令域包括第二组动作。所述第二组动作的操作数是第二 组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与 所述第二组表项进行关联。 所述保护路径流表项的匹配域包括第二标签。 所述保护路径流表项的指令域包括丢弃动作。所述第二组表项包括第三动 作桶和第四动作桶。所述第三动作桶用于指示所述第二装置将第二报文中 的所述第一标签弹出并输出第一报文。所述第四动作桶用于指示所述第二 装置将第四报文中的所述第二标签弹出并输出第三报文。所述第一报文与 所述第三报文相同。 所述第二装置确定所述第三动作桶为活的。 所述第二 组表项的组类型是快速故障切换。所述第二装置根据所述保护路径流表项 丢弃所述第四报文, 根据所述工作路径流表项将第二报文中的所述第一 标签弹出并输出第一报文。 上述技术方案中, 通过多条路径向所述第二装 置发送相同报文, 所述第二装置选择接收通过所述工作路径发送的第二 报文。上述技术方案有助于支持 QoS要求较高的业务, 例如银行业务或者 移动回传业务。
3为本发明发送信息的方法实施例三的流程示意图, 包括:
31: 第一装置接收控制器发送的第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配 域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操 作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一 流表项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将第一标签推入与所述第一流表项匹配的第一报文 以生成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推入 第三报文以生成第四报文, 所述第三报文与所述第一报文相同。
32: 所述第一装置根据所述第一信息通过工作路径向第二装置发送 所述第二报文, 并通过保护路径向所述第二装置发送所述第四报文。
其中, 所述工作路径和所述保护路径是所述控制器确定的, 所述工作 路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路 径的结束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保 护路径对应所述第二标签。
本实施例通过第一装置接收控制器发送的第一信息, 所述第一信息 中包括第一流表项和第一组表项。 所述第一流表项包括匹配域和指令域。 所述匹配域包括目的地的标识。 所述指令域包括第一组动作。 所述第一组 动作的操作数是第一组标识。所述第一组动作用于指示所述第一装置将所 述第一流表项与所述第一组表项进行关联。所述第一组表项包括的第一动 作桶和第二动作桶。 所述第一组表项的组类型为全部。 所述第一动作桶用 于指示所述第一装置将第一标签推入与所述第一流表项匹配的第一报文 以生成第二报文。所述第二动作桶用于指示所述第一装置将第二标签推入 第三报文以生成第四报文。所述第三报文与所述第一报文相同。 所述第一 装置根据所述第一信息通过工作路径向第二装置发送所述第二报文, 并通 过保护路径向所述第二装置发送所述第四报文。 上述技术方案中, 通过多 条路径发送相同报文。上述技术方案有助于支持 QoS要求较高的业务, 例 如银行业务或者移动回传业务。
图 4为本发明发送信息的方法实施例四的信令流程图。 图 5为本发明 发送信息的方法实施例四的示意图。 图 6为本发明发送信息的方法实施例 四的第一信息示意图。 图 7为本发明发送信息的方法实施例四的第二信息 示意图。 图 8为本发明发送信息的方法实施例四的另一种第二信息的示意 图。 图 9为本发明发送信息的方法实施例四的更新后的第二信息示意图。 图 10为本发明发送信息的方法实施例四的另一种更新后的第二信息的示 意图。本发明实施例四的发送信息的方法涉及控制器、 第一装置以及第二 装置。 如图 5所示, 瘦客户端 (英文: thin client, 简称: TC) 为控制器, S为第一装置, D为第二装置, E、 F、 G为中间设备, 业务请求的目的地 址为 1.0.0.0/8。 如图 4所示, 发送信息的方法包括:
S401 : 第一装置向控制器发送业务请求。
S402: 控制器根据业务请求确定工作路径和保护路径。
其中, 控制器确定一条工作路径和至少一条保护路径。保护路径个数 可以为一条也可以为多条。其中, 所述工作路径和所述保护路径的开始节 点是所述第一装置。 所述工作路径和所述保护路径的结束节点是第二装 置。 具体的, 所述工作路径对应第一标签, 所述保护路径对应第二标签。 若保护路径为多条, 则各保护路径对应有不同的第二标签。 如图 5所示 S 与 D之间根据控制器确定的工作路径和保护路径。 工作路径是 S-E-F-D。 保护路径是 S-G-D。 S为开始节点。 D为结束节点。 E、 F、 G为中间节点。
S403 : 控制器向第一装置发送第一信息。
具体的, 第一信息如图 6所示, 第一信息中包括第一流表项和第一组 表项。 第一流表项包含匹配域和指令域。 匹配域项包括目的地的标识。 所 述目的地的标识可以为目的地的 IP 地址。 这里目的地的 IP 地址为 1.0.0.0/8, 用于匹配目的 IP地址为 1.0.0.0/8 的报文。 第一报文的目的 IP 地址与匹配域项相匹配。 对所述第一报文执行指令域中的指令。 所述指令 域包括第一组动作。 所述第一组动作的操作数是第一组标识。 所述第一组 动作用于指示所述第一装置将所述第一流表项与所述第一组表项进行关 联。 第一组表项包含组标识项、 组类型和动作桶。所述动作桶中包含第一 动作桶和第二动作桶。所述第一动作桶用于指示所述第一装置将所述第一 标签推入与所述第一流表项匹配的第一报文以生成第二报文, 并通过所述 工作路径向所述第二装置发送所述第二报文。所述第二动作桶用于指示所 述第二装置将所述第二标签推入第三报文以生成第四报文, 并通过所述保 护路径向所述第二装置发送所述第四报文。所述第三报文与所述第一报文 相同。 可以对所述第一报文进行复制, 从而生成所述第三报文。 图 6所示 动作桶中的第一动作桶指示推入标签 10并且从端口 P1输出。即在第一报 文中推入标签 10生成第二报文, 并通过所述端口 P1转发所述第二报文。 标签 10对应工作路径。 所述第一动作桶指示通过所述工作路径向第二装 置发送所述第二报文。 第一动作桶中可以包括推标签 (英文: Push-Tag) 动作以及输出 (英文: Output) 动作。 推标签动作用于实现推入标签 10。 输出动作用于实现从端口 P1输出。 类似的, 第二动作桶指示推入标签 11 并且从端口 P2输出。 即在第三报文中推入标签 11生成第四报文, 并通过 所述端口 P2转发所述第四报文。 标签 11对应保护路径。 所述第二动作桶 指示通过所述保护路径向所述第二装置发送所述第四报文。所述组类型为 OFGPT— ALL, 用于表示动作桶内所有动作桶均有效。 本实施例中, 组类 型表示所述第一动作桶和所述第二动作桶均有效。 S404: 控制器向第二装置发送第二信息。
其中, 第二信息包括第二流表项和第二组表项, 具体的, 第二流表 项包括工作路径流表项和保护路径流表项, 其中, 所述工作路径流表项 和所述保护路径流表项均包括匹配域和指令域, 本实施例中,如图 7所示, 所述工作路径的匹配域包括标签 10, 指令域包括第二组动作, 所述第二组 动作的操作数是第二组标识, 本实施例中所述第二组标识为 1, 所述第二 组动作用于指示所述第二装置将所述工作路径流表项与所述第二组表项 进行关联, 所述保护路径流表项的匹配域包括标签 11, 指令域包括丢弃动 作, 所述丢弃动作用于指示所述第二装置丢弃接收到的所述第四报文。 其 中, 第二组表项包括组标识项、 组类型和动作桶, 动作桶中包括第三动作 桶和第四动作桶, 根据图 5所示第二装置转发数据出端口为 P3。 其中, 所 述第二组表项中的所述动作桶可以采用以下两种方式。
可选地, 方式一, 如图 7 所示, 第三动作桶中的动作包括监控路径 ( watch path) 、 弹出标签 10 ( Pop标签 10 ) 以及从端口 P3输出。 第四动 作桶中动作包括监控路径 (watch path) 、 弹出标签 1 1 ( Pop标签 1 1 ) 以 及从端口 P3 输出, 所述第二组表项的组类型为快速故障切换 ( OFGPT— FF ) 。 所述第三动作桶是活的, 所以仅执行第三动作桶中的动 作。 当工作路径故障时则执行所述第四动作桶中的动作。
可选地, 方式二, 如图 8所示, 所述第三动作桶还包含标识所述工作 路径是否发生故障的第一状态信息。所述第一状态信息是所述第二装置根 据监控路径 (watch path) 动作确定的。 所述第一状态信息为有效。 所述 第四动作桶还包含标识所述保护路径是否发生故障的第二状态信息。所述 第二状态信息是所述第二装置根据监控路径 (watch path) 动作确定的。 所述第二状态信息为无效。
S405 : 第二装置检测工作路径是否发生故障。
其中, 通过监控路径 (watch path) 实现检测工作路径或者保护路径 是否发生故障可以有以下两种方式。 方式一: 控制器在为第一装置和第二 装置计算工作路径和保护路径并下发第一信息和第二信息后, 对第二装 置和第一装置启动 BFD、 OAM等协议进行监控路径是否发生故障。 方式 二: 由控制器给第一装置发送一消息, 由第一装置通过工作路径发送给 第二装置, 若第二装置未接收到该消息则认为工作路径发生故障。 如图 5 所示链路 EF发生故障, 根据上述两种方式所述第二装置可以获取工作路 径是否故障。
S406 : 若工作路径链路正常则使用原第一信息和原第二信息, 进行 报文发送、 接收, 若工作路径发生故障, 则更改第二信息。
具体的, 当检测到工作路径发生故障时, 若使用 S404 中方式一所描 述的动作桶, 则将第二信息的工作路径流表项中的指令域更新为丢弃, 将 保护路径流表项的指令为更新为第二组动作, 第二组动作的操作数为第二 组标识 1, 如图 9所示; 若使用 S404中方式二所描述的动作桶, 则将第二 信息的第二组表项中第三动作桶中的第一状态信息的有效更新为无效, 将 第四动作桶中的第二状态信息的无效更新为有效, 根据动作桶中的状态信 息, 将第三动作桶对应的工作路径的工作路径流表项的指令域更新为丢 弃, 将第三动作桶对应的保护路径的保护路径流表项的指令域更新为第二 组动作, 所述第二组动作的操作数为第二组标识 1, 如图 10所示。 从而使 得第二装置从保护路径接收报文, 达到快速保护倒换的目的。
S407: 第二装置将更新后的第二信息发送给控制器。
其中, 第二信息为第二装置的第二流表项和第二组表项。
本实施例通过第一装置向控制器发送业务请求。所述控制器根据该业 务请求确定工作路径和保护路径。所述工作路径和所述保护路径的开始节 点为第一装置, 结束节点为第二装置。 控制器向第一装置发送第一信息, 向第二装置发送第二信息, 使得端对端业务通信具有多发选收功能。进一 歩地, 第二装置检测工作路径是否发生故障。 若工作路径链路正常则使用 原第二信息, 进行报文接收, 若工作路径发生故障, 则更改第二信息。第 二装置将更新后的第二信息发送给控制器。 上述技术方案实现了在 OpenFlow 控制数据网络下的多发选收快速路由保护特性, 针对工作路径 故障时, 第二装置从有效保护路径上接收报文, 从而达到快速保护倒换 的目的, 减小了故障对业务传输的连续性和可靠性的影响, 有效的提高 了业务传输质量。
实施例四中是通过一条工作路径和多条保护路径实现在 OpenFlow控 制数据网络下的多发选收快速路由保护特性, 但本实施例并不以此作为 限制, 另一种可实现的方式实施例五, 工作路径可以选取多条, 保护路 径选取多条, 以两条工作路径和两条保护路径作举例说明, 与实施例四 的区别在于, 在第一信息的第一组表项中, 组类型为 OFGPT— ALL— FF , 该组类型表示动作桶内两条有效工作路径是活的, 即通过控制器为第一 装置和第二装置建立两条工作路径和两条保护路径后, 第一装置仅通过 两条工作路径发送相同报文, 保护路径暂不发送报文。 第二装置仅接收 一条工作路径发送的报文。 当一条工作路径故障时, 则第二装置先通过另 一条有效工作路径接收报文, 进而将一条保护路径生效为有效路径, 第一 装置再通过有效工作路径和保护路径同时发送相同报文。 图 11 为本发明 发送信息的方法实施例五的第一信息示意图; 图 12为本发明发送信息的 方法实施例五的第二信息示意图; 图 13 为本发明发送信息的方法实施例 五的更新后的第二信息示意图。 如图 11 所示, 控制器向第一装置下发如 图 1 1 所示的第一信息, 第一信息中包括第一流表项和第一组表项, 通过 第一流表项的指令域包括第一组动作, 第一组动作的操作数组 1用于关联 到相应的第一组表项, 第一组表项的组类型为 OFGPT— ALL— FF , 用以指 示动作桶中两条工作路径标签 10、 标签 11是活的, 分别通过端口 Pl、 端 口 P1 1发送报文。 控制器向第二装置下发如图 12所示的第二信息, 如图 12 所示第二信息包括第二流表项和第二组表项, 其中, 第二流表项包含 工作路径流表项和保护路径流表项, 工作路径流表项中两条工作路径 10、 11的指令域包括第二组动作, 第二组动作的操作数为组 1, 用于关联 到相应第二组表项, 保护路径流表项中两条保护路径 12、 13 动作指令为 丢弃, 第二组表项中组类型为 OFGPT— FF , 用于指示只接收一条保护路 径发送的报文。 当工作路径 10发生故障时, 为达到快速保护倒换, 则第 二装置接收有效工作路径 11的报文, 进一歩地, 如图 13所示, 将路径标 签 11、 12设置为有效, 10、 13设置为无效, 根据第二组表项相应的将第 二流表项中, 标签 10对应的动作指令更改为丢弃, 标签 12对应的动作指 令更改为组 1, 则第一装置通过工作路径 11和保护路径 12发送报文, 第 二装置只接受其中一条有效路径发送的报文。
上述实施例中, 通过一条工作路径和多条保护路径发送相同报文, 或者通过多条工作路径发送相同报文, 从而达到多发的目的。但本实施例 并不以此作为限制, 另一种可实现的方式实施例六, 选取多条工作路径 和多条保护路径, 在使用工作路径进行报文的发送可以是采用负载分担 的方式, 即通过不同工作路径发送业务中的不同报文。 与实施例四实施过 程的 区别在于 , 在第一信息 的第一组表项 中 , 组类型为 OFGPT— SELECT— FF, 该组类型表示选择发送不同报文的工作路径有 效, 其他路径无效。 图 14为本发明发送信息的方法实施例六的第一信息 示意图; 图 15 为本发明发送信息的方法实施例六的第二信息示意图; 图 16 为本发明发送信息的方法实施例六的更新后的第二信息示意图。 如图 14所示, 控制器向第一装置下发如图 14所示的第一信息, 第一信息的第 一组表项中组类型为 SELECT— FF, 用于指示通过两条工作路径 10、 1 1分 别通过端口 Pl、 Pl l发送业务中不同的报文, 两条保护路径 12、 13暂不 进行报文发送。 控制器向第二装置下发如图 15所示的第二信息, 其中第 二流表项包括工作路径流表项和保护路径流表项, 工作路径流表项中工 作路径 10、 1 1 指令域的组动作的操作数都为组 1, 用于关联到相应的第 二组表项, 保护路径流表项中保护路径 12、 13 动作指令都为丢弃。 第二 组表项中, 组类型为 OFGPT— SELECT— FF, 用于指示两条工作路径均是 活的, 并通过相应端口 P3转发报文, 第二装置接收所有有效保护路径的 报文。 当工作路径 10发生故障时, 则第一装置先使用工作路径 1 1发送不 同报文, 实现快速保护倒换, 进一歩地, 将保护路径 12设为有效, 第一 装置通过保护路径 12和工作路径 11发送不同报文, 根据第二组表项中的 状态信息将相应第二流表项中, 路径 12 的指令域的组动作的操作数更改 为组 1, 将路径 10的指令域更改为丢弃, 从而恢复初始负载分担状态, 第 一装置通过路径 1 1、 12发送不同报文, 第二装置接收所有有效路径发送 的报文。
图 17为本发明发送信息的方法实施例七的流程示意图, 包括:
91: 控制器确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签。
92: 所述控制器向所述第一装置发送第一信息, 所述第一信息中包 括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述 的匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动 作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所 述第一流表项和所述第一组表项进行关联, 所述第一组表项包括第一动作 桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作 桶用于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的 第一报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述 第二报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第 三报文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第 四报文, 所述第三报文与所述第一报文相同。
93: 所述控制器向所述第二装置发送第二信息, 所述第二信息包括 第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路径流 表项的指令域用于指示所述第二装置将所述第二报文的所述第一标签弹 出并输出所述第一报文; 所述保护路径流表项的匹配域包括所述第二标 签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于指示 所述第二装置丢弃所述第四报文。
举例来说, 所述第一装置可以是网络装置。 所述网络装置可以是 PE , 所述第一装置可以为业务发起端, 也可以为中间节点。
举例来说, 所述第二装置可以是网络装置。 所述网络装置可以是 PE。 所述第二装置可以为业务终结端, 也可以为中间节点。
进一歩地, 所述控制器接收到所述工作路径发生故障的通知消息, 向所述第二装置发送流表更新消息, 所述流表更新消息用于指示所述第 二装置将所述保护路径流表项更新为新的保护路径流表项; 所述新的保 护路径流表项的匹配域包括所述第二标签, 所述新的保护路径流表项的指 令域用于指示所述第二装置将第六报文中的所述第二标签弹出并输出第 五报文, 所述第六报文是所述第一装置将所述第二标签推入所述第五报文 生成的。
其中, 所述流表更新消息中还用于指示所述第二装置将所述工作路 径流表项更新为新的工作路径流表项; 所述新的工作路径流表项的匹配 域包括所述第一标签, 所述新的工作路径流表项的指令域用于指示所述第 二装置丢弃第八报文, 所述第八报文是所述第一装置将所述第一标签推入 第七报文生成的。
本实施例通过控制器确定一条工作路径和至少一条保护路径。 , 所述 工作路径和所述保护路径的开始节点是第一装置。 , 所述工作路径和保护 路径的结束节点是第二装置。 , 所述工作路径对应第一标签。 , 所述保护 路径对应第二标签。 , 所述控制器向所述第一装置发送第一信息, 以使所 述第一装置根据所述第一信息向不同路径发送相同内容报文。上述技术方 案实现了相同内容报文通过不同路径进行发送, 从而达到多发的目的。 , 所述控制器向所述第二装置发送第二信息, 以使第二装置根据所述第二 信息选择接收有效路径转发的报文, 上述技术方案实现了选择接收。本实 施例提供的技术方案有助于支持 QoS 要求较高的业务。 QoS 要求较高的 业务可以是银行业务或者移动回传业务。
图 18为本发明发送信息的方法实施例八的流程示意图, 包括:
101: 第二装置接收控制器发送的第二信息, 所述第二信息包括第二 流表项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其 中, 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流表项的 指令域用于指示所述第二装置将第二报文中的第一标签弹出并输出第一 报文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径流表项 的指令域包括丢弃动作。
102: 所述第二装置根据所述工作路径流表项将所述第二报文中的所 述第一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述 第四报文。
其中, 所述工作路径和所述保护路径为所述控制器确定, 所述第一 装置为所述工作路径和所述保护路径的开始节点, 所述第二装置为所述 工作路径和所述保护路径的结束节点, 所述第一标签为所述工作路径对 应的标签, 所述第二标签为保护路径对应的标签。
举例来说, 所述第一装置可以是网络装置。 所述网络装置可以是 PE, 所述第一装置可以为业务发起端, 也可以为中间节点。
举例来说, 所述第二装置可以是网络装置。 所述网络装置可以是 PE。 所述第二装置可以为业务终结端, 也可以为中间节点。 进一歩地, 所述第二装置接收所述控制器发送的流表更新消息, 所 述流表更新消息用于指示所述第二装置将所述保护路径流表项更新为新 的保护路径流表项, 所述流表更新消息是所述控制器基于所述控制器接收 到的所述工作路径发生故障的通知消息生成的; 所述新的保护路径流表 项的匹配域包括所述第二标签, 所述新的保护路径流表项用于指示所述第 二装置将第六报文中的所述第二标签弹出并输出第五报文, 所述第六报文 是所述第一装置将所述第二标签推入所述第五报文生成的, 并且所述第六 报文是所述第一装置通过所述保护路径向所述第二装置发送的。
进一歩地, 所述流表更新消息中还包括用于指示所述第二装置将所 述工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表 项的匹配域包括所述第一标签, 所述新的工作路径流表项用于指示所述第 二装置将丢弃第八报文, 所述第八报文是所述第一装置将所述第一标签推 入第七报文生成的, 并且所述第八报文是所述第一装置通过所述工作路径 向所述第二装置发送的。
本实施例通过第二装置接收控制器发送第二信息, 所述第二信息包 括第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表项, 所述第二装置根据所述工作路径流表项将所述第二报文中的所述第一标 签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第四报 文, 从而使得有多条路径向第二装置发送相同内容报文时, 第二装置选 择接收工作路径发送的报文。上述技术方案有助于支持 QoS要求较高的业 务, 例如银行业务或者移动回传业务。 。
图 19为本发明发送信息的方法实施例九的信令流程图, 图 20为本发 明发送信息的方法实施例九的示意图, 如图 20所示其中 S为第一装置, D 为第二装置, E、 F、 G为中间设备, TC为控制器, 图 21为本发明发送信 息的方法实施例九的第二信息示意图, 图 22为本发明发送信息的方法实 施例九的更新后的第二信息示意图, 本发明实施例与实施例四的区别在 于, 控制器向第二装置发送的第二信息不同, 以及, 当工作路径发生故 障时, 由控制器更新所述第二信息并下发给第二装置, 该方法实施例包 括:
S1 101 : 第一装置向控制器发送业务请求。 SI 102: 控制器根据业务请求确定工作路径和保护路径。
S1 103 : 控制器向第一装置发送第一信息。
S1 101〜S 1103与实施例四的 S401〜S403相同, 具体内容, 此处不再赘 述。
S1 104: 控制器向第二装置发送第二信息。
其中, 第二信息包括第二流表项, 具体的, 第二流表项包括工作路 径流表项和保护路径流表项, 其中, 所述工作路径流表项包括匹配域和 指令域, 所述匹配域包括第一标签, 所述保护路径流表项包括匹配域和 指令域, 匹配域包括第二标签, 根据图 20所示, 第一标签为 10, 第二标 签为 1 1, 则图 21中工作路径流表项中匹配域包括标签 10, 指令域包括出 端口 P3 , 用于指示第二装置将第二报文中的第一标签弹出并通过所述端 口 P3输出第一报文, 保护路径流表项中匹配域包括标签 11, 指令域包括 丢弃, 用于指示第二装置丢弃通过所述保护路径接收到第四报文, 从而 达到选收的目的。
S1 105 : 控制器检测工作路径是否发生故障。
具体地, 当工作路径对应的设备发现链路故障, 则将链路故障信息 上报给控制器, 由控制器进行分析故障信息。 如图 20所示链路 EF发生故 障, 则由中间设备 F向 TC发送故障信息。
S1 106: 若工作路径链路正常则第二装置使用原第二信息, 进行报文 接收, 若工作路径发生故障, 则由控制器更改第二信息。
具体的, 当检测到工作路径发生故障, 则将第二信息的保护路径流 表项中的指令域更新为出端口 P3 , 用于指示第二装置将第六报文中的第 二标签弹出并通过所述端口 P3 输出第五报文, 所述第五报文与所述第三 报文属性相同; 将工作路径流表项中的指令域更新为丢弃, 用于指示第二 装置丢弃通过工作路径所接收到的第八报文, 所述第八报文是所述第一 装置将所述第一标签推入第七报文生成的, 所述第七报文与所述第一报文 属性相同, 如图 22所示。 使得工作路径故障时所述第二装置从保护路径 接收所述第一装置发送的报文, 从而达到快速保护倒换的目的。
S1 107: 控制器将更新后的第二流表信息发送第二装置。
其中, 更新后的第二信息为控制器更新的保护路径流表项和工作路 径流表项。 第二装置根据更新后的第二信息接收第一装置发送的报文。 本实施例通过第一装置发起业务请求, 控制器根据该业务请求确定 工作路径和保护路径, 工作路径和保护路径具有相同的第一装置和业务 请求所要到达的第二装置, 控制器向第一装置发送第一信息, 向第二装 置发送第二信息, 使得端对端业务通信具有多发选收功能, 进一歩地, 控制器检测工作路径是否发生故障, 若工作路径链路正常则第二装置使 用原第二信息, 进行报文接收, 若工作路径发生故障, 则由控制器更改 第二信息, 控制器将更新后的第二信息发送给第二装置, 第二装置根据 更新后的第二信息进行报文接收。 上述技术方案实现了在 OpenFlow控制 数据网络下的多发选收快速路由保护特性, 针对工作路径故障时, 第二 装置从有效保护路径上接收报文, 从而达到快速保护倒换的目的, 减小 了故障对业务传输的连续性和可靠性的影响, 有效的提高了业务传输质 量, 有助于支持 QoS要求较高的业务。
图 23 为本发明控制器实施例的结构示意图。 所述控制器可以用于执 行图 1所示的方法。如图 23所示, 本实施例的控制器确定单元 151、 第一 发送单元 152和第二发送单元 153。 确定单元 151, 用于确定工作路径和 保护路径, 所述工作路径和所述保护路径的开始节点是第一装置, 所述工 作路径和所述保护路径的结束节点是第二装置, 所述工作路径对应第一 标签, 所述保护路径对应第二标签; 第一发送单元 152, 用于向所述第一 装置发送第一信息, 所述第一信息中包括第一流表项和第一组表项; 所 述第一流表项包括匹配域和指令域, 所述匹配域包括目的地的标识, 所述 指令域包括第一组动作, 所述第一组动作的操作数是第一组标识, 所述第 一组动作用于指示所述第一装置将所述第一流表项与所述第一组表项进 行关联, 所述第一组表项包括第一动作桶和第二动作桶, 所述第一组表项 的组类型为全部; 其中, 所述第一动作桶用于指示所述第一装置将所述第 一标签推入与所述第一流表项匹配的第一报文以生成第二报文, 并通过所 述工作路径向所述第二装置发送所述第二报文, 所述第二动作桶用于指示 所述第二装置将所述第二标签推入第三报文以生成第四报文, 并通过所述 保护路径向所述第二装置发送所述第四报文, 所述第三报文与所述第一报 文相同; 第二发送单元 153, 用于向所述第二装置发送第二信息, 所述第 二信息包括第二流表项和第二组表项; 其中, 所述第二流表项包括工作 路径流表项和保护路径流表项; 所述工作路径流表项的匹配域包括所述 第一标签, 所述工作路径流表项的指令域包括第二组动作, 所述第二组动 作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置将所述 工作路径流表项与所述第二组表项进行关联; 所述保护路径流表项的匹 配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于指示所述第二装置丢弃接收到的所述第四报文; 其 中, 所述第二组表项包括第三动作桶和第四动作桶, 所述第三动作桶用于 指示所述第二装置将所述第二报文中的所述第一标签弹出并输出所述第 一报文, 所述第四动作桶用于指示所述第二装置将所述第四报文中的所述 第二标签弹出并输出所述第三报文, 所述第三动作桶被所述第二装置确定 为是活的, 所述第二组表项的组类型是快速故障切换。
举例来说,所述第三动作桶中可以包括 Pop-Tag动作以及 Output动作。 所述 Pop-Tag动作用于实现将所述第四报文中的所述第二标签弹出。 所述 Output动作用于指示将所述第三报文输出。
进一歩地, 所述第三动作桶中包含用于指示所述第二装置监控所述 工作路径的是否发生故障的第一动作, 所述第四动作桶中包含用于指示所 述第二装置监控所述保护路径的是否发生故障的第二动作。
可选地, 所述第三动作桶包含标识所述工作路径是否发生故障的第 —状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确定 的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信 息, 所述第二状态信息是所述第二装置根据所述第二动作确定的。
进一歩地, 本实施提供的控制器还包括, 接收单元 154, 用于接收所 述第二装置发送的更新后的所述保护路径流表项
本实施例提供的控制器, 根据第一装置确定第一装置和第二装置之 间的工作路径和保护路径, 向第一装置发送第一信息, 以使第一装置根 据所述第一信息向不同路径发送相同内容报文, 向第二装置发送第二信 息, 以使第二装置根据所述第二信息选择接收有效路径转发的报文, 从 而实现了相同内容报文通过不同路径进行发送并且选择接收有效路径发 送的报文,有助于支持 QoS要求较高的业务。 QoS要求较高的业务可以是 银行业务或者移动回传业务。
图 24为本发明第二装置实施例的结构示意图。 所述第二装置可以用 于执行图 2所示的方法。 如图 24所示, 本实施例的第二装置包括接收单 元 161和处理单元 162。 接收单元 161, 用于接收控制器发送第二信息, 所述第二信息包括第二流表项和第二组表项; 其中, 所述第二流表项包 括工作路径流表项和保护路径流表项; 所述工作路径流表项的匹配域包 括第一标签, 所述工作路径流表项的指令域包括第二组动作, 所述第二组 动作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置将所 述工作路径流表项与所述第二组表项进行关联; 所述保护路径流表项的匹 配域包括第二标签, 所述保护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第三动作桶和第四动作桶, 所述第三动作桶用于指示 所述第二装置将第二报文中的所述第一标签弹出并输出第一报文, 所述第 四动作桶用于指示所述第二装置将第四报文中的所述第二标签弹出并输 出第三报文, 所述第二装置确定所述第三动作桶为活的, 所述第二组表项 的组类型是快速故障切换; 处理单元 162, 用于根据所述保护路径流表项 丢弃所述第四报文, 根据所述工作路径流表项将所述第二报文中的所述 第一标签弹出并输出所述第一报文。
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
举例来说, 所述第一装置可以是网络装置。 所述网络装置可以是 PE, 所述第一装置可以为业务发起端, 也可以为中间节点。
举例来说, 所述第二装置可以是网络装置。 所述网络装置可以是 PE。 所述第二装置可以为业务终结端, 也可以为中间节点。
进一歩地, 所述第二装置接收的所述第二信息中所述第三动作桶中 包含用于指示所述第二装置监控所述工作路径的是否发生故障的第一动 作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路径的是 否发生故障的第二动作;
进一歩地, 所述第二装置还包括第一更新单元 163, 用于通过所述第 二动作确定所述工作路径发生故障; 基于所述确定的结果, 所述第二装置 确定将所述第二组表项中的所述第四动作桶是活的; 以及, 将所述保护路 径流表项的指令域中的丢弃动作更新为所述第二组动作, 所述第二组动作 的操作数是所述第二组标识, 所述第二组动作用于指示所述第二装置将所 述保护路径流表项与所述第二组表项进行关联。
其中, 所述第二装置接收的所述第二信息中所述第三动作桶包含标识 所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所述第 二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护路径 是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根据所 述第二动作确定的。
可选的, 所述第二装置还可以包括第二更新单元 164, 用于通过所述 第一状态信息确定所述工作路径发生故障。
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
进一歩地, 所述第二装置还包括发送模块 165, 用于向所述控制器发 送更新后的所述保护路径流表项。
本实施例通过第二装置接收控制器发送第二信息。所述第二信息包括 第二流表项和第二组表项。所述第二流表项包括工作路径流表项和保护路 径流表项。 所述工作路径流表项的匹配域包括第一标签。 所述工作路径流 表项的指令域包括第二组动作。 所述第二组动作的操作数是第二组标识。 所述第二组动作用于指示所述第二装置将所述工作路径流表项与所述第 二组表项进行关联。 所述保护路径流表项的匹配域包括第二标签。 所述保 护路径流表项的指令域包括丢弃动作, 用于指示所述第二装置丢弃所接 收到通过保护路径发送的报文。所述第二组表项包括包括第三动作桶和第 四动作桶。所述第三动作桶用于指示所述第二装置将第二报文中的所述第 一标签弹出并输出第一报文。所述第四动作桶用于指示所述第二装置将第 四报文中的所述第二标签弹出并输出第三报文。所述第二装置确定所述第 三动作桶为活的。 所述第二组表项的组类型是快速故障切换。 上述技术方 案中, 多条路径向第二装置发送相同内容报文。 第二装置选择接收工作路 径发送的报文。 上述技术方案有助于支持 OpenFlow机制下的多发选收功 會 。 有助于较好地支持 QoS要求较高的业务。
图 25 为本发明第一装置实施例的结构示意图。 所述第一装置可以用 于执行图 3所示的方法。 如图 25所示, 本实施例的第一装置包括接收单 元 171、 处理单元 172。 接收单元 171, 用于接收控制器发送的第一信 息, 所述第一信息中包括第一流表项和第一组表项; 所述第一流表项包 括匹配域和指令域, 所述匹配域包括目的地的标识, 所述指令域包括第一 组动作, 所述第一组动作的操作数是第一组标识, 所述第一组动作用于指 示所述第一装置将所述第一流表项与所述第一组表项进行关联, 所述第一 组表项包括的第一动作桶和第二动作桶, 所述第一组表项的组类型为全 部; 其中, 所述第一动作桶用于指示所述第一装置将第一标签推入与所述 第一流表项匹配的第一报文以生成第二报文, 所述第二动作桶用于指示所 述第一装置将第二标签推入第三报文以生成第四报文, 所述第三报文与所 述第一报文相同; 处理单元 172, 用于根据所述第一信息通过工作路径向 第二装置发送所述第二报文, 并通过保护路径向所述第二装置发送所述第 四报文; 所述工作路径和所述保护路径是所述控制器确定的, 所述工作路 径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径 的结束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护 路径对应所述第二标签。
举例来说, 所述第一装置可以是网络装置。 所述网络装置可以是 PE, 所述第一装置可以为业务发起端, 也可以为中间节点。
举例来说, 所述第二装置可以是网络装置。 所述网络装置可以是 PE。 所述第二装置可以为业务终结端, 也可以为中间节点。
本实施例通第一装置接收控制器发送的第一信息, 根据所述第一信 息, 将具有相同内容的第一报文与第三报文分别通过工作路径和保护路 径向第二装置进行发送, 实现了在 OpenFlow机制下多发的功能, 使得相 同内容报文通过多条路径进行发送, 从而保证报文到达业务目的端。
图 26为本发明另一种控制器实施例的结构示意图。 所述控制器可以 用于执行图 17所示的方法。 如图 26所示, 本实施例的控制器包括确定单 元 181、 第一发送单元 182和第二发送单元 183。 确定单元 181, 确定工作 路径和保护路径, 所述工作路径和所述保护路径的开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装置, 所述工作路径对应第一 标签, 所述保护路径对应第二标签; 第一发送单元 182, 用于向所述第一 装置发送第一信息, 所述第一信息中包括第一流表项和第一组表项; 所 述第一流表项包括匹配域和指令域, 所述的匹配域包括目的地的标识, 所 述指令域包括第一组动作, 所述第一组动作的操作数是第一组标识, 所述 第一组动作用于指示所述第一装置将所述第一流表项和所述第一组表项 进行关联, 所述第一组表项包括第一动作桶和第二动作桶, 所述第一组表 项的组类型为全部; 其中, 所述第一动作桶用于指示所述第一装置将所述 第一标签推入与所述第一流表项匹配的第一报文以生成第二报文, 并通过 所述工作路径向所述第二装置发送所述第二报文, 所述第二动作桶用于指 示所述第二装置将所述第二标签推入第三报文以生成第四报文, 并通过所 述保护路径向所述第二装置发送所述第四报文, 所述第三报文与所述第一 报文相同; 第二发送单元 183, 用于向所述第二装置发送第二信息, 所述 第二信息包括第二流表项, 所述第二流表项包括工作路径流表项和保护 路径流表项; 其中, 所述工作路径流表项的匹配域包括所述第一标签, 所 述工作路径流表项的指令域用于指示所述第二装置将所述第二报文的所 述第一标签弹出并输出所述第一报文; 所述保护路径流表项的匹配域包 括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃 动作用于指示所述第二装置丢弃所述第四报文。
进一歩的, 所述控制器还可以包括第三发送单元 184, 用于接收到所 述工作路径发生故障的通知消息, 向所述第二装置发送流表更新消息, 所述流表更新消息用于指示所述第二装置将所述保护路径流表项更新为 新的保护路径流表项; 所述新的保护路径流表项的匹配域包括所述第二 标签, 所述新的保护路径流表项的指令域用于指示所述第二装置将第六报 文中的所述第二标签弹出并输出第五报文, 所述第六报文是所述第一装置 将所述第二标签推入所述第五报文生成的。
其中, 所述第三发送单元发送的所述流表更新消息中还包括用于用 于指示所述第二装置将所述工作路径流表项更新为新的工作路径流表 项; 所述新的工作路径流表项的匹配域包括所述第一标签, 所述新的工作 路径流表项的指令域用于指示所述第二装置丢弃第八报文, 所述第八报文 是所述第一装置将所述第一标签推入第七报文生成的。
本实施例通过控制器确定一条工作路径和至少一条保护路径。所述工 作路径和所述保护路径的开始节点是第一装置, 所述工作路径和保护路径 的结束节点是第二装置。所述控制器向所述第一装置发送第一信息, 以使 第一装置根据所述第一信息向不同路径发送相同内容报文, 从而达到多 发的目的。所述控制器向所述第二装置发送第二信息, 以使第二装置根据 所述第二信息选择接收有效路径转发的报文, 从而实现选收的目的。 本实 施例实现了在 OpenFlow机制下的多发选收功能, 有助于较好地支持 QoS 要求较高的业务。
图 27为本发明另一种第二装置实施例的结构示意图。 所述第二装置 可以用于执行图 18所示的方法。如图 27所示, 本实施例的第二装置包括 第一接收单元 191和第一处理单元 192。 第一接收单元 191, 用于接收控 制器发送的第二信息, 所述第二信息包括第二流表项, 所述第二流表项 包括工作路径流表项和保护路径流表项; 其中, 所述工作路径流表项的 匹配域包括第一标签, 所述工作路径流表项的指令域用于指示所述第二装 置将第二报文中的第一标签弹出并输出第一报文; 所述保护路径流表项 的匹配域包括第二标签, 所述保护路径流表项的指令域包括丢弃动作; 第 一处理单元 192, 用于根据所述工作路径流表项将所述第二报文中的所述 第一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第 四报文。
其中, 所述工作路径和所述保护路径为所述控制器确定, 所述第一 装置为所述工作路径和所述保护路径的开始节点, 所述第二装置为所述 工作路径和所述保护路径的结束节点, 所述第一标签为所述工作路径对 应的标签, 所述第二标签为保护路径对应的标签。
进一歩地, 本实施例第二装置还可以包括第二接收单元 193和第二处 理单元 194。 第二接收单元 193, 用于接收所述控制器发送的流表更新消 息, 所述流表更新消息用于指示所述第二装置将所述保护路径流表项更 新为新的保护路径流表项, 所述流表更新消息是所述控制器基于所述控制 器接收到的所述工作路径发生故障的通知消息生成的, 所述新的保护路径 流表项的匹配域包括所述第二标签; 第二处理单元 194, 用于根据所述新 的保护路径流表项将第六报文中的所述第二标签弹出并输出第五报文, 所 述第六报文是所述第一装置将所述第二标签推入所述第五报文生成的, 并 且所述第六报文是所述第一装置通过所述保护路径向所述第二装置发送 的。
进一歩地, 所述第二接收单元 193接收的所述流表更新消息中还包括 用于指示所述第二装置将所述工作路径流表项更新为新的工作路径流表 项; 所述新的工作路径流表项的匹配域包括所述第一标签; 所述第二处 理单元 194, 还用于根据所述新的工作路径流表项丢弃第八报文, 所述第 八报文是所述第一装置将所述第一标签推入第七报文生成的, 并且所述第 八报文是所述第一装置通过所述工作路径向所述第二装置发送的。
本实施例通过第二装置接收控制器发送第二信息。所述第二信息包括 第二流表项。 所述第二流表项包括工作路径流表项和保护路径流表项。 所 述工作路径流表项的匹配域包括第一标签, 所述工作路径流表项的指令域 用于指示所述第二装置将第二报文中的第一标签弹出并输出第一报文。所 述保护路径流表项的匹配域包括第二标签, 所述保护路径流表项的指令域 包括丢弃动作。所述第二装置根据所述工作路径流表项将所述第二报文中 的所述第一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃 所述第四报文。从而使得有多条路径向第二装置发送相同内容报文时, 第 二装置选择接收工作路径发送的报文, 实现了在 OpenFlow机制下选收的 功能。
图 28为本发明控制器设备是实施例的结构示意图。 如图 28所示, 本 发明实施例提供的控制器包括处理器 201和发送器 202。
其中, 处理器 201, 用于确定工作路径和保护路径, 所述工作路径和 所述保护路径的开始节点是第一装置, 所述工作路径和所述保护路径的结 束节点是第二装置, 所述工作路径对应第一标签, 所述保护路径对应第 二标签;
发送器 202, 用于向所述第一装置发送第一信息, 所述第一信息中包 括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述 匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作 的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项与所述第一组表项进行关联, 所述第一组表项包括第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一 报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二 报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报 文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同; 向所述第二装置发送第二信息, 所述第二信息包括第二流表项和第二组表项; 其中, 所述第二流表项包 括工作路径流表项和保护路径流表项; 所述工作路径流表项的匹配域包 括所述第一标签, 所述工作路径流表项的指令域包括第二组动作, 所述第 二组动作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置 将所述工作路径流表项与所述第二组表项进行关联; 所述保护路径流表 项的匹配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃 动作, 所述丢弃动作用于指示所述第二装置丢弃接收到的所述第四报 文; 其中, 所述第二组表项包括第三动作桶和第四动作桶, 所述第三动作 桶用于指示所述第二装置将所述第二报文中的所述第一标签弹出并输出 所述第一报文, 所述第四动作桶用于指示所述第二装置将所述第四报文中 的所述第二标签弹出并输出所述第三报文, 所述第三动作桶被所述第二装 置确定为是活的, 所述第二组表项的组类型是快速故障切换。
进一歩地, 所述发送器 202发送的所述第二信息中所述第三动作桶中 包含用于指示所述第二装置监控所述工作路径的是否发生故障的第一动 作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路径的是 否发生故障的第二动作;
可选地, 所述发送器 202发送的所述第二信息中所述第三动作桶包含 标识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所 述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护 路径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根 据所述第二动作确定的。
进一歩地, 所述控制器还包括: 接收器 203, 用于接收所述第二装置 发送的更新后的所述保护路径流表项。
本发明实施例提供的控制器, 可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 29为本发明第二设备实施例的结构示意图, 如图 29所示, 所述第二 设备包括接收器 211和处理器 212。
其中, 接收器 211, 用于接收控制器发送第二信息, 所述第二信息包 括第二流表项和第二组表项; 其中, 所述第二流表项包括工作路径流表 项和保护路径流表项; 所述工作路径流表项的匹配域包括第一标签, 所述 工作路径流表项的指令域包括第二组动作, 所述第二组动作的操作数是第 二组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项 与所述第二组表项进行关联; 所述保护路径流表项的匹配域包括第二标 签, 所述保护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项 包括第三动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将 第二报文中的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指 示所述第二装置将第四报文中的所述第二标签弹出并输出第三报文, 所述 第二装置确定所述第三动作桶为活的, 所述第二组表项的组类型是快速故 障切换;
处理器 212, 用于根据所述保护路径流表项丢弃所述第四报文, 根据 所述工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述 第一报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。 其中, 所述接收器 21 1接收的第二流表信息中所述第三动作桶中包含 用于指示所述第二装置监控所述工作路径的是否发生故障的第一动作, 所 述第四动作桶中包含用于指示所述第二装置监控所述保护路径的是否发 生故障的第二动作;
进一歩地, 所述处理器 212还用于通过所述第二动作确定所述工作路 径发生故障; 基于所述确定的结果, 所述第二装置确定将所述第二组表项 中的所述第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的 丢弃动作更新为所述第二组动作, 所述第二组动作的操作数是所述第二组 标识, 所述第二组动作用于指示所述第二装置将所述保护路径流表项与所 述第二组表项进行关联。
可选地, 所述接收器 21 1接收的第二流表信息中所述第三动作桶包含 标识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所 述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护 路径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根 据所述第二动作确定的。
进一歩地, 所述处理器 212还用于通过所述第一状态信息确定所述工 作路径发生故障; 基于所述确定的结果, 所述第二装置确定所述第二组表 项中的所述第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中 的丢弃动作更新为所述第二组动作, 所述第二组动作的操作数是所述第二 组标识, 所述第二组动作用于指示所述第二装置将所述保护路径流表项与 所述第二组表项进行关联。
进一歩地, 所述第二设备还包括:
发送器 213, 用于向所述控制器发送更新后的所述保护路径流表项。 本发明实施例提供的第二设备,可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 30为本发明第一设备实施例的结构示意图, 如图 30所示, 所述第一 装置包括接收器 221和处理器 222。
其中, 接收器 221, 用于接收控制器发送的第一信息, 所述第一信息 中包括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组 动作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将 所述第一流表项与所述第一组表项进行关联, 所述第一组表项包括的第一 动作桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一 动作桶用于指示所述第一装置将第一标签推入与所述第一流表项匹配的 第一报文以生成第二报文, 所述第二动作桶用于指示所述第一装置将第二 标签推入第三报文以生成第四报文, 所述第三报文与所述第一报文相同; 处理器 223, 用于根据所述第一信息通过工作路径向第二装置发送所 述第二报文, 并通过保护路径向所述第二装置发送所述第四报文。
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。
本发明实施例提供的第一设备,可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 31为本发明另一种控制器设备实施例的结构示意图, 如图 31所示, 所述控制器包括处理器 231和发送器 232。
其中, 处理器 231, 用于确定工作路径和保护路径, 所述工作路径和 所述保护路径的开始节点是第一装置, 所述工作路径和保护路径的结束节 点是第二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标 签;
发送器 232, 用于向所述第一装置发送第一信息, 所述第一信息中包 括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述 的匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动 作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所 述第一流表项和所述第一组表项进行关联, 所述第一组表项包括第一动作 桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作 桶用于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的 第一报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述 第二报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第 三报文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第 四报文, 所述第三报文与所述第一报文相同; 所述第二装置发送第二信 息, 所述第二信息包括第二流表项, 所述第二流表项包括工作路径流表 项和保护路径流表项; 其中, 所述工作路径流表项的匹配域包括所述第 一标签, 所述工作路径流表项的指令域用于指示所述第二装置将所述第二 报文的所述第一标签弹出并输出所述第一报文; 所述保护路径流表项的 匹配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于指示所述第二装置丢弃所述第四报文。
进一歩地, 所述处理器 232还用于: 接收到所述工作路径发生故障的 通知消息, 向所述第二装置发送流表更新消息, 所述流表更新消息用于指 示所述第二装置将所述保护路径流表项更新为新的保护路径流表项; 所述 新的保护路径流表项的匹配域包括所述第二标签, 所述新的保护路径流表 项的指令域用于指示所述第二装置将第六报文中的所述第二标签弹出并 输出第五报文, 所述第六报文是所述第一装置将所述第二标签推入所述第 五报文生成的。
进一歩地, 所述所述流表更新消息中还用于指示所述第二装置将所 述工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表 项的匹配域包括所述第一标签, 所述新的工作路径流表项的指令域用于指 示所述第二装置丢弃第八报文, 所述第八报文是所述第一装置将所述第一 标签推入第七报文生成的。
本发明实施例提供的控制器, 可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 32为本发明另一种第二设备实施例的结构示意图, 如图 32所示, 所述第二设备包括接收器 241和处理器 242。
其中, 接收器 241, 用于接收控制器发送的第二信息, 所述第二信息 包括第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表 项; 其中, 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流 表项的指令域用于指示所述第二装置将第二报文中的第一标签弹出并输 出第一报文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径 流表项的指令域包括丢弃动作;
处理器 242, 用于根据所述工作路径流表项将所述第二报文中的所述 第一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第 四报文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
进一歩地, 所述接收器 241还用于: 接收所述控制器发送的流表更新 消息, 所述流表更新消息用于指示所述第二装置将所述保护路径流表项 更新为新的保护路径流表项, 所述流表更新消息是所述控制器基于所述控 制器接收到的所述工作路径发生故障的通知消息生成的; 所述新的保护 路径流表项的匹配域包括所述第二标签, 所述新的保护路径流表项用于指 示所述第二装置将第六报文中的所述第二标签弹出并输出第五报文, 所述 第六报文是所述第一装置将所述第二标签推入所述第五报文生成的, 并且 所述第六报文是所述第一装置通过所述保护路径向所述第二装置发送 的;
可选地, 所述流表更新消息中还包括用于指示所述第二装置将所述工 作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表项的 匹配域包括所述第一标签, 所述新的工作路径流表项用于指示所述第二装 置将丢弃第八报文, 所述第八报文是所述第一装置将所述第一标签推入第 七报文生成的, 并且所述第八报文是所述第一装置通过所述工作路径向所 述第二装置发送的。
本发明实施例提供的第二设备,可用于执行上述方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再赘述。
图 33 为本发明发送信息的系统实施例一的结构示意图, 如图 33 所 示, 所述发送信息的系统包括控制器 251、 第二装置 252 和第一装置 253。
其中, 控制器 251可以采用图 15的装置实施例的结构, 其对应地, 可以执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处 不再赘述。
第二装置 252可以采用图 16的装置实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
第一装置 253可以采用图 17的装置实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 图 34 为本发明发送信息的系统实施例二的结构示意图, 如图 34所 示, 所述发送信息的系统包括控制器 261、 第二装置 262 和第一装置 263。
其中, 控制器 261可以采用图 18的装置实施例的结构, 其对应地, 可以执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处 不再赘述。
第二装置 262可以采用图 19的装置实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
第一装置 263可以采用图 17的装置实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
图 35 为本发明发送信息的系统实施例三的结构示意图, 如图 35 所 示, 所述发送信息的系统包括控制器 271、 第二设备 272 和第一设备 273。
其中, 控制器 271可以采用图 20的设备实施例的结构, 其对应地, 可以执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处 不再赘述。
第二设备 272可以采用图 21 的设备实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
第一设备 273可以采用图 22的设备实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
图 36 为本发明发送信息的系统实施例四的结构示意图, 如图 36所 示, 所述发送信息的系统包括控制器 281、 第二设备 282 和第一设备 283。
其中, 控制器 281可以采用图 23 的设备实施例的结构, 其对应地, 可以执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处 不再赘述 α
第二设备 282可以采用图 24的设备实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
第一设备 283可以采用图 22的设备实施例的结构, 其对应地, 可以 执行其方法实施例的技术方案, 其实现原理和技术效果类似, 此处不再 赘述。
在本发明所提供的几个实施例中, 应该理解到, 所揭露的装置和方法, 可以通过其它的方式实现。例如, 以上所描述的装置实施例仅仅是示意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可以有另外 的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或 一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或 直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连 接, 可以是电性, 机械或其它的形式。
所述该作为分离部件说明的单元可以是或者也可以不是物理上分开的, 作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方, 或者也可以分布到多个网络单元上。 可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。
另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一个单 元中。 上述集成的单元既可以采用硬件的形式实现, 也可以采用硬件加软件 功能单元的形式实现。
上述以软件功能单元的形式实现的集成的单元, 可以存储在一个计算机 可读取存储介质中。 上述软件功能单元存储在一个存储介质中, 包括若干指 令用以使得一台计算机设备 (可以是个人计算机, 服务器, 或者网络设备) 或处理器 (英文: processor) 执行本发明各个实施例所述方法的部分歩骤。 而前述的存储介质包括: U 盘、 移动硬盘、 只读存储器 (英文: Read-Only Memory, 简称: ROM) 、 随机存取存储器(英文: Random Access Memory, 简称: RAM) 、 磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员可以清楚地了解到, 为描述的方便和简洁, 仅以上述各 功能模块的划分进行举例说明, 实际应用中, 可以根据需要而将上述功能分 配由不同的功能模块完成, 即将装置的内部结构划分成不同的功能模块, 以 完成以上描述的全部或者部分功能。 上述描述的装置的具体工作过程, 可以 参考前述方法实施例中的对应过程, 在此不再赘述。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要 求 书
1、 一种发送信息的方法, 其特征在于, 包括:
控制器确定工作路径和保护路径, 所述工作路径和所述保护路径的 开始节点是第一装置, 所述工作路径和所述保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
所述控制器向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配 域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操 作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流 表项与所述第一组表项进行关联, 所述第一组表项包括第一动作桶和第二 动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于指 示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一报文 以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二报 文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报文 以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同;
所述控制器向所述第二装置发送第二信息, 所述第二信息包括第二 流表项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保 护路径流表项; 所述工作路径流表项的匹配域包括所述第一标签, 所述工 作路径流表项的指令域包括第二组动作, 所述第二组动作的操作数是第二 组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与 所述第二组表项进行关联; 所述保护路径流表项的匹配域包括所述第二 标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于 指示所述第二装置丢弃接收到的所述第四报文; 其中, 所述第二组表项 包括第三动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将 所述第二报文中的所述第一标签弹出并输出所述第一报文, 所述第四动作 桶用于指示所述第二装置将所述第四报文中的所述第二标签弹出并输出 所述第三报文, 所述第三动作桶被所述第二装置确定为是活的, 所述第二 组表项的组类型是快速故障切换。
2、 根据权利要求 1 所述的方法, 其特征在于, 所述第三动作桶中包 含用于指示所述第二装置监控所述工作路径的是否发生故障的第一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路径的是否 发生故障的第二动作。
3、 根据权利要求 2所述的方法, 其特征在于, 所述第三动作桶包含 标识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所 述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护 路径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根 据所述第二动作确定的。
4、 根据权利要求 2或 3所述的方法, 其特征在于, 还包括: 所述控制器接收所述第二装置发送的更新后的所述保护路径流表项。
5、 一种发送信息的方法, 其特征在于, 包括:
第二装置接收控制器发送第二信息, 所述第二信息包括第二流表项 和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保护路径 流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流表 项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标识, 所 述第二组动作用于指示所述第二装置将所述工作路径流表项与所述第二 组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述保护 路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第三动 作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报文中 的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述第二 装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装置确 定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切换; 所述第二装置根据所述保护路径流表项丢弃所述第四报文, 根据所 述工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述第 一报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
6、 根据权利要求 5所述的方法, 其特征在于, 所述第三动作桶中包 含用于指示所述第二装置监控所述工作路径的是否发生故障的第一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路径的是否 发生故障的第二动作。
7、 根据权利要求 6所述的方法, 其特征在于, 所述第二装置通过所 述第二动作确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定将所述第二组表项中的所述 第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作 更新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所 述第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二 组表项进行关联。
8、 根据权利要求 6所述的方法, 其特征在于, 所述第三动作桶包含 标识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息是所 述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述保护 路径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装置根 据所述第二动作确定的。
9、 根据权利要求 8所述的方法, 其特征在于, 所述第二装置通过所 述第一状态信息确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
10、 根据权利要求 7或 9所述的方法, 其特征在于, 还包括: 所述第二装置向所述控制器发送更新后的所述保护路径流表项。
1 1、 一种发送信息的方法, 其特征在于, 包括:
第一装置接收控制器发送的第一信息, 所述第一信息中包括第一流 表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域包 括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操作数 是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流表 项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶和第二 动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于指 示所述第一装置将第一标签推入与所述第一流表项匹配的第一报文以生 成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推入第三 报文以生成第四报文, 所述第三报文与所述第一报文相同;
所述第一装置根据所述第一信息通过工作路径向第二装置发送所述 第二报文, 并通过保护路径向所述第二装置发送所述第四报文;
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。
12、 一种发送信息的方法, 其特征在于, 包括:
控制器确定工作路径和保护路径, 所述工作路径和所述保护路径的 开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
所述控制器向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述的匹 配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的 操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项和所述第一组表项进行关联, 所述第一组表项包括第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一 报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二 报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报 文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同;
所述控制器向所述第二装置发送第二信息, 所述第二信息包括第二 流表项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其 中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路径流表 项的指令域用于指示所述第二装置将所述第二报文的所述第一标签弹出 并输出所述第一报文; 所述保护路径流表项的匹配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于指示所 述第二装置丢弃所述第四报文。
13、 根据权利要求 12所述的方法, 其特征在于, 还包括:
所述控制器接收到所述工作路径发生故障的通知消息, 向所述第二 装置发送流表更新消息, 所述流表更新消息用于指示所述第二装置将所 述保护路径流表项更新为新的保护路径流表项; 所述新的保护路径流表 项的匹配域包括所述第二标签, 所述新的保护路径流表项的指令域用于指 示所述第二装置将第六报文中的所述第二标签弹出并输出第五报文, 所述 第六报文是所述第一装置将所述第二标签推入所述第五报文生成的。
14、 根据权利要求 13 所述的方法, 其特征在于, 所述流表更新消息 中还用于指示所述第二装置将所述工作路径流表项更新为新的工作路径 流表项; 所述新的工作路径流表项的匹配域包括所述第一标签, 所述新的 工作路径流表项的指令域用于指示所述第二装置丢弃第八报文, 所述第八 报文是所述第一装置将所述第一标签推入第七报文生成的。
15、 一种发送信息的方法, 其特征在于, 包括:
第二装置接收控制器发送的第二信息, 所述第二信息包括第二流表 项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其中, 所 述工作路径流表项的匹配域包括第一标签, 所述工作路径流表项的指令域 用于指示所述第二装置将第二报文中的第一标签弹出并输出第一报文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径流表项的指令 域包括丢弃动作;
所述第二装置根据所述工作路径流表项将所述第二报文中的所述第 —标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第四 报文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
16、 根据权利要求 15所述的方法, 其特征在于, 还包括: 所述第二装置接收所述控制器发送的流表更新消息, 所述流表更新 消息用于指示所述第二装置将所述保护路径流表项更新为新的保护路径 流表项, 所述流表更新消息是所述控制器基于所述控制器接收到的所述工 作路径发生故障的通知消息生成的; 所述新的保护路径流表项的匹配域 包括所述第二标签, 所述新的保护路径流表项用于指示所述第二装置将第 六报文中的所述第二标签弹出并输出第五报文, 所述第六报文是所述第一 装置将所述第二标签推入所述第五报文生成的, 并且所述第六报文是所述 第一装置通过所述保护路径向所述第二装置发送的。
17、 根据权利要求 16所述的方法, 其特征在于, 所述流表更新消息 中还包括用于指示所述第二装置将所述工作路径流表项更新为新的工作 路径流表项; 所述新的工作路径流表项的匹配域包括所述第一标签, 所述 新的工作路径流表项用于指示所述第二装置将丢弃第八报文, 所述第八报 文是所述第一装置将所述第一标签推入第七报文生成的, 并且所述第八报 文是所述第一装置通过所述工作路径向所述第二装置发送的。
18、 一种控制器, 其特征在于, 包括:
确定单元, 用于确定工作路径和保护路径, 所述工作路径和所述保 护路径的开始节点是第一装置, 所述工作路径和所述保护路径的结束节点 是第二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标 签;
第一发送单元, 用于向所述第一装置发送第一信息, 所述第一信息 中包括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组 动作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所 述第一流表项与所述第一组表项进行关联, 所述第一组表项包括第一动作 桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作 桶用于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的 第一报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述 第二报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第 三报文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第 四报文, 所述第三报文与所述第一报文相同;
第二发送单元, 用于向所述第二装置发送第二信息, 所述第二信息 包括第二流表项和第二组表项; 其中, 所述第二流表项包括工作路径流 表项和保护路径流表项; 所述工作路径流表项的匹配域包括所述第一标 签, 所述工作路径流表项的指令域包括第二组动作, 所述第二组动作的操 作数是第二组标识, 所述第二组动作用于指示所述第二装置将所述工作路 径流表项与所述第二组表项进行关联; 所述保护路径流表项的匹配域包 括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢 弃动作用于指示所述第二装置丢弃接收到的所述第四报文; 其中, 所述 第二组表项包括第三动作桶和第四动作桶, 所述第三动作桶用于指示所述 第二装置将所述第二报文中的所述第一标签弹出并输出所述第一报文, 所 述第四动作桶用于指示所述第二装置将所述第四报文中的所述第二标签 弹出并输出所述第三报文, 所述第三动作桶被所述第二装置确定为是活 的, 所述第二组表项的组类型是快速故障切换。
19、 根据权利要求 18所述的控制器, 其特征在于, 所述第三动作桶 中包含用于指示所述第二装置监控所述工作路径的是否发生故障的第一 动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路径的 是否发生故障的第二动作。
20、 根据权利要求 19所述的控制器, 其特征在于, 所述第三动作桶 包含标识所述工作路径是否发生故障的第一状态信息, 所述第一状态信息 是所述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所述 保护路径是否发生故障的第二状态信息, 所述第二状态信息是所述第二装 置根据所述第二动作确定的。
21、 根据权利要求 19或 20所述的控制器, 其特征在于, 还包括: 接收单元, 用于接收所述第二装置发送的更新后的所述保护路径流表 项。
22、 一种第二装置, 其特征在于, 包括:
接收单元, 用于接收控制器发送第二信息, 所述第二信息包括第二 流表项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保 护路径流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路 径流表项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标 识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与所述 第二组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述 保护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第 三动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报 文中的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述 第二装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装 置确定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切 换;
处理单元, 用于根据所述保护路径流表项丢弃所述第四报文, 根据 所述工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述 第一报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
23、 根据权利要求 22所述的第二装置, 其特征在于, 所述第二装置 接收的所述第二信息中所述第三动作桶中包含用于指示所述第二装置监 控所述工作路径的是否发生故障的第一动作, 所述第四动作桶中包含用于 指示所述第二装置监控所述保护路径的是否发生故障的第二动作。
24、 根据权利要求 23所述的第二装置, 其特征在于, 还包括: 第一更新单元, 用于通过所述第二动作确定所述工作路径发生故障; 基于所述确定的结果, 所述第二装置确定将所述第二组表项中的所述第四 动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更新 为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述第 二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组表 项进行关联。
25、 根据权利要求 23 所述的第二装置, 其特征在于, 所述第二装置 接收的所述第二信息中所述第三动作桶包含标识所述工作路径是否发生 故障的第一状态信息, 所述第一状态信息是所述第二装置根据所述第一动 作确定的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状 态信息, 所述第二状态信息是所述第二装置根据所述第二动作确定的。
26、 根据权利要求 25所述的第二装置, 其特征在于, 还包括: 第二更新单元, 用于通过所述第一状态信息确定所述工作路径发生故 障;
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
27、 根据权利要求 24或 26所述的第二装置, 其特征在于, 还包括: 发送单元, 用于向所述控制器发送更新后的所述保护路径流表项。
28、 一种第一装置, 其特征在于, 包括:
接收单元, 用于接收控制器发送的第一信息, 所述第一信息中包括 第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹 配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的 操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 —流表项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶 和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶 用于指示所述第一装置将第一标签推入与所述第一流表项匹配的第一报 文以生成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推 入第三报文以生成第四报文, 所述第三报文与所述第一报文相同;
处理单元, 用于根据所述第一信息通过工作路径向第二装置发送所 述第二报文, 并通过保护路径向所述第二装置发送所述第四报文;
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。
29、 一种控制器, 其特征在于, 包括:
确定单元, 确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
第一发送单元, 用于向所述第一装置发送第一信息, 所述第一信息 中包括第一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述的匹配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一 组动作的操作数是第一组标识, 所述第一组动作用于指示所述第一装置 将所述第一流表项和所述第一组表项进行关联, 所述第一组表项包括第一 动作桶和第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一 动作桶用于指示所述第一装置将所述第一标签推入与所述第一流表项匹 配的第一报文以生成第二报文, 并通过所述工作路径向所述第二装置发送 所述第二报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推 入第三报文以生成第四报文, 并通过所述保护路径向所述第二装置发送所 述第四报文, 所述第三报文与所述第一报文相同;
第二发送单元, 用于向所述第二装置发送第二信息, 所述第二信息 包括第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表 项; 其中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路 径流表项的指令域用于指示所述第二装置将所述第二报文的所述第一标 签弹出并输出所述第一报文; 所述保护路径流表项的匹配域包括所述第 二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢弃动作用于 指示所述第二装置丢弃所述第四报文。
30、 根据权利要求 29所述的控制器, 其特征在于, 还包括: 第三发送单元, 用于接收到所述工作路径发生故障的通知消息, 向 所述第二装置发送流表更新消息, 所述流表更新消息用于指示所述第二 装置将所述保护路径流表项更新为新的保护路径流表项; 所述新的保护 路径流表项的匹配域包括所述第二标签, 所述新的保护路径流表项的指令 域用于指示所述第二装置将第六报文中的所述第二标签弹出并输出第五 报文, 所述第六报文是所述第一装置将所述第二标签推入所述第五报文生 成的。
31、 根据权利要求 30所述的控制器, 其特征在于, 所述第三发送单 元发送的所述流表更新消息中还包括用于用于指示所述第二装置将所述 工作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表项 的匹配域包括所述第一标签, 所述新的工作路径流表项的指令域用于指示 所述第二装置丢弃第八报文, 所述第八报文是所述第一装置将所述第一标 签推入第七报文生成的。
32、 一种第二装置, 其特征在于, 包括:
第一接收单元, 用于接收控制器发送的第二信息, 所述第二信息包 括第二流表项, 所述第二流表项包括工作路径流表项和保护路径流表 项; 其中, 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流 表项的指令域用于指示所述第二装置将第二报文中的第一标签弹出并输 出第一报文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径 流表项的指令域包括丢弃动作;
第一处理单元, 用于根据所述工作路径流表项将所述第二报文中的 所述第一标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所 述第四报文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
33、 根据权利要求 32所述的第二装置, 其特征在于, 还包括: 第二接收单元, 用于接收所述控制器发送的流表更新消息, 所述流 表更新消息用于指示所述第二装置将所述保护路径流表项更新为新的保 护路径流表项, 所述流表更新消息是所述控制器基于所述控制器接收到的 所述工作路径发生故障的通知消息生成的, 所述新的保护路径流表项的匹 配域包括所述第二标签;
第二处理单元, 用于根据所述新的保护路径流表项将第六报文中的所 述第二标签弹出并输出第五报文, 所述第六报文是所述第一装置将所述第 二标签推入所述第五报文生成的, 并且所述第六报文是所述第一装置通过 所述保护路径向所述第二装置发送的。
34、 根据权利要求 33 所述的第二装置, 其特征在于, 所述第二接收 单元接收的所述流表更新消息中还包括用于指示所述第二装置将所述工 作路径流表项更新为新的工作路径流表项; 所述新的工作路径流表项的 匹配域包括所述第一标签;
所述第二处理单元, 还用于根据所述新的工作路径流表项丢弃第八报 文, 所述第八报文是所述第一装置将所述第一标签推入第七报文生成的, 并且所述第八报文是所述第一装置通过所述工作路径向所述第二装置发 送的。
35、 一种控制器, 其特征在于, 包括:
处理器, 用于确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和所述保护路径的结束节点是第 二装置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
发送器, 用于向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配 域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操 作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流 表项与所述第一组表项进行关联, 所述第一组表项包括第一动作桶和第二 动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于指 示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一报文 以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二报 文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报文 以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同; 向所述第二装置发送第二信息, 所述第二信息包括第二流表项和第二组表项; 其中, 所述第二流表项包 括工作路径流表项和保护路径流表项; 所述工作路径流表项的匹配域包 括所述第一标签, 所述工作路径流表项的指令域包括第二组动作, 所述第 二组动作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置 将所述工作路径流表项与所述第二组表项进行关联; 所述保护路径流表 项的匹配域包括所述第二标签, 所述保护路径流表项的指令域包括丢弃 动作, 所述丢弃动作用于指示所述第二装置丢弃接收到的所述第四报 文; 其中, 所述第二组表项包括第三动作桶和第四动作桶, 所述第三动作 桶用于指示所述第二装置将所述第二报文中的所述第一标签弹出并输出 所述第一报文, 所述第四动作桶用于指示所述第二装置将所述第四报文中 的所述第二标签弹出并输出所述第三报文, 所述第三动作桶被所述第二装 置确定为是活的, 所述第二组表项的组类型是快速故障切换。
36、 根据权利要求 35 所述的控制器, 其特征在于, 所述发送器发送 的所述第二信息中所述第三动作桶中包含用于指示所述第二装置监控所 述工作路径的是否发生故障的第一动作, 所述第四动作桶中包含用于指示 所述第二装置监控所述保护路径的是否发生故障的第二动作。
37、 根据权利要求 36所述的控制器, 其特征在于, 所述发送器发送 的所述第二信息中所述第三动作桶包含标识所述工作路径是否发生故障 的第一状态信息, 所述第一状态信息是所述第二装置根据所述第一动作确 定的, 所述第四动作桶包含标识所述保护路径是否发生故障的第二状态信 息, 所述第二状态信息是所述第二装置根据所述第二动作确定的。
38、 根据权利要求 36或 37所述的控制器, 其特征在于, 还包括: 接收器, 用于接收所述第二装置发送的更新后的所述保护路径流表 项。
39、 一种第二设备, 其特征在于, 包括:
接收器, 用于接收控制器发送第二信息, 所述第二信息包括第二流表 项和第二组表项; 其中, 所述第二流表项包括工作路径流表项和保护路 径流表项; 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流 表项的指令域包括第二组动作, 所述第二组动作的操作数是第二组标识, 所述第二组动作用于指示所述第二装置将所述工作路径流表项与所述第 二组表项进行关联; 所述保护路径流表项的匹配域包括第二标签, 所述保 护路径流表项的指令域包括丢弃动作; 其中, 所述第二组表项包括第三 动作桶和第四动作桶, 所述第三动作桶用于指示所述第二装置将第二报文 中的所述第一标签弹出并输出第一报文, 所述第四动作桶用于指示所述第 二装置将第四报文中的所述第二标签弹出并输出第三报文, 所述第二装置 确定所述第三动作桶为活的, 所述第二组表项的组类型是快速故障切换; 处理器, 用于根据所述保护路径流表项丢弃所述第四报文, 根据所述 工作路径流表项将所述第二报文中的所述第一标签弹出并输出所述第一 报文;
所述第二报文为第一装置将所述第一标签推入所述第一报文生成的, 所述第四报文为所述第一装置将所述第二标签推入所述第三报文生成的, 所述第三报文与所述第一报文相同, 所述第一标签对应所述工作路径, 所 述第二标签对应所述保护路径, 所述工作路径和所述保护路径为所述控制 器确定的, 所述工作路径和所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结束节点是所述第二装置。
40、 根据权利要求 39所述的第二设备, 其特征在于, 所述第三动作 桶中包含用于指示所述第二装置监控所述工作路径的是否发生故障的第 一动作, 所述第四动作桶中包含用于指示所述第二装置监控所述保护路径 的是否发生故障的第二动作。
41、 根据权利要求 40所述的第二设备, 其特征在于, 所述处理器还 用于:
通过所述第二动作确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定将所述第二组表项中的所述 第四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作 更新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所 述第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二 组表项进行关联。
42、 根据权利要求 40所述的第二设备, 其特征在于, 所述第三动作 桶包含标识所述工作路径是否发生故障的第一状态信息, 所述第一状态信 息是所述第二装置根据所述第一动作确定的, 所述第四动作桶包含标识所 述保护路径是否发生故障的第二状态信息, 所述第二状态信息是所述第二 装置根据所述第二动作确定的。
43、 根据权利要求 42所述的第二设备, 其特征在于, 所述处理器还 用于:
通过所述第一状态信息确定所述工作路径发生故障;
基于所述确定的结果, 所述第二装置确定所述第二组表项中的所述第 四动作桶是活的; 以及, 将所述保护路径流表项的指令域中的丢弃动作更 新为所述第二组动作, 所述第二组动作的操作数是所述第二组标识, 所述 第二组动作用于指示所述第二装置将所述保护路径流表项与所述第二组 表项进行关联。
44、 根据权利要求 41或 43所述的第二设备, 其特征在于, 还包括: 发送器, 用于向所述控制器发送更新后的所述保护路径流表项。
45、 一种第一设备, 其特征在于, 包括:
接收器, 用于接收控制器发送的第一信息, 所述第一信息中包括第一 流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述匹配域 包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的操作 数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第一流 表项与所述第一组表项进行关联, 所述第一组表项包括的第一动作桶和第 二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用于 指示所述第一装置将第一标签推入与所述第一流表项匹配的第一报文以 生成第二报文, 所述第二动作桶用于指示所述第一装置将第二标签推入第 三报文以生成第四报文, 所述第三报文与所述第一报文相同;
处理器, 用于根据所述第一信息通过工作路径向第二装置发送所述第 二报文, 并通过保护路径向所述第二装置发送所述第四报文;
所述工作路径和所述保护路径是所述控制器确定的, 所述工作路径和 所述保护路径的开始节点是所述第一装置, 所述工作路径和保护路径的结 束节点是所述第二装置, 所述工作路径对应所述第一标签, 所述保护路径 对应所述第二标签。
46、 一种控制器, 其特征在于, 包括:
处理器, 用于确定工作路径和保护路径, 所述工作路径和所述保护路 径的开始节点是第一装置, 所述工作路径和保护路径的结束节点是第二装 置, 所述工作路径对应第一标签, 所述保护路径对应第二标签;
发送器, 用于向所述第一装置发送第一信息, 所述第一信息中包括第 一流表项和第一组表项; 所述第一流表项包括匹配域和指令域, 所述的匹 配域包括目的地的标识, 所述指令域包括第一组动作, 所述第一组动作的 操作数是第一组标识, 所述第一组动作用于指示所述第一装置将所述第 一流表项和所述第一组表项进行关联, 所述第一组表项包括第一动作桶和 第二动作桶, 所述第一组表项的组类型为全部; 其中, 所述第一动作桶用 于指示所述第一装置将所述第一标签推入与所述第一流表项匹配的第一 报文以生成第二报文, 并通过所述工作路径向所述第二装置发送所述第二 报文, 所述第二动作桶用于指示所述第二装置将所述第二标签推入第三报 文以生成第四报文, 并通过所述保护路径向所述第二装置发送所述第四报 文, 所述第三报文与所述第一报文相同; 所述第二装置发送第二信息, 所 述第二信息包括第二流表项, 所述第二流表项包括工作路径流表项和保 护路径流表项; 其中, 所述工作路径流表项的匹配域包括所述第一标签, 所述工作路径流表项的指令域用于指示所述第二装置将所述第二报文的 所述第一标签弹出并输出所述第一报文; 所述保护路径流表项的匹配域 包括所述第二标签, 所述保护路径流表项的指令域包括丢弃动作, 所述丢 弃动作用于指示所述第二装置丢弃所述第四报文。
47、 根据权利要求 46所述的控制器, 其特征在于, 所述处理器还用 于:
接收到所述工作路径发生故障的通知消息, 向所述第二装置发送流 表更新消息, 所述流表更新消息用于指示所述第二装置将所述保护路径 流表项更新为新的保护路径流表项; 所述新的保护路径流表项的匹配域 包括所述第二标签, 所述新的保护路径流表项的指令域用于指示所述第二 装置将第六报文中的所述第二标签弹出并输出第五报文, 所述第六报文是 所述第一装置将所述第二标签推入所述第五报文生成的。
48、 根据权利要求 47所述的控制器, 其特征在于, 所述流表更新消 息中还用于指示所述第二装置将所述工作路径流表项更新为新的工作路 径流表项; 所述新的工作路径流表项的匹配域包括所述第一标签, 所述新 的工作路径流表项的指令域用于指示所述第二装置丢弃第八报文, 所述第 八报文是所述第一装置将所述第一标签推入第七报文生成的。
49、 一种第二设备, 其特征在于, 包括:
接收器, 用于接收控制器发送的第二信息, 所述第二信息包括第二流 表项, 所述第二流表项包括工作路径流表项和保护路径流表项; 其中, 所述工作路径流表项的匹配域包括第一标签, 所述工作路径流表项的指令 域用于指示所述第二装置将第二报文中的第一标签弹出并输出第一报 文; 所述保护路径流表项的匹配域包括第二标签, 所述保护路径流表项的 指令域包括丢弃动作;
处理器, 用于根据所述工作路径流表项将所述第二报文中的所述第一 标签弹出输出所述第一报文, 根据所述保护路径流表项丢弃所述第四报 文;
所述工作路径和所述保护路径为所述控制器确定, 所述第一装置为 所述工作路径和所述保护路径的开始节点, 所述第二装置为所述工作路 径和所述保护路径的结束节点, 所述第一标签为所述工作路径对应的标 签, 所述第二标签为保护路径对应的标签。
50、 根据权利要求 49所述的第二设备, 其特征在于, 所述接收器还 用于:
接收所述控制器发送的流表更新消息, 所述流表更新消息用于指示 所述第二装置将所述保护路径流表项更新为新的保护路径流表项, 所述流 表更新消息是所述控制器基于所述控制器接收到的所述工作路径发生故 障的通知消息生成的; 所述新的保护路径流表项的匹配域包括所述第二 标签, 所述新的保护路径流表项用于指示所述第二装置将第六报文中的所 述第二标签弹出并输出第五报文, 所述第六报文是所述第一装置将所述第 二标签推入所述第五报文生成的, 并且所述第六报文是所述第一装置通过 所述保护路径向所述第二装置发送的。
51、 根据权利要求 50所述的第二设备, 其特征在于, 所述流表更新 消息中还包括用于指示所述第二装置将所述工作路径流表项更新为新的 工作路径流表项; 所述新的工作路径流表项的匹配域包括所述第一标签, 所述新的工作路径流表项用于指示所述第二装置将丢弃第八报文, 所述第 八报文是所述第一装置将所述第一标签推入第七报文生成的, 并且所述第 八报文是所述第一装置通过所述工作路径向所述第二装置发送的。
52、 一种发送信息的系统, 其特征在于, 包括:
如权利要求 18〜21任一项所述的控制器, 如权利要求 22〜27任一项所 述的第二装置以及如权利要求 28所述的第一装置。
53、 一种发送信息的系统, 其特征在于, 包括:
如权利要求 29〜3 1任一项所述的控制器, 如权利要求 32〜34任一项所 述的第二装置以及如权利要求 28所述的第一装置。
54、 一种发送信息的系统, 其特征在于, 包括:
如权利要求 35〜38任一项所述的控制器, 如权利要求 39〜44任 述的第二设备以及如权利要求 45所述的第一设备。
55、 一种发送信息的系统, 其特征在于, 包括:
如权利要求 46〜48任一项所述的控制器, 如权利要求 49〜50任 述的第二设备以及如权利要求 45所述的第一设备。
PCT/CN2013/090948 2013-12-30 2013-12-30 发送信息的方法、装置及系统 WO2015100551A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2013/090948 WO2015100551A1 (zh) 2013-12-30 2013-12-30 发送信息的方法、装置及系统
EP13900783.5A EP3079327B1 (en) 2013-12-30 2013-12-30 Information transmission method, device and system
CN201380002960.5A CN105264857B (zh) 2013-12-30 2013-12-30 发送信息的方法、装置及系统
US15/199,178 US10171346B2 (en) 2013-12-30 2016-06-30 Method, apparatus and system for transmitting information

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/090948 WO2015100551A1 (zh) 2013-12-30 2013-12-30 发送信息的方法、装置及系统

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US15/199,178 Continuation US10171346B2 (en) 2013-12-30 2016-06-30 Method, apparatus and system for transmitting information

Publications (1)

Publication Number Publication Date
WO2015100551A1 true WO2015100551A1 (zh) 2015-07-09

Family

ID=53492910

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/090948 WO2015100551A1 (zh) 2013-12-30 2013-12-30 发送信息的方法、装置及系统

Country Status (4)

Country Link
US (1) US10171346B2 (zh)
EP (1) EP3079327B1 (zh)
CN (1) CN105264857B (zh)
WO (1) WO2015100551A1 (zh)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI586124B (zh) * 2013-04-26 2017-06-01 Nec Corp Communication node, communication system, packet processing method and program
CN106254242A (zh) * 2016-08-04 2016-12-21 胡汉强 一种数据传输方法、集中控制器、转发面设备和本端通信装置
CN114301829B (zh) * 2020-09-23 2023-07-28 华为技术有限公司 一种选择报文发送路径的方法、设备及介质

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101714947A (zh) * 2009-10-30 2010-05-26 清华大学 一种可扩展的全流优先级调度方法
US20110080830A1 (en) * 2009-10-06 2011-04-07 Electronics And Telecommunications Research Institute Device and method for providing forwarding information and qos information in flow based network environment
CN102075421A (zh) * 2010-12-30 2011-05-25 杭州华三通信技术有限公司 服务质量处理方法及装置
WO2012098774A1 (ja) * 2011-01-20 2012-07-26 日本電気株式会社 ネットワークシステム、コントローラ、及びQoS制御方法
CN102882746A (zh) * 2012-10-11 2013-01-16 盛科网络(苏州)有限公司 Openflow交换机系统中流表添加速率的测试方法及系统
CN103281246A (zh) * 2013-05-20 2013-09-04 华为技术有限公司 报文处理方法及网络设备
CN103354522A (zh) * 2013-06-28 2013-10-16 华为技术有限公司 一种多级流表查找方法和装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5166373B2 (ja) * 2009-08-14 2013-03-21 株式会社日立製作所 トランスポート制御サーバ、トランスポート制御システム及び予備パス設定方法
JP5621781B2 (ja) * 2009-10-06 2014-11-12 日本電気株式会社 ネットワークシステムとコントローラと方法とプログラム
US8995277B2 (en) * 2012-10-30 2015-03-31 Telefonaktiebolaget L M Ericsson (Publ) Method for dynamic load balancing of network flows on LAG interfaces
JP5941404B2 (ja) * 2012-12-28 2016-06-29 株式会社日立製作所 通信システム、経路切替方法及び通信装置
JP2015119227A (ja) * 2013-12-16 2015-06-25 富士通株式会社 通信システム、通信装置、及びパス切り替え方法

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110080830A1 (en) * 2009-10-06 2011-04-07 Electronics And Telecommunications Research Institute Device and method for providing forwarding information and qos information in flow based network environment
CN101714947A (zh) * 2009-10-30 2010-05-26 清华大学 一种可扩展的全流优先级调度方法
CN102075421A (zh) * 2010-12-30 2011-05-25 杭州华三通信技术有限公司 服务质量处理方法及装置
WO2012098774A1 (ja) * 2011-01-20 2012-07-26 日本電気株式会社 ネットワークシステム、コントローラ、及びQoS制御方法
CN102882746A (zh) * 2012-10-11 2013-01-16 盛科网络(苏州)有限公司 Openflow交换机系统中流表添加速率的测试方法及系统
CN103281246A (zh) * 2013-05-20 2013-09-04 华为技术有限公司 报文处理方法及网络设备
CN103354522A (zh) * 2013-06-28 2013-10-16 华为技术有限公司 一种多级流表查找方法和装置

Non-Patent Citations (1)

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

Also Published As

Publication number Publication date
CN105264857A (zh) 2016-01-20
CN105264857B (zh) 2018-10-12
US10171346B2 (en) 2019-01-01
EP3079327A4 (en) 2016-12-07
EP3079327A1 (en) 2016-10-12
EP3079327B1 (en) 2018-06-06
US20170005912A1 (en) 2017-01-05

Similar Documents

Publication Publication Date Title
EP3525405B1 (en) Packet sending method and network device
EP3588876B1 (en) Method, device and system for forwarding data messages
WO2019223447A1 (zh) 一种生成路由的方法和设备
EP2109962B1 (en) Triple-tier anycast addressing
US9614759B2 (en) Systems and methods for providing anycast MAC addressing in an information handling system
US9397931B1 (en) Fast convergence in singly-homed ethernet virtual private networks
US10791053B2 (en) Service function chain SFC-based communication method, and apparatus
KR101881434B1 (ko) 포워딩 테이블 동기화 방법, 네트워크 장치, 및 시스템
CN110798403B (zh) 通信方法、通信设备和通信系统
CN106559246B (zh) 集群的实现方法和服务器
WO2016086064A1 (en) Source ip address transparency systems and methods
CN108390821B (zh) 一种openflow交换机实现双活的方法及系统
WO2019080592A1 (zh) 一种发送报文的方法和设备
CN110661701B (zh) 一种避免环路的通信方法、设备和系统
WO2021082812A1 (zh) 报文的发送方法和第一网络设备
CN113472646B (zh) 一种数据传输方法、节点、网络管理器及系统
WO2018068588A1 (zh) 提供组播业务的方法和软件定义网络控制器
EP2634978B1 (en) Message forwarding method and network device
JP6299745B2 (ja) 通信システム、制御装置、通信方法及びプログラム
US10171346B2 (en) Method, apparatus and system for transmitting information
WO2020011216A1 (zh) 传输报文的方法、装置、设备及存储介质
WO2022021939A1 (zh) 一种表项信息处理方法及装置
EP3151486A1 (en) Fast convergence of evpn networks for multi homing topologies
WO2016124055A1 (zh) 一种环网中mpls报文转发的方法及网络节点
WO2016145577A1 (zh) 接入网系统、处理数据包的方法及装置

Legal Events

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

Ref document number: 201380002960.5

Country of ref document: CN

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

Ref document number: 13900783

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

REEP Request for entry into the european phase

Ref document number: 2013900783

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2013900783

Country of ref document: EP