WO2020088379A1 - 一种业务流处理方法及装置 - Google Patents

一种业务流处理方法及装置 Download PDF

Info

Publication number
WO2020088379A1
WO2020088379A1 PCT/CN2019/113506 CN2019113506W WO2020088379A1 WO 2020088379 A1 WO2020088379 A1 WO 2020088379A1 CN 2019113506 W CN2019113506 W CN 2019113506W WO 2020088379 A1 WO2020088379 A1 WO 2020088379A1
Authority
WO
WIPO (PCT)
Prior art keywords
relay node
segment
node
address
module
Prior art date
Application number
PCT/CN2019/113506
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 JP2021522526A priority Critical patent/JP7239258B2/ja
Priority to EP19877762.5A priority patent/EP3866413A4/en
Priority to KR1020217015150A priority patent/KR102547681B1/ko
Publication of WO2020088379A1 publication Critical patent/WO2020088379A1/zh
Priority to US17/243,673 priority patent/US11943148B2/en

Links

Images

Classifications

    • 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/32Flow control; Congestion control by discarding or delaying data units, e.g. packets or frames
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/24Multipath
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/28Routing or path finding of packets in data switching networks using route fault recovery
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/42Centralised 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/50Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
    • 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]
    • H04L45/507Label distribution
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/74Address processing for routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/17Interaction among intermediate nodes, e.g. hop by hop
    • 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/34Flow control; Congestion control ensuring sequence integrity, e.g. using sequence numbers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/0803Configuration setting
    • H04L41/0813Configuration setting characterised by the conditions triggering a change of settings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/08Configuration management of networks or network elements
    • H04L41/085Retrieval of network configuration; Tracking network configuration history

Definitions

  • the embodiments of the present application relate to the field of communication technologies, and in particular, to a service flow processing method and device.
  • a high-reliability network architecture for transmitting service flows may generally include an edge node (edge node) and a relay node (relay node).
  • the edge node is connected to the source node and / or the destination node of the service flow, and receives the service flow from the source node of the service flow and / or sends the service flow to the destination node of the service flow;
  • the node passed by during the transmission to the destination node.
  • the path from the source node to the destination node is composed of one or more path segments, and the relay node is used to connect adjacent path segments together to ensure the reachability of the service flow.
  • the service flow is transmitted in multiple paths at the same time. As long as there is no path failure, the destination node can successfully receive the service flow, thereby ensuring the reliability of the service flow transmission.
  • the key to business flow transmission is how to configure each node to achieve transmission and protection of business flow.
  • Embodiments of the present application provide a business flow processing method and device, which are used to implement transmission and protection of business flows.
  • an embodiment of the present application provides a business flow processing method.
  • the method can be applied to a controller.
  • the controller can be independent of the following nodes, or can be deployed on one of the nodes, such as the first edge node. Specifically, it includes the following steps: generating and configuring first configuration information for the first edge node, generating and configuring second configuration information for the first relay node, and generating and configuring third configuration information for the second edge node.
  • the first edge node may be a source node
  • the second edge node may be a destination node
  • the first relay node is on a link between the first edge node and the second edge node.
  • the first configuration information is used to copy the data packet included in the service flow received by the first edge node, and output the copied first data packet to the first relay node and output the copy location to the second relay node The second packet obtained.
  • the second configuration information is used by the first relay node to copy the first data packet, and outputs the third data packet obtained by the copy to the second relay node, and the fourth data packet obtained from the copy and the second data packet from the second relay Get the data packet from the fifth data packet of the node and output it.
  • the third configuration information is used to obtain the data packet from the data packet from the first relay node and the data packet from the second relay node.
  • the second relay node is located outside the link from the first edge node to the second edge node via the first relay node.
  • the embodiment of the present application generates and configures the first configuration information for the first edge node, generates and configures the second configuration information for the first relay node, and generates and configures the third configuration information for the second edge node to realize the service flow Protection
  • the first edge node may receive a service flow from a first customer edge (CE) node through an attachment circuit (AC), and the data packet included in the service flow may be one or more.
  • the first edge node may assign a sequence number to each data packet, and the continuity of the sequence number of the data packet reflects the continuity of the content of the data packet. For example, data packet 1 represents the first data packet (first data packet) in the business flow; data packet 2 represents the second data packet in the business flow; data packet 3 represents the third data packet in the business flow, and so on.
  • the function module that performs the above-mentioned copying step may be a copying module
  • the function module that performs the above-mentioned data packet obtaining step may be a eliminating module
  • the replication module of the first edge node When the replication module of the first edge node replicates the data packets in the service flow, it can replicate one by one according to the sequence number from small to large or from large to small.
  • the copy module of the first relay node or other relay nodes below may copy each data packet one by one according to the receiving order of the data packets. After the data packet is copied, not only the content is the same, but the serial number is also unchanged.
  • acquiring a data packet may include two cases: one case is that the cancellation module obtains two or more of the same sequence number Data packets, then one of them can be selected for output; the other case is that because the data packet is lost during transmission, the elimination module only receives one data packet of a certain sequence number, then the data can be The package is sent out.
  • the elimination module receives two or more packets with the same sequence number in sequence
  • the first packet received can be output; if the elimination module receives two or more packets at the same time Data packets with the same sequence number can be output from any one of them.
  • a flag bit can be set for each data packet in the elimination module, and a flag bit identifies whether a data packet of a serial number is output. For example, if the flag bit of data packet 1 is 1, it means that the data packet with sequence number 1 has been output; if the flag bit of data packet 1 is 0, it means that the data packet with sequence number 1 has not been output. In this way, if the elimination module receives a data packet with a certain serial number, you can query the corresponding flag bit of the serial number packet.
  • the corresponding flag bit is 0, it means that the elimination module has not sent a data packet of this serial number before, so you can send The data packet; if the corresponding flag bit is 1, it means that the elimination module has sent the data packet of the serial number before, so the data packet can be deleted. If the elimination module receives multiple data packets with the same sequence number at the same time, and the corresponding flag bit of the sequence number data packet is 0, one of the multiple data packets with the same sequence number can be selected for output. If the elimination module receives multiple data packets with the same sequence number at the same time, and the corresponding flag bit of the sequence number data packet is 1, it is possible to delete multiple data packets with the same sequence number received at the same time.
  • the method further includes: generating and configuring fourth configuration information for the second relay node, where the fourth configuration information is used to copy the second data packet from the first edge node and output the obtained copy to the first relay node
  • the fifth data packet and the sixth data packet obtained from the replication and the third data packet from the first relay node are obtained and output first. That is to say, as one possible implementation manner, a replication module and a cancellation module may be configured for the second relay node to achieve protection and transmission of service flows.
  • the configuration information of each node may include the entrance information and exit information of the corresponding module.
  • the entry information may be, for example, entry segment information and / or entry port information.
  • the entry segment information includes at least an entry segment identifier, and optionally, may also include an entry segment Internet Protocol (IP) address and / or an entry segment label.
  • IP Internet Protocol
  • the IP address of the entry segment includes the IP address of the start node and the IP address of the end node of the entry segment.
  • the entrance port information may include an entrance port identifier.
  • the exit information may be, for example, exit segment information and / or exit port information.
  • the export segment information includes at least an export segment identifier, and optionally, may also include an export segment IP address and / or an export segment label.
  • the IP address of the exit segment includes the IP address of the start node and the IP address of the end node of the exit segment.
  • the exit port information may include an exit port identification.
  • the segment refers to the link between the nodes and the connection within the node.
  • the segment identifier is the identifier of the segment.
  • the segment has a direction. For example, the segment from the first edge node to the first relay node and the segment from the first relay node to the first edge node are not the same segment. , The segment identifiers corresponding to the two are also different.
  • the segment identifier may be a 32-bit unsigned integer.
  • the segment label refers to the label corresponding to the segment identifier, which can be an integer in the range [16,1048575].
  • the segment IP address includes the IP address of the start node and the IP address of the end node of the segment.
  • the start node IP address and the end node IP address may be 32-bit IPv4 addresses or 128-bit IPv6 addresses.
  • the first configuration information includes: a first exit segment identifier of the replication module of the first edge node and a second exit segment identifier of the replication module of the first edge node; a first of the replication module of the first edge node The exit segment identifier is used to identify the segment from the first edge node to the first relay node; the second exit segment identifier of the replication module of the first edge node is used to identify the route from the first edge node to the second relay node Between paragraphs.
  • the second configuration information includes: an entry segment identifier of the replication module of the first relay node, a first exit segment identifier of the replication module of the first relay node, and a second outlet of the replication module of the first relay node Segment identifier; the entry segment identifier of the replication module of the first relay node is used to identify the segment from the first edge node to the first relay node; the first exit segment identifier of the replication module of the first relay node is used to Identify the segment from the replication module of the first relay node to the elimination module of the first relay node; the second exit segment identifier of the replication module of the first relay node is used to identify from the first relay node to the second The segment between relay nodes.
  • the second configuration information further includes: a first entry segment identifier of the elimination module of the first relay node, a second entry segment identifier of the elimination module of the first relay node, and an exit segment identifier of the elimination module of the first relay node;
  • the first entry segment identifier of the cancellation module of the first relay node is used to identify the segment from the replication module of the first relay node to the cancellation module of the first relay node;
  • the two-entry segment identifier is used to identify the segment from the second relay node to the first relay node;
  • the exit segment identifier of the elimination module of the first relay node is used to identify the first relay node to the second edge node
  • the third configuration information includes: a first entry segment identifier of the elimination module of the second edge node and a second entry segment identifier of the elimination module of the second edge node; a first entry segment of the elimination module of the second edge node The identifier is used to identify the segment from the first relay node to the second edge node; the second entry segment identifier of the elimination module of the second edge node is used to identify the segment from the second relay node to the second edge node segment.
  • the first configuration information further includes: the first exit segment IP address of the replication module of the first edge node and the second exit segment IP address of the replication module of the first edge node;
  • the first An egress segment IP address includes the IP address of the first edge node and the IP address of the first relay node, corresponding to the segment from the first edge node to the first relay node;
  • the first The second exit segment IP address includes the IP address of the first edge node and the IP address of the second relay node, and the second exit segment IP address of the replication module of the first edge node corresponds to the first edge node to the second relay node
  • the second configuration information further includes: the IP address of the entry segment of the replication module of the first relay node, the IP address of the first exit segment of the replication module of the first relay node, and the IP address of the replication module of the first relay node
  • the segment between the nodes; the IP address of the first exit segment of the replication module of the first relay node includes the IP address of the first relay node, and the IP address of the first exit segment of the replication module of the first relay node corresponds to The segment from the replication module of a relay node to the elimination module of the first relay node; the IP address of the second exit segment of the replication module of the first relay node includes the IP address of the first relay node and the second relay The IP address of the node, the IP address of the second exit segment of the replication module of the first relay no
  • the second configuration information further includes: the first entry segment IP address of the elimination module of the first relay node, the second entry segment IP address of the elimination module of the first relay node, and the exit segment of the elimination module of the first relay node IP address; the first entry segment IP address of the elimination module of the first relay node includes the IP address of the first relay node, and the first entry segment IP address of the elimination module of the first relay node corresponds to the first relay node
  • the IP address of the second entry segment of the elimination module of the first relay node includes the IP address of the second relay node and the IP of the first relay node Address, the IP address of the second entry segment of the elimination module of the first relay node corresponds to the segment from the second relay node to the first relay node;
  • the IP address of the exit segment of the elimination module of the first relay node includes The IP address of the first relay node and the IP address of the second edge node, and the IP address of
  • the third configuration information further includes: the first entry segment IP address of the elimination module of the second edge node and the second entry segment IP address of the elimination module of the second edge node; the first An entry segment IP address includes the IP address of the first relay node and the IP address of the second edge node.
  • the first entry segment IP address of the elimination module of the second edge node corresponds to the first relay node to the second edge node Between the segment; the IP address of the second entry segment of the elimination module of the second edge node includes the IP address of the second relay node and the IP address of the second edge node, and the IP of the second entry segment of the elimination module of the second edge node The address corresponds to the segment from the second relay node to the second edge node.
  • the first configuration information further includes: a first exit segment label of the replication module of the first edge node and a second exit segment label of the replication module of the first edge node; the first exit segment label of the first edge node corresponds to The segment from the first edge node to the first relay node; the second exit segment label of the first edge node corresponds to the segment from the first edge node to the second relay node.
  • the second configuration information further includes: an entry segment label of the replication module of the first relay node, a first exit segment label of the replication module of the first relay node, and a second of the replication module of the first relay node Exit segment label;
  • the entry segment label of the replication module of the first relay node corresponds to the segment from the first edge node to the first relay node;
  • the first exit segment label of the replication module of the first relay node corresponds to The segment from the replication module of the first relay node to the elimination module of the first relay node;
  • the second exit segment label of the replication module of the first relay node corresponds to the first relay node to the second relay The segment between nodes.
  • the second configuration information further includes: a first entry segment label of the elimination module of the first relay node, a second entry segment label of the elimination module of the first relay node, and an exit segment label of the elimination module of the first relay node;
  • the first entry segment label of the elimination module of the first relay node corresponds to the segment from the replication module of the first relay node to the elimination module of the first relay node; the second of the elimination module of the first relay node
  • the entry segment label corresponds to the segment from the second relay node to the first relay node;
  • the exit segment label of the elimination module of the first relay node corresponds to the segment from the first relay node to the second edge node segment.
  • the third configuration information further includes: a first entry segment label of the elimination module of the second edge node and a second entry segment label of the elimination module of the second edge node; a first entry of the elimination module of the second edge node
  • the segment label corresponds to the segment from the first relay node to the second edge node
  • the second entry segment label of the elimination module of the second edge node corresponds to the segment from the second relay node to the second edge node .
  • the fourth configuration message further includes: an entry segment identifier of the replication module of the second relay node, a first exit segment identifier of the replication module of the second relay node, and a second identifier of the replication module of the second relay node Exit segment ID; the entry segment ID of the replication module of the second relay node is used to identify the segment from the first edge node to the second relay node; the first exit segment ID of the replication module of the second relay node is Is used to identify the segment from the replication module of the second relay node to the elimination module of the second relay node; the second exit segment identifier of the replication module of the second relay node is used to identify from the second relay node to the first A segment between relay nodes.
  • the fourth configuration information further includes: a first entry segment identifier of the elimination module of the second relay node, a second entry segment identifier of the elimination module of the second relay node, and an exit segment identifier of the elimination module of the second relay node;
  • the first entry segment identifier of the elimination module of the second relay node is used to identify the segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the two-entry segment identifier is used to identify the segment from the first relay node to the second relay node;
  • the exit segment identifier of the elimination module of the second relay node is used to identify the second relay node to the second edge node
  • the fourth configuration information further includes: the IP address of the entry segment of the replication module of the second relay node, the IP address of the first exit segment of the replication module of the second relay node, and the IP address of the replication module of the second relay node
  • the second exit segment IP address corresponds to the segment from the first edge node to the second relay node
  • the IP address of the first exit segment of the replication module of the second relay node includes the IP address of the second relay node
  • the The IP address of the first exit segment of the replication module corresponds to the segment from the replication module of the second relay node to the elimination module of the second relay node
  • the IP address of the second exit segment of the replication module of the second relay node includes The IP address of the second relay node and the IP address of the first relay node, and the IP address of the second exit segment
  • the fourth configuration information also includes: the first entry segment IP address of the elimination module of the second relay node, the second entry segment IP address of the elimination module of the second relay node, and the exit segment of the elimination module of the second relay node IP address; the first entry segment IP address of the elimination module of the second relay node includes the IP address of the second relay node, and the first entry segment IP address of the elimination module of the second relay node corresponds to the second relay node
  • the IP address of the second entry segment of the module corresponds to the segment from the first relay node to the second relay node; the IP address of the exit segment of the elimination module of the second relay node includes the IP address of the second relay node and The IP address of the second edge node, and the IP address of the exit segment of the elimination module of the second
  • the fourth configuration information further includes: an entry segment label of the replication module of the second relay node, a first exit segment label of the replication module of the second relay node, and a second of the replication module of the second relay node Exit segment label; the entry segment label of the replication module of the second relay node corresponds to the segment from the first edge node to the second relay node; the first exit segment label of the replication module of the second relay node corresponds to The segment from the replication module of the second relay node to the elimination module of the second relay node; the second exit segment label of the replication module of the second relay node corresponds to the second relay node to the first relay The segment between nodes.
  • the fourth configuration information further includes: a first entry segment label of the elimination module of the second relay node, a second entry segment label of the elimination module of the second relay node, and an exit segment label of the elimination module of the second relay node;
  • the first entry segment label of the elimination module of the second relay node corresponds to the segment from the replication module of the second relay node to the elimination module of the second relay node; the second of the elimination module of the second relay node
  • the entry segment label corresponds to the segment from the first relay node to the second relay node; the exit segment label of the elimination module of the second relay node corresponds to the segment from the second relay node to the second edge node segment.
  • the method further includes: generating and configuring fifth configuration information for the second relay node, where the fifth configuration information is used for the second data packet from the first edge node and the third from the first relay node
  • the data packet is obtained from the data packet and copied, and the fifth data packet obtained by the copy is output to the first relay node and the sixth data packet obtained by the copy is output to the second edge node.
  • the second relay node may be configured with the elimination module and the replication module.
  • the number of relay nodes may be two or more. If the number of relay nodes is at least 4, optionally, the second configuration information is also used to copy the obtained data packet, output the seventh data packet obtained by the copy to the third relay node, and send The fourth relay node outputs the eighth data packet obtained by replication.
  • the method further includes: generating and configuring sixth configuration information for the third relay node, where the sixth configuration information is used to obtain the data packet from the seventh data packet from the first relay node and the data packet from the second relay node and Copy, output the ninth data packet obtained by the copy to the fourth relay node, and obtain the data packet from the tenth data packet obtained by the copy and the data packet from the fourth relay node and send it to the second edge node.
  • the third relay node is a node on the link between the first relay node and the second edge node, and the fourth relay node is located on the link from the first edge node to the second edge node via the third relay node Outside.
  • the number of relay nodes is at least four, as one possible implementation manner, two replication modules and one elimination module may be configured for the first relay node, and may be the third The relay node is configured with two elimination modules and one replication module.
  • the method further includes: generating and configuring fourth configuration information for the second relay node, where the fourth configuration information is used to copy the second data packet from the first edge node and output the obtained copy to the first relay node
  • the obtained eleventh data packet sends the copied twelfth data packet to the fourth relay node.
  • two replication modules and one elimination module may be configured for the second relay node.
  • the method further includes: generating and configuring seventh configuration information for the fourth relay node, where the seventh configuration information is used from the eighth data packet from the first relay node and the tenth from the second relay node Obtain and copy the first received data packet from the second data packet, and send the thirteenth data packet obtained by the replication to the third relay node, as well as the fourteenth data packet obtained from the replication and the data packet from the third relay node
  • the first received data packet is obtained and sent to the second edge node.
  • two cancellation modules and one replication module may be configured for the fourth relay node.
  • the second configuration information is also used to send an eleventh data packet obtained by copying the first data packet to the fourth relay node, and output the obtained first received data packet to the third relay node
  • the method further includes: generating and configuring sixth configuration information for the third relay node, the sixth configuration information is used for copying the data packet from the first relay node, and sending the copied twelfth to the fourth relay node
  • the data packet, and the thirteenth data packet obtained from the data packet from the second relay node, the data packet from the fourth relay node, and the copy is obtained and sent to the second edge node.
  • the third relay node is a node on the link between the first relay node and the second edge node, and the fourth relay node is located on the link from the first edge node to the second edge node via the third relay node Outside.
  • a replication module and a cancellation module may be configured for the first relay node, and a replication module and a cancellation module may be configured for the third relay node.
  • an embodiment of the present application further provides a service flow processing apparatus, which can be applied to a controller, and specifically includes: a first configuration module, configured to generate and configure first configuration information for a first edge node, and A configuration information is used to copy the data packet included in the received service flow, and output the first data packet obtained by the copy to the first relay node and output the second data packet obtained by the copy to the second relay node; A second configuration module, configured to generate and configure second configuration information for the first relay node, the second configuration information is used to copy the first data packet, and output the copied third data packet to the second relay node, And obtaining the first received data packet from the fourth data packet obtained by the replication and the fifth data packet from the second relay node and outputting it; the third configuration module is used to generate and configure the third data packet for the second edge node Configuration information, the third configuration information is used to obtain the first received data packet from the data packet from the first relay node and the data packet from the second relay node, the second relay node is located in the first
  • the device further includes: a fourth configuration module, configured to generate and configure fourth configuration information for the second relay node, and the fourth configuration information is used to copy the second data packet from the first edge node to the
  • the first relay node outputs the fifth data packet obtained by the replication, and obtains and outputs the first received data packet from the sixth data packet obtained by the replication and the third data packet from the first relay node.
  • the first configuration information includes: a first exit segment identifier of the replication module of the first edge node and a second exit segment identifier of the replication module of the first edge node; a first exit segment of the replication module of the first edge node The identifier is used to identify the segment from the first edge node to the first relay node; the second exit segment identifier of the replication module of the first edge node is used to identify the segment from the first edge node to the second relay node segment.
  • the second configuration information includes: an entry segment identifier of the replication module of the first relay node, a first exit segment identifier of the replication module of the first relay node, and a second outlet of the replication module of the first relay node Segment identifier; the entry segment identifier of the replication module of the first relay node is used to identify the segment from the first edge node to the first relay node; the first exit segment identifier of the replication module of the first relay node is used to Identify the segment from the replication module of the first relay node to the elimination module of the first relay node; the second exit segment identifier of the replication module of the first relay node is used to identify from the first relay node to the second Segments between relay nodes;
  • the second configuration information further includes: a first entry segment identifier of the elimination module of the first relay node, a second entry segment identifier of the elimination module of the first relay node, and an exit segment identifier of the elimination module of the first relay node;
  • the first entry segment identifier of the cancellation module of the first relay node is used to identify the segment from the replication module of the first relay node to the cancellation module of the first relay node;
  • the two-entry segment identifier is used to identify the segment from the second relay node to the first relay node;
  • the exit segment identifier of the elimination module of the first relay node is used to identify the first relay node to the second edge node
  • the third configuration information includes: a first entry segment identifier of the elimination module of the second edge node and a second entry segment identifier of the elimination module of the second edge node; a first entry segment of the elimination module of the second edge node The identifier is used to identify the segment from the first relay node to the second edge node; the second entry segment identifier of the elimination module of the second edge node is used to identify the segment from the second relay node to the second edge node segment.
  • the first configuration information further includes: the first exit segment IP address of the replication module of the first edge node and the second exit segment IP address of the replication module of the first edge node; the first An egress segment IP address includes the IP address of the first edge node and the IP address of the first relay node, corresponding to the segment from the first edge node to the first relay node; the first The second egress segment IP address includes the IP address of the first edge node and the IP address of the second relay node, and corresponds to the segment from the first edge node to the second relay node.
  • the second configuration information further includes: the IP address of the entry segment of the replication module of the first relay node, the IP address of the first exit segment of the replication module of the first relay node, and the IP address of the replication module of the first relay node
  • the second exit segment IP address corresponds to the segment from the first edge node to the first relay node
  • the IP address of the first exit segment of the replication module of the first relay node includes the IP address of the first relay node
  • the IP address of the first exit segment of the replication module of the first relay node includes the IP address of the first relay node
  • the The IP address of the first exit segment of the replication module corresponds to the segment from the replication module of the first relay node to the elimination module of the first relay node
  • the IP address of the second exit segment of the replication module of the first relay node includes The IP address of the first relay node and the IP address of the second relay node, the IP address of the second exit segment of
  • the second configuration information further includes: the first entry segment IP address of the elimination module of the first relay node, the second entry segment IP address of the elimination module of the first relay node, and the exit segment of the elimination module of the first relay node IP address; the first entry segment IP address of the elimination module of the first relay node includes the IP address of the first relay node, and the first entry segment IP address of the elimination module of the first relay node corresponds to the first relay node
  • the IP address of the second entry segment of the elimination module of the first relay node includes the IP address of the second relay node and the IP of the first relay node Address, the IP address of the second entry segment of the elimination module of the first relay node corresponds to the segment from the second relay node to the first relay node;
  • the IP address of the exit segment of the elimination module of the first relay node includes The IP address of the first relay node and the IP address of the second edge node, and the IP address of
  • the third configuration information further includes: the first entry segment IP address of the elimination module of the second edge node and the second entry segment IP address of the elimination module of the second edge node; the first An entry segment IP address includes the IP address of the first relay node and the IP address of the second edge node.
  • the first entry segment IP address of the elimination module of the second edge node corresponds to the first relay node to the second edge node Between the segment; the IP address of the second entry segment of the elimination module of the second edge node includes the IP address of the second relay node and the IP address of the second edge node, and the IP of the second entry segment of the elimination module of the second edge node The address corresponds to the segment from the second relay node to the second edge node.
  • the first configuration information further includes: a first exit segment label of the replication module of the first edge node and a second exit segment label of the replication module of the first edge node; the first exit segment label of the first edge node corresponds to The segment from the first edge node to the first relay node; the second exit segment label of the first edge node corresponds to the segment from the first edge node to the second relay node.
  • the second configuration information further includes: an entry segment label of the replication module of the first relay node, a first exit segment label of the replication module of the first relay node, and a second of the replication module of the first relay node Exit segment label;
  • the entry segment label of the replication module of the first relay node corresponds to the segment from the first edge node to the first relay node;
  • the first exit segment label of the replication module of the first relay node corresponds to The segment from the replication module of the first relay node to the elimination module of the first relay node;
  • the second exit segment label of the replication module of the first relay node corresponds to the first relay node to the second relay Segment between nodes;
  • the second configuration information further includes: a first entry segment label of the elimination module of the first relay node, a second entry segment label of the elimination module of the first relay node, and an exit segment label of the elimination module of the first relay node;
  • the first entry segment label of the elimination module of the first relay node corresponds to the segment from the replication module of the first relay node to the elimination module of the first relay node; the second of the elimination module of the first relay node
  • the entry segment label corresponds to the segment from the second relay node to the first relay node;
  • the exit segment label of the elimination module of the first relay node corresponds to the segment from the first relay node to the second edge node segment.
  • the third configuration information further includes: a first entry segment label of the elimination module of the second edge node and a second entry segment label of the elimination module of the second edge node; a first entry of the elimination module of the second edge node
  • the segment label corresponds to the segment from the first relay node to the second edge node
  • the second entry segment label of the elimination module of the second edge node corresponds to the segment from the second relay node to the second edge node .
  • the fourth configuration message further includes: an entry segment identifier of the replication module of the second relay node, a first exit segment identifier of the replication module of the second relay node, and a second identifier of the replication module of the second relay node Exit segment ID;
  • the entry segment ID of the replication module of the second relay node is used to identify the segment from the first edge node to the second relay node;
  • the first exit segment ID of the replication module of the second relay node is Is used to identify the segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the second exit segment identifier of the replication module of the second relay node is used to identify from the second relay node to the first A segment between relay nodes;
  • the fourth configuration information further includes: a first entry segment identifier of the elimination module of the second relay node, a second entry segment identifier of the elimination module of the second relay node, and an exit segment identifier of the elimination module of the second relay node;
  • the first entry segment identifier of the elimination module of the second relay node is used to identify the segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the two-entry segment identifier is used to identify the segment from the first relay node to the second relay node;
  • the exit segment identifier of the elimination module of the second relay node is used to identify the second relay node to the second edge node
  • the fourth configuration information further includes: the IP address of the entry segment of the replication module of the second relay node, the IP address of the first exit segment of the replication module of the second relay node, and the IP address of the replication module of the second relay node
  • the second exit segment IP address corresponds to the segment from the first edge node to the second relay node
  • the IP address of the first exit segment of the replication module of the second relay node includes the IP address of the second relay node
  • the The IP address of the first exit segment of the replication module corresponds to the segment from the replication module of the second relay node to the elimination module of the second relay node
  • the IP address of the second exit segment of the replication module of the second relay node includes The IP address of the second relay node and the IP address of the first relay node, and the IP address of the second exit segment
  • the fourth configuration information also includes: the first entry segment IP address of the elimination module of the second relay node, the second entry segment IP address of the elimination module of the second relay node, and the exit segment of the elimination module of the second relay node IP address; the first entry segment IP address of the elimination module of the second relay node includes the IP address of the second relay node, and the first entry segment IP address of the elimination module of the second relay node corresponds to the second relay node
  • the IP address of the second entry segment of the elimination module of the second relay node includes the IP address of the second relay node, corresponding to the first relay
  • the segment between the node and the second relay node; the IP address of the exit segment of the elimination module of the second relay node includes the IP address of the second relay node and the IP address of the second edge node, and the elimination of the second relay node
  • the IP address of the exit segment of the module corresponds to the segment from the second relay node
  • the fourth configuration information further includes: an entry segment label of the replication module of the second relay node, a first exit segment label of the replication module of the second relay node, and a second of the replication module of the second relay node Exit segment label;
  • the entry segment label of the replication module of the second relay node corresponds to the segment from the first edge node to the second relay node;
  • the first exit segment label of the replication module of the second relay node corresponds to The segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the second exit segment label of the replication module of the second relay node corresponds to the second relay node to the first relay Segment between nodes;
  • the fourth configuration information further includes: a first entry segment label of the elimination module of the second relay node, a second entry segment label of the elimination module of the second relay node, and an exit segment label of the elimination module of the second relay node;
  • the first entry segment label of the elimination module of the second relay node corresponds to the segment from the replication module of the second relay node to the elimination module of the second relay node; the second of the elimination module of the second relay node
  • the entry segment label corresponds to the segment from the first relay node to the second relay node; the exit segment label of the elimination module of the second relay node corresponds to the segment from the second relay node to the second edge node segment.
  • the apparatus further includes: generating and configuring fifth configuration information for the second relay node, where the fifth configuration information is used for the second data packet from the first edge node and the third from the first relay node A data packet received first is obtained from the data packet and copied, and the fifth data packet obtained by the copy is output to the first relay node and the sixth data packet obtained by the copy is output to the second edge node.
  • the second configuration information is also used to copy the acquired first received data packet, output the copied seventh data packet to the third relay node, and output the obtained copy to the fourth relay node The eighth data packet;
  • the device further includes: a sixth configuration module, configured to generate and configure sixth configuration information for the third relay node, and the sixth configuration information is used for the seventh data packet from the first relay node and the second data packet from the second relay node Obtain and copy the first received data packet from the data packet, and output the ninth data packet obtained by the replication to the fourth relay node, and the tenth data packet obtained from the replication and the data packet from the fourth relay node Obtain the first received data packet and send it to the second edge node;
  • a sixth configuration module configured to generate and configure sixth configuration information for the third relay node, and the sixth configuration information is used for the seventh data packet from the first relay node and the second data packet from the second relay node Obtain and copy the first received data packet from the data packet, and output the ninth data packet obtained by the replication to the fourth relay node, and the tenth data packet obtained from the replication and the data packet from the fourth relay node Obtain the first received data packet and send it to the second edge node;
  • the third relay node is a node on the link between the first relay node and the second edge node, and the fourth relay node is located on the link from the first edge node to the second edge node via the third relay node Outside.
  • the device further includes: a fourth configuration module that generates and configures fourth configuration information for the second relay node, and the fourth configuration information is used to copy the second data packet from the first edge node to the first relay
  • the node outputs the fifth data packet obtained by the replication, and obtains the first received data packet from the sixth data packet obtained by the replication and the third data packet from the first relay node and copies the data packet to the third
  • the relay node sends the eleventh data packet obtained by replication, and sends the twelfth data packet obtained by replication to the fourth relay node.
  • the apparatus further includes: a seventh configuration module, configured to generate and configure seventh configuration information for the fourth relay node, and the seventh configuration information is used for the eighth data packet from the first relay node and the Obtain the first received data packet from the twelfth data packet of the second relay node and copy it, and send the thirteenth data packet obtained by the copy to the third relay node, and the data obtained from the copy
  • the fourteenth data packet and the ninth data packet from the third relay node obtain the first received data packet and send it to the second edge node.
  • the second configuration information is also used to send an eleventh data packet obtained by copying the first data packet to the fourth relay node, and output the obtained first received data packet to the third relay node;
  • the device further includes: a sixth configuration module, configured to generate and configure sixth configuration information for the third relay node, the sixth configuration information is used to copy the data packet from the first relay node, and send the copy to the fourth relay node
  • a sixth configuration module configured to generate and configure sixth configuration information for the third relay node, the sixth configuration information is used to copy the data packet from the first relay node, and send the copy to the fourth relay node
  • the twelfth data packet obtained, and the data packet received first from the data packet from the second relay node, the data packet from the fourth relay node, and the thirteenth data packet obtained by copying are sent to Sent by the second edge node;
  • the third relay node is a node on the link between the first relay node and the second edge node, and the fourth relay node is located on the link from the first edge node to the second edge node via the third relay node Outside.
  • FIG. 1 is a schematic flowchart of a method for processing a business flow according to an embodiment of the present application
  • FIG. 2 is a schematic structural diagram of a possible multiple nodes provided by an embodiment of the present application.
  • FIG. 3 (a) is a schematic diagram of a possible functional module architecture of multiple nodes in the embodiment shown in FIG. 2;
  • FIG. 3 (b) is a schematic diagram of another possible functional module architecture of multi-nodes in the embodiment shown in FIG. 2;
  • FIG. 4 is a schematic diagram of another possible multiple node architecture provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a possible functional module of Edge A 'and Edge B' in the embodiment shown in FIG. 4;
  • FIG. 6 (a) is a schematic diagram of a possible functional module architecture of Relay C ’and Relay E’ in the embodiment shown in FIG. 4;
  • FIG. 6 (b) is a schematic diagram of another possible functional module architecture of Relay C ’and Relay E’ in the embodiment shown in FIG. 4;
  • FIG. 7 (a) is a schematic diagram of a possible functional module architecture of Relay D ’and Relay F’ in the embodiment shown in FIG. 4;
  • FIG. 7 (b) is a schematic diagram of another possible functional module architecture of Relay D ’and Relay F’ in the embodiment shown in FIG. 4;
  • FIG. 8 is a schematic diagram of a possible functional module architecture of multiple nodes in the embodiment shown in FIG. 4;
  • FIG. 9 is a schematic structural diagram of a service flow processing apparatus according to an embodiment of the present application.
  • FIG. 10 is a schematic structural diagram of a controller provided by an embodiment of the present application.
  • the service flow refers to the data flow of a certain service.
  • the business flow includes data packets.
  • Data packets are Ethernet frames for Ethernet technology, IP packets for internet protocol (IP) technology, and MPLS packets for multi-protocol label switching (MPLS) technology.
  • IP internet protocol
  • MPLS multi-protocol label switching
  • deterministic network (Detnet) technology is a technology that provides extremely low packet loss rate and bounded delay for real-time application service flows.
  • the Detnet architecture includes two different types of nodes, namely edge nodes and relay nodes.
  • the edge node is the source node and / or destination node of the Detnet service layer
  • the relay node is a node on the Detnet path from the source node to the destination node.
  • the network path from the source node to the destination node is composed of path segments, and the relay node is used to connect adjacent path segments together and provide service protection functions.
  • the Detnet architecture defines the functions that can be implemented in the node, including packet replication (packet replication function, PRF), packet elimination function (PEF), and packet ordering function (packet ordering function, POF), which are collectively called PREOF .
  • packet replication function packet replication function
  • PEF packet elimination function
  • POF packet ordering function
  • the packet copying function refers to copying the packet and forwarding it to one or more next hop nodes through one or more segments.
  • the packet elimination function refers to eliminating redundant packets from packets from one or more segments, thereby avoiding excessive packet flooding on the network or sending duplicate packets out of the Detnet domain.
  • the group sorting function refers to reordering out of order groups.
  • Detnet architecture defines the functions that can be implemented in a node, it does not specify which function or functions are configured in a specific node to achieve the transmission and protection of business flows.
  • the embodiments of the present application provide a business flow processing method, device and equipment, the purpose of which is to realize transmission and protection of business flows.
  • the service flow processing method provided by the embodiment of the present application includes the following steps:
  • the multiple nodes include an edge node and a relay node, where the edge node includes a first edge node and a second edge node.
  • Edge nodes can be connected to user edge nodes through access circuits.
  • the first edge node is connected to the first user edge node
  • the second edge node is connected to the second user edge node.
  • the first user edge node transmits the service flow to the first edge node, and the first edge node can adapt and encapsulate the service flow into individual data packets, so that the first edge node transmits.
  • each path has at least one relay node.
  • the data packet starts from the first edge node and passes through at least two paths to reach the second edge node at the same time. As long as one path does not fail, the second edge node can receive the data packet, thereby ensuring the reliability of data transmission.
  • the second edge node may decapsulate and assemble the non-repetitive data packet into the form of a service flow, and send the service flow to the second user edge node.
  • FIG. 2 is a schematic diagram of a possible multiple node architecture.
  • it includes the first edge node (Edge), the second edge node (Edge) and two relay nodes, namely the first relay node (Relay C) and the second relay node (Relay D) .
  • Edge A, Relay C and Relay D are connected to each other, Relay C and Relay D are connected to Edge B.
  • Edge A and CE1 are connected through AC1, so that Edge A can receive the service flow from CE1, and the service flow is adapted and encapsulated into one data packet;
  • Edge B and CE2 are connected through AC2, so that Edge B can connect the received
  • the data packet is assembled into a service stream and transmitted to CE2.
  • the data packet from Edge A to Edge B can have a total of four paths, they are:
  • Path 1 Edge A ⁇ Relay C ⁇ Edge B;
  • Path 2 Edge A ⁇ Relay C ⁇ Relay D ⁇ Edge B;
  • Path 4 Edge A ⁇ Relay D ⁇ Relay C ⁇ Edge B.
  • the service flow sent by CE1 can be transmitted from Edge A to Edge B through these four paths, thereby reaching CE2. As long as there is no fault on any path, it can ensure that CE2 receives the service flow.
  • corresponding configuration information can be generated for the first edge node, the second edge node, the first relay node, and the second relay node to configure the corresponding functional modules.
  • the Edge A can generate first configuration information for it, which is used to copy the data packet included in the received service flow, and output the first data packet obtained by copying to Relay C and to Relay D The second data packet obtained by copying is output.
  • the first configuration information is used by Edge A to configure a replication module, which enables Edge A to replicate the data packets included in the received service flow from CE1 to obtain the first data packet and the second data packet And send the first data packet to Relay C and the second data packet to Relay D.
  • the received service flow may include one or more data packets.
  • Relay C it can generate second configuration information for copying the first data packet, and output the third data packet obtained by the replication and the fourth data obtained from the replication to Relay D
  • the packet and the data packet from the Relay D obtain the data packet and send it to the Edge B.
  • the acquired data packet may be the fourth data packet obtained by the relay C from the copy and the data packet received first from the data packet from the relay D.
  • the second configuration information is used for Relay C to configure the replication module and the elimination module.
  • the replication module enables Relay C to copy the received first data packet to obtain the third data packet and the fourth data packet, and sends the third data packet to Relay D; the elimination module enables Relay C to extract the fourth data The packet and the data packet from Relay D (that is, the fifth data packet mentioned below) obtain the first received data packet and send it to Edge B. If Relay C receives the fourth data packet first, it sends the fourth data packet to Edge B; if Relay C receives the fifth data packet first, it sends the fifth data packet to Edge B.
  • the fourth configuration information can be generated for it.
  • the fourth configuration information is used to copy the second data packet from the Edge A, and outputs the fifth data packet obtained by the copy to the Relay C, and the sixth data packet obtained from the copy and the Relay Get the data packet from the third data packet of C and send it to Edge B.
  • the acquired data packet may be a first data packet received from the sixth data packet obtained by copying and the third data packet from the Relay C. That is to say, the fourth configuration information is used for Relay to configure the replication module and the elimination module.
  • the replication module of Relay D enables Relay D to copy the received second data packet to obtain a fifth data packet and a sixth data packet, and sends the fifth data packet to Relay C.
  • the elimination module of Relay D enables Relay D to obtain the first received data packet from the sixth data packet obtained by copying and the third data packet from Relay C and send it to Edge B, and the received data packet can be deleted later.
  • Relay D may acquire the data packets according to the order in which the data packets are received, that is, acquire the first received data packet. If Relay D receives the sixth data packet first and then receives the third data packet, it sends the sixth data packet to Edge B; if Relay D receives the third data packet first and then receives the sixth data packet, then The third data packet is sent to Edge B.
  • third configuration information can be generated for it.
  • the third configuration information is used for the received data packets from Relay C and from A data packet is obtained from the data packet of the Relay D and output.
  • the acquired data packet may be a data packet received first from the received data packet from Relay C and the data packet from Relay D. That is to say, the third configuration information is used for the Edge B configuration elimination module, which enables Edge B to obtain the first received data from the received data packets from the Relay C and the data packets from the Relay D
  • the package can be sent to CE2.
  • the data packet from Relay C is the fourth data packet
  • the data packet from Relay D is the sixth data packet
  • Edge B receives the fourth data packet first and then receives the sixth data packet, then Delete the sixth data packet and send the fourth data packet to CE2.
  • FIG. 3 (a) is a schematic diagram of a possible functional module architecture of a multi-node in the embodiment shown in FIG. 2.
  • Edge A can configure replication module (hereinafter referred to as Rep) 101
  • Relay C can configure Rep 102 and elimination module (hereinafter referred to as Elm) 103
  • Relay D can configure Rep 104 and Elm 105
  • Edge B can Configure Elm 106.
  • Rep 101 is connected to Rep 102 and Rep 104 respectively
  • Rep 102 is connected to Elm 103 and Elm 105 respectively
  • Rep 104 is connected to Elm 103 and Elm 105 respectively
  • Elm 103 and Elm 105 are connected to Elm 106.
  • Rep 101 is used to copy the received data packet to obtain the first data packet and the second data packet, and sends the first data packet to Rep 102 and the second data packet to Rep 104.
  • Rep 102 copies the first data packet to obtain the third data packet and the fourth data packet, and sends the third data packet to Elm 105 and the fourth data packet to Elm 103.
  • Rep 104 copies the second data packet to obtain the fifth data packet and the sixth data packet, and sends the fifth data packet to Elm 103 and the sixth data packet to Elm 105.
  • Elm 103 obtains the first received data packet from the fourth data packet and the fifth data packet and sends it to Elm 106.
  • Elm 105 obtains the first received data packet from the third data packet and the sixth data packet and sends it to Elm 106.
  • Elm 106 obtains the first received data packet from the data packet from Elm 103 and the data packet from Elm 105 and sends it to CE2.
  • the service flow may include one or more data packets.
  • a sequence number can be used to identify each data packet of the service flow.
  • Edge A can identify data packets in a service flow in ascending or descending order, and the continuity of the data packet sequence number reflects the continuity of the data packet content.
  • data packet 1 represents the first data packet in the business flow (first data packet);
  • data packet 2 represents the second data packet in the business flow;
  • data packet 3 represents the third data packet in the business flow, and so on.
  • the replication module in Edge A replicates the data packets in the service flow, it can be copied one by one according to the sequence number from small to large or from large to small.
  • Edge A replicates data packet 1, data packet 2, and data packet 3 included in the service flow, that is, data packet 1 is copied first, then data packet 2 is copied, and finally data packet 3 is copied.
  • the data packet is copied, not only the content is the same, but the serial number is also unchanged.
  • two or more data packets obtained after data packet 1 is copied are both data packet 1
  • two or more data packets obtained after data packet 2 are copied are both data packets 2. Therefore, if the service flow includes multiple data packets, the copied first data packet and second data packet also include multiple data packets. For example, if the service flow includes data packet 1, data packet 2, and data packet 3, then the copied first data packet also includes data packet 1, data packet 2, and data packet 3, and the copied second data packet also includes Including data packet 1, data packet 2 and data packet 3.
  • the copy module of the relay node may copy each data packet one by one according to the receiving order of the data packets. For example, if the replication module of Relay C receives data packet 1, data packet 2 and data packet 3 in this order, it can copy each data packet in this order. If the data packets are out of order during transmission, they can still be copied in the order received. For example, the replication module of Relay C receives data packet 1, data packet 3, and data packet 2 in sequence, then each data packet can be copied in this order.
  • the elimination module there are two cases. One case is that the elimination module obtains two or more data packets with the same sequence number, and can select one data packet to send out. In another case, because the data packet is lost during transmission, the elimination module receives only one data packet with a certain sequence number, and then the data packet can be sent out. For the former case, if the elimination module receives two or more packets with the same sequence number in sequence, the first packet received can be output; if the elimination module receives two or more packets at the same time Data packets with the same sequence number can be output from any one of them.
  • the elimination module of Relay C selects the first received data packet 1 to send. If the two data packets 1 are received at the same time, then one of the data packets 1 can be optionally output.
  • a flag bit may be set for each data packet in the elimination module, and a flag bit identifies whether a data packet of a serial number is sent. For example, if the flag bit of data packet 1 is 1, it means that the data packet with sequence number 1 has been sent; if the flag bit of data packet 1 is 0, it means that the data packet with sequence number 1 has not been sent.
  • the elimination module receives a data packet with a certain serial number, you can query the corresponding flag bit of the serial number packet. If the corresponding flag bit is 0, it means that the elimination module has not sent a data packet of this serial number before, so you can send The data packet; if the corresponding flag bit is 1, it means that the elimination module has sent the data packet of the serial number before, so the data packet can be deleted.
  • the configuration information of each node may include entry information and exit information of the corresponding module.
  • the entry information may be, for example, entry segment information and / or entry port information.
  • the entry segment information includes at least an entry segment identifier, and optionally, may also include an entry segment IP address and / or an entry segment label.
  • the IP address of the entry segment includes the IP address of the start node and the IP address of the end node of the entry segment.
  • the entrance port information may include an entrance port identifier.
  • the exit information may be, for example, exit segment information and / or exit port information.
  • the export segment information includes at least an export segment identifier, and optionally, may also include an export segment IP address and / or an export segment label.
  • the IP address of the exit segment includes the IP address of the start node and the IP address of the end node of the exit segment.
  • the exit port information may include an exit port identification.
  • the entry segment identifier and the exit segment identifier may be 32-bit unsigned integers, and the start node IP address and end node IP address may be 32-bit IPv4 addresses or 128-bit IPv6 addresses.
  • the entry segment label and the exit segment label can be integers in the range [16,1048575].
  • the link between the nodes and the connection within the node may be referred to as a segment, and the segment identifier is a segment identifier.
  • the segment has a direction.
  • the segment from Edge A to Relay C and the segment from Relay C to Edge A are not the same segment.
  • the corresponding segment identifiers of the two are also different.
  • the segment identification from Edge A to Relay C is "1001"
  • the segment identification from Relay C to Edge B is "1002”
  • the segment ID of the segment from C to Relay D is "1003”
  • the segment ID of the segment from Relay D to Relay C is "1004"
  • the segment ID of the segment from Edge A to Relay D is "1005"
  • the segment identification from Relay D to Edge B is" 1006 ".
  • the above segment identifiers "1001" to "1006" are all identifiers of segments between nodes.
  • the segment identifier inside the node includes, for example, the segment identifier "2001" of the segment from Rep 102 to Elm 103 in Relay C, and the segment identifier "2002" of the segment from Rep 104 to Elm 105 in Relay D.
  • the segment label refers to a label corresponding to the segment identifier.
  • the segment label from Edge A to Relay C is "501”
  • the segment label from Relay C to Edge B is "502”
  • the segment label between C and Relay D is "503”
  • the segment label from Relay D to Relay C is "504"
  • the segment label from Edge A to Relay D is "505"
  • the segment label from Relay D to Edge B is" 506 ".
  • the above segment labels "501” to "506” are all segment labels between nodes.
  • the segment label inside the node includes, for example, the segment label "20" of the segment from Rep 102 to Elm 103 in Relay C, and the segment label "21” of the segment from Rep 104 to Elm 105 in Relay D.
  • each node may also have an IP address.
  • IP address of Edge A is 10.0.0.1
  • the IP address of Edge B is 10.0.0.2
  • the IP address of Relay C is 10.0.0.3
  • the IP address of Relay D is 10.0. 0.4.
  • the configuration information of Edge A can also be regarded as the configuration information of Rep 101, which can include: the exit segment identifier "1001" and the exit segment identifier "1005".
  • the first configuration information may further include: the exit segment IP addresses 10.0.0.1 (start node IP address) and 10.0.0.3 (end node IP address) corresponding to the exit segment identifier "1001", and the exit segment identifier "1005" corresponds to the exit segment IP addresses 10.0.0.1 (start node IP address) and 10.0.0.4 (end node IP address).
  • the first configuration information may further include: a segment label "501" corresponding to the exit segment identifier "1001” and a segment label "505" corresponding to the exit segment identifier "1005".
  • the configuration information of Relay C that is, the second configuration information, includes the configuration information of Rep 102 and the configuration information of Elm 103.
  • the configuration information of Rep 102 includes: the entry segment identification "1001", the exit segment identification "2001” and the exit segment identification "1003".
  • the configuration information of Rep 102 may also include: the segment IP addresses 10.0.0.1 (start node IP address) and 10.0.0.3 (end node IP address) corresponding to the entry segment identifier "1001", and the exit segment identifier " 2001 "corresponds to the segment IP addresses 10.0.0.3 (start node IP address) and 10.0.0.3 (end node IP address), and the segment IP addresses corresponding to the exit segment identifier" 1003 "10.0.0.3 (start node IP address) and 10.0 .0.4 (End Node IP Address) ,.
  • the configuration information of Rep 102 may also include: a segment label "501" corresponding to the entry segment identification "1001", a segment label "20” corresponding to the exit segment identification "2001”, and a segment label "1003” corresponding to the exit segment identification "Corresponds to the segment label” 503 ".
  • the configuration information of Elm 103 includes: entry segment identification "2001", entry segment identification "1004" and exit segment identification "1002".
  • the configuration information of Elm 103 may also include: the segment IP addresses 10.0.0.3 (start node IP address) and 10.0.0.3 (end node IP address) corresponding to the entry segment identifier "2001", and the entry segment identifier " 1004 "corresponds to the segment IP addresses 10.0.0.4 (start node IP address) and 10.0.0.3 (end node IP address), and the segment IP addresses corresponding to the exit segment identifier" 1002 "10.0.0.3 (start node IP address) and 10.0 .0.2 (end node IP address).
  • the configuration information of Elm 103 may also include: a segment label "20" corresponding to the entry segment identifier "2001", a segment label "504" corresponding to the entry segment identifier "1004", and an exit segment identifier "1002" "The corresponding segment label” 502 ".
  • the configuration information of Relay D that is, the fourth configuration information, includes the configuration information of Rep 104 and the configuration information of Elm 105.
  • the configuration information of Rep 104 includes: the entry segment identification "1005", the exit segment identification "2002" and the exit segment identification "1004".
  • the configuration information of Rep 104 may also include: the segment IP addresses 10.0.0.1 (start node IP address) and 10.0.0.4 (end node IP address) corresponding to the entry segment identifier "1005", and the exit segment identifier " 2002 "segment IP addresses 10.0.0.4 (start node IP address) and 10.0.0.4 (end node IP address), and the segment IP addresses 10.0.0.4 (start node IP address) and 10.0 corresponding to the exit segment identifier" 1004 " .0.3 (end node IP address).
  • the configuration information of Rep 104 may also include: a segment label "505" corresponding to the entry segment identification "1005", a segment label "21” corresponding to the exit segment identification "2002", and a segment label "1004" corresponding to the exit segment identification "Corresponds to the segment label” 504 ".
  • the configuration information of Elm 105 includes: entry segment identification "2002", entry segment identification "1003” and exit segment identification "1006".
  • the configuration information of Elm 105 may also include: the segment IP addresses 10.0.0.4 (start node IP address) and 10.0.0.4 (end node IP address) corresponding to the entry segment identifier "2002", and the entry segment identifier "
  • the configuration information of Elm 105 may also include: a segment label "21" corresponding to the entry segment identifier "2002", a segment label “503” corresponding to the entry segment identifier "1003”, and an exit segment identifier "1006" "Corresponds to the segment label” 506 ".
  • the configuration information of Edge B can also be regarded as the configuration information of Elm 106, which can include: the entry segment identifier "1002" and the entry segment identifier "1006".
  • the third configuration information may further include: an entry segment IP address 10.0.0.3 (start node IP address) and 10.0.0.2 (end node IP address) corresponding to the entry segment identifier "1002", and an entry segment identifier
  • the third configuration information may further include: a segment label "502" corresponding to the entry segment identifier "1002” and a segment label "506" corresponding to the entry segment identifier "1006".
  • each module included in the above node and the composition of each module do not constitute a limitation on this application, and those skilled in the art can design it according to the actual situation.
  • fifth configuration information may be generated for it.
  • the fifth configuration information is used to obtain the first received data packet from the second data packet from the Edge A and the third data packet from the Relay C to copy, and output the copy to the Relay C
  • the fifth data packet and the sixth data packet obtained by outputting the copy to the Edge B.
  • the fifth configuration information is used for the Relay configuration elimination module and the replication module.
  • Relay D's elimination module enables Relay D to obtain the first received data packet from the second data packet from Edge A and the third data packet from Relay C;
  • Relay D's replication module uses Yu copies the obtained data packet to obtain the fifth data packet and the sixth data packet, and sends the fifth data packet to Relay C and the sixth data packet to Edge B.
  • Edge A can configure Rep 201
  • Edge B can configure Elm 206
  • Relay C can configure Rep 202 and Elm 203
  • Relay D can configure Elm 204 and Rep 205.
  • Rep 201, Rep 202 and Elm 204 are connected to each other
  • Elm 203, Rep 205 and Elm 206 are connected to each other
  • Rep 202 is also connected to Elm 203
  • Elm 204 is also connected to Rep 205.
  • Rep 201 is used to copy the received data packet to obtain the first data packet and the second data packet, and sends the first data packet to Rep 202, and sends the second data packet to Elm 204.
  • Rep 202 copies the first data packet to obtain the third data packet and the fourth data packet, and sends the third data packet to Elm 204 and the fourth data packet to Elm 203.
  • Elm 204 obtains the first received data packet from the second data packet and the third data packet and sends it to Rep 205.
  • Rep 205 copies the data packet from Elm 204 to obtain the fifth data packet and the sixth data packet, and sends the fifth data packet to Elm 203 and the sixth data packet to Elm 206.
  • Elm 203 obtains the first received data packet from the fourth data packet and the fifth data packet and sends it to Elm 206.
  • Elm 206 obtains the first received data packet from the data packet from Elm 203 and the data packet from Elm 205 and sends it to CE2.
  • the segment identifier inside the node includes, for example, the identifier "3001" of the segment from Rep 202 to Elm 203 in Relay C, and the segment identifier "3002" of the segment from Elm 204 to Rep 205 in Relay D.
  • the segment labels inside the node include, for example, the segment label "31" from Rep 202 to Elm 203 in Relay C, and the segment label "32" from Elm 204 to Rep 205 to Relay D.
  • the configuration information of Rep 202 includes: the entry segment identifier "1001" and the exit segment identifier "3001" and the exit segment identifier "1003".
  • the configuration information of Rep 202 may also include: the segment IP addresses 10.0.0.1 (start node IP address) and 10.0.0.3 (end node IP address) corresponding to the entry segment identifier "1001", and the exit segment identifier "
  • the configuration information of Rep 202 may further include: a segment label "501" corresponding to the entry segment identifier "1001", a segment label "31” corresponding to the exit segment identifier "3001", and a segment label "1003" "Corresponds to the segment label” 503 ".
  • the configuration information of Elm 203 includes: entry segment identification "3001", entry segment identification "1004" and exit segment identification "1002".
  • the configuration information of Elm 203 may also include: the segment IP addresses 10.0.0.3 (start node IP address) and 10.0.0.3 (end node IP address) corresponding to the entry segment identifier "3001", and the entry segment identifier " 1004 "corresponds to the segment IP addresses 10.0.0.4 (start node IP address) and 10.0.0.3 (end node IP address), and the segment IP addresses corresponding to the exit segment identifier" 1002 "10.0.0.3 (start node IP address) and 10.0 .0.2 (end node IP address).
  • the configuration information of Elm 203 may also include: a segment label "31" corresponding to the entry segment identifier "3001", a segment label "504" corresponding to the entry segment identifier "1004", and an exit segment identifier "1002" "The corresponding segment label” 502 ".
  • the configuration information of Elm 204 includes: entry segment identifier "1005", entry segment identifier "1003" and exit segment identifier "3002".
  • the configuration information of Elm 204 may also include: segment IP addresses 10.0.0.1 (start node IP address) and 10.0.0.4 (end node IP address) corresponding to the entry segment identifier "1005", and the entry segment identifier " The segment IP addresses corresponding to 1003 "10.0.03 (start node IP address) and 10.0.0.4 (end node IP address), the segment IP addresses corresponding to the exit segment identifier" 3002 "10.0.0.4 (start node IP address) and 10.0 .0.4 (end node IP address).
  • the configuration information of Elm 204 may further include: a segment label "505" corresponding to the entry segment identifier "1005", a segment label "503" corresponding to the entry segment identifier "1003” and an exit segment identifier "3002"
  • the corresponding segment label is "32".
  • the configuration information of Rep 105 includes: entry segment identifier "3002", entry segment identifier "1004", and exit segment identifier "1006".
  • the configuration information of Rep 105 may further include: segment IP addresses 10.0.0.4 (start node IP address) and 10.0.0.4 (end node IP address) corresponding to the entry segment identifier "3002", and the entry segment identifier "
  • the configuration information of Rep 105 may further include: a segment label "32" corresponding to the entry segment identifier "3002", a segment label "504" corresponding to the outlet segment identifier "1004", and a segment label "1006" "Corresponds to the segment label” 506 ".
  • each node may also include one or more of the following items: flow identification, module identification, and node identification.
  • the flow identifier refers to the identifier of the data packet.
  • the stream identifier may be a 32-bit unsigned integer.
  • Each service flow received by Edge A corresponds to a flow identifier, and each node's configuration information for the same service flow includes the same flow identifier.
  • the flow identifiers in the first configuration information, the second configuration information, the third configuration information, the fourth configuration information, and the fifth configuration information are all "101".
  • the module identification refers to the identification of the functional module in the node.
  • the ID of the copy module is "PRF”
  • the ID of the elimination module is “PEF”
  • the ID of the sorting module is "POF”.
  • the node ID is the ID of the node.
  • the identification of the node may include the IP address of the node, the label of the node, and the like.
  • the node identifier of the first relay node may include "10.0.0.3", “Relay C”, "node C”, etc.
  • the above configuration information may be stored in the form of a configuration file, for example, the configuration file may be an extensible markup language (Extensible Markup Language (XML) configuration file).
  • XML Extensible Markup Language
  • the embodiment of the present application may execute S102:
  • the execution subjects of S102 and S202 are controllers, and the controller may be independent of each node, or may be deployed on one of the nodes, such as the first edge node.
  • the controller can achieve the purpose of configuring the corresponding configuration information for each node by sending the corresponding configuration information to each node, that is, the controller sends the first configuration information to the first edge node and sends it to the second
  • the relay node sends second configuration information, sends third configuration information to the second edge node, and sends fourth configuration information or fifth configuration information to the fourth edge node.
  • the controller can use the network configuration protocol (network configuration, Netconf), Restconf protocol, path calculation original communication protocol (path computation element communication protocol, PCEP), border gateway protocol (border gateway protocol, BGP), or Openflow, etc.
  • the protocol sends corresponding configuration information to each node.
  • the RESTCONF protocol is used to provide a hypertext transfer protocol (HTTP) interface that follows the principle of representational state transfer (REST) and is compatible with the NETCONF data storage model.
  • HTTP hypertext transfer protocol
  • the controller may separately send a corresponding remote procedure call instruction (RPC) to each node, and the instruction contains configuration information corresponding to each node.
  • RPC remote procedure call instruction
  • the first edge node can directly configure according to the first configuration information, and send the corresponding configuration information to other nodes to achieve the purpose of configuring the corresponding configuration information for each node, namely the first edge
  • the node sends second configuration information to the second relay node, sends third configuration information to the second edge node, and sends fourth configuration information or fifth configuration information to the fourth edge node.
  • the first edge node may send a Path message to other nodes, and the path message carries the configuration corresponding to the other nodes information.
  • the route message contains explicit route objects (Explicit Route Objects, EROs), which have the message format shown in Table 1.
  • the message format may include the PREOF module type (that is, the module ID mentioned above), flow ID (flow ID), field length (length), and TLV field.
  • the TLV field may include the module ID corresponding to the entry information of the functional module and Export information.
  • Table 2 shows the message format of the path message corresponding to Relay C.
  • multiple nodes may configure corresponding modules according to the corresponding configuration information.
  • the first edge node may configure a replication module.
  • the replication module of the first edge node is used to replicate the received data packet and output the first obtained by replication to the first relay node.
  • the data packet and the second data packet obtained by copying are output to the second relay node.
  • the first relay node may configure the replication module and the elimination module.
  • the replication module of the first relay node is used to replicate the first data packet and output the third data packet obtained by the replication to the second relay node.
  • the elimination module of the first relay node is used to obtain the first received data packet from the fourth data packet obtained by the replication and the data packet from the second relay node and send it to the second edge node.
  • the second edge node may configure the elimination module.
  • the elimination module of the second edge node is used to obtain and output the first received data packet from the received data packet from the first relay node and the data packet from the second relay node.
  • the second relay node may configure the replication module and the elimination module.
  • the replication module of the second relay node is used to replicate the second data packet from the first edge node and output the fifth data packet obtained by the replication to the first relay node.
  • the elimination module of the second relay node is used to obtain the first received data packet from the sixth data packet obtained by the replication and the third data packet from the first relay node and send it to the second edge node .
  • the second relay node may configure the elimination module and the replication module.
  • the elimination module of the second relay node is used to obtain the first received data packet from the second data packet from the first edge node and the third data packet from the first relay node.
  • the replication module of the second relay node is used to replicate the one data packet, and outputs the fifth data packet obtained by the replication to the first relay node and the first data packet obtained by the replication to the second edge node Six packets.
  • each node may generate a forwarding entry of the forwarding plane based on the entrance information and the exit information included in the respective configuration information to implement the corresponding forwarding function.
  • the forwarding table entry of a node on the forwarding plane may include the identifier of the functional module included in the node, and the incoming and outgoing labels of the functional module.
  • the forwarding plane may determine the segment label corresponding to the segment identifier according to the mapping relationship between the segment identifier and the segment label. Specifically, the segment label corresponding to the entry segment identifier is an in label, and the segment label corresponding to the exit segment identifier is an out label.
  • each function module needs to put a label in the data packet when outputting the data packet (which can be adding a label or replacing the label).
  • the next node can parse the out label that the data packet put on the previous node, which is the in label for this node, and then query the forwarding entry according to the in label to determine the corresponding out label .
  • the replication module of Relay C receives a data packet with a label of 501, look up table 3 and determine that for the functional module with the functional module identification of Rep, the corresponding outgoing labels are 31 and 503, and Copy the data packet with the label 501, and mark the copied two data packets with the out label 31 and the out label 503, respectively, and send out through the corresponding link.
  • the Elimination module of Relay C receives the data packet marked with the label 31 by the Replication module of Relay C, it looks up the table 3 and determines that for the functional module whose function module is identified as Elm, the corresponding out label is 502. Therefore, after receiving the data packet marked with the label 504 by the last node, the elimination module of Relay C obtains one of the two data packets and outputs it through the link with the label 502.
  • link mentioned in the embodiments of the present application may be a physical connection or a virtual connection.
  • the number of relay nodes is two. In practical applications, the number of relay nodes may be more than two.
  • the following takes the number of relay nodes as an example for a detailed introduction. Since the embodiment with four relay nodes is similar to the embodiment with two relay nodes, some similarities or similarities will not be described in detail, please refer to the above.
  • FIG. 4 is a schematic diagram of one possible multiple node architecture.
  • it includes a first edge node Edge A ', a second edge node Edge B' and four relay nodes, and these four relay nodes include a first relay node Relay C 'and a second relay node respectively Relay D ', the third relay node Relay E' and the fourth relay node Relay F '.
  • Edge A ', Relay C' and Relay D ' are interconnected, Relay C', Relay D ', Relay E' and Relay F 'are interconnected, Relay E', Relay F 'and Edge B' Interconnected.
  • Edge nodes can be connected to user edge nodes through access circuits. Specifically, Edge A 'is connected to CE1 through AC1, so that Edge A' can receive the service flow from CE1; Edge B 'and CE2 are connected through AC2, so that Edge B' can integrate the received data packets with the service flow Transfer to CE2.
  • the service flow sent by CE1 can be transmitted from Edge A 'to Edge B through these 16 paths at the same time, thereby reaching CE2. As long as there is no fault on one path, it can ensure that CE2 receives the service flow.
  • Edge A ' it can generate first configuration information for it, which is used to copy the data packet included in the received service flow, and output the first data packet obtained by copying to Relay C' and to Relay D 'outputs the second data packet obtained by copying. That is to say, the first configuration information is used for Edge A 'configuration replication module, which enables Edge A' to copy the received data packets in the service flow from CE1 to obtain the first data packet and the second data packet And send the first data packet to Relay C 'and the second data packet to Relay D'.
  • second configuration information can be generated for it, and the second configuration information is used to copy the first data packet, and output the third data packet obtained by replication to Relay D', and the third data packet obtained from the replication
  • the fourth data packet and the data packet from Relay D ' obtain the first received data packet for copying, and output the seventh data packet obtained by copying to Relay E', Output the eighth data packet obtained by copying to Relay F '. That is, the second configuration information is used for Relay C 'to configure two replication modules and one elimination module.
  • the first copy module of Relay C ' (as shown in Figure 6 (a) or Rep 302 in Figure 8) is used to copy the first data packet, get the third data packet and the fourth data packet, and send the first data packet to Relay D' Three packets.
  • the cancellation module of Relay C ' is used to obtain the first received data packet from the fourth data packet and the fifth data packet from Relay D'.
  • Relay's second replication module (as shown in Figure 6 (a) or Rep304 in Figure 8) is used to replicate the first received data packet to obtain a seventh data packet and an eighth data packet.
  • sixth configuration information may be generated for Relay E', the sixth configuration information is used from the seventh data packet and the data packet from Relay D '(that is, the eleventh below) In the data packet), the data packet received first is copied, and the ninth data packet obtained by the copy is output to Relay F ', and the tenth data packet obtained from the copy and the data packet from the Relay F' ( That is, the thirteenth data packet below) to obtain the first received data packet and send it to Edge B '. That is to say, the sixth configuration information is used for Relay E 'to configure two elimination modules and the replication module received first.
  • the first elimination module of Relay E (as shown in Figure 6 (a) or Elm 305 in Figure 8) is used to obtain the first received data packet from the seventh data packet and the eleventh data packet, Relay E
  • the copy module of ' is used to copy the first received data packet to obtain a ninth data packet and a tenth data packet, and sends the ninth data packet to Relay F'.
  • Relay's second elimination module (Elm307 in Figure 6 (a) or Figure 8) is used to obtain the first received data packet from the tenth data packet and the thirteenth data packet, and sends it to Edge B 'Send the packet.
  • fourth configuration information can be generated for it, and the fourth configuration information is used to copy the second data packet from Edge A', and output the copied fifth data packet to Relay C ', and Obtain the first received data packet from the sixth data packet obtained by copying and the third data packet from the Relay C 'to copy, send the eleventh data packet obtained by copying to Relay E', and send to the Relay F 'sends the twelfth data packet obtained by copying. That is, the fourth configuration information is used for Relay D 'to configure two replication modules and one elimination module.
  • the first replication module of Relay D ' (as shown in Figure 7 (a) or Rep308 in Figure 8) is used to copy the second data packet to obtain the fifth data packet and the sixth data packet, and send the first data packet to Relay C' Five data packets.
  • the elimination module of Relay D ' is used to obtain the first received data packet from the sixth data packet and the third data packet from Relay D', and the second replication module of Relay D '(as shown in Figure 7 (a) or figure Rep 310 in 8) is used to copy the first received data packet to obtain the eleventh data packet and the twelfth data packet, and send the eleventh data packet to Relay E ', and send the eleventh data packet to Relay F' Twelve data packets.
  • the seventh configuration information can be generated for it.
  • the seventh configuration information is used to obtain the first received data packet from the eighth data packet and the twelfth data packet for replication, and send it to Relay E' Copy the thirteenth data packet obtained by copying, and obtain the first received data packet from the fourteenth data packet obtained by copying and the ninth data packet from Relay E 'and send it to Edge B'. That is, the seventh configuration information is used for Relay F 'to configure two elimination modules and one replication module.
  • the first elimination module of Relay F (as shown in FIG. 7 (a) or Elm 311 in FIG.
  • Relay F is used to obtain the first received data packet from the eighth data packet and the twelfth data packet, Relay F
  • the copy module of ' is used to copy the first received data packet to obtain the thirteenth data packet and the fourteenth data packet, and sends the thirteenth data packet to Relay E'.
  • the second elimination module of Relay F (as shown in Figure 7 (a) or Elm 313 in Figure 8) is used to obtain the first received data packet from the fourteenth data packet and the ninth data packet and send it to Edge B 'Send the packet.
  • third configuration information can be generated for the third configuration information, which is used to obtain the first received data from the received data packet from the Relay E' and the data packet from the Relay F '
  • the package can be sent to CE2. That is to say, the third configuration information is used for the Edge B configuration elimination module, which enables Edge B to obtain the first data packet received from the Relay E 'and the data packet from the Relay F'. Receive the data packet and send it to CE2.
  • Edge A ' can be configured with Rep 301
  • Edge B' can be configured with Elm314.
  • Rep 301 is used to receive the data packet from CE1 and copy the data packet to obtain the first data packet and the second data packet.
  • the first data packet is sent to Relay C 'and the second data packet is sent to Relay D'.
  • Elm 314 is used to receive the data packets from Relay E 'and the data packets from Relay F', and can obtain the first received from it and send it to CE2.
  • Relay C There are multiple ways to implement the number and connection methods of the modules included in Relay C ’, Relay D’, Relay E ’and Relay F’.
  • Relay C' can be configured with Rep 302, Elm 303 and Rep 304.
  • Rep 302 is used to receive and copy the first data packet, get the third data packet and the fourth data packet, and send the third data packet to Relay D ’and the fourth data packet to Elm 303.
  • Elm 303 obtains the first received data packet from the fourth data packet and the fifth data packet from Relay D 'and sends it to Rep 304.
  • Rep 304 copies the received data packet to obtain the seventh data packet and the eighth Data packets, and send a seventh data packet to Relay E ', and an eighth data packet to Relay F'.
  • Relay E ’ can be configured with Elm 305, Rep 306 and Elm 307.
  • Elm 305 is used to obtain the first received data packet from the seventh data packet and the eleventh data packet from Relay D ’and send it to Rep 306.
  • Rep306 copies the received data packet to obtain the ninth data packet and the tenth data packet, and sends the ninth data packet to Relay F ’, and sends the tenth data packet to Elm 307.
  • Relay C ′ can configure Rep 402 and Elm 403, where Rep 402 is used to receive and copy the first data packet to obtain the third data packet, The fourth data packet and the eighth data packet, and sends a third data packet to Relay D ', a fourth data packet to Elm 403, and an eighth data packet to Relay F'.
  • Elm 403 obtains the first received data packet from the fourth data packet and the fifth data packet from Relay D ’and sends it to Relay E’.
  • Relay E ' can configure Rep 404 and Elm 405, where Rep 404 is used to copy the data packets from Relay C' to get the ninth data packet and the tenth data packet, and send to Relay F '
  • the ninth data packet sends the tenth data packet to Elm 405.
  • Elm 405 obtains the first received data packet from the tenth data packet, the eleventh data packet from Relay D ’and the thirteenth data packet from Relay F’ and sends it to Edge B ’.
  • Relay D can be configured with Rep 308, Elm 309, and Rep 310.
  • Rep 308 copies the second data packet to obtain the fifth data packet and the sixth data packet, and sends the fifth data packet to Relay C ’, and sends the sixth data packet to Elm 309.
  • Elm 309 obtains the first received data packet from the sixth data packet and the third data packet from Relay C ’and sends it to Rep 310.
  • Rep 310 copies the data packets from Elm 309 to get the eleventh and twelfth data packets, and sends the eleventh data packet to Relay E ’and the twelfth data packet to Relay F’.
  • Relay F can be configured with Elm 311, Rep 312 and Elm 313.
  • Elm 311 is used to obtain the first received data packet from the twelfth data packet and the eighth data packet from Relay C ’and send it to Rep 312.
  • Rep312 copies the received data packet to obtain the thirteenth data packet and the fourteenth data packet, and sends the thirteenth data packet to Relay E ’and the fourteenth data packet to Elm 313.
  • Elm 313 is used to obtain the first received data packet from the fourteenth data packet and the ninth data packet from Relay E ’and send it to Edge B’.
  • Relay D ' can be configured with Rep 408 and Elm 409.
  • Rep408 is used to copy the second data packet from Edge A ', get the fifth data packet, the sixth data packet and the eleventh data packet, and send the fifth data packet to Relay C', and send the first data packet to Elm 409
  • Elm 409 is used to obtain the first received data packet from the sixth data packet and the third data packet from Relay C 'and send it to Relay F'.
  • Relay F can be configured with Rep 410 and Elm 411.
  • Rep 410 is used to copy the data packets from Relay D ’, get the thirteenth data packet and the fourteenth data packet, and send the thirteenth data packet to Relay E’ and the fourteenth data packet to Elm 411.
  • Elm 411 obtains the first received data packet from the fourteenth data packet, the eighth data packet from Relay C 'and the ninth data packet from Relay E' and sends it to Edge B '.
  • FIG. 6 (a) and FIG. 6 (b) can be arbitrarily combined with FIG. 7 (a) and FIG. 7 (b).
  • FIG. 8 is a detailed introduction to the architecture shown in FIG. 8, which is a combination of FIG. 5, FIG. 6 (a), and FIG. 7 (a).
  • Rep 301 is connected to Rep 302 and Rep 308,
  • Rep 302 is connected to Elm 303 and Elm 309
  • Rep 308 is connected to Elm 303 and Elm 309
  • Elm 303 is connected to Rep 304
  • Rep 304 is respectively Connected to Elm 305 and Elm 311, Elm 309 to Rep 310, Rep 310 to Elm 305 and Elm 311, Elm 305 to Rep 306, Rep 306 to Elm 307 and Elm 313, Elm 311 to Rep 312,
  • Rep312 is connected to Elm307 and Elm313 respectively, and Elm307 and Elm313 are connected to Elm314.
  • Rep 301 receives the data packet from CE1, copies the data packet to obtain the first data packet and the second data packet, and then sends the first data packet to Rep 302, and sends the second data packet to Rep 308.
  • Rep 302 copies the first data packet to obtain the third data packet and the fourth data packet, and then sends the third data packet to Elm 309 and sends the fourth data packet to Elm 303.
  • Rep308 copies the second data packet to obtain the fifth data packet and the sixth data packet, and sends the fifth data packet to Elm 303, and sends the sixth data packet to Elm 309.
  • Elm 303 obtains the first received data packet from the fourth data packet and the fifth data packet and sends it to Rep 304.
  • Rep304 copies the received data packet to obtain the seventh data packet and the eighth data packet, and sends the seventh data packet to Elm 305 and the eighth data packet to Elm 311.
  • Elm 309 obtains the first received data packet from the third data packet and the sixth data packet and sends it to Rep 310.
  • Rep 310 copies the received data packet to obtain the eleventh data packet and the twelfth data packet, and sends the eleventh data packet to Elm 305, and sends the twelfth data packet to Elm 311.
  • Elm 305 obtains the first received data packet from the seventh data packet and the eleventh data packet and sends it to Rep 306.
  • Rep 306 copies the received data packet to obtain the ninth data packet and the tenth data packet, and sends the ninth data packet to Elm 313, and sends the tenth data packet to Elm 307.
  • Elm 311 obtains the first received data packet from the eighth data packet and the twelfth data packet and sends it to Rep 312.
  • Rep312 copies the received data packet to obtain the thirteenth data packet and the fourteenth data packet, and sends the thirteenth data packet to Elm307, and sends the fourteenth data packet to Elm313.
  • Elm 307 obtains the first received data packet from the tenth data packet and the thirteenth data packet and sends it to Elm 314.
  • Elm 313 obtains the first received data packet from the ninth data packet and the fourteenth data packet and sends it to Elm 314.
  • Elm 314 obtains the first received data packet from the data packet from Elm 307 and the data packet from Elm 313 and sends it to CE2.
  • the links between the nodes and the connections between the various modules inside the nodes can be represented by segments, and different segments have different segment identifiers.
  • the segment identification from Edge A 'to Relay C' is "4001"
  • the segment identification from Edge A 'to Relay D' is "4002”
  • the segment identification from Relay C 'to Relay D' The segment ID of the segment is "4003”
  • the segment ID of the segment from Relay D 'to Relay C' is "4004"
  • the segment ID of the segment from Relay C 'to Relay F' is "4005"
  • the segment ID of the segment to Relay E ' is "4006”
  • the segment ID of the segment from Relay C' to Relay E ' is "4007”
  • the segment ID of the segment from Relay D' to Relay F ' is "4008", from Relay
  • the segment ID from E 'to Relay F' is "4009"
  • the segment ID from Relay F 'to Relay E' is "4010”
  • the segment ID from Relay E 'to Edge B' is "4011"
  • the segment identifiers inside the node include, for example:
  • the segment ID of the segment from Rep 302 to Elm 303 in Relay C ' is "5001", the segment ID of the segment from Elm 303 to Rep 304 is "5002"; the segment ID of the segment from Elm 305 to Rep 306 in Relay E' is "5003", the segment ID "5004" of the segment from Rep 306 to Elm 307; the segment ID "5005" of the segment from Rep 308 to Elm 309 in Relay D ', and the segment ID "5006” of the segment from Elm 309 to Rep 310 ";
  • the segments between the nodes and between the modules inside the nodes may also have segment labels.
  • the segment label from Edge A 'to Relay C' is "601”
  • the segment label from Edge A 'to Relay D' is "602”
  • the segment label to the segment between Relay D ' is "603”
  • the label is "605"
  • the segment label from Relay D 'to Relay E' is "606”
  • the segment label from Relay C 'to Relay E' is "607”
  • the segment segment from Relay F' to Relay E ' The label is "610"
  • the segment label from Relay E 'to Edge B is "
  • the segment labels inside the node include, for example, the segment label "41" in the segment from Rep 302 to Elm 303 in Relay C ', the segment label "42” in the segment from Elm 303 to Rep 304; and the segment label from Elm 305 in Relay E' to The segment label "43” of the Rep 306 segment, the segment label "44” from Rep 306 to Elm 307; the segment label "45” from Rep 308 to Elm 309 in the Relay D ', and the segment label from Elm 309 to Rep 310
  • each node may also have an IP address.
  • IP address of Edge A ' is 10.1.0.1
  • the IP address of Edge B' is 10.1.0.2
  • the IP address of Relay D' is 10.1.0.4
  • the IP address of Relay E ' is 10.1.0.5
  • the IP address of Relay F' is 10.1.0.6.
  • the configuration information of Edge A ' can also be regarded as the configuration information of Rep 201, which can include: the exit segment identifier "4001" and the exit segment identifier "4002".
  • the first configuration information may further include: an exit segment IP address 10.1.0.1 (start node IP address) and 10.1.0.3 (end node IP address) corresponding to the exit segment identifier "4001", and an exit segment identifier "4002" corresponds to the exit segment IP addresses 10.1.0.1 (start node IP address) and 10.1.0.4 (end node IP address).
  • the first configuration information may further include: a segment label "601" corresponding to the exit segment identifier "4001” and a segment label "602" corresponding to the exit segment identifier "4002".
  • the configuration information of Relay C ' that is, the second configuration information, includes the configuration information of Rep 302, the configuration information of Elm 303, and the configuration information of Rep 304.
  • the configuration information of Rep 302 includes: entry segment identification "4001", exit segment identification "4003” and exit segment identification "5001".
  • the configuration information of Rep 302 may also include: the entry segment IP address 10.1.0.1 (start node IP address) and 10.1.0.3 (end node IP address) corresponding to the entry segment identifier "4001", and the exit segment identifier
  • the exit segment IP address 10.1.0.3 (start node IP) corresponding to the exit segment identifier "5001" Address
  • 10.1.0.3 end node IP address
  • the configuration information of Rep 302 may further include: a segment label "601" corresponding to the entry segment identifier "4001", a segment label "603” corresponding to the exit segment identifier "4003”, and a segment label "5001”
  • the corresponding segment label is "41”.
  • the configuration information of Elm 303 includes: entry segment identification "5001", entry segment identification "4004" and exit segment identification "5002".
  • the configuration information of Elm 303 may also include: the entry segment IP address 10.1.0.3 (start node IP address) and 10.1.0.3 (end node IP address) corresponding to the entry segment identifier "5001", and the entry segment identifier
  • the configuration information of Elm 303 may further include: a segment label "41" corresponding to the entry segment identifier "5001", a segment label "604" corresponding to the entry segment identifier "4004", and an exit segment identifier "5002" "Corresponds to the segment label” 42 ".
  • the configuration information of Rep 304 includes: entry segment identification "5002", exit segment identification "4005" and exit segment identification "4007".
  • the configuration information of Rep 304 may also include: the entry segment IP address 10.1.0.3 (start node IP address) and 10.1.0.3 (end node IP address) corresponding to the entry segment identifier "5002", and the exit segment identifier
  • the configuration information of Rep 304 may further include: a segment label "42" corresponding to the entry segment identifier "5002", a segment label "605" corresponding to the outlet segment identifier "4005", and a segment label "4007” The corresponding segment label is "607".
  • the configuration information of Relay D ' that is, the fourth configuration information, includes the configuration information of Rep 308, the configuration information of Elm 309, and the configuration information of Rep 310.
  • the configuration information of Rep 308 includes: entry segment identification "4002", exit segment identification "4004" and exit segment identification "5005".
  • the configuration information of Rep 308 may also include: the entry segment IP address 10.1.0.1 (start node IP address) and 10.1.0.4 (end node IP address) corresponding to the entry segment identifier "4002", and the exit segment identifier "4004" corresponds to the exit segment IP addresses 10.1.0.4 (start node IP address) and 10.1.0.3 (end node IP address), and the exit segment IP address 10.1.0.4 (start node IP) corresponding to the exit segment identifier "5005" Address) and 10.1.0.4 (end node IP address).
  • the configuration information of Rep 308 may further include: a segment label "602" corresponding to the entry segment identifier "4002", a segment label "604" corresponding to the outlet segment identifier "4004", and a segment label "5005" The corresponding segment label is "45”.
  • the configuration information of Elm 309 includes: entry segment identification "5005", entry segment identification "4003” and exit segment identification "5006".
  • the configuration information of Elm 309 may also include: the entry segment IP address 10.1.0.4 (start node IP address) and 10.1.0.4 (end node IP address) corresponding to the entry segment identifier “5005”, and the entry segment identifier
  • the configuration information of Elm 309 may also include: a segment label "45” corresponding to the entry segment identifier "5005", a segment label "603” corresponding to the entry segment identifier "4003", and an exit segment identifier "5006” "Corresponds to the segment label” 46 ".
  • the configuration information of Rep 310 includes: entry segment identifier "5006", exit segment identifier "4006” and exit segment identifier "4008".
  • the configuration information of Rep 310 may also include: the entry segment IP address 10.1.0.4 (start node IP address) and 10.1.0.4 (end node IP address) corresponding to the entry segment identifier “5006”, and the exit segment identifier
  • the configuration information of Rep 304 may further include: a segment label "46" corresponding to the entry segment identifier "5006", a segment label "606” corresponding to the outlet segment identifier "4006", and a segment label "4008" The corresponding segment label is "608".
  • the configuration information of Relay E ’ that is, the sixth configuration information, includes the configuration information of Elm 305, the configuration information of Rep 306, and the configuration information of Elm 307.
  • the configuration information of Elm 305 includes: entry segment identifier "4006", entry segment identifier "4007” and exit segment identifier "5003".
  • the configuration information of Elm 305 may also include: the entry segment IP address 10.1.0.4 (start node IP address) and 10.1.0.5 (end node IP address) corresponding to the entry segment identifier “4006”, and the entry segment identifier
  • the configuration information of Elm 305 may also include: a segment label "606" corresponding to the entry segment identifier "4006", a segment label "607” corresponding to the entry segment identifier "4007”, and an exit segment identifier "5003" "Corresponds to the segment label” 43 ".
  • the configuration information of Rep 306 includes: entry segment identification "5003", exit segment identification "5004" and exit segment identification "4009".
  • the configuration information of Rep 306 may also include: the entry segment IP address 10.1.0.5 (start node IP address) and 10.1.0.5 (end node IP address) corresponding to the entry segment identifier “5003”, and the exit segment identifier
  • the configuration information of Rep 306 may further include: a segment label "43" corresponding to the entry segment identifier "5003", a segment label "44” corresponding to the exit segment identifier "5004", and a segment label "4009” The corresponding segment label is "609".
  • the configuration information of Elm 307 includes: entry segment identification "4010", entry segment identification "5004" and exit segment identification "4011".
  • the configuration information of Elm 307 may also include: the entry segment IP address 10.1.0.6 (start node IP address) and 10.1.0.5 (end node IP address) corresponding to the entry segment identifier “4010”, and the entry segment identifier
  • the configuration information of Elm 307 may further include: a segment label "610" corresponding to the entry segment identifier "4010", a segment label “44” corresponding to the entry segment identifier "5004", and an exit segment identifier "4011” "Corresponds to the segment label” 611 ".
  • the configuration information of Relay F ' that is, the seventh configuration information, includes the configuration information of Elm 311, the configuration information of Rep 312, and the configuration information of Elm 313.
  • the configuration information of Elm 311 includes: entry segment identification "4005", entry segment identification "4008” and exit segment identification "5007”.
  • the configuration information of Elm 311 may also include: the entry segment IP address 10.1.0.3 (start node IP address) and 10.1.0.6 (end node IP address) corresponding to the entry segment identifier “4005”, and the entry segment identifier
  • the configuration information of Elm 311 may further include: a segment label "605" corresponding to the entry segment identifier "4005", a segment label “608” corresponding to the entry segment identifier "4008", and an exit segment identifier "5007” "Corresponds to the segment label” 47 ".
  • the configuration information of Rep 312 includes: entry segment identification "5007", exit segment identification "5008” and exit segment identification "4010".
  • the configuration information of Rep 312 may also include: the entry segment IP address 10.1.0.6 (start node IP address) and 10.1.0.6 (end node IP address) corresponding to the entry segment identifier "5007", and the exit segment identifier
  • the configuration information of Rep 312 may further include: a segment label "47" corresponding to the entry segment identifier "5007", a segment label "48” corresponding to the outlet segment identifier "5008", and a segment label "4010" The corresponding segment label is "610".
  • the configuration information of Elm 313 includes: entry segment identification "4009", entry segment identification "5008” and exit segment identification "4012".
  • the configuration information of Elm 313 may also include: the entry segment IP address 10.1.0.5 (start node IP address) and 10.1.0.6 (end node IP address) corresponding to the entry segment identifier "4009", and the entry segment identifier
  • the configuration information of Elm 313 may further include: a segment label "609” corresponding to the entry segment identifier "4009", a segment label "48” corresponding to the entry segment identifier "5008", and an exit segment identifier "4012" "Corresponds to the segment label” 612 ".
  • the configuration information of Edge B ' can be regarded as the configuration information of Elm 314.
  • the configuration information of Elm 314 includes: entry segment identification "4011" and entry segment identification "4012".
  • the configuration information of Elm 314 may also include: the entry segment IP addresses 10.1.0.5 (start node IP address) and 10.1.0.2 (end node IP address) corresponding to the entry segment identifier "4011", and the entry segment The IP addresses 10.1.0.6 (start node IP address) and 10.1.0.2 (end node IP address) of the entry segment corresponding to the identifier "4012".
  • the configuration information of Elm 314 may further include: a segment label "611" corresponding to the entry segment identifier "4011” and a segment label "612" corresponding to the entry segment identifier "4012".
  • the second edge node only has the elimination module.
  • the second edge node may also have a sorting module for sorting multiple data packets in the received data packets.
  • different data packets can correspond to different data packet identifiers, and the data packet identifiers can be sorted in ascending order of the data packets.
  • the second edge node may sort the data packets according to the size of the data packet identifiers, so that CE2 can receive the data packets arranged in sequence.
  • the third configuration information generated for the second edge node can also be used to sort the multiple data packets output from the elimination module of the second edge node.
  • the replication module can perform the packet copy function
  • the elimination module can perform the packet elimination function
  • the sort module can perform the packet sort function
  • FIG. 9 is a schematic structural diagram of a service flow processing apparatus provided by an embodiment of the present application.
  • the service flow processing apparatus provided in the embodiments of the present application may be applied to a controller.
  • the service flow processing device 500 specifically includes:
  • the first configuration module 501 is configured to generate and configure first configuration information for the first edge node.
  • the first configuration information is used to copy the data packet included in the received service flow and output the obtained copy to the first relay node.
  • the second configuration module 502 is configured to generate and configure second configuration information for the first relay node, the second configuration information is used to copy the first data packet, and output the copied third data packet to the second relay node , And obtain the first received data packet from the fourth data packet obtained by the replication and the fifth data packet from the second relay node and output it.
  • the third configuration module 503 is used to generate and configure third configuration information for the second edge node.
  • the third configuration information is used to obtain the first configuration data packet from the first relay node and the data packet from the second relay node.
  • the second relay node is located outside the link from the first edge node to the second edge node via the first relay node.
  • the first configuration module 501, the second configuration module 502, and the third configuration module 503 implement protection and transmission of service flows.
  • the device further includes: a fourth configuration module, configured to generate and configure fourth configuration information for the second relay node, and the fourth configuration information is used to copy the second data packet from the first edge node to the
  • the first relay node outputs the fifth data packet obtained by the replication, and obtains and outputs the first received data packet from the sixth data packet obtained by the replication and the third data packet from the first relay node.
  • the first configuration information includes: a first exit segment identifier of the replication module of the first edge node and a second exit segment identifier of the replication module of the first edge node; a first exit segment of the replication module of the first edge node The identifier is used to identify the segment from the first edge node to the first relay node; the second exit segment identifier of the replication module of the first edge node is used to identify the segment from the first edge node to the second relay node segment.
  • the second configuration information includes: an entry segment identifier of the replication module of the first relay node, a first exit segment identifier of the replication module of the first relay node, and a second outlet of the replication module of the first relay node Segment identifier; the entry segment identifier of the replication module of the first relay node is used to identify the segment from the first edge node to the first relay node; the first exit segment identifier of the replication module of the first relay node is used to Identify the segment from the replication module of the first relay node to the elimination module of the first relay node; the second exit segment identifier of the replication module of the first relay node is used to identify from the first relay node to the second Segments between relay nodes;
  • the second configuration information further includes: a first entry segment identifier of the elimination module of the first relay node, a second entry segment identifier of the elimination module of the first relay node, and an exit segment identifier of the elimination module of the first relay node;
  • the first entry segment identifier of the cancellation module of the first relay node is used to identify the segment from the replication module of the first relay node to the cancellation module of the first relay node;
  • the two-entry segment identifier is used to identify the segment from the second relay node to the first relay node;
  • the exit segment identifier of the elimination module of the first relay node is used to identify the first relay node to the second edge node
  • the third configuration information includes: a first entry segment identifier of the elimination module of the second edge node and a second entry segment identifier of the elimination module of the second edge node; a first entry segment of the elimination module of the second edge node The identifier is used to identify the segment from the first relay node to the second edge node; the second entry segment identifier of the elimination module of the second edge node is used to identify the segment from the second relay node to the second edge node segment.
  • the first configuration information further includes: the first exit segment IP address of the replication module of the first edge node and the second exit segment IP address of the replication module of the first edge node; the first An egress segment IP address includes the IP address of the first edge node and the IP address of the first relay node, corresponding to the segment from the first edge node to the first relay node; the first The second egress segment IP address includes the IP address of the first edge node and the IP address of the second relay node, and corresponds to the segment from the first edge node to the second relay node.
  • the second configuration information further includes: the IP address of the entry segment of the replication module of the first relay node, the IP address of the first exit segment of the replication module of the first relay node, and the IP address of the replication module of the first relay node
  • the second exit segment IP address corresponds to the segment from the first edge node to the first relay node
  • the IP address of the first exit segment of the replication module of the first relay node includes the IP address of the first relay node
  • the IP address of the first exit segment of the replication module of the first relay node includes the IP address of the first relay node
  • the The IP address of the first exit segment of the replication module corresponds to the segment from the replication module of the first relay node to the elimination module of the first relay node
  • the IP address of the second exit segment of the replication module of the first relay node includes The IP address of the first relay node and the IP address of the second relay node, the IP address of the second exit segment of
  • the second configuration information further includes: the first entry segment IP address of the elimination module of the first relay node, the second entry segment IP address of the elimination module of the first relay node, and the exit segment of the elimination module of the first relay node IP address; the first entry segment IP address of the elimination module of the first relay node includes the IP address of the first relay node, and the first entry segment IP address of the elimination module of the first relay node corresponds to the first relay node
  • the IP address of the second entry segment of the elimination module of the first relay node includes the IP address of the second relay node and the IP of the first relay node Address, the IP address of the second entry segment of the elimination module of the first relay node corresponds to the segment from the second relay node to the first relay node;
  • the IP address of the exit segment of the elimination module of the first relay node includes The IP address of the first relay node and the IP address of the second edge node, and the IP address of
  • the third configuration information further includes: the first entry segment IP address of the elimination module of the second edge node and the second entry segment IP address of the elimination module of the second edge node; the first An entry segment IP address includes the IP address of the first relay node and the IP address of the second edge node.
  • the first entry segment IP address of the elimination module of the second edge node corresponds to the first relay node to the second edge node Between the segment; the IP address of the second entry segment of the elimination module of the second edge node includes the IP address of the second relay node and the IP address of the second edge node, and the IP of the second entry segment of the elimination module of the second edge node The address corresponds to the segment from the second relay node to the second edge node.
  • the first configuration information further includes: a first exit segment label of the replication module of the first edge node and a second exit segment label of the replication module of the first edge node; the first exit segment label of the first edge node corresponds to The segment from the first edge node to the first relay node; the second exit segment label of the first edge node corresponds to the segment from the first edge node to the second relay node.
  • the second configuration information further includes: an entry segment label of the replication module of the first relay node, a first exit segment label of the replication module of the first relay node, and a second of the replication module of the first relay node Exit segment label;
  • the entry segment label of the replication module of the first relay node corresponds to the segment from the first edge node to the first relay node;
  • the first exit segment label of the replication module of the first relay node corresponds to The segment from the replication module of the first relay node to the elimination module of the first relay node;
  • the second exit segment label of the replication module of the first relay node corresponds to the first relay node to the second relay Segment between nodes;
  • the second configuration information further includes: a first entry segment label of the elimination module of the first relay node, a second entry segment label of the elimination module of the first relay node, and an exit segment label of the elimination module of the first relay node;
  • the first entry segment label of the elimination module of the first relay node corresponds to the segment from the replication module of the first relay node to the elimination module of the first relay node; the second of the elimination module of the first relay node
  • the entry segment label corresponds to the segment from the second relay node to the first relay node;
  • the exit segment label of the elimination module of the first relay node corresponds to the segment from the first relay node to the second edge node segment.
  • the third configuration information further includes: a first entry segment label of the elimination module of the second edge node and a second entry segment label of the elimination module of the second edge node; a first entry of the elimination module of the second edge node
  • the segment label corresponds to the segment from the first relay node to the second edge node
  • the second entry segment label of the elimination module of the second edge node corresponds to the segment from the second relay node to the second edge node .
  • the fourth configuration message further includes: an entry segment identifier of the replication module of the second relay node, a first exit segment identifier of the replication module of the second relay node, and a second identifier of the replication module of the second relay node Exit segment ID;
  • the entry segment ID of the replication module of the second relay node is used to identify the segment from the first edge node to the second relay node;
  • the first exit segment ID of the replication module of the second relay node is Is used to identify the segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the second exit segment identifier of the replication module of the second relay node is used to identify from the second relay node to the first A segment between relay nodes;
  • the fourth configuration information further includes: a first entry segment identifier of the elimination module of the second relay node, a second entry segment identifier of the elimination module of the second relay node, and an exit segment identifier of the elimination module of the second relay node;
  • the first entry segment identifier of the elimination module of the second relay node is used to identify the segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the two-entry segment identifier is used to identify the segment from the first relay node to the second relay node;
  • the exit segment identifier of the elimination module of the second relay node is used to identify the second relay node to the second edge node
  • the fourth configuration information further includes: the IP address of the entry segment of the replication module of the second relay node, the IP address of the first exit segment of the replication module of the second relay node, and the IP address of the replication module of the second relay node
  • the second exit segment IP address corresponds to the segment from the first edge node to the second relay node
  • the IP address of the first exit segment of the replication module of the second relay node includes the IP address of the second relay node
  • the The IP address of the first exit segment of the replication module corresponds to the segment from the replication module of the second relay node to the elimination module of the second relay node
  • the IP address of the second exit segment of the replication module of the second relay node includes The IP address of the second relay node and the IP address of the first relay node, and the IP address of the second exit segment
  • the fourth configuration information also includes: the first entry segment IP address of the elimination module of the second relay node, the second entry segment IP address of the elimination module of the second relay node, and the exit segment of the elimination module of the second relay node IP address; the first entry segment IP address of the elimination module of the second relay node includes the IP address of the second relay node, and the first entry segment IP address of the elimination module of the second relay node corresponds to the second relay node
  • the IP address of the second entry segment of the elimination module of the second relay node includes the IP address of the second relay node, corresponding to the first relay
  • the segment between the node and the second relay node; the IP address of the exit segment of the elimination module of the second relay node includes the IP address of the second relay node and the IP address of the second edge node, and the elimination of the second relay node
  • the IP address of the exit segment of the module corresponds to the segment from the second relay node
  • the fourth configuration information further includes: an entry segment label of the replication module of the second relay node, a first exit segment label of the replication module of the second relay node, and a second of the replication module of the second relay node Exit segment label;
  • the entry segment label of the replication module of the second relay node corresponds to the segment from the first edge node to the second relay node;
  • the first exit segment label of the replication module of the second relay node corresponds to The segment from the replication module of the second relay node to the elimination module of the second relay node;
  • the second exit segment label of the replication module of the second relay node corresponds to the second relay node to the first relay Segment between nodes;
  • the fourth configuration information further includes: a first entry segment label of the elimination module of the second relay node, a second entry segment label of the elimination module of the second relay node, and an exit segment label of the elimination module of the second relay node;
  • the first entry segment label of the elimination module of the second relay node corresponds to the segment from the replication module of the second relay node to the elimination module of the second relay node; the second of the elimination module of the second relay node
  • the entry segment label corresponds to the segment from the first relay node to the second relay node; the exit segment label of the elimination module of the second relay node corresponds to the segment from the second relay node to the second edge node segment.
  • the apparatus further includes: generating and configuring fifth configuration information for the second relay node, where the fifth configuration information is used for the second data packet from the first edge node and the third from the first relay node A data packet received first is obtained from the data packet and copied, and the fifth data packet obtained by the copy is output to the first relay node and the sixth data packet obtained by the copy is output to the second edge node.
  • the second configuration information is also used to copy the acquired first received data packet, output the copied seventh data packet to the third relay node, and output the obtained copy to the fourth relay node The eighth data packet;
  • the third relay node is a node on the link between the first relay node and the second edge node, and the fourth relay node is located on the link from the first edge node to the second edge node via the third relay node Outside.
  • the device further includes: a fourth configuration module that generates and configures fourth configuration information for the second relay node, and the fourth configuration information is used to copy the second data packet from the first edge node to the first relay
  • the node outputs the fifth data packet obtained by the replication, and obtains the first received data packet from the sixth data packet obtained by the replication and the third data packet from the first relay node and copies the data packet to the third
  • the relay node sends the eleventh data packet obtained by replication, and sends the twelfth data packet obtained by replication to the fourth relay node.
  • the apparatus further includes: a seventh configuration module, configured to generate and configure seventh configuration information for the fourth relay node, and the seventh configuration information is used for the eighth data packet from the first relay node and the Obtain the first received data packet from the twelfth data packet of the second relay node and copy it, and send the thirteenth data packet obtained by the copy to the third relay node, and the data obtained from the copy
  • the fourteenth data packet and the ninth data packet from the third relay node obtain the first received data packet and send it to the second edge node.
  • the device further includes: a sixth configuration module, configured to generate and configure sixth configuration information for the third relay node, the sixth configuration information is used to copy the data packet from the first relay node, and send the copy to the fourth relay node
  • a sixth configuration module configured to generate and configure sixth configuration information for the third relay node, the sixth configuration information is used to copy the data packet from the first relay node, and send the copy to the fourth relay node
  • the twelfth data packet obtained, and the data packet received first from the data packet from the second relay node, the data packet from the fourth relay node, and the thirteenth data packet obtained by copying are sent to Sent by the second edge node;
  • the third relay node is a node on the link between the first relay node and the second edge node, and the fourth relay node is located on the link from the first edge node to the second edge node via the third relay node Outside.
  • an embodiment of the present application further provides a controller 600.
  • the controller 600 may include a memory 601 and a processor 602.
  • the memory 601 and the processor 602 are connected to each other through a bus 603; the bus 603 may be a peripheral component interconnection (PCI) bus or an extended industry standard architecture (extended industry standard (EISA) bus).
  • PCI peripheral component interconnection
  • EISA extended industry standard
  • the bus can be divided into an address bus, a data bus, and a control bus. For ease of representation, only a thick line is used in FIG. 10, but it does not mean that there is only one bus or one type of bus.
  • the above memory 601 may be random-access memory (RAM), flash memory, flash, read-only memory (ROM), erasable programmable read-only memory (erasable, programmable read only memory, EPROM ), Electrically erasable programmable read-only memory (electrically erasable programmable read only memory (EEPROM), register (register), hard disk, removable hard disk, CD-ROM or any other form of storage medium known to those skilled in the art.
  • RAM random-access memory
  • ROM read-only memory
  • ROM erasable programmable read-only memory
  • EPROM erasable programmable read only memory
  • EEPROM Electrically erasable programmable read-only memory
  • register register
  • hard disk removable hard disk
  • CD-ROM any other form of storage medium known to those skilled in the art.
  • the processor 602 may be, for example, a central processing unit (CPU), a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), or field programmable Gate array (field programmable gate array, FPGA) or other programmable logic devices, transistor logic devices, hardware components or any combination thereof. It can implement or execute various exemplary logical blocks, modules, and circuits described in conjunction with the disclosure of the present application.
  • the processor may also be a combination of computing functions, for example, including one or more microprocessor combinations, DSP and microprocessor combinations, and so on.
  • the disclosed system, device, and method may be implemented in other ways.
  • the device embodiments described above are only schematic.
  • the division of the unit is only a division of logic modules.
  • 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 implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.

Abstract

本申请实施例公开了一种业务流处理方法及装置,用于实现业务流的传输和保护。其中方法包括:为第一边缘节点生成并配置第一配置信息,第一配置信息用于复制接收到的业务流所包括的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包;为第一中继节点生成并配置第二配置信息,第二配置信息用于复制第一数据包,并向第二中继节点输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自第二中继节点的第五数据包中获取先接收到的数据包并输出;为第二边缘节点生成并配置第三配置信息,第三配置信息用于从来自第一中继节点的数据包和来自第二中继节点的数据包中获取先接收到的数据包。。

Description

一种业务流处理方法及装置
本申请要求于2018年10月31日提交中国专利局、申请号为CN 201811290209.0、发明名称为“一种业务流处理的方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请实施例涉及通信技术领域,尤其涉及一种业务流处理方法及装置。
背景技术
随着通信网络的发展,业务流的传输不仅要考虑可达性,还要考虑可靠性。目前,传输业务流的一种高可靠性网络架构通常可以包括边缘节点(edge node)和中继节点(relay node)。其中,边缘节点连接到业务流的源节点和/或目的节点,并从业务流的源节点接收业务流和/或发送业务流到业务流的目的节点;而中继节点为业务流从源节点传输到目的节点的过程中所经过的节点。从源节点到目的节点之间的路径由一条或多条路径段构成,中继节点用于将相邻的路径段连接在一起,以保证业务流的可达。从源节点到目的节点的路径可以有多条,从而起到业务保护的作用。业务流同时在多条路径中传输,只要有一条路径没有发生故障,目的节点就可以成功接收到业务流,从而保证了业务流传输的可靠性。
所以,业务流传输的关键在于如何对各个节点进行配置,以实现业务流的传输和保护。
发明内容
本申请实施例提供了一种业务流处理方法及装置,用于实现业务流的传输和保护。
第一方面,本申请实施例提供了一种业务流处理方法,该方法可以应用于控制器,控制器可以独立于以下各个节点,也可以部署于其中一个节点,例如第一边缘节点。具体包括如下步骤:为第一边缘节点生成并配置第一配置信息,为第一中继节点生成并配置第二配置信息,以及为第二边缘节点生成并配置第三配置信息。第一边缘节点可以是源节点,第二边缘节点可以是目的节点,第一中继节点在第一边缘节点和第二边缘节点之间的链路上。其中,第一配置信息用于复制第一边缘节点接收到的业务流所包括的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包。第二配置信息用于第一中继节点复制第一数据包,并向第二中继节点输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自第二中继节点的第五数据包中获取数据包并输出。第三配置信息用于从来自第一中继节点的数据包和来自第二中继节点的数据包中获取数据包。第二中继节点位于第一边缘节点经第一中继节点到第二边缘节点的链路之外。本申请实施例通过为第一边缘节点生成并配置第一配置信息,为第一中继节点生成并配置第二配置信息,以及为第二边缘节点生成并配置第三配置信息,实现对业务流的保护和输出。
其中,第一边缘节点可以通过接入电路(attachment circuit,AC)接收来自第一用户边缘(customer edge,CE)节点的业务流,业务流所包括的数据包可以是一个或多个。为了区分业务流包括的多个数据包,第一边缘节点可以为每个数据包分配一个序号,数据包序号的连续性体现数据包内容的连续性。例如数据包1表示业务流中的第一个数据包(首 个数据包);数据包2表示业务流中的第二个数据包;数据包3表示业务流的第三个数据包等。
在实际应用中,执行上述复制步骤的功能模块可以是复制模块,执行上述获取数据包步骤的功能模块可以是消除模块。
第一边缘节点的复制模块对业务流中的数据包进行复制时,可以按照序号由小到大或由大到小的顺序逐个进行复制。第一中继节点或下文其他中继节点的复制模块在对接收到的数据包复制时,可以按照数据包的接收顺序逐个对每个数据包进行复制。数据包被复制之后,不仅内容相同,序号也不变。
对于第一中继节点、第二边缘节点或下文中其他中继节点的消除模块而言,获取数据包可以包括两种情况:一种情况是消除模块获取到两个或两个以上序号相同的数据包,那么可以从中选择其中一个数据包输出;另外一种情况是,由于数据包在传输的过程中发生丢包,导致消除模块只接收到某个序号的一个数据包,那么可以将该数据包发送出去。对于前一种情况,如果消除模块先后接收到两个或两个以上的序号相同的数据包,则可以将最先接收到的一个数据包输出;如果消除模块同时接收到两个或两个以上序号相同的数据包,那么可以从中任选一个输出。
在具体实现时,可以在消除模块中为每个数据包都分别设置一个标志位,一个标志位标识一个序号的数据包是否被输出。例如,若数据包1的标志位为1,则表示序号为1的数据包已被输出;若数据包1的标志位为0,则表示序号为1的数据包没有被输出。这样,如果消除模块接收到某个序号的数据包,可以查询该序号数据包对应的标志位,如果对应的标志位为0,说明该消除模块之前没有发送过该序号的数据包,所以可以发送该数据包;如果对应的标志位为1,说明该消除模块之前发送过该序号的数据包,所以可以删除该数据包。如果消除模块同时接收到序号相同的多个数据包,且该序号数据包对应的标志位为0,则可从序号相同的多个数据包中任选其中一个输出。如果消除模块同时接收到序号相同的多个数据包,且该序号数据包对应的标志位为1,则可以将同时接收到的序号相同的多个数据包删除。
可选的,方法还包括:为第二中继节点生成并配置第四配置信息,第四配置信息用于复制来自第一边缘节点的第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并输出。也就是说,作为其中一种可能的实现方式,可以为第二中继节点配置复制模块和消除模块,以实现对业务流的保护和传输。
为了能够实现对业务流的传输和保护,各个节点的配置信息可以包括对应模块的入口信息和出口信息。入口信息可以例如为入口段信息和/或入口端口信息。入口段信息至少包括入口段标识,可选的,还可以包括入口段互联网协议(internet protocol,IP)地址和/或入口段标签。其中入口段IP地址包括入口段的始节点IP地址和终节点IP地址。入口端口信息可以包括入口端口标识。出口信息可以例如为出口段信息和/或出口端口信息。出口段信息至少包括出口段标识,可选的,还可以包括出口段IP地址和/或出口段标签。其中出口段IP地址包括出口段的始节点IP地址和终节点IP地址。出口端口信息可以包括出口端口标识。其中,段是指节点之间的链路和节点内部的连接。段标识为段的标识,段具有方向,例如从第一边缘节点到第一中继节点之间的段和从第一中继节点到第一边缘节点之间的段不是同一个段,相应的,二者对应的段标识也不同。在本申请实施例中,段标识可以 是32位无符号整数。段标签是指与段标识对应的标签,可以是范围为[16,1048575]内的整数。段IP地址包括段的始节点的IP地址和终节点的IP地址,始节点IP地址和终节点IP地址可以是32位的IPv4地址或者是128位的IPv6地址。
所以,可选的,第一配置信息包括:第一边缘节点的复制模块的第一出口段标识和第一边缘节点的复制模块的第二出口段标识;第一边缘节点的复制模块的第一出口段标识用于标识从第一边缘节点到第一中继节点之间的段;第一边缘节点的复制模块的第二出口段标识用于标识从第一边缘节点到第二中继节点之间的段。
可选的,第二配置信息包括:第一中继节点的复制模块的入口段标识、第一中继节点的复制模块的第一出口段标识和第一中继节点的复制模块的第二出口段标识;第一中继节点的复制模块的入口段标识用于标识从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段标识用于标识从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段标识用于标识从第一中继节点到第二中继节点之间的段。
第二配置信息还包括:第一中继节点的消除模块的第一入口段标识、第一中继节点的消除模块的第二入口段标识和第一中继节点的消除模块的出口段标识;第一中继节点的消除模块的第一入口段标识用于标识从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段标识用于标识从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段标识用于标识从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息包括:第二边缘节点的消除模块的第一入口段标识和第二边缘节点的消除模块的第二入口段标识;第二边缘节点的消除模块的第一入口段标识用于标识从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段标识用于标识从第二中继节点到第二边缘节点之间的段。
可选的,第一配置信息还包括:第一边缘节点的复制模块的第一出口段IP地址和第一边缘节点的复制模块的第二出口段IP地址;第一边缘节点的复制模块的第一出口段IP地址包括第一边缘节点的IP地址和第一中继节点的IP地址,对应于从第一边缘节点到第一中继节点之间的段;第一边缘节点的复制模块的第二出口段IP地址包括第一边缘节点的IP地址和第二中继节点的IP地址,第一边缘节点的复制模块的第二出口段IP地址对应于从第一边缘节点到第二中继节点之间的段。
可选的,第二配置信息还包括:第一中继节点的复制模块的入口段IP地址、第一中继节点的复制模块的第一出口段IP地址和第一中继节点的复制模块的第二出口段IP地址;第一中继节点的复制模块的入口段IP地址包括第一边缘节点的IP地址和第一中继节点的IP地址,对应于从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段IP地址包括第一中继节点的IP地址,第一中继节点的复制模块的第一出口段IP地址对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段IP地址包括第一中继节点的IP地址和第二中继节点的IP地址,第一中继节点的复制模块的第二出口段IP地址对应于从第一中继节点到第二中继节点之间的段。
第二配置信息还包括:第一中继节点的消除模块的第一入口段IP地址、第一中继节点的消除模块的第二入口段IP地址和第一中继节点的消除模块的出口段IP地址;第一 中继节点的消除模块的第一入口段IP地址包括第一中继节点的IP地址,第一中继节点的消除模块的第一入口段IP地址对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址和第一中继节点的IP地址,第一中继节点的消除模块的第二入口段IP地址对应于从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段IP地址包括第一中继节点的IP地址和第二边缘节点的IP地址,第一中继节点的消除模块的出口段IP地址对应于从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息还包括:第二边缘节点的消除模块的第一入口段IP地址和第二边缘节点的消除模块的第二入口段IP地址;第二边缘节点的消除模块的第一入口段IP地址包括第一中继节点的IP地址和第二边缘节点的IP地址,第二边缘节点的消除模块的第一入口段IP地址对应于从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址和第二边缘节点的IP地址,第二边缘节点的消除模块的第二入口段IP地址对应于从第二中继节点到第二边缘节点之间的段。
可选的,第一配置信息还包括:第一边缘节点的复制模块的第一出口段标签和第一边缘节点的复制模块的第二出口段标签;第一边缘节点的第一出口段标签对应于从第一边缘节点到第一中继节点之间的段;第一边缘节点的第二出口段标签对应于从第一边缘节点到第二中继节点的段。
可选的,第二配置信息还包括:第一中继节点的复制模块的入口段标签、第一中继节点的复制模块的第一出口段标签和第一中继节点的复制模块的第二出口段标签;第一中继节点的复制模块的入口段标签对应于从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段标签对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段标签对应于从第一中继节点到第二中继节点之间的段。
第二配置信息还包括:第一中继节点的消除模块的第一入口段标签、第一中继节点的消除模块的第二入口段标签和第一中继节点的消除模块的出口段标签;第一中继节点的消除模块的第一入口段标签对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段标签对应于从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段标签对应于从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息还包括:第二边缘节点的消除模块的第一入口段标签和第二边缘节点的消除模块的第二入口段标签;第二边缘节点的消除模块的第一入口段标签对应于从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段标签对应于从第二中继节点到第二边缘节点之间的段。
可选的,第四配置消息还包括:第二中继节点的复制模块的入口段标识、第二中继节点的复制模块的第一出口段标识和第二中继节点的复制模块的第二出口段标识;第二中继节点的复制模块的入口段标识用于标识从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段标识用于标识从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段标识用于标识从第二中继节点到第一中继节点之间的段。
第四配置信息还包括:第二中继节点的消除模块的第一入口段标识、第二中继节点的 消除模块的第二入口段标识和第二中继节点的消除模块的出口段标识;第二中继节点的消除模块的第一入口段标识用于标识从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段标识用于标识从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段标识用于标识从第二中继节点到第二边缘节点之间的段。
可选的,第四配置信息还包括:第二中继节点的复制模块的入口段IP地址、第二中继节点的复制模块的第一出口段IP地址和第二中继节点的复制模块的第二出口段IP地址;第二中继节点的复制模块的入口段IP地址包括第一边缘节点的IP地址和第二中继节点的IP地址,第二中继节点的复制模块的入口段IP地址对应于从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段IP地址包括第二中继节点的IP地址,第二中继节点的复制模块的第一出口段IP地址对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段IP地址包括第二中继节点的IP地址和第一中继节点的IP地址,第二中继节点的复制模块的第二出口段IP地址对应于从第二中继节点到第一中继节点之间的段。
第四配置信息还包括:第二中继节点的消除模块的第一入口段IP地址、第二中继节点的消除模块的第二入口段IP地址和第二中继节点的消除模块的出口段IP地址;第二中继节点的消除模块的第一入口段IP地址包括第二中继节点的IP地址,第二中继节点的消除模块的第一入口段IP地址对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址,第二中继节点的消除模块的第二入口段IP地址对应于从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段IP地址包括第二中继节点的IP地址和第二边缘节点的IP地址,第二中继节点的消除模块的出口段IP地址对应于从第二中继节点到第二边缘节点之间的段。
可选的,第四配置信息还包括:第二中继节点的复制模块的入口段标签、第二中继节点的复制模块的第一出口段标签和第二中继节点的复制模块的第二出口段标签;第二中继节点的复制模块的入口段标签对应于从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段标签对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段标签对应于从第二中继节点到第一中继节点之间的段。
第四配置信息还包括:第二中继节点的消除模块的第一入口段标签、第二中继节点的消除模块的第二入口段标签和第二中继节点的消除模块的出口段标签;第二中继节点的消除模块的第一入口段标签对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段标签对应于从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段标签对应于从第二中继节点到第二边缘节点之间的段。
可选的,方法还包括:为第二中继节点生成并配置第五配置信息,第五配置信息用于从来自于第一边缘节点的第二数据包和来自第一中继节点的第三数据包中获取数据包并复制,向第一中继节点输出复制所获得的第五数据包以及向第二边缘节点输出复制所获得的第六数据包。也就是说,作为另外一种可以实现的方式,可以为第二中继节点配置消除模块和复制模块。
在本申请实施例中,中继节点的个数可以是两个或两个以上。若中继节点的个数至少为4个时,可选的,第二配置信息还用于对获取的数据包进行复制,向第三中继节点输出复制所获得的第七数据包,以及向第四中继节点输出复制所获得的第八数据包。方法还包括:为第三中继节点生成并配置第六配置信息,第六配置信息用于来自第一中继节点的第七数据包和来自第二中继节点的数据包中获取数据包并复制,向第四中继节点输出复制所获得的第九数据包,以及从复制所获得的第十数据包和来自第四中继节点的数据包中获取数据包并向第二边缘节点发送。其中,第三中继节点为第一中继节点和第二边缘节点之间链路上的节点,第四中继节点位于第一边缘节点经第三中继节点到第二边缘节点的链路之外。在实际应用中,若中继节点的个数为至少四个时,作为其中一种可能的实现方式,可以为第一中继节点配置两个复制模块和一个消除模块,并且,可以为第三中继节点配置两个消除模块和一个复制模块。
可选的,方法还包括:为第二中继节点生成并配置第四配置信息,第四配置信息用于复制来自第一边缘节点的第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并复制数据包,向第三中继节点发送复制所获得的第十一数据包,向第四中继节点发送复制所获得的第十二数据包。在实际应用中,作为其中一种可能的实现方式,可以为第二中继节点配置两个复制模块和一个消除模块。
可选的,方法还包括:为第四中继节点生成并配置第七配置信息,第七配置信息用于从来自第一中继节点的第八数据包和来自第二中继节点的第十二数据包中获取先接收到的数据包并复制,向第三中继节点发送复制所获得的第十三数据包,以及从复制所获得的第十四数据包和来自第三中继节点的第九数据包中获取先接收到的数据包并向第二边缘节点发送。在实际应用中,作为其中一种可能的实现方式,可以为第四中继节点配置两个消除模块和一个复制模块。
可选的,第二配置信息还用于向第四中继节点发送复制第一数据包所获得的第十一数据包,以及将获取的先接收到的数据包并向第三中继节点输出;方法还包括:为第三中继节点生成并配置第六配置信息,第六配置信息用于复制来自第一中继节点的数据包,向第四中继节点发送复制所获得的第十二数据包,以及从来自第二中继节点的数据包、来自第四中继节点的数据包和复制所获得的第十三数据包中获取先接收到的数据包并向第二边缘节点发送。其中,第三中继节点为第一中继节点和第二边缘节点之间链路上的节点,第四中继节点位于第一边缘节点经第三中继节点到第二边缘节点的链路之外。在实际应用中,作为其中一种可能的实现方式,可以为第一中继节点配置一个复制模块和一个消除模块,并为第三中继节点配置一个复制模块和一个消除模块。
第二方面,本申请实施例还提供了一种业务流处理装置,该装置可以应用于控制器,具体包括:第一配置模块,用于为第一边缘节点生成并配置第一配置信息,第一配置信息用于复制接收到的业务流所包括的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包;第二配置模块,用于为第一中继节点生成并配置第二配置信息,第二配置信息用于复制第一数据包,并向第二中继节点输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自第二中继节点的第五数据包中获取先接收到的数据包并输出;第三配置模块,用于为第二边缘节点生成并配置第三配置信息,第三配置信息用于从来自第一中继节点的数据包和来自第二中继节点的数据 包中获取先接收到的数据包,第二中继节点位于第一边缘节点经第一中继节点到第二边缘节点的链路之外。
可选的,装置还包括:第四配置模块,用于为第二中继节点生成并配置第四配置信息,第四配置信息用于复制来自第一边缘节点的数据包第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并输出。
可选的,第一配置信息包括:第一边缘节点的复制模块的第一出口段标识和第一边缘节点的复制模块的第二出口段标识;第一边缘节点的复制模块的第一出口段标识用于标识从第一边缘节点到第一中继节点之间的段;第一边缘节点的复制模块的第二出口段标识用于标识从第一边缘节点到第二中继节点之间的段。
可选的,第二配置信息包括:第一中继节点的复制模块的入口段标识、第一中继节点的复制模块的第一出口段标识和第一中继节点的复制模块的第二出口段标识;第一中继节点的复制模块的入口段标识用于标识从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段标识用于标识从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段标识用于标识从第一中继节点到第二中继节点之间的段;
第二配置信息还包括:第一中继节点的消除模块的第一入口段标识、第一中继节点的消除模块的第二入口段标识和第一中继节点的消除模块的出口段标识;第一中继节点的消除模块的第一入口段标识用于标识从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段标识用于标识从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段标识用于标识从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息包括:第二边缘节点的消除模块的第一入口段标识和第二边缘节点的消除模块的第二入口段标识;第二边缘节点的消除模块的第一入口段标识用于标识从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段标识用于标识从第二中继节点到第二边缘节点之间的段。
可选的,第一配置信息还包括:第一边缘节点的复制模块的第一出口段IP地址和第一边缘节点的复制模块的第二出口段IP地址;第一边缘节点的复制模块的第一出口段IP地址包括第一边缘节点的IP地址和第一中继节点的IP地址,对应于从第一边缘节点到第一中继节点之间的段;第一边缘节点的复制模块的第二出口段IP地址包括第一边缘节点的IP地址和第二中继节点的IP地址,对应于从第一边缘节点到第二中继节点之间的段。
可选的,第二配置信息还包括:第一中继节点的复制模块的入口段IP地址、第一中继节点的复制模块的第一出口段IP地址和第一中继节点的复制模块的第二出口段IP地址;第一中继节点的复制模块的入口段IP地址包括第一边缘节点的IP地址和第一中继节点的IP地址,第一中继节点的复制模块的入口段IP地址对应于从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段IP地址包括第一中继节点的IP地址,第一中继节点的复制模块的第一出口段IP地址对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段IP地址包括第一中继节点的IP地址和第二中继节点的IP地址,第一中继节点的复制模块的第二出口段IP地址对应于从第一中继节点到第二中继节点之间的段;
第二配置信息还包括:第一中继节点的消除模块的第一入口段IP地址、第一中继节点的消除模块的第二入口段IP地址和第一中继节点的消除模块的出口段IP地址;第一中继节点的消除模块的第一入口段IP地址包括第一中继节点的IP地址,第一中继节点的消除模块的第一入口段IP地址对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址和第一中继节点的IP地址,第一中继节点的消除模块的第二入口段IP地址对应于从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段IP地址包括第一中继节点的IP地址和第二边缘节点的IP地址,第一中继节点的消除模块的出口段IP地址对应于从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息还包括:第二边缘节点的消除模块的第一入口段IP地址和第二边缘节点的消除模块的第二入口段IP地址;第二边缘节点的消除模块的第一入口段IP地址包括第一中继节点的IP地址和第二边缘节点的IP地址,第二边缘节点的消除模块的第一入口段IP地址对应于从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址和第二边缘节点的IP地址,第二边缘节点的消除模块的第二入口段IP地址对应于从第二中继节点到第二边缘节点之间的段。
可选的,第一配置信息还包括:第一边缘节点的复制模块的第一出口段标签和第一边缘节点的复制模块的第二出口段标签;第一边缘节点的第一出口段标签对应于从第一边缘节点到第一中继节点之间的段;第一边缘节点的第二出口段标签对应于从第一边缘节点到第二中继节点的段。
可选的,第二配置信息还包括:第一中继节点的复制模块的入口段标签、第一中继节点的复制模块的第一出口段标签和第一中继节点的复制模块的第二出口段标签;第一中继节点的复制模块的入口段标签对应于从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段标签对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段标签对应于从第一中继节点到第二中继节点之间的段;
第二配置信息还包括:第一中继节点的消除模块的第一入口段标签、第一中继节点的消除模块的第二入口段标签和第一中继节点的消除模块的出口段标签;第一中继节点的消除模块的第一入口段标签对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段标签对应于从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段标签对应于从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息还包括:第二边缘节点的消除模块的第一入口段标签和第二边缘节点的消除模块的第二入口段标签;第二边缘节点的消除模块的第一入口段标签对应于从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段标签对应于从第二中继节点到第二边缘节点之间的段。
可选的,第四配置消息还包括:第二中继节点的复制模块的入口段标识、第二中继节点的复制模块的第一出口段标识和第二中继节点的复制模块的第二出口段标识;第二中继节点的复制模块的入口段标识用于标识从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段标识用于标识从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段标识用于标识从第二 中继节点到第一中继节点之间的段;
第四配置信息还包括:第二中继节点的消除模块的第一入口段标识、第二中继节点的消除模块的第二入口段标识和第二中继节点的消除模块的出口段标识;第二中继节点的消除模块的第一入口段标识用于标识从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段标识用于标识从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段标识用于标识从第二中继节点到第二边缘节点之间的段。
可选的,第四配置信息还包括:第二中继节点的复制模块的入口段IP地址、第二中继节点的复制模块的第一出口段IP地址和第二中继节点的复制模块的第二出口段IP地址;第二中继节点的复制模块的入口段IP地址包括第一边缘节点的IP地址和第二中继节点的IP地址,第二中继节点的复制模块的入口段IP地址对应于从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段IP地址包括第二中继节点的IP地址,第二中继节点的复制模块的第一出口段IP地址对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段IP地址包括第二中继节点的IP地址和第一中继节点的IP地址,第二中继节点的复制模块的第二出口段IP地址对应于从第二中继节点到第一中继节点之间的段;
第四配置信息还包括:第二中继节点的消除模块的第一入口段IP地址、第二中继节点的消除模块的第二入口段IP地址和第二中继节点的消除模块的出口段IP地址;第二中继节点的消除模块的第一入口段IP地址包括第二中继节点的IP地址,第二中继节点的消除模块的第一入口段IP地址对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址,对应于从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段IP地址包括第二中继节点的IP地址和第二边缘节点的IP地址,第二中继节点的消除模块的出口段IP地址对应于从第二中继节点到第二边缘节点之间的段。
可选的,第四配置信息还包括:第二中继节点的复制模块的入口段标签、第二中继节点的复制模块的第一出口段标签和第二中继节点的复制模块的第二出口段标签;第二中继节点的复制模块的入口段标签对应于从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段标签对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段标签对应于从第二中继节点到第一中继节点之间的段;
第四配置信息还包括:第二中继节点的消除模块的第一入口段标签、第二中继节点的消除模块的第二入口段标签和第二中继节点的消除模块的出口段标签;第二中继节点的消除模块的第一入口段标签对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段标签对应于从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段标签对应于从第二中继节点到第二边缘节点之间的段。
可选的,装置还包括:为第二中继节点生成并配置第五配置信息,第五配置信息用于从来自于第一边缘节点的第二数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并复制,向第一中继节点输出复制所获得的第五数据包以及向第二边缘节点输出复制所获得的第六数据包。
可选的,第二配置信息还用于对获取的先接收到的数据包进行复制,向第三中继节点输出复制所获得的第七数据包,以及向第四中继节点输出复制所获得的第八数据包;
装置还包括:第六配置模块,用于为第三中继节点生成并配置第六配置信息,第六配置信息用于来自第一中继节点的第七数据包和来自第二中继节点的数据包中获取先接收到的数据包并复制,向第四中继节点输出复制所获得的第九数据包,以及从复制所获得的第十数据包和来自第四中继节点的数据包中获取先接收到的数据包并向第二边缘节点发送;
其中,第三中继节点为第一中继节点和第二边缘节点之间链路上的节点,第四中继节点位于第一边缘节点经第三中继节点到第二边缘节点的链路之外。
可选的,装置还包括:第四配置模块,为第二中继节点生成并配置第四配置信息,第四配置信息用于复制来自第一边缘节点的第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并复制数据包,向第三中继节点发送复制所获得的第十一数据包,向第四中继节点发送复制所获得的第十二数据包。
可选的,装置还包括:第七配置模块,用于为第四中继节点生成并配置第七配置信息,第七配置信息用于从来自第一中继节点的第八数据包和来自第二中继节点的第十二数据包中获取先接收到的数据包先接收到的数据包并复制,向第三中继节点发送复制所获得的第十三数据包,以及从复制所获得的第十四数据包和来自第三中继节点的第九数据包中获取先接收到的数据包并向第二边缘节点发送。
可选的,第二配置信息还用于向第四中继节点发送复制第一数据包所获得的第十一数据包,以及将获取的先接收到的数据包输出至第三中继节点;
装置还包括:第六配置模块,用于为第三中继节点生成并配置第六配置信息,第六配置信息用于复制来自第一中继节点的数据包,向第四中继节点发送复制所获得的第十二数据包,以及从来自第二中继节点的数据包、来自第四中继节点的数据包和复制所获得的第十三数据包中获取先接收到的数据包并向第二边缘节点发送;
其中,第三中继节点为第一中继节点和第二边缘节点之间链路上的节点,第四中继节点位于第一边缘节点经第三中继节点到第二边缘节点的链路之外。
附图说明
图1为本申请实施例提供的一种业务流处理方法的流程示意图;
图2为本申请实施例提供的一种可能的多个节点的架构示意图;
图3(a)为图2所示实施例中多节点的一种可能的功能模块架构示意图;
图3(b)为图2所示实施例中多节点的另一种可能的功能模块架构示意图;
图4为本申请实施例提供的另外一种可能的多个节点的架构示意图;
图5为图4所示实施例中Edge A’和Edge B’的一种可能的功能模块的架构示意图;
图6(a)为图4所示实施例中Relay C’和Relay E’的一种可能的功能模块架构示意图;
图6(b)为图4所示实施例中Relay C’和Relay E’的另一种可能的功能模块架构示意图;
图7(a)为图4所示实施例中Relay D’和Relay F’的一种可能的功能模块架构示意 图;
图7(b)为图4所示实施例中Relay D’和Relay F’的另一种可能的功能模块架构示意图;
图8为图4所示实施例中多节点的一种可能的功能模块架构示意图;
图9为本申请实施例提供的一种业务流处理装置的结构示意图;
图10为本申请实施例提供的一种控制器的结构示意图。
具体实施方式
在本申请实施例中,业务流是指某个业务的数据流。业务流包括数据包。数据包对于以太网技术来说就是以太帧,对于互联网协议(internet protocol,IP)技术来说就是IP分组,对于多协议标签交换(multi-protocol label switching,MPLS)技术来说就是MPLS分组。在目前的高可靠性网络传输技术中,没有给出如何为传输业务流的各个节点进行配置的技术方案,以实现对业务流的传输和保护。
例如,确定性网络(deterministic networking,Detnet)技术是一种为实时应用业务流提供极低丢包率和有界延时的技术。Detnet架构包括两种不同类型的节点,即边缘节点和中继节点。其中,边缘节点为Detnet业务层的源节点和/或目的节点,而中继节点为从源节点到目的节点之间的Detnet路径上的节点。从源节点到目的节点之间的网络路径由路径段构成,中继节点用于将相邻的路径段连接在一起,并且提供业务保护功能。
Detnet架构定义了节点中可以实现的功能,包括分组复制功能(packet replication function,PRF)、分组消除功能(packet elimination function,PEF)和分组排序功能(packet ordering function,POF),它们统一称为PREOF。其中,分组复制功能是指将分组进行复制并通过一个或多个段(segment)分别转发到一个或多个下一跳节点。分组消除功能是指从来自一个或多个段的分组中消除冗余的分组,从而避免网络上过多的分组洪泛或者将重复的分组发送到Detnet域外。分组排序功能是指将乱序的分组进行重新排序。
虽然Detnet架构定义了节点中可以实现的功能,但是并未规定在具体某个节点中配置哪个或哪些功能来实现对业务流的传输和保护。
为了解决上述技术问题,本申请实施例提供了一种业务流处理方法、装置及设备,目的在于实现业务流的传输和保护。
下面结合附图来介绍本申请实施例提供的业务流处理方法、装置及设备。
参见图1,本申请实施例提供的业务流处理方法包括如下步骤:
S101:获取多个节点的配置信息。
在本申请实施例中,多个节点包括边缘节点和中继节点,其中边缘节点包括第一边缘节点和第二边缘节点。边缘节点可以通过接入电路与用户边缘节点连接。例如第一边缘节点与第一用户边缘节点连接,第二边缘节点与第二用户边缘节点连接。第一用户边缘节点将业务流传输给第一边缘节点,第一边缘节点可以将业务流适配封装为一个个的数据包,以便第一边缘节点进行传输。
第一边缘节点和第二边缘节点之间有至少两条路径,每条路径上都有至少一个中继节点。数据包从第一边缘节点开始同时经过至少两条路径到达第二边缘节点,只要有一条路径没有发生故障,第二边缘节点就可以接收到数据包,从而保证了数据传输的可靠性。第二边缘节点接收到数据包之后可以将不重复的数据包重新解封装并组装为业务流的形式, 并将业务流发送给第二用户边缘节点。
参见图2,该图为其中一种可能的多个节点的架构示意图。在该图中,包括第一边缘节点(Edge A)、第二边缘节点(Edge B)和两个中继节点,即第一中继节点(Relay C)和第二中继节点(Relay D)。其中,Edge A、Relay C和Relay D之间相互连接,Relay C和Relay D均与Edge B连接。
Edge A与CE1通过AC1连接,以使Edge A能够接收来自CE1的业务流,并将业务流适配封装为一个一个数据包;Edge B与CE2通过AC2连接,以使Edge B能够将接收到的数据包组装为业务流传输给CE2。
在图2中,数据包从Edge A到Edge B可以一共有四条路径,它们分别是:
路径1:Edge A→Relay C→Edge B;
路径2:Edge A→Relay C→Relay D→Edge B;
路径3:Edge A→Relay D→Edge B;
路径4:Edge A→Relay D→Relay C→Edge B。
CE1发送的业务流可以从Edge A经过这四条路径中传输到Edge B,从而到达CE2。只要有任何一条路径没有发生故障,就可以保证CE2接收到业务流。为了确保Edge A的数据包可以从四条路径经过,可以为第一边缘节点、第二边缘节点、第一中继节点和第二中继节点生成对应的配置信息,以配置相应的功能模块。
对于Edge A而言,可以为其生成第一配置信息,第一配置信息用于复制接收到的业务流所包括的数据包,并向Relay C输出复制所获得的第一数据包以及向Relay D输出复制所获得的第二数据包。也就是说,第一配置信息用于Edge A配置复制模块,该复制模块能够使得Edge A将接收到的来自CE1的业务流所包括的数据包进行复制,得到第一数据包和第二数据包,并向Relay C发送第一数据包,向Relay D发送第二数据包。其中,接收到的业务流所包括的数据包可以是一个,也可以是多个。
对于Relay C而言,可以为其生成第二配置信息,第二配置信息用于复制第一数据包,并向Relay D输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自所述Relay D的数据包中获取数据包并向Edge B发送。可选的,获取的数据包可以是Relay C从复制所获得的第四数据包和来自Relay D的数据包中先接收到的数据包。也就是说,第二配置信息用于Relay C配置复制模块和消除模块。其中,复制模块能够使得Relay C将接收到的第一数据包进行复制,得到第三数据包和第四数据包,并向Relay D发送第三数据包;消除模块能够使得Relay C从第四数据包和来自Relay D的数据包(也就是下文提到的第五数据包)中获取先接收到的数据包并向Edge B发送。如果Relay C先接收到第四数据包,则向Edge B发送第四数据包;如果Relay C先接收到第五数据包,则向Edge B发送第五数据包。
对于Relay D而言,可以为其生成第四配置信息。其中,第四配置信息用于复制来自于所述Edge A的第二数据包,并向Relay C输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自所述Relay C的第三数据包中获取数据包并向Edge B发送。可选的,获取的数据包可以是从复制所获得的第六数据包和来自所述Relay C的第三数据包中获取先接收到的数据包。也就是说,第四配置信息用于Relay D配置复制模块和消除模块。其中,Relay D的复制模块能够使得Relay D将接收到的第二数据包进行复制,得到第五数据包和第六数据包,并向Relay C发送第五数据包。Relay D的消除模块能够使得Relay D 从复制所获得的第六数据包和来自所述Relay C的第三数据包中获取先接收到的数据包并向Edge B发送,后接收到的可以被删除。在本申请实施例中,Relay D可以按照数据包的接收顺序对数据包进行获取,即获取首先接收到的数据包。如果Relay D先接收到第六数据包,后接收到第三数据包,那么就向Edge B发送第六数据包;如果Relay D先接收到第三数据包,后接收到第六数据包,那么就向Edge B发送第三数据包。
对于Edge B而言,为了避免网络上过多的洪泛或者将重复的发送到域外,可以为其生成第三配置信息,第三配置信息用于从接收到的来自Relay C的数据包和来自所述Relay D的数据包中获取数据包并输出。可选的,获取的数据包可以是从接收到的来自Relay C的数据包和来自所述Relay D的数据包中获取先接收到的数据包。也就是说,第三配置信息用于Edge B配置消除模块,该模块能够使得Edge B从接收到的来自所述Relay C的数据包和来自所述Relay D的数据包中获取先接收到的数据包并可以向CE2发送。例如,如果来自所述Relay C的数据包为第四数据包,来自Relay D的数据包为第六数据包,且Edge B先接收到第四数据包,后接收到第六数据包,那么可以删除第六数据包,并向CE2发送第四数据包。
基于以上分析,参见图3(a),该图为图2所示实施例中多节点的一种可能的功能模块架构示意图。在图3(a)中,Edge A可以配置复制模块(以下简称Rep)101,Relay C可以配置Rep 102和消除模块(以下简称Elm)103,Relay D可以配置Rep 104和Elm 105,Edge B可以配置Elm 106。其中,Rep 101分别与Rep 102以及Rep 104连接,Rep 102分别与Elm 103和Elm 105连接,Rep 104分别与Elm 103和Elm 105连接,Elm 103和Elm 105均与Elm 106连接。
Rep 101用于将接收到的数据包进行复制,得到第一数据包和第二数据包,并向Rep102发送第一数据包,向Rep 104发送第二数据包。Rep 102对第一数据包进行复制,得到第三数据包和第四数据包,并向Elm 105发送第三数据包,向Elm 103发送第四数据包。Rep 104对第二数据包进行复制,得到第五数据包和第六数据包,并向Elm 103发送第五数据包,向Elm 105发送第六数据包。Elm 103从第四数据包和第五数据包中获取其中先接收到的数据包并向Elm 106发送。Elm 105从第三数据包和第六数据包中获取其中先接收到的数据包并向Elm 106发送。Elm 106从来自Elm 103的数据包和Elm 105的数据包中获取其中先接收到的数据包并向CE2发送。
需要说明的是,如前文所提,业务流可以包括一个或多个数据包。为了识别不同的数据包,可以采用序号来标识业务流的各个数据包。具体的,Edge A可以按照由小到大或由大到小的顺序来标识一条业务流中的数据包,数据包序号的连续性体现数据包内容的连续性。例如数据包1表示业务流中的第一个数据包(首个数据包);数据包2表示业务流中的第二个数据包;数据包3表示业务流的第三个数据包等。在Edge A的复制模块对业务流中的数据包进行复制时,可以按照序号由小到大或由大到小的顺序逐个进行复制。例如,Edge A对业务流包括的数据包1、数据包2和数据包3进行复制,即先对数据包1进行复制,再对数据包2进行复制,最后对数据包3进行复制。数据包被复制之后,不仅内容相同,序号也不变。例如,数据包1被进行复制之后所获得的两个或两个以上的数据包均为数据包1,数据包2被进行复制之后所获得的两个或两个以上的数据包均为数据包2。所以,如果业务流中包括多个数据包,那么复制得到的第一数据包和第二数据包也均分别包括多个。例如,如果业务流中包括数据包1、数据包2和数据包3,那么复制得到的第一 数据包也包括数据包1、数据包2和数据包3,复制得到的第二数据包中也包括数据包1、数据包2和数据包3。
在本申请实施例中,中继节点的复制模块在对数据包进行复制时,可以按照数据包的接收顺序逐个对每个数据包进行复制。例如,Relay C的复制模块按照先后顺序接收到数据包1、数据包2和数据包3,则可以按照该顺序对各个数据包进行复制。如果数据包在传输的过程中发生乱序,那么仍然可以按照接收的先后顺序进行复制。例如Relay C的复制模块按照先后顺序接收到数据包1、数据包3和数据包2,那么可以按照该顺序对各个数据包进行复制。
对于消除模块而言,有两种情况。一种情况是消除模块获取到两个或两个以上序号相同的数据包,可以从中选择一个数据包发送出去。另外一种情况是,由于数据包在传输的过程中发生丢包,导致消除模块只接收到某个序号的一个数据包,那么可以将该数据包发送出去。对于前一种情况,如果消除模块先后接收到两个或两个以上的序号相同的数据包,则可以将最先接收到的一个数据包输出;如果消除模块同时接收到两个或两个以上序号相同的数据包,那么可以从中任选一个输出。
例如,第四数据包包括数据包1,第五数据包也包括数据包1,那么Relay C的消除模块选择先接收到的数据包1发送出去。如果这两个数据包1同时接收到,那么可以任选其中一个数据包1输出。
具体实现时,可以在消除模块中为每个数据包都分别设置一个标志位,一个标志位标识一个序号的数据包是否被发送。例如,若数据包1的标志位为1,则表示序号为1的数据包已被发送;若数据包1的标志位为0,则表示序号为1的数据包没有被发送。
这样,如果消除模块接收到某个序号的数据包,可以查询该序号数据包对应的标志位,如果对应的标志位为0,说明该消除模块之前没有发送过该序号的数据包,所以可以发送该数据包;如果对应的标志位为1,说明该消除模块之前发送过该序号的数据包,所以可以删除该数据包。
为了能够让数据包按照如图3(a)所示的流向传输,各个节点的配置信息可以包括对应模块的入口信息和出口信息。
入口信息可以例如为入口段信息和/或入口端口信息。入口段信息至少包括入口段标识,可选的,还可以包括入口段IP地址和/或入口段标签。其中入口段IP地址包括入口段的始节点IP地址和终节点IP地址。入口端口信息可以包括入口端口标识。
出口信息可以例如为出口段信息和/或出口端口信息。出口段信息至少包括出口段标识,可选的,还可以包括出口段IP地址和/或出口段标签。其中出口段IP地址包括出口段的始节点IP地址和终节点IP地址。出口端口信息可以包括出口端口标识。
在本申请实施例中,入口段标识和出口段标识可以是32位无符号整数,始节点IP地址和终节点IP地址可以是32位的IPv4地址或者是128位的IPv6地址,本文仅以IPv4为例加以说明,入口段标签和出口段标签可以是范围为[16,1048575]内的整数。
在介绍各个节点的入口段信息和出口段信息之前,首先介绍一下段和与段相关的概念。
在本申请实施例中,节点之间的链路和节点内部的连接可以称为段,段标识为段的标识。段具有方向,例如从Edge A到Relay C之间的段和从Relay C到Edge A之间的段不是同一个段,相应的,二者对应的段标识也不同。
以图2和图3(a)为例,从Edge A到Relay C之间的段的段标识为“1001”,从Relay C到Edge B之间的段的段标识为“1002”,从Relay C到Relay D之间的段的段标识为“1003”,从Relay D到Relay C之间的段的段标识为“1004”,从Edge A到Relay D之间的段的段标识为“1005”,从Relay D到Edge B之间的段的段标识为“1006”。上述段标识“1001”至“1006”均为节点之间的段的标识。节点内部的段标识例如包括Relay C中从Rep102到Elm 103之间的段的段标识“2001”,以及Relay D中从Rep 104到Elm 105之间的段的段标识“2002”。
在本申请实施例中,段标签是指与段标识对应的标签。以图2和图3(a)为例,从Edge A到Relay C之间的段的段标签为“501”,从Relay C到Edge B之间的段的段标签为“502”,从Relay C到Relay D之间的段的段标签为“503”,从Relay D到Relay C之间的段的段标签为“504”,从Edge A到Relay D之间的段的段标签为“505”,从Relay D到Edge B之间的段的段标签为“506”。上述段标签“501”至“506”均为节点之间的段标签。节点内部的段标签例如包括Relay C中从Rep 102到Elm 103之间的段的段标签“20”,以及Relay D中从Rep 104到Elm 105之间的段的段标签“21”。
此外,各个节点还可以具有IP地址。以图2和图3(a)为例,Edge A的IP地址为10.0.0.1,Edge B的IP地址为10.0.0.2,Relay C的IP地址为10.0.0.3,Relay D的IP地址为10.0.0.4。
那么,Edge A的配置信息,即第一配置信息,也可以视为Rep 101的配置信息,可以包括:出口段标识“1001”和出口段标识“1005”。可选的,第一配置信息还可以包括:与出口段标识“1001”对应的出口段IP地址10.0.0.1(始节点IP地址)和10.0.0.3(终节点IP地址),以及与出口段标识“1005”对应的出口段IP地址10.0.0.1(始节点IP地址)和10.0.0.4(终节点IP地址)。和/或,第一配置信息还可以包括:与出口段标识“1001”对应的段标签“501”和与出口段标识“1005”对应的段标签“505”。
Relay C的配置信息,即第二配置信息,包括Rep 102的配置信息和Elm 103的配置信息。
其中,Rep 102的配置信息包括:入口段标识“1001”以及出口段标识“2001”和出口段标识“1003”。可选的,Rep 102的配置信息还可以包括:与入口段标识“1001”对应的段IP地址10.0.0.1(始节点IP地址)和10.0.0.3(终节点IP地址),与出口段标识“2001”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.3(终节点IP地址),以及出口段标识“1003”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.4(终节点IP地址),。和/或,Rep 102的配置信息还可以包括:与入口段标识“1001”对应的段标签“501”,与出口段标识“2001”对应的段标签“20”,以及与出口段标识“1003”对应的段标签“503”。
Elm 103的配置信息包括:入口段标识“2001”、入口段标识“1004”以及出口段标识“1002”。可选的,Elm 103的配置信息还可以包括:与入口段标识“2001”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.3(终节点IP地址),与入口段标识“1004”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.3(终节点IP地址),以及出口段标识“1002”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.2(终节点IP地址)。和/或,Elm 103的配置信息还可以包括:与入口段标识“2001”对应的段标签“20”,与入口段标识“1004”对应的段标签“504”,以及与出口段标识“1002”对应的段标签“502”。
Relay D的配置信息,即第四配置信息,包括Rep 104的配置信息和Elm 105的配置信息。
其中,Rep 104的配置信息包括:入口段标识“1005”以及出口段标识“2002”和出口段标识“1004”。可选的,Rep 104的配置信息还可以包括:与入口段标识“1005”对应的段IP地址10.0.0.1(始节点IP地址)和10.0.0.4(终节点IP地址),与出口段标识“2002”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.4(终节点IP地址),以及出口段标识“1004”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.3(终节点IP地址)。和/或,Rep 104的配置信息还可以包括:与入口段标识“1005”对应的段标签“505”,与出口段标识“2002”对应的段标签“21”,以及与出口段标识“1004”对应的段标签“504”。
Elm 105的配置信息包括:入口段标识“2002”、入口段标识“1003”以及出口段标识“1006”。可选的,Elm 105的配置信息还可以包括:与入口段标识“2002”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.4(终节点IP地址),与入口段标识“1003”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.4(终节点IP地址),以及出口段标识“1006”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.2(终节点IP地址)。和/或,Elm 105的配置信息还可以包括:与入口段标识“2002”对应的段标签“21”,与入口段标识“1003”对应的段标签“503”,以及与出口段标识“1006”对应的段标签“506”。
Edge B的配置信息,即第三配置信息,也可以视为Elm 106的配置信息,可以包括:入口段标识“1002”和入口段标识“1006”。可选的,第三配置信息还可以包括:与入口段标识“1002”对应的入口段IP地址10.0.0.3(始节点IP地址)和10.0.0.2(终节点IP地址),以及与入口段标识“1006”对应的入口段IP地址10.0.0.4(始节点IP地址)和10.0.0.2(终节点IP地址)。和/或,第三配置信息还可以包括:与入口段标识“1002”对应的段标签“502”和与入口段标识“1006”对应的段标签“506”。
当然,可以理解的是,上述节点中包括的各个模块以及各个模块的组成并不构成对本申请的限定,本领域技术人员可以根据实际情况自行设计。
例如,对于Relay D而言,可以为其生成第五配置信息。第五配置信息用于从来自于所述Edge A的第二数据包和来自所述Relay C的第三数据包中获取先接收到的数据包进行复制,并向所述Relay C输出复制所获得的第五数据包以及向所述Edge B输出复制所获得的第六数据包。也就是说,第五配置信息用于Relay D配置消除模块和复制模块。其中,Relay D的消除模块能够使得Relay D从来自于所述Edge A的第二数据包和来自所述Relay C的第三数据包中获取先接收到的数据包;Relay D的复制模块,用于将获取得到的数据包进行复制,得到第五数据包和第六数据包,并向Relay C发送第五数据包,向Edge B发送第六数据包。
具体的,参见图3(b),Edge A可以配置Rep 201,Edge B可以配置Elm 206,Relay C可以配置Rep 202和Elm 203,Relay D可以配置Elm 204和Rep 205。其中,Rep 201、Rep202以及Elm 204之间相互连接,Elm 203、Rep 205和Elm 206之间相互连接,Rep 202还与Elm 203连接,Elm 204还与Rep 205连接。
其中,Rep 201用于将接收到的数据包进行复制,得到第一数据包和第二数据包,并向Rep 202发送第一数据包,向Elm 204发送第二数据包。Rep 202对第一数据包进行复制,得到第三数据包和第四数据包,并向Elm 204发送第三数据包,向Elm 203发送第四数据包。Elm 204从第二数据包和第三数据包中获取其中先接收到的数据包并向Rep 205发送。Rep 205对来自Elm 204的数据包进行复制,得到第五数据包和第六数据包,并向Elm 203发送第五数据包,向Elm 206发送第六数据包。Elm 203从第四数据包和第五数据 包中获取其中先接收到的数据包并向Elm 206发送。Elm 206从来自Elm 203的数据包和Elm 205的数据包中获取其中先接收到的数据包并向CE2发送。
相应的,Edge A、Relay C、Relay D和Edge B四个节点之间的段的段标识和段标签请参见上文,此处不再赘述。节点内部的段标识例如包括Relay C中从Rep 202到Elm 203之间的段的标识“3001”,以及Relay D中从Elm 204到Rep 205到之间的段的段标识“3002”。节点内部的段标签例如包括Relay C中从Rep 202到Elm 203之间的段标签“31”,以及Relay D中从Elm 204到Rep 205到之间的段标签“32”。
由于Edge A中的Rep 201配置信息与上文中Rep 101的配置信息相同,Edge B中Elm206的配置信息与上文中Elm 106的配置信息相同,所以此处不再赘述。
Relay C中Rep 202的配置信息和Elm 203的配置信息如下:
Rep 202的配置信息包括:入口段标识“1001”以及出口段标识“3001”和出口段标识“1003”。可选的,Rep 202的配置信息还可以包括:与入口段标识“1001”对应的段IP地址10.0.0.1(始节点IP地址)和10.0.0.3(终节点IP地址),与出口段标识“3001”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.3(终节点IP地址),以及出口段标识“1003”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.4(终节点IP地址)。和/或,Rep 202的配置信息还可以包括:与入口段标识“1001”对应的段标签“501”,与出口段标识“3001”对应的段标签“31”,以及与出口段标识“1003”对应的段标签“503”。
Elm 203的配置信息包括:入口段标识“3001”、入口段标识“1004”以及出口段标识“1002”。可选的,Elm 203的配置信息还可以包括:与入口段标识“3001”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.3(终节点IP地址),与入口段标识“1004”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.3(终节点IP地址),以及出口段标识“1002”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.2(终节点IP地址)。和/或,Elm 203的配置信息还可以包括:与入口段标识“3001”对应的段标签“31”,与入口段标识“1004”对应的段标签“504”,以及与出口段标识“1002”对应的段标签“502”。
Relay D中Rep 204的配置信息和Elm 205的配置信息如下:
其中,Elm 204的配置信息包括:入口段标识“1005”、入口段标识“1003”以及出口段标识“3002”。可选的,Elm 204的配置信息还可以包括:与入口段标识“1005”对应的段IP地址10.0.0.1(始节点IP地址)和10.0.0.4(终节点IP地址),与入口段标识“1003”对应的段IP地址10.0.0.3(始节点IP地址)和10.0.0.4(终节点IP地址),与出口段标识“3002”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.4(终节点IP地址)。和/或,Elm 204的配置信息还可以包括:与入口段标识“1005”对应的段标签“505”,与入口段标识“1003”对应的段标签“503”以及与出口段标识“3002”对应的段标签“32”。
Rep 105的配置信息包括:入口段标识“3002”、入口段标识“1004”以及出口段标识“1006”。可选的,Rep 105的配置信息还可以包括:与入口段标识“3002”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.4(终节点IP地址),与入口段标识“1004”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.3(终节点IP地址),以及出口段标识“1006”对应的段IP地址10.0.0.4(始节点IP地址)和10.0.0.2(终节点IP地址)。和/或,Rep 105的配置信息还可以包括:与入口段标识“3002”对应的段标签“32”,与出口段标识“1004”对应的段标签“504”,以及与出口段标识“1006”对应的段标签“506”。
除了入口信息和出口信息以外,各个节点对应的配置信息中还可以包括以下一项或多 项:流标识、模块标识和节点标识等。
其中,流标识是指数据包的标识。在本申请实施例中,流标识可以是32位无符号整数。对于Edge A接收到的每一个业务流分别对应一个流标识,各个节点的针对同一个业务流的配置信息中包括的流标识相同。例如,第一配置信息、第二配置信息、第三配置信息、第四配置信息和第五配置信息中的流标识均为“101”。
模块标识是指节点中功能模块的标识。例如复制模块的标识为“PRF”,消除模块的标识为“PEF”,排序模块的标识为“POF”。
节点标识为节点的标识。节点的标识可以包括节点的IP地址、节点的标号等。例如,第一中继节点的节点标识可以包括“10.0.0.3”、“Relay C”、“node C”等。
上述配置信息可以以配置文件的形式进行存储,该配置文件例如可以是可扩展标记语言(extensible markup language,XML)配置文件。
本申请实施例在获取到多个节点的配置信息之后,可以执行S102:
S102:向多个节点配置相应的配置信息。
在本申请实施例中,S102和S202的执行主体是控制器,该控制器可以独立于各个节点,也可以部署于其中一个节点,例如第一边缘节点。
如果控制器独立于各个节点,那么控制器可以通过向各个节点发送对应的配置信息来实现为各个节点配置相应配置信息的目的,即控制器向第一边缘节点发送第一配置信息,向第二中继节点发送第二配置信息,向第二边缘节点发送第三配置信息,向第四边缘节点发送第四配置信息或第五配置信息。具体的,控制器可以通过网络配置协议(network configuration protocol,Netconf)、Restconf协议、路径计算原件通信协议(path computation element communication protocol,PCEP)、边界网关协议(border gateway protocol,BGP),或者Openflow等协议向各个节点发送对应的配置信息。其中,RESTCONF协议用于提供遵循表述性状态转移(representational state transfer,REST)原理的超文本传输协议(hypertext transfer protocol,HTTP)接口,并与NETCONF数据存储模型兼容。可选的,控制器可以向各个节点分别发送对应的远程过程调用指令(remote procedure call,RPC),在该指令中包含各个节点对应的配置信息。
如果控制器部署于第一边缘节点,那么第一边缘节点可以直接根据第一配置信息进行配置,并且向其他节点发送对应的配置信息来实现为各个节点配置相应配置信息的目的,即第一边缘节点向第二中继节点发送第二配置信息,向第二边缘节点发送第三配置信息,向第四边缘节点发送第四配置信息或第五配置信息。
可选的,基于资源预留协议-信流工程(Resource Reservation Protocol-Traffic Engineering,RSVP-TE),第一边缘节点可以向其他节点发送路径(Path)消息,路径消息中携带其他节点对应的配置信息。具体的,路径消息中包含显式路径对象(Explicit Route Objects,EROs),其具有如表1所示的消息格式。该消息格式中可以包括PREOF模块类型(即上文提到的模块标识)、流标识(flow ID)、字段长度(length)和TLV字段,TLV字段中可以包括模块标识对应功能模块的入口信息和出口信息。
表1
Figure PCTCN2019113506-appb-000001
以Relay C包括Rep 102和Elm 103为例,表2示出了Relay C对应的路径消息的消息格式。
表2
Figure PCTCN2019113506-appb-000002
在本申请实施例中,多个节点在获取到对应的配置信息之后,可以根据对应的配置信息配置相应的模块。
例如,第一边缘节点在获取到第一配置信息后,可以配置复制模块,第一边缘节点的复制模块用于复制接收到的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包。
第一中继节点在获取到第二配置信息后,可以配置复制模块和消除模块。第一中继节点的复制模块用于复制所述第一数据包,并向所述第二中继节点输出复制所获得的第三数据包。第一中继节点的消除模块用于从复制所获得的第四数据包和来自所述第二中继节点的数据包中获取先接收到的数据包并向第二边缘节点发送。
第二边缘节点在获取到第三配置信息后,可以配置消除模块。第二边缘节点的消除模块用于从接收到的来自所述第一中继节点的数据包和来自所述第二中继节点的数据包中获取先接收到的数据包并输出。
第二中继节点在获取到第四配置信息后,可以配置复制模块和消除模块。第二中继节点的复制模块用于复制来自于所述第一边缘节点的第二数据包,并向第一中继节点输出复制所获得的第五数据包。第二中继节点的消除模块用于从复制所获得的第六数据包和来自所述第一中继节点的第三数据包中获取先接收到的数据包并向所述第二边缘节点发送。
或者,第二中继节点在获取到第五配置信息后,可以配置消除模块和复制模块。第二中继节点的消除模块用于从来自于所述第一边缘节点的第二数据包和来自所述第一中继节点的第三数据包中获取先接收到的数据包。第二中继节点的复制模块用于对该一个数据包进行复制,并向所述第一中继节点输出复制所获得的第五数据包以及向所述第二边缘节点输出复制所获得的第六数据包。
作为一种可能实现的方式,各个节点可以基于各自配置信息中包括的入口信息和出口信息生成转发面的转发表项,以实现相应的转发功能。
一个节点在转发面的转发表项可以包括该节点包括的功能模块的标识,以及该功能模块的入标签和出标签。其中,如果配置信息中没有段标签,则转发面可以根据段标识和段标签之间的映射关系来确定与段标识对应的段标签。具体的,与入口段标识对应的段标签为入标签,与出口段标识对应的段标签为出标签。
例如,参见表3,该表为Relay C在转发面的转发表项。
表3
Figure PCTCN2019113506-appb-000003
为了实现节点在转发面对数据包的转发,每个功能模块在输出数据包时,需要在数据包中打上出标签(可以是增加标签或者替换标签)。这样下一个节点在接收到数据包之后,可以解析到该数据包在上个节点打上的出标签,对于本节点而言即为入标签,然后根据入标签查询转发表项,确定对应的出标签。
例如,如果Relay C的复制模块接收到一个具有标签为501的数据包,查找表3,确定对于与功能模块的标识为Rep的功能模块,对应的出标签为31和503,且,即说明需要对该具有标签501的数据包进行复制,并将复制得到的两个数据包分别打上出标签31和出标签503,并通过对应的链路发送出去。而Relay C的消除模块接收到被Relay C的复制模块打上了出标签31的数据包之后,查找表3,确定对于功能模块的标识为Elm的功能模块,对应的出标签为502。所以Relay C的消除模块在接收到被上个节点打上了出标签504的数据包之后,从两个数据包中获取一个并通过出标签为502的链路输出。
此外,需要说明的是,在本申请实施例中提到的“链路”可以是物理连接,也可以是虚拟连接。
在上述实施例中,中继节点的个数是两个,在实际应用中,中继节点的个数可以多于两个。下面以中继节点的个数为四个为例进行详细介绍。由于中继节点的个数为四个的实施例和与为两个的实施例是类似的,所以一些相同或相似之处不再赘述,参考上文即可。
参见图4,该图为其中一种可能的多个节点的架构示意图。在该图中,包括第一边缘节点Edge A’、第二边缘节点Edge B’和四个中继节点,这四个中继节点分别包括第一中继节点Relay C’、第二中继节点Relay D’、第三中继节点Relay E’和第四中继节点Relay F’。其中,Edge A’、Relay C’和Relay D’之间相互连接,Relay C’、Relay D’、Relay E’和Relay F’之间相互连接,Relay E’、Relay F’和Edge B’之间相互连接。
边缘节点可以通过接入电路与用户边缘节点连接。具体的,Edge A’与CE1通过AC1连接,以使Edge A’能够接收来自CE1的业务流;Edge B’与CE2通过AC2连接,以使Edge B’能够将接收到的数据包整合的业务流传输给CE2。
图4中,从Edge A’到Edge B’一共有十六条路径,它们分别是:
路径1:Edge A’→Relay C’→Relay E’→Edge B’;
路径2:Edge A’→Relay C’→Relay E’→Relay F’→Edge B’;
路径3:Edge A’→Relay C’→Relay F’→Edge B’;
路径4:Edge A’→Relay C’→Relay F’→Relay E’→Edge B’;
路径5:Edge A’→Relay C’→Relay D’→Relay E’→Edge B’;
路径6:Edge A’→Relay C’→Relay D’→Relay F’→Edge B’;
路径7:Edge A’→Relay C’→Relay D’→Relay F’→Relay E’→Edge B’;
路径8:Edge A’→Relay C’→Relay D’→Relay E’→Relay F’→Edge B’;
路径9:Edge A’→Relay D’→Relay F’→Edge B’;
路径10:Edge A’→Relay D’→Relay F’→Relay E’→Edge B’;
路径11:Edge A’→Relay D’→Relay E’→Edge B’;
路径12:Edge A’→Relay D’→Relay E’→Relay F’→Edge B’;
路径13:Edge A’→Relay D’→Relay C’→Relay E’→Edge B’;
路径14:Edge A’→Relay D’→Relay C’→Relay E’→Relay F’→Edge B’;
路径15:Edge A’→Relay D’→Relay C’→Relay F’→Edge B’;
路径16:Edge A’→Relay D’→Relay C’→Relay F’→Relay E’→Edge B’。
CE1发送的业务流可以同时从Edge A’经过这十六条路径中传输到Edge B’,从而到达CE2。只要有一条路径没有发生故障,就可以保证CE2接收到业务流。为了确保业务流中的数据包可以从这十六条路径经过,可以为第一边缘节点Edge A’、第二边缘节点Edge B’、第一中继节点Relay C’、第二中继节点Relay D’、第三中继节点Relay E’和第四中继节点Relay F’生成对应的配置信息,以配置相应的模块。
对于Edge A’而言,可以为其生成第一配置信息,第一配置信息用于复制接收到的业务流包括的数据包,并向Relay C’输出复制所获得的第一数据包以及向Relay D’输出复制所获得的第二数据包。也就是说,第一配置信息用于Edge A’配置复制模块,该模块能够使得Edge A’将接收到的来自CE1的业务流中的数据包进行复制,得到第一数据包和第二数据包,并向Relay C’发送第一数据包,向Relay D’发送第二数据包。
对于Relay C’而言,可以为其生成第二配置信息,第二配置信息用于复制所述第一数据包,并向Relay D’输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自Relay D’的数据包(也就是下文中的第五数据包)中获取先接收到的数据包进行复制,并向Relay E’输出复制所获得的第七数据包,向Relay F’输出复制所获得的第八数据包。也就是说,第二配置信息用于Relay C’配置两个复制模块和一个消除模块。Relay C’的第一个(如图6(a)或图8中的Rep 302)复制模块用于复制第一数据包,得到第三数据包和第四数据包,并向Relay D’发送第三数据包。Relay C’的消除模块用于从第四数据包和来自Relay D’的第五数据包中获取先接收到的数据包。Relay C’的第二个复制模块(如图6(a)或图8中的Rep 304)用于将该先接收到的数据包进行复制,得到第七数据包和第八数据包,并向Relay E’发送第七数据包,向Relay F’发送第八数据包。
对于Relay E’而言,可以为Relay E’生成第六配置信息,所述第六配置信息用于从所述第七数据包和来自Relay D’的数据包(也就是下文中的第十一数据包)中获取先接收到的数据包进行复制,并向Relay F’输出复制所获得的第九数据包,以及从复制所获得的第十数据包和来自所述Relay F’的数据包(也就是下文中的第十三数据包)中获取先接收到的数据包并向Edge B’发送。也就是说,第六配置信息用于Relay E’配置两个消除模块和先接收到的复制模块。Relay E’的第一个消除模块(如图6(a)或图8中的Elm 305)用于从所述第七数据包和第十一数据包中获取先接收到的数据包,Relay E’的复制模块用于将该先接收到的数据包进行复制,得到第九数据包和第十数据包,并向Relay F’发送第九数据包。Relay E’的第二个消除模块(如图6(a)或图8中的Elm 307)用于从第十数据包和第十三数据包中获取先接收到的数据包,并向Edge B’发送该数据包。
对于Relay D’而言,可以为其生成第四配置信息,第四配置信息用于复制来自于Edge A’的第二数据包,并向Relay C’输出复制所获得的第五数据包,并从复制所获得的第六数 据包和来自所述Relay C’的第三数据包中获取先接收到的数据包进行复制,向Relay E’发送复制所获得的第十一数据包,以及向Relay F’发送复制所获得的第十二数据包。也就是说,第四配置信息用于Relay D’配置两个复制模块和一个消除模块。Relay D’的第一个复制模块(如图7(a)或图8中的Rep 308)用于复制第二数据包,得到第五数据包和第六数据包,并向Relay C’发送第五数据包。Relay D’的消除模块用于从第六数据包和来自Relay D’的第三数据包中获取先接收到的数据包,Relay D’的第二个复制模块(如图7(a)或图8中的Rep 310)用于将该先接收到的数据包进行复制,得到第十一数据包和第十二数据包,并向Relay E’发送第十一数据包,向Relay F’发送第十二数据包。
对于Relay F’而言,可以为其生成第七配置信息,第七配置信息用于从第八数据包和第十二数据包中获取先接收到的数据包进行复制,并向Relay E’发送复制所获得的第十三数据包,以及从复制所获得的第十四数据包和来自Relay E’的第九数据包中获取先接收到的数据包并向Edge B’发送。也就是说,第七配置信息用于Relay F’配置两个消除模块和一个复制模块。Relay F’的第一个消除模块(如图7(a)或图8中的Elm 311)用于从所述第八数据包和第十二数据包中获取先接收到的数据包,Relay F’的复制模块用于将该先接收到的数据包进行复制,得到第十三数据包和第十四数据包,并向Relay E’发送第十三数据包。Relay F’的第二个消除模块(如图7(a)或图8中的Elm 313)用于从第十四数据包和第九数据包中获取先接收到的数据包,并向Edge B’发送该数据包。
对于Edge B’而言,可以为其生成第三配置信息,第三配置信息用于从接收到的来自所述Relay E’的数据包和来自Relay F’的数据包中获取先接收到的数据包并可以发送给CE2。也就是说,第三配置信息用于Edge B’配置消除模块,该模块能够使得Edge B’从接收到的来自所述Relay E’的数据包和来自所述Relay F’的数据包中获取先接收到的数据包并向CE2发送。
基于以上分析,参见图5,在该图中,Edge A’可以配置Rep 301,Edge B’可以配置Elm314。Rep 301用于接收来自CE1的数据包,并将该数据包进行复制,得到第一数据包和第二数据包,第一数据包向Relay C’发送,第二数据包向Relay D’发送。Elm 314用于接收来自Relay E’的数据包和来自Relay F’的数据包,并可以从中获取先接收到的向CE2发送。
关于Relay C’、Relay D’、Relay E’和Relay F’中包括的模块的个数和连接方式可以有多种实现方式。
对于Relay C’,如图6(a)所示,在其中一种可能实现的方式中,Relay C’可以配置Rep 302、Elm 303和Rep 304。其中,Rep 302用于接收并复制第一数据包,得到第三数据包和第四数据包,并向Relay D’发送第三数据包,向Elm 303发送第四数据包。Elm 303从第四数据包和来自Relay D’的第五数据包中获取先接收到的数据包并向Rep 304发送,Rep 304将接收到的数据包进行复制,得到第七数据包和第八数据包,并向Relay E’发送第七数据包,并向Relay F’发送第八数据包。
相应的,Relay E’可以配置Elm 305、Rep 306和Elm 307。其中,Elm 305用于从第七数据包和来自Relay D’的第十一数据包中获取先接收到的数据包并向Rep 306发送。Rep306将接收到的数据包进行复制,得到第九数据包和第十数据包,并向Relay F’发送第九数据包,并向Elm 307发送第十数据包。
如图6(b)所示,在另外一种可能实现的方式中,Relay C’可以配置Rep 402和Elm 403,其中,Rep 402用于接收并复制第一数据包,得到第三数据包、第四数据包和第八数据包, 并向Relay D’发送第三数据包,向Elm 403发送第四数据包以及向Relay F’发送第八数据包。Elm 403从第四数据包和来自Relay D’的第五数据包中获取先接收到的数据包并向Relay E’发送。
相应的,Relay E’可以配置Rep 404和Elm 405,其中,Rep 404用于将来自于来自Relay C’的数据包进行复制,得到第九数据包和第十数据包,并向Relay F’发送第九数据包,向Elm 405发送第十数据包。Elm 405从第十数据包、来自Relay D’的第十一数据包以及来自Relay F’的第十三数据包中获取先接收到的数据包并向Edge B’发送。
对于Relay D’,如图7(a),在其中一种可能实现的方式中,Relay D’可以配置Rep 308、Elm 309和Rep 310。其中,Rep 308将第二数据包进行复制,得到第五数据包和第六数据包,并向Relay C’发送第五数据包,并向Elm 309发送第六数据包。Elm 309从第六数据包和来自Relay C’的第三数据包中获取先接收到的数据包并向Rep 310发送。Rep 310将来自Elm 309的数据包进行复制,得到第十一数据包和第十二数据包,并向Relay E’发送第十一数据包,并向Relay F’发送第十二数据包。
相应的,Relay F’可以配置Elm 311、Rep 312和Elm 313。其中,Elm 311用于从第十二数据包和来自Relay C’的第八数据包中获取先接收到的数据包并向Rep 312发送。Rep312将接收到的数据包进行复制,得到第十三数据包和第十四数据包,并向Relay E’发送第十三数据包,并向Elm 313发送第十四数据包。Elm 313用于从第十四数据包和来自Relay E’的第九数据包中获取先接收到的数据包并向Edge B’发送。
如图7(b),在另外一种可能实现的方式中,Relay D’可以配置Rep 408和Elm 409。其中,Rep 408用于复制来自Edge A’的第二数据包,得到第五数据包、第六数据包和第十一数据包,并向Relay C’发送第五数据包,向Elm 409发送第六数据包,以及向Relay E’发送第十一数据包。Elm 409用于从第六数据包和来自Relay C’的第三数据包中获取先接收到的数据包并向Relay F’发送。
相应的,Relay F’可以配置Rep 410和Elm 411。其中,Rep 410用于复制来自Relay D’的数据包,得到第十三数据包和第十四数据包,并向Relay E’发送第十三数据包,向Elm 411发送第十四数据包。Elm 411从第十四数据包、来自Relay C’的第八数据包和来自Relay E’的第九数据包中获取先接收到的数据包并向Edge B’发送。
当然,图6(a)、图6(b)、图7(a)和图7(b)中所示的各个节点包括的模块以及各个模块之间的连接方式并不构成对本申请技术方案的限定,本领域技术人员还可以根据实际情况自行设计。
此外,在本申请实施例中,图6(a)和图6(b),与图7(a)和图7(b)之间可以任意组合。下面以图5、图6(a)和图7(a)组合而成的架构,即图8所示的架构为例进行详细介绍。
具体的,在图8中,Rep 301分别与Rep 302和Rep 308连接,Rep 302分别与Elm 303和Elm 309连接,Rep 308分别与Elm 303和Elm 309连接,Elm 303与Rep 304连接,Rep304分别与Elm 305和Elm 311连接,Elm 309与Rep 310连接,Rep 310分别与Elm 305和Elm 311连接,Elm 305与Rep 306连接,Rep 306分别与Elm 307和Elm 313连接,Elm311与Rep 312连接,Rep 312分别与Elm 307和Elm 313连接,Elm 307和Elm 313均与Elm 314连接。
Rep 301接收来自CE1的数据包,并将该数据包进行复制,得到第一数据包和第二数 据包,然后向Rep 302发送第一数据包,并向Rep 308发送第二数据包。Rep 302将第一数据包进行复制,得到第三数据包和第四数据包,然后向Elm 309发送第三数据包,并向Elm303发送第四数据包。Rep 308将第二数据包进行复制,得到第五数据包和第六数据包,并向Elm 303发送第五数据包,并向Elm 309发送第六数据包。Elm 303从第四数据包和第五数据包中获取先接收到的数据包并向Rep 304发送。Rep 304将接收到的数据包进行复制,得到第七数据包和第八数据包,并向Elm 305发送第七数据包,并向Elm 311发送第八数据包。Elm 309从第三数据包和第六数据包中获取先接收到的数据包并向Rep 310发送。Rep 310将接收到的数据包进行复制,得到第十一数据包和第十二数据包,并向Elm 305发送第十一数据包,并向Elm 311发送第十二数据包。Elm 305从第七数据包和第十一数据包中获取先接收到的数据包并向Rep 306发送。Rep 306将接收到的数据包进行复制,得到第九数据包和第十数据包,并向Elm 313发送第九数据包,并向Elm 307发送第十数据包。Elm 311从第八数据包和第十二数据包中获取先接收到的数据包并向Rep 312发送。Rep 312将接收到的数据包进行复制,得到第十三数据包和第十四数据包,并向Elm 307发送第十三数据包,并向Elm 313发送第十四数据包。Elm 307从第十数据包和第十三数据包中获取先接收到的数据包并向Elm 314发送。Elm 313从第九数据包和第十四数据包中获取先接收到的数据包并向Elm 314发送。Elm 314从来自Elm 307的数据包和Elm 313的数据包中获取先接收到的数据包并向CE2发送。
在本实施例中,节点之间的链路和节点内部各个模块之间的连接可以用段表示,不同的段具有不同的段标识。
以图8为例,从Edge A’到Relay C’的段的段标识为“4001”,从Edge A’到Relay D’的段的段标识为“4002”,从Relay C’到Relay D’的段的段标识为“4003”,从Relay D’到Relay C’的段的段标识为“4004”,从Relay C’到Relay F’的段的段标识为“4005”,从Relay D’到Relay E’的段的段标识为“4006”,从Relay C’到Relay E’的段的段标识为“4007”,从Relay D’到Relay F’的段标识为“4008”,从Relay E’到Relay F’的段标识为“4009”,从Relay F’到Relay E’的段的段标识为“4010”,从Relay E’到Edge B’的段的段标识为“4011”,从Relay F’到Edge B’的段的段标识为“4012”。上述段标识“4001”至“4012”均为节点之间的段的标识。
节点内部的段标识例如包括:
Relay C’中从Rep 302到Elm 303的段的段标识“5001”、从Elm 303到Rep 304的段的段标识“5002”;Relay E’中从Elm 305到Rep 306的段的段标识“5003”、从Rep 306到Elm 307的段的段标识“5004”;Relay D’中从Rep 308到Elm 309的段的段标识“5005”、从Elm 309到Rep 310的段的段标识“5006”;Relay F’中从Elm 311到Rep 312的段的段标识“5007”、从Rep 312到Elm 313的段的段标识“5008”。
在本申请实施例中,节点之间和节点内部各个模块之间的段还可以具有段标签。以图8为例,从Edge A’到Relay C’之间的段的段标签为“601”,从Edge A’到Relay D’之间的段的段标签为“602”,从Relay C’到Relay D’之间的段的段标签为“603”,从Relay D’到Relay C’之间的段的段标签为“604”,从Relay C’到Relay F’之间的段的段标签为“605”,从Relay D’到Relay E’之间的段的段标签为“606”,从Relay C’到Relay E’之间的段的段标签为“607”,从Relay D’到Relay F’之间的段的段标签为“608”,从Relay E’到Relay F’之间的段的段标签为“609”,从Relay F’到Relay E’之间的段的段标签为“610”,从Relay E’到 Edge B’之间的段的段标签为“611”,从Relay F’到Edge B’之间的段的段标签为“612”。上述段标签“601”至“612”均为节点之间的段标签。
节点内部的段标签例如包括:Relay C’中从Rep 302到Elm 303的段的段标签“41”、从Elm 303到Rep 304的段的段标签“42”;Relay E’中从Elm 305到Rep 306的段的段标签“43”、从Rep 306到Elm 307的段标签“44”;Relay D’中从Rep 308到Elm 309的段标签“45”、从Elm 309到Rep 310的段的段标签“46”;Relay F’中从Elm 311到Rep 312的段的段标签“47”、从Rep 312到Elm 313的段的段标签“48”。
此外,各个节点还可以具有IP地址。以图4为例,Edge A’的IP地址为10.1.0.1,Edge B’的IP地址为10.1.0.2,Relay C’的IP地址为10.1.0.3,Relay D’的IP地址为10.1.0.4,Relay E’的IP地址为10.1.0.5;Relay F’的IP地址为10.1.0.6。
那么,Edge A’的配置信息,即第一配置信息,也可以视为Rep 201的配置信息,可以包括:出口段标识“4001”和出口段标识“4002”。可选的,第一配置信息还可以包括:与出口段标识“4001”对应的出口段IP地址10.1.0.1(始节点IP地址)和10.1.0.3(终节点IP地址),以及与出口段标识“4002”对应的出口段IP地址10.1.0.1(始节点IP地址)和10.1.0.4(终节点IP地址)。和/或,第一配置信息还可以包括:与出口段标识“4001”对应的段标签“601”和与出口段标识“4002”对应的段标签“602”。
Relay C’的配置信息,即第二配置信息,包括Rep 302的配置信息、Elm 303的配置信息和Rep 304的配置信息。
其中Rep 302的配置信息包括:入口段标识“4001”、出口段标识“4003”和出口段标识“5001”。可选的,Rep 302的配置信息还可以包括:与入口段标识“4001”对应的入口段IP地址10.1.0.1(始节点IP地址)和10.1.0.3(终节点IP地址),与出口段标识“4003”对应的出口段IP地址10.1.0.3(始节点IP地址)和10.1.0.4(终节点IP地址),以及与出口段标识“5001”对应的出口段IP地址10.1.0.3(始节点IP地址)和10.1.0.3(终节点IP地址)。和/或,Rep 302的配置信息还可以包括:与入口段标识“4001”对应的段标签“601”、与出口段标识“4003”对应的段标签“603”和与出口段标识“5001”对应的段标签“41”。
Elm 303的配置信息包括:入口段标识“5001”、入口段标识“4004”和出口段标识“5002”。可选的,Elm 303的配置信息还可以包括:与入口段标识“5001”对应的入口段IP地址10.1.0.3(始节点IP地址)和10.1.0.3(终节点IP地址),与入口段标识“4004”对应的入口段IP地址10.1.0.4(始节点IP地址)和10.1.0.3(终节点IP地址),以及与出口段标识“5002”对应的出口段IP地址10.1.0.3(始节点IP地址)和10.1.0.3(终节点IP地址)。和/或,Elm 303的配置信息还可以包括:与入口段标识“5001”对应的段标签“41”、与入口段标识“4004”对应的段标签“604”,以及与出口段标识“5002”对应的段标签“42”。
Rep 304的配置信息包括:入口段标识“5002”、出口段标识“4005”和出口段标识“4007”。可选的,Rep 304的配置信息还可以包括:与入口段标识“5002”对应的入口段IP地址10.1.0.3(始节点IP地址)和10.1.0.3(终节点IP地址),与出口段标识“4005”对应的出口段IP地址10.1.0.3(始节点IP地址)和10.1.0.6(终节点IP地址),以及与出口段标识“4007”对应的出口段IP地址10.1.0.3(始节点IP地址)和10.1.0.5(终节点IP地址)。和/或,Rep 304的配置信息还可以包括:与入口段标识“5002”对应的段标签“42”、与出口段标识“4005”对应的段标签“605”和与出口段标识“4007”对应的段标签“607”。
Relay D’的配置信息,即第四配置信息,包括Rep 308的配置信息、Elm 309的配置信 息和Rep 310的配置信息。
其中Rep 308的配置信息包括:入口段标识“4002”、出口段标识“4004”和出口段标识“5005”。可选的,Rep 308的配置信息还可以包括:与入口段标识“4002”对应的入口段IP地址10.1.0.1(始节点IP地址)和10.1.0.4(终节点IP地址),与出口段标识“4004”对应的出口段IP地址10.1.0.4(始节点IP地址)和10.1.0.3(终节点IP地址),以及与出口段标识“5005”对应的出口段IP地址10.1.0.4(始节点IP地址)和10.1.0.4(终节点IP地址)。和/或,Rep 308的配置信息还可以包括:与入口段标识“4002”对应的段标签“602”、与出口段标识“4004”对应的段标签“604”和与出口段标识“5005”对应的段标签“45”。
Elm 309的配置信息包括:入口段标识“5005”、入口段标识“4003”和出口段标识“5006”。可选的,Elm 309的配置信息还可以包括:与入口段标识“5005”对应的入口段IP地址10.1.0.4(始节点IP地址)和10.1.0.4(终节点IP地址),与入口段标识“4003”对应的入口段IP地址10.1.0.3(始节点IP地址)和10.1.0.4(终节点IP地址),以及与出口段标识“5006”对应的出口段IP地址10.1.0.4(始节点IP地址)和10.1.0.4(终节点IP地址)。和/或,Elm 309的配置信息还可以包括:与入口段标识“5005”对应的段标签“45”、与入口段标识“4003”对应的段标签“603”,以及与出口段标识“5006”对应的段标签“46”。
Rep 310的配置信息包括:入口段标识“5006”、出口段标识“4006”和出口段标识“4008”。可选的,Rep 310的配置信息还可以包括:与入口段标识“5006”对应的入口段IP地址10.1.0.4(始节点IP地址)和10.1.0.4(终节点IP地址),与出口段标识“4006”对应的出口段IP地址10.1.0.4(始节点IP地址)和10.1.0.5(终节点IP地址),以及与出口段标识“4008”对应的出口段IP地址10.1.0.4(始节点IP地址)和10.1.0.6(终节点IP地址)。和/或,Rep 304的配置信息还可以包括:与入口段标识“5006”对应的段标签“46”、与出口段标识“4006”对应的段标签“606”和与出口段标识“4008”对应的段标签“608”。
Relay E’的配置信息,即第六配置信息,包括Elm 305的配置信息、Rep 306的配置信息和Elm 307的配置信息。
其中Elm 305的配置信息包括:入口段标识“4006”、入口段标识“4007”和出口段标识“5003”。可选的,Elm 305的配置信息还可以包括:与入口段标识“4006”对应的入口段IP地址10.1.0.4(始节点IP地址)和10.1.0.5(终节点IP地址),与入口段标识“4007”对应的入口段IP地址10.1.0.3(始节点IP地址)和10.1.0.5(终节点IP地址),以及与出口段标识“5003”对应的出口段IP地址10.1.0.5(始节点IP地址)和10.1.0.5(终节点IP地址)。和/或,Elm 305的配置信息还可以包括:与入口段标识“4006”对应的段标签“606”、与入口段标识“4007”对应的段标签“607”,以及与出口段标识“5003”对应的段标签“43”。
Rep 306的配置信息包括:入口段标识“5003”、出口段标识“5004”和出口段标识“4009”。可选的,Rep 306的配置信息还可以包括:与入口段标识“5003”对应的入口段IP地址10.1.0.5(始节点IP地址)和10.1.0.5(终节点IP地址),与出口段标识“5004”对应的出口段IP地址10.1.0.5(始节点IP地址)和10.1.0.5(终节点IP地址),以及与出口段标识“4009”对应的出口段IP地址10.1.0.5(始节点IP地址)和10.1.0.6(终节点IP地址)。和/或,Rep 306的配置信息还可以包括:与入口段标识“5003”对应的段标签“43”、与出口段标识“5004”对应的段标签“44”和与出口段标识“4009”对应的段标签“609”。
Elm 307的配置信息包括:入口段标识“4010”、入口段标识“5004”和出口段标识“4011”。可选的,Elm 307的配置信息还可以包括:与入口段标识“4010”对应的入口段 IP地址10.1.0.6(始节点IP地址)和10.1.0.5(终节点IP地址),与入口段标识“5004”对应的入口段IP地址10.1.0.5(始节点IP地址)和10.1.0.5(终节点IP地址),以及与出口段标识“4011”对应的出口段IP地址10.1.0.5(始节点IP地址)和10.1.0.2(终节点IP地址)。和/或,Elm 307的配置信息还可以包括:与入口段标识“4010”对应的段标签“610”、与入口段标识“5004”对应的段标签“44”,以及与出口段标识“4011”对应的段标签“611”。
Relay F’的配置信息,即第七配置信息,包括Elm 311的配置信息、Rep 312的配置信息和Elm 313的配置信息。
其中Elm 311的配置信息包括:入口段标识“4005”、入口段标识“4008”和出口段标识“5007”。可选的,Elm 311的配置信息还可以包括:与入口段标识“4005”对应的入口段IP地址10.1.0.3(始节点IP地址)和10.1.0.6(终节点IP地址),与入口段标识“4008”对应的入口段IP地址10.1.0.4(始节点IP地址)和10.1.0.6(终节点IP地址),以及与出口段标识“5007”对应的出口段IP地址10.1.0.6(始节点IP地址)和10.1.0.6(终节点IP地址)。和/或,Elm 311的配置信息还可以包括:与入口段标识“4005”对应的段标签“605”、与入口段标识“4008”对应的段标签“608”,以及与出口段标识“5007”对应的段标签“47”。
Rep 312的配置信息包括:入口段标识“5007”、出口段标识“5008”和出口段标识“4010”。可选的,Rep 312的配置信息还可以包括:与入口段标识“5007”对应的入口段IP地址10.1.0.6(始节点IP地址)和10.1.0.6(终节点IP地址),与出口段标识“5008”对应的出口段IP地址10.1.0.6(始节点IP地址)和10.1.0.6(终节点IP地址),以及与出口段标识“4010”对应的出口段IP地址10.1.0.6(始节点IP地址)和10.1.0.5(终节点IP地址)。和/或,Rep 312的配置信息还可以包括:与入口段标识“5007”对应的段标签“47”、与出口段标识“5008”对应的段标签“48”和与出口段标识“4010”对应的段标签“610”。
Elm 313的配置信息包括:入口段标识“4009”、入口段标识“5008”和出口段标识“4012”。可选的,Elm 313的配置信息还可以包括:与入口段标识“4009”对应的入口段IP地址10.1.0.5(始节点IP地址)和10.1.0.6(终节点IP地址),与入口段标识“5008”对应的入口段IP地址10.1.0.6(始节点IP地址)和10.1.0.6(终节点IP地址),以及与出口段标识“4012”对应的出口段IP地址10.1.0.6(始节点IP地址)和10.1.0.2(终节点IP地址)。和/或,Elm 313的配置信息还可以包括:与入口段标识“4009”对应的段标签“609”、与入口段标识“5008”对应的段标签“48”,以及与出口段标识“4012”对应的段标签“612”。
Edge B’的配置信息,即第三配置信息,可以视为Elm 314的配置信息。Elm 314的配置信息包括:入口段标识“4011”和入口段标识“4012”。可选的,Elm 314的配置信息还可以包括:与入口段标识“4011”对应的入口段IP地址10.1.0.5(始节点IP地址)和10.1.0.2(终节点IP地址),以及与入口段标识“4012”对应的入口段IP地址10.1.0.6(始节点IP地址)和10.1.0.2(终节点IP地址)。和/或,Elm 314的配置信息还可以包括:与入口段标识“4011”对应的段标签“611”以及与入口段标识“4012”对应的段标签“612”。
在以上实施例中,第二边缘节点仅具有消除模块,在实际应用中,第二边缘节点还可以具有排序模块,用于对接收到的数据包中的多个数据包进行排序。如前文所述,为了区分不同的数据包,不同的数据包可以对应不同的数据包标识,数据包标识可以按照数据包的生成顺序由小到大进行排序。当第二边缘节点在接收到具有不同数据包标识的数据包时,可以根据数据包标识的大小对数据包进行排序,以便CE2能够接收到依序排列的数据包。
所以,在为第二边缘节点生成的第三配置信息,还可以用于对从第二边缘节点的消除模块输出的多个数据包进行排序。
另外,需要说明的是,上述复制模块可以执行上述分组复制功能,上述消除模块可以执行上述分组消除功能,上述排序模块可以执行上述分组排序功能。
参见图9,该图为本申请实施例提供的一种业务流处理装置的结构示意图。
本申请实施例提供的一种业务流处理装置可以应用于控制器。
业务流处理装置500具体包括:
第一配置模块501,用于为第一边缘节点生成并配置第一配置信息,第一配置信息用于复制接收到的业务流所包括的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包。
第二配置模块502,用于为第一中继节点生成并配置第二配置信息,第二配置信息用于复制第一数据包,并向第二中继节点输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自第二中继节点的第五数据包中获取先接收到的数据包并输出。
第三配置模块503,用于为第二边缘节点生成并配置第三配置信息,第三配置信息用于从来自第一中继节点的数据包和来自第二中继节点的数据包中获取先接收到的数据包,第二中继节点位于第一边缘节点经第一中继节点到第二边缘节点的链路之外。
本申请实施例通过第一配置模块501、第二配置模块502和第三配置模块503实现对业务流的保护和传输。
可选的,装置还包括:第四配置模块,用于为第二中继节点生成并配置第四配置信息,第四配置信息用于复制来自第一边缘节点的数据包第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并输出。
可选的,第一配置信息包括:第一边缘节点的复制模块的第一出口段标识和第一边缘节点的复制模块的第二出口段标识;第一边缘节点的复制模块的第一出口段标识用于标识从第一边缘节点到第一中继节点之间的段;第一边缘节点的复制模块的第二出口段标识用于标识从第一边缘节点到第二中继节点之间的段。
可选的,第二配置信息包括:第一中继节点的复制模块的入口段标识、第一中继节点的复制模块的第一出口段标识和第一中继节点的复制模块的第二出口段标识;第一中继节点的复制模块的入口段标识用于标识从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段标识用于标识从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段标识用于标识从第一中继节点到第二中继节点之间的段;
第二配置信息还包括:第一中继节点的消除模块的第一入口段标识、第一中继节点的消除模块的第二入口段标识和第一中继节点的消除模块的出口段标识;第一中继节点的消除模块的第一入口段标识用于标识从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段标识用于标识从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段标识用于标识从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息包括:第二边缘节点的消除模块的第一入口段标识和第二边缘节点的消除模块的第二入口段标识;第二边缘节点的消除模块的第一入口段标识用于标识 从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段标识用于标识从第二中继节点到第二边缘节点之间的段。
可选的,第一配置信息还包括:第一边缘节点的复制模块的第一出口段IP地址和第一边缘节点的复制模块的第二出口段IP地址;第一边缘节点的复制模块的第一出口段IP地址包括第一边缘节点的IP地址和第一中继节点的IP地址,对应于从第一边缘节点到第一中继节点之间的段;第一边缘节点的复制模块的第二出口段IP地址包括第一边缘节点的IP地址和第二中继节点的IP地址,对应于从第一边缘节点到第二中继节点之间的段。
可选的,第二配置信息还包括:第一中继节点的复制模块的入口段IP地址、第一中继节点的复制模块的第一出口段IP地址和第一中继节点的复制模块的第二出口段IP地址;第一中继节点的复制模块的入口段IP地址包括第一边缘节点的IP地址和第一中继节点的IP地址,第一中继节点的复制模块的入口段IP地址对应于从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段IP地址包括第一中继节点的IP地址,第一中继节点的复制模块的第一出口段IP地址对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段IP地址包括第一中继节点的IP地址和第二中继节点的IP地址,第一中继节点的复制模块的第二出口段IP地址对应于从第一中继节点到第二中继节点之间的段;
第二配置信息还包括:第一中继节点的消除模块的第一入口段IP地址、第一中继节点的消除模块的第二入口段IP地址和第一中继节点的消除模块的出口段IP地址;第一中继节点的消除模块的第一入口段IP地址包括第一中继节点的IP地址,第一中继节点的消除模块的第一入口段IP地址对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址和第一中继节点的IP地址,第一中继节点的消除模块的第二入口段IP地址对应于从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段IP地址包括第一中继节点的IP地址和第二边缘节点的IP地址,第一中继节点的消除模块的出口段IP地址对应于从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息还包括:第二边缘节点的消除模块的第一入口段IP地址和第二边缘节点的消除模块的第二入口段IP地址;第二边缘节点的消除模块的第一入口段IP地址包括第一中继节点的IP地址和第二边缘节点的IP地址,第二边缘节点的消除模块的第一入口段IP地址对应于从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址和第二边缘节点的IP地址,第二边缘节点的消除模块的第二入口段IP地址对应于从第二中继节点到第二边缘节点之间的段。
可选的,第一配置信息还包括:第一边缘节点的复制模块的第一出口段标签和第一边缘节点的复制模块的第二出口段标签;第一边缘节点的第一出口段标签对应于从第一边缘节点到第一中继节点之间的段;第一边缘节点的第二出口段标签对应于从第一边缘节点到第二中继节点的段。
可选的,第二配置信息还包括:第一中继节点的复制模块的入口段标签、第一中继节点的复制模块的第一出口段标签和第一中继节点的复制模块的第二出口段标签;第一中继节点的复制模块的入口段标签对应于从第一边缘节点到第一中继节点之间的段;第一中继节点的复制模块的第一出口段标签对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的复制模块的第二出口段标签对应于从第一中继节点到 第二中继节点之间的段;
第二配置信息还包括:第一中继节点的消除模块的第一入口段标签、第一中继节点的消除模块的第二入口段标签和第一中继节点的消除模块的出口段标签;第一中继节点的消除模块的第一入口段标签对应于从第一中继节点的复制模块到第一中继节点的消除模块之间的段;第一中继节点的消除模块的第二入口段标签对应于从第二中继节点到第一中继节点之间的段;第一中继节点的消除模块的出口段标签对应于从第一中继节点到第二边缘节点之间的段。
可选的,第三配置信息还包括:第二边缘节点的消除模块的第一入口段标签和第二边缘节点的消除模块的第二入口段标签;第二边缘节点的消除模块的第一入口段标签对应于从第一中继节点到第二边缘节点之间的段;第二边缘节点的消除模块的第二入口段标签对应于从第二中继节点到第二边缘节点之间的段。
可选的,第四配置消息还包括:第二中继节点的复制模块的入口段标识、第二中继节点的复制模块的第一出口段标识和第二中继节点的复制模块的第二出口段标识;第二中继节点的复制模块的入口段标识用于标识从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段标识用于标识从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段标识用于标识从第二中继节点到第一中继节点之间的段;
第四配置信息还包括:第二中继节点的消除模块的第一入口段标识、第二中继节点的消除模块的第二入口段标识和第二中继节点的消除模块的出口段标识;第二中继节点的消除模块的第一入口段标识用于标识从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段标识用于标识从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段标识用于标识从第二中继节点到第二边缘节点之间的段。
可选的,第四配置信息还包括:第二中继节点的复制模块的入口段IP地址、第二中继节点的复制模块的第一出口段IP地址和第二中继节点的复制模块的第二出口段IP地址;第二中继节点的复制模块的入口段IP地址包括第一边缘节点的IP地址和第二中继节点的IP地址,第二中继节点的复制模块的入口段IP地址对应于从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段IP地址包括第二中继节点的IP地址,第二中继节点的复制模块的第一出口段IP地址对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段IP地址包括第二中继节点的IP地址和第一中继节点的IP地址,第二中继节点的复制模块的第二出口段IP地址对应于从第二中继节点到第一中继节点之间的段;
第四配置信息还包括:第二中继节点的消除模块的第一入口段IP地址、第二中继节点的消除模块的第二入口段IP地址和第二中继节点的消除模块的出口段IP地址;第二中继节点的消除模块的第一入口段IP地址包括第二中继节点的IP地址,第二中继节点的消除模块的第一入口段IP地址对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段IP地址包括第二中继节点的IP地址,对应于从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段IP地址包括第二中继节点的IP地址和第二边缘节点的IP地址,第二中继节点的消除模块的出口段IP地址对应于从第二中继节点到第二边缘节点之间的段。
可选的,第四配置信息还包括:第二中继节点的复制模块的入口段标签、第二中继节点的复制模块的第一出口段标签和第二中继节点的复制模块的第二出口段标签;第二中继节点的复制模块的入口段标签对应于从第一边缘节点到第二中继节点之间的段;第二中继节点的复制模块的第一出口段标签对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的复制模块的第二出口段标签对应于从第二中继节点到第一中继节点之间的段;
第四配置信息还包括:第二中继节点的消除模块的第一入口段标签、第二中继节点的消除模块的第二入口段标签和第二中继节点的消除模块的出口段标签;第二中继节点的消除模块的第一入口段标签对应于从第二中继节点的复制模块到第二中继节点的消除模块之间的段;第二中继节点的消除模块的第二入口段标签对应于从第一中继节点到第二中继节点之间的段;第二中继节点的消除模块的出口段标签对应于从第二中继节点到第二边缘节点之间的段。
可选的,装置还包括:为第二中继节点生成并配置第五配置信息,第五配置信息用于从来自于第一边缘节点的第二数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并复制,向第一中继节点输出复制所获得的第五数据包以及向第二边缘节点输出复制所获得的第六数据包。
可选的,第二配置信息还用于对获取的先接收到的数据包进行复制,向第三中继节点输出复制所获得的第七数据包,以及向第四中继节点输出复制所获得的第八数据包;
装置还包括:第六配置模块,用于为第三中继节点生成并配置第六配置信息,第六配置信息用于来自第一中继节点的第七数据包和来自第二中继节点的数据包中获取先接收到的数据包并复制,向第四中继节点输出复制所获得的第九数据包,以及从复制所获得的第十数据包和来自第四中继节点的数据包中获取先接收到的数据包并向第二边缘节点发送;
其中,第三中继节点为第一中继节点和第二边缘节点之间链路上的节点,第四中继节点位于第一边缘节点经第三中继节点到第二边缘节点的链路之外。
可选的,装置还包括:第四配置模块,为第二中继节点生成并配置第四配置信息,第四配置信息用于复制来自第一边缘节点的第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自第一中继节点的第三数据包中获取先接收到的数据包并复制数据包,向第三中继节点发送复制所获得的第十一数据包,向第四中继节点发送复制所获得的第十二数据包。
可选的,装置还包括:第七配置模块,用于为第四中继节点生成并配置第七配置信息,第七配置信息用于从来自第一中继节点的第八数据包和来自第二中继节点的第十二数据包中获取先接收到的数据包先接收到的数据包并复制,向第三中继节点发送复制所获得的第十三数据包,以及从复制所获得的第十四数据包和来自第三中继节点的第九数据包中获取先接收到的数据包并向第二边缘节点发送。
可选的,第二配置信息还用于向第四中继节点发送复制第一数据包所获得的第十一数据包,以及将获取的先接收到的数据包输出至第三中继节点;
装置还包括:第六配置模块,用于为第三中继节点生成并配置第六配置信息,第六配置信息用于复制来自第一中继节点的数据包,向第四中继节点发送复制所获得的第十二数据包,以及从来自第二中继节点的数据包、来自第四中继节点的数据包和复制所获得的第 十三数据包中获取先接收到的数据包并向第二边缘节点发送;
其中,第三中继节点为第一中继节点和第二边缘节点之间链路上的节点,第四中继节点位于第一边缘节点经第三中继节点到第二边缘节点的链路之外。
参见图10,本申请实施例还提供了一种控制器600,控制器600可以包括存储器601和处理器602,
所述存储器601,用于存储指令;
所述处理器602,用于执行所述存储器601中的所述指令,执行上述业务流处理方法。
存储器601和处理器602通过总线603相互连接;总线603可以是外设部件互连标准(peripheral component interconnect,PCI)总线或扩展工业标准结构(extended industry standard architecture,EISA)总线等。所述总线可以分为地址总线、数据总线、控制总线等。为便于表示,图10中仅用一条粗线表示,但并不表示仅有一根总线或一种类型的总线。
上述存储器601可以是随机存取存储器(random-access memory,RAM)、闪存(flash)、只读存储器(read only memory,ROM)、可擦写可编程只读存储器(erasable programmable read only memory,EPROM)、电可擦除可编程只读存储器(electrically erasable programmable read only memory,EEPROM)、寄存器(register)、硬盘、移动硬盘、CD-ROM或者本领域技术人员知晓的任何其他形式的存储介质。
上述处理器602例如可以是中央处理器(central processing unit,CPU)、通用处理器、数字信号处理器(digital signal processor,DSP)、专用集成电路(application-specific integrated circuit,ASIC)、现场可编程门阵列(field programmable gate array,FPGA)或者其他可编程逻辑器件、晶体管逻辑器件、硬件部件或者其任意组合。其可以实现或执行结合本申请公开内容所描述的各种示例性的逻辑方框,模块和电路。处理器也可以是实现计算功能的组合,例如包含一个或多个微处理器组合,DSP和微处理器的组合等等。
本申请实施例还提供了一种计算机可读存储介质,包括指令,当其在计算机上运行时,使得计算机执行以上应用于控制器的业务流处理方法。
本申请的说明书和权利要求书及上述附图中的术语“第一”、“第二”、“第三”、“第四”等(如果存在)是用于区别类似的对象,而不必用于描述特定的顺序或先后次序。应该理解这样使用的数据在适当情况下可以互换,以便这里描述的实施例能够以除了在这里图示或描述的内容以外的顺序实施。此外,术语“包括”和“具有”以及他们的任何变形,意图在于覆盖不排他的包含,例如,包含了一系列步骤或单元的过程、方法、系统、产品或设备不必限于清楚地列出的那些步骤或单元,而是可包括没有清楚地列出的或对于这些过程、方法、产品或设备固有的其它步骤或单元。
所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统,装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
在本申请所提供的几个实施例中,应该理解到,所揭露的系统,装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,所述单元的划分,仅仅为一种逻辑模块划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要获取其中的部分或者全部单元来实现本实施例方案的目的。
另外,在本申请各个实施例中的各模块单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件模块单元的形式实现。
所述集成的单元如果以软件模块单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本申请各个实施例所述方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、磁碟或者光盘等各种可以存储程序代码的介质。
本领域技术人员应该可以意识到,在上述一个或多个示例中,本发明所描述的功能可以用硬件、软件、固件或它们的任意组合来实现。当使用软件实现时,可以将这些功能存储在计算机可读介质中或者作为计算机可读介质上的一个或多个指令或代码进行传输。计算机可读介质包括计算机存储介质和通信介质,其中通信介质包括便于从一个地方向另一个地方传送计算机程序的任何介质。存储介质可以是通用或专用计算机能够存取的任何可用介质。
以上所述的具体实施方式,对本发明的目的、技术方案和有益效果进行了进一步详细说明,所应理解的是,以上所述仅为本发明的具体实施方式而已。
以上所述,以上实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的范围。

Claims (38)

  1. 一种业务流处理方法,其特征在于,应用于控制器,所述方法包括:
    为第一边缘节点生成并配置第一配置信息,所述第一配置信息用于复制接收到的业务流所包括的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包;
    为所述第一中继节点生成并配置第二配置信息,所述第二配置信息用于复制所述第一数据包,并向所述第二中继节点输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自所述第二中继节点的第五数据包中获取先接收到的数据包并输出;
    为第二边缘节点生成并配置第三配置信息,所述第三配置信息用于从来自所述第一中继节点的数据包和来自所述第二中继节点的数据包中获取先接收到的数据包,所述第二中继节点位于所述第一边缘节点经所述第一中继节点到所述第二边缘节点的链路之外。
  2. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    为所述第二中继节点生成并配置第四配置信息,所述第四配置信息用于复制来自所述第一边缘节点的所述第二数据包,向第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自所述第一中继节点的第三数据包中获取先接收到的数据包并输出。
  3. 根据权利要求1或2所述的方法,其特征在于,
    所述第一配置信息包括:所述第一边缘节点的复制模块的第一出口段标识和所述第一边缘节点的复制模块的第二出口段标识;所述第一边缘节点的复制模块的第一出口段标识用于标识从所述第一边缘节点到所述第一中继节点之间的段;所述第一边缘节点的复制模块的第二出口段标识用于标识从所述第一边缘节点到所述第二中继节点之间的段。
  4. 根据权利要求1-3任一项所述的方法,其特征在于,
    所述第二配置信息包括:第一中继节点的复制模块的入口段标识、所述第一中继节点的复制模块的第一出口段标识和所述第一中继节点的复制模块的第二出口段标识;所述第一中继节点的复制模块的入口段标识用于标识从所述第一边缘节点到所述第一中继节点之间的段;所述第一中继节点的复制模块的第一出口段标识用于标识从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的复制模块的第二出口段标识用于标识从所述第一中继节点到所述第二中继节点之间的段;
    所述第二配置信息还包括:所述第一中继节点的消除模块的第一入口段标识、所述第一中继节点的消除模块的第二入口段标识和所述第一中继节点的消除模块的出口段标识;所述第一中继节点的消除模块的第一入口段标识用于标识从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的消除模块的第二入口段标识用于标识从所述第二中继节点到所述第一中继节点之间的段;所述第一中继节点的消除模块的出口段标识用于标识从所述第一中继节点到所述第二边缘节点之间的段。
  5. 根据权利要求1-4任一项所述的方法,其特征在于,
    所述第三配置信息包括:所述第二边缘节点的消除模块的第一入口段标识和所述第二边缘节点的消除模块的第二入口段标识;所述第二边缘节点的消除模块的第一入口段标识用于标识从所述第一中继节点到所述第二边缘节点之间的段;所述第二边缘节点的消除模块的第二入口段标识用于标识从所述第二中继节点到所述第二边缘节点之间的段。
  6. 根据权利要求3所述的方法,其特征在于,
    所述第一配置信息还包括:所述第一边缘节点的复制模块的第一出口段IP地址和所述第一边缘节点的复制模块的第二出口段IP地址;所述第一边缘节点的复制模块的第一出口段IP地址包括所述第一边缘节点的IP地址和所述第一中继节点的IP地址,所述第一边缘节点的复制模块的第一出口段IP地址对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一边缘节点的复制模块的第二出口段IP地址包括所述第一边缘节点的IP地址和所述第二中继节点的IP地址,所述第一边缘节点的复制模块的第二出口段IP地址对应于从所述第一边缘节点到所述第二中继节点之间的段。
  7. 根据权利要求4所述的方法,其特征在于,
    所述第二配置信息还包括:所述第一中继节点的复制模块的入口段IP地址、所述第一中继节点的复制模块的第一出口段IP地址和所述第一中继节点的复制模块的第二出口段IP地址;所述第一中继节点的复制模块的入口段IP地址包括所述第一边缘节点的IP地址和所述第一中继节点的IP地址,所述第一中继节点的复制模块的入口段IP地址对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一中继节点的复制模块的第一出口段IP地址包括所述第一中继节点的IP地址,所述第一中继节点的复制模块的第一出口段IP地址对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的复制模块的第二出口段IP地址包括所述第一中继节点的IP地址和所述第二中继节点的IP地址,所述第一中继节点的复制模块的第二出口段IP地址对应于从所述第一中继节点到所述第二中继节点之间的段;
    所述第二配置信息还包括:所述第一中继节点的消除模块的第一入口段IP地址、所述第一中继节点的消除模块的第二入口段IP地址和所述第一中继节点的消除模块的出口段IP地址;所述第一中继节点的消除模块的第一入口段IP地址包括所述第一中继节点的IP地址,所述第一中继节点的消除模块的第一入口段IP地址对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的消除模块的第二入口段IP地址包括所述第二中继节点的IP地址和所述第一中继节点的IP地址,所述第一中继节点的消除模块的第二入口段IP地址对应于从所述第二中继节点到所述第一中继节点之间的段;所述第一中继节点的消除模块的出口段IP地址包括所述第一中继节点的IP地址和所述第二边缘节点的IP地址,所述第一中继节点的消除模块的出口段IP地址对应于从所述第一中继节点到所述第二边缘节点之间的段。
  8. 根据权利要求5所述的方法,其特征在于,
    所述第三配置信息还包括:所述第二边缘节点的消除模块的第一入口段IP地址和所述第二边缘节点的消除模块的第二入口段IP地址;所述第二边缘节点的消除模块的第一入口段IP地址包括所述第一中继节点的IP地址和所述第二边缘节点的IP地址,所述第二边缘节点的消除模块的第一入口段IP地址对应于从所述第一中继节点到所述第二边缘节点之间的段;所述第二边缘节点的消除模块的第二入口段IP地址包括所述第二中继节点的IP地址和所述第二边缘节点的IP地址,所述第二边缘节点的消除模块的第二入口段IP地址对应于从所述第二中继节点到所述第二边缘节点之间的段。
  9. 根据权利要求3或6所述的方法,其特征在于,
    所述第一配置信息还包括:所述第一边缘节点的复制模块的第一出口段标签和所述第一边缘节点的复制模块的第二出口段标签;所述第一边缘节点的第一出口段标签对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一边缘节点的第二出口段标签对 应于从所述第一边缘节点到所述第二中继节点的段。
  10. 根据权利要求4或7所述的方法,其特征在于,
    所述第二配置信息还包括:所述第一中继节点的复制模块的入口段标签、所述第一中继节点的复制模块的第一出口段标签和所述第一中继节点的复制模块的第二出口段标签;所述第一中继节点的复制模块的入口段标签对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一中继节点的复制模块的第一出口段标签对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的复制模块的第二出口段标签对应于从所述第一中继节点到所述第二中继节点之间的段;
    所述第二配置信息还包括:所述第一中继节点的消除模块的第一入口段标签、所述第一中继节点的消除模块的第二入口段标签和所述第一中继节点的消除模块的出口段标签;所述第一中继节点的消除模块的第一入口段标签对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的消除模块的第二入口段标签对应于从所述第二中继节点到所述第一中继节点之间的段;所述第一中继节点的消除模块的出口段标签对应于从所述第一中继节点到所述第二边缘节点之间的段。
  11. 根据权利要求5或8所述的方法,其特征在于,
    所述第三配置信息还包括:所述第二边缘节点的消除模块的第一入口段标签和所述第二边缘节点的消除模块的第二入口段标签;所述第二边缘节点的消除模块的第一入口段标签对应于从所述第一中继节点到所述第二边缘节点之间的段;所述第二边缘节点的消除模块的第二入口段标签对应于从所述第二中继节点到所述第二边缘节点之间的段。
  12. 根据权利要求2所述的方法,其特征在于,
    所述第四配置消息还包括:第二中继节点的复制模块的入口段标识、所述第二中继节点的复制模块的第一出口段标识和所述第二中继节点的复制模块的第二出口段标识;所述第二中继节点的复制模块的入口段标识用于标识从所述第一边缘节点到所述第二中继节点之间的段;所述第二中继节点的复制模块的第一出口段标识用于标识从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的复制模块的第二出口段标识用于标识从所述第二中继节点到所述第一中继节点之间的段;
    所述第四配置信息还包括:所述第二中继节点的消除模块的第一入口段标识、所述第二中继节点的消除模块的第二入口段标识和所述第二中继节点的消除模块的出口段标识;所述第二中继节点的消除模块的第一入口段标识用于标识从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的消除模块的第二入口段标识用于标识从所述第一中继节点到所述第二中继节点之间的段;所述第二中继节点的消除模块的出口段标识用于标识从所述第二中继节点到所述第二边缘节点之间的段。
  13. 根据权利要求12所述的方法,其特征在于,
    所述第四配置信息还包括:所述第二中继节点的复制模块的入口段IP地址、所述第二中继节点的复制模块的第一出口段IP地址和所述第二中继节点的复制模块的第二出口段IP地址;所述第二中继节点的复制模块的入口段IP地址包括所述第一边缘节点的IP地址和所述第二中继节点的IP地址,所述第二中继节点的复制模块的入口段IP地址对应于从所述第一边缘节点到所述第二中继节点之间的段;所述第二中继节点的复制模块的第一出口段IP地址包括所述第二中继节点的IP地址,所述第二中继节点的复制模块的第一出口段IP地址对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的 段;所述第二中继节点的复制模块的第二出口段IP地址包括所述第二中继节点的IP地址和所述第一中继节点的IP地址,所述第二中继节点的复制模块的第二出口段IP地址对应于从所述第二中继节点到所述第一中继节点之间的段;
    所述第四配置信息还包括:所述第二中继节点的消除模块的第一入口段IP地址、所述第二中继节点的消除模块的第二入口段IP地址和所述第二中继节点的消除模块的出口段IP地址;所述第二中继节点的消除模块的第一入口段IP地址包括所述第二中继节点的IP地址,所述第二中继节点的消除模块的第一入口段IP地址对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的消除模块的第二入口段IP地址包括所述第二中继节点的IP地址,所述第二中继节点的消除模块的第二入口段IP地址对应于从所述第一中继节点到所述第二中继节点之间的段;所述第二中继节点的消除模块的出口段IP地址包括所述第二中继节点的IP地址和所述第二边缘节点的IP地址,所述第二中继节点的消除模块的出口段IP地址对应于从所述第二中继节点到所述第二边缘节点之间的段。
  14. 根据权利要求12或13所述的方法,其特征在于,
    所述第四配置信息还包括:所述第二中继节点的复制模块的入口段标签、所述第二中继节点的复制模块的第一出口段标签和所述第二中继节点的复制模块的第二出口段标签;所述第二中继节点的复制模块的入口段标签对应于从所述第一边缘节点到所述第二中继节点之间的段;所述第二中继节点的复制模块的第一出口段标签对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的复制模块的第二出口段标签对应于从所述第二中继节点到所述第一中继节点之间的段;
    所述第四配置信息还包括:所述第二中继节点的消除模块的第一入口段标签、所述第二中继节点的消除模块的第二入口段标签和所述第二中继节点的消除模块的出口段标签;所述第二中继节点的消除模块的第一入口段标签对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的消除模块的第二入口段标签对应于从所述第一中继节点到所述第二中继节点之间的段;所述第二中继节点的消除模块的出口段标签对应于从所述第二中继节点到所述第二边缘节点之间的段。
  15. 根据权利要求1所述的方法,其特征在于,所述方法还包括:
    为第二中继节点生成并配置第五配置信息,所述第五配置信息用于从来自于所述第一边缘节点的所述第二数据包和来自所述第一中继节点的所述第三数据包中获取先接收到的数据包并复制,向所述第一中继节点输出复制所获得的第五数据包以及向所述第二边缘节点输出复制所获得的第六数据包。
  16. 根据权利要求1所述的方法,其特征在于,
    所述第二配置信息还用于对所述获取的先接收到的数据包进行复制,向第三中继节点输出复制所获得的第七数据包,以及向第四中继节点输出复制所获得的第八数据包;
    所述方法还包括:
    为第三中继节点生成并配置第六配置信息,所述第六配置信息用于来自所述第一中继节点的所述第七数据包和来自所述第二中继节点的数据包中获取先接收到的数据包并复制,向第四中继节点输出复制所获得的第九数据包,以及从复制所获得的第十数据包和来自所述第四中继节点的数据包中获取先接收到的数据包并向所述第二边缘节点发送;
    其中,所述第三中继节点为所述第一中继节点和所述第二边缘节点之间链路上的节 点,所述第四中继节点位于所述第一边缘节点经所述第三中继节点到所述第二边缘节点的链路之外。
  17. 根据权利要求16所述的方法,其特征在于,所述方法还包括:
    为所述第二中继节点生成并配置第四配置信息,所述第四配置信息用于复制来自所述第一边缘节点的所述第二数据包,向所述第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自所述第一中继节点的第三数据包中获取先接收到的数据包并复制数据包,向所述第三中继节点发送复制所获得的第十一数据包,向所述第四中继节点发送复制所获得的第十二数据包。
  18. 根据权利要求17所述的方法,其特征在于,所述方法还包括:
    为所述第四中继节点生成并配置第七配置信息,所述第七配置信息用于从来自所述第一中继节点的所述第八数据包和来自所述第二中继节点的所述第十二数据包中获取先接收到的数据包并复制,向所述第三中继节点发送复制所获得的第十三数据包,以及从复制所获得的第十四数据包和来自所述第三中继节点的第九数据包中获取先接收到的数据包并向所述第二边缘节点发送。
  19. 根据权利要求1所述的方法,其特征在于,
    所述第二配置信息还用于向第四中继节点发送复制所述第一数据包所获得的第十一数据包,以及将所述获取的先接收到的数据包并向第三中继节点输出;
    所述方法还包括:
    为第三中继节点生成并配置第六配置信息,所述第六配置信息用于复制来自所述第一中继节点的数据包,向第四中继节点发送复制所获得的第十二数据包,以及从来自所述第二中继节点的数据包、来自所述第四中继节点的数据包和复制所获得的第十三数据包中获取先接收到的数据包并向所述第二边缘节点发送;
    其中,所述第三中继节点为所述第一中继节点和所述第二边缘节点之间链路上的节点,所述第四中继节点位于所述第一边缘节点经所述第三中继节点到所述第二边缘节点的链路之外。
  20. 一种业务流处理装置,其特征在于,应用于控制器,所述装置包括:
    第一配置模块,用于为第一边缘节点生成并配置第一配置信息,所述第一配置信息用于复制接收到的业务流所包括的数据包,并向第一中继节点输出复制所获得的第一数据包以及向第二中继节点输出复制所获得的第二数据包;
    第二配置模块,用于为所述第一中继节点生成并配置第二配置信息,所述第二配置信息用于复制所述第一数据包,并向所述第二中继节点输出复制所获得的第三数据包,以及从复制所获得的第四数据包和来自所述第二中继节点的第五数据包中获取先接收到的数据包并输出;
    第三配置模块,用于为第二边缘节点生成并配置第三配置信息,所述第三配置信息用于从来自所述第一中继节点的数据包和来自所述第二中继节点的数据包中获取先接收到的数据包,所述第二中继节点位于所述第一边缘节点经所述第一中继节点到所述第二边缘节点的链路之外。
  21. 根据权利要求20所述的装置,其特征在于,所述装置还包括:
    第四配置模块,用于为所述第二中继节点生成并配置第四配置信息,所述第四配置信息用于复制来自所述第一边缘节点的数据包所述第二数据包,向第一中继节点输出复制所 获得的第五数据包,以及从复制所获得的第六数据包和来自所述第一中继节点的第三数据包中获取先接收到的数据包并输出。
  22. 根据权利要求20或21所述的装置,其特征在于,
    所述第一配置信息包括:所述第一边缘节点的复制模块的第一出口段标识和所述第一边缘节点的复制模块的第二出口段标识;所述第一边缘节点的复制模块的第一出口段标识用于标识从所述第一边缘节点到所述第一中继节点之间的段;所述第一边缘节点的复制模块的第二出口段标识用于标识从所述第一边缘节点到所述第二中继节点之间的段。
  23. 根据权利要求20-22任一项所述的装置,其特征在于,
    所述第二配置信息包括:第一中继节点的复制模块的入口段标识、所述第一中继节点的复制模块的第一出口段标识和所述第一中继节点的复制模块的第二出口段标识;所述第一中继节点的复制模块的入口段标识用于标识从所述第一边缘节点到所述第一中继节点之间的段;所述第一中继节点的复制模块的第一出口段标识用于标识从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的复制模块的第二出口段标识用于标识从所述第一中继节点到所述第二中继节点之间的段;
    所述第二配置信息还包括:所述第一中继节点的消除模块的第一入口段标识、所述第一中继节点的消除模块的第二入口段标识和所述第一中继节点的消除模块的出口段标识;所述第一中继节点的消除模块的第一入口段标识用于标识从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的消除模块的第二入口段标识用于标识从所述第二中继节点到所述第一中继节点之间的段;所述第一中继节点的消除模块的出口段标识用于标识从所述第一中继节点到所述第二边缘节点之间的段。
  24. 根据权利要求20-23任一项所述的装置,其特征在于,
    所述第三配置信息包括:所述第二边缘节点的消除模块的第一入口段标识和所述第二边缘节点的消除模块的第二入口段标识;所述第二边缘节点的消除模块的第一入口段标识用于标识从所述第一中继节点到所述第二边缘节点之间的段;所述第二边缘节点的消除模块的第二入口段标识用于标识从所述第二中继节点到所述第二边缘节点之间的段。
  25. 根据权利要求22所述的装置,其特征在于,
    所述第一配置信息还包括:所述第一边缘节点的复制模块的第一出口段IP地址和所述第一边缘节点的复制模块的第二出口段IP地址;所述第一边缘节点的复制模块的第一出口段IP地址包括所述第一边缘节点的IP地址和所述第一中继节点的IP地址,所述第一边缘节点的复制模块的第一出口段IP地址对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一边缘节点的复制模块的第二出口段IP地址包括所述第一边缘节点的IP地址和所述第二中继节点的IP地址,所述第一边缘节点的复制模块的第二出口段IP地址对应于从所述第一边缘节点到所述第二中继节点之间的段。
  26. 根据权利要求23所述的装置,其特征在于,
    所述第二配置信息还包括:所述第一中继节点的复制模块的入口段IP地址、所述第一中继节点的复制模块的第一出口段IP地址和所述第一中继节点的复制模块的第二出口段IP地址;所述第一中继节点的复制模块的入口段IP地址包括所述第一边缘节点的IP地址和所述第一中继节点的IP地址,所述第一中继节点的复制模块的入口段IP地址对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一中继节点的复制模块的第一出口段IP地址包括所述第一中继节点的IP地址,所述第一中继节点的复制模块的第一出口 段IP地址对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的复制模块的第二出口段IP地址包括所述第一中继节点的IP地址和所述第二中继节点的IP地址,所述第一中继节点的复制模块的第二出口段IP地址对应于从所述第一中继节点到所述第二中继节点之间的段;
    所述第二配置信息还包括:所述第一中继节点的消除模块的第一入口段IP地址、所述第一中继节点的消除模块的第二入口段IP地址和所述第一中继节点的消除模块的出口段IP地址;所述第一中继节点的消除模块的第一入口段IP地址包括所述第一中继节点的IP地址,所述第一中继节点的消除模块的第一入口段IP地址对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的消除模块的第二入口段IP地址包括所述第二中继节点的IP地址和所述第一中继节点的IP地址,所述第一中继节点的消除模块的第二入口段IP地址对应于从所述第二中继节点到所述第一中继节点之间的段;所述第一中继节点的消除模块的出口段IP地址包括所述第一中继节点的IP地址和所述第二边缘节点的IP地址,所述第一中继节点的消除模块的出口段IP地址对应于从所述第一中继节点到所述第二边缘节点之间的段。
  27. 根据权利要求24所述的装置,其特征在于,
    所述第三配置信息还包括:所述第二边缘节点的消除模块的第一入口段IP地址和所述第二边缘节点的消除模块的第二入口段IP地址;所述第二边缘节点的消除模块的第一入口段IP地址包括所述第一中继节点的IP地址和所述第二边缘节点的IP地址,所述第二边缘节点的消除模块的第一入口段IP地址对应于从所述第一中继节点到所述第二边缘节点之间的段;所述第二边缘节点的消除模块的第二入口段IP地址包括所述第二中继节点的IP地址和所述第二边缘节点的IP地址,所述第二边缘节点的消除模块的第二入口段IP地址对应于从所述第二中继节点到所述第二边缘节点之间的段。
  28. 根据权利要求22或25所述的装置,其特征在于,
    所述第一配置信息还包括:所述第一边缘节点的复制模块的第一出口段标签和所述第一边缘节点的复制模块的第二出口段标签;所述第一边缘节点的第一出口段标签对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一边缘节点的第二出口段标签对应于从所述第一边缘节点到所述第二中继节点的段。
  29. 根据权利要求23或26所述的装置,其特征在于,
    所述第二配置信息还包括:所述第一中继节点的复制模块的入口段标签、所述第一中继节点的复制模块的第一出口段标签和所述第一中继节点的复制模块的第二出口段标签;所述第一中继节点的复制模块的入口段标签对应于从所述第一边缘节点到所述第一中继节点之间的段;所述第一中继节点的复制模块的第一出口段标签对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的复制模块的第二出口段标签对应于从所述第一中继节点到所述第二中继节点之间的段;
    所述第二配置信息还包括:所述第一中继节点的消除模块的第一入口段标签、所述第一中继节点的消除模块的第二入口段标签和所述第一中继节点的消除模块的出口段标签;所述第一中继节点的消除模块的第一入口段标签对应于从所述第一中继节点的复制模块到所述第一中继节点的消除模块之间的段;所述第一中继节点的消除模块的第二入口段标签对应于从所述第二中继节点到所述第一中继节点之间的段;所述第一中继节点的消除模块的出口段标签对应于从所述第一中继节点到所述第二边缘节点之间的段。
  30. 根据权利要求24或27所述的装置,其特征在于,
    所述第三配置信息还包括:所述第二边缘节点的消除模块的第一入口段标签和所述第二边缘节点的消除模块的第二入口段标签;所述第二边缘节点的消除模块的第一入口段标签对应于从所述第一中继节点到所述第二边缘节点之间的段;所述第二边缘节点的消除模块的第二入口段标签对应于从所述第二中继节点到所述第二边缘节点之间的段。
  31. 根据权利要求21所述的装置,其特征在于,
    所述第四配置消息还包括:第二中继节点的复制模块的入口段标识、所述第二中继节点的复制模块的第一出口段标识和所述第二中继节点的复制模块的第二出口段标识;所述第二中继节点的复制模块的入口段标识用于标识从所述第一边缘节点到所述第二中继节点之间的段;所述第二中继节点的复制模块的第一出口段标识用于标识从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的复制模块的第二出口段标识用于标识从所述第二中继节点到所述第一中继节点之间的段;
    所述第四配置信息还包括:所述第二中继节点的消除模块的第一入口段标识、所述第二中继节点的消除模块的第二入口段标识和所述第二中继节点的消除模块的出口段标识;所述第二中继节点的消除模块的第一入口段标识用于标识从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的消除模块的第二入口段标识用于标识从所述第一中继节点到所述第二中继节点之间的段;所述第二中继节点的消除模块的出口段标识用于标识从所述第二中继节点到所述第二边缘节点之间的段。
  32. 根据权利要求31所述的装置,其特征在于,
    所述第四配置信息还包括:所述第二中继节点的复制模块的入口段IP地址、所述第二中继节点的复制模块的第一出口段IP地址和所述第二中继节点的复制模块的第二出口段IP地址;所述第二中继节点的复制模块的入口段IP地址包括所述第一边缘节点的IP地址和所述第二中继节点的IP地址,所述第二中继节点的复制模块的入口段IP地址对应于从所述第一边缘节点到所述第二中继节点之间的段;所述第二中继节点的复制模块的第一出口段IP地址包括所述第二中继节点的IP地址,所述第二中继节点的复制模块的第一出口段IP地址对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的复制模块的第二出口段IP地址包括所述第二中继节点的IP地址和所述第一中继节点的IP地址,所述第二中继节点的复制模块的第二出口段IP地址对应于从所述第二中继节点到所述第一中继节点之间的段;
    所述第四配置信息还包括:所述第二中继节点的消除模块的第一入口段IP地址、所述第二中继节点的消除模块的第二入口段IP地址和所述第二中继节点的消除模块的出口段IP地址;所述第二中继节点的消除模块的第一入口段IP地址包括所述第二中继节点的IP地址,所述第二中继节点的消除模块的第一入口段IP地址对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的消除模块的第二入口段IP地址包括所述第二中继节点的IP地址,所述第二中继节点的消除模块的第二入口段IP地址对应于从所述第一中继节点到所述第二中继节点之间的段;所述第二中继节点的消除模块的出口段IP地址包括所述第二中继节点的IP地址和所述第二边缘节点的IP地址,所述第二中继节点的消除模块的出口段IP地址对应于从所述第二中继节点到所述第二边缘节点之间的段。
  33. 根据权利要求31或32所述的装置,其特征在于,
    所述第四配置信息还包括:所述第二中继节点的复制模块的入口段标签、所述第二中继节点的复制模块的第一出口段标签和所述第二中继节点的复制模块的第二出口段标签;所述第二中继节点的复制模块的入口段标签对应于从所述第一边缘节点到所述第二中继节点之间的段;所述第二中继节点的复制模块的第一出口段标签对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的复制模块的第二出口段标签对应于从所述第二中继节点到所述第一中继节点之间的段;
    所述第四配置信息还包括:所述第二中继节点的消除模块的第一入口段标签、所述第二中继节点的消除模块的第二入口段标签和所述第二中继节点的消除模块的出口段标签;所述第二中继节点的消除模块的第一入口段标签对应于从所述第二中继节点的复制模块到所述第二中继节点的消除模块之间的段;所述第二中继节点的消除模块的第二入口段标签对应于从所述第一中继节点到所述第二中继节点之间的段;所述第二中继节点的消除模块的出口段标签对应于从所述第二中继节点到所述第二边缘节点之间的段。
  34. 根据权利要求20所述的装置,其特征在于,所述装置还包括:
    为第二中继节点生成并配置第五配置信息,所述第五配置信息用于从来自于所述第一边缘节点的所述第二数据包和来自所述第一中继节点的所述第三数据包中获取先接收到的数据包并复制,向所述第一中继节点输出复制所获得的第五数据包以及向所述第二边缘节点输出复制所获得的第六数据包。
  35. 根据权利要求20所述的装置,其特征在于,
    所述第二配置信息还用于对所述获取的先接收到的数据包进行复制,向第三中继节点输出复制所获得的第七数据包,以及向第四中继节点输出复制所获得的第八数据包;
    所述装置还包括:
    第六配置模块,用于为第三中继节点生成并配置第六配置信息,所述第六配置信息用于来自所述第一中继节点的所述第七数据包和来自所述第二中继节点的数据包中获取先接收到的数据包并复制,向第四中继节点输出复制所获得的第九数据包,以及从复制所获得的第十数据包和来自所述第四中继节点的数据包中获取先接收到的数据包并向所述第二边缘节点发送;
    其中,所述第三中继节点为所述第一中继节点和所述第二边缘节点之间链路上的节点,所述第四中继节点位于所述第一边缘节点经所述第三中继节点到所述第二边缘节点的链路之外。
  36. 根据权利要求35所述的装置,其特征在于,所述装置还包括:
    第四配置模块,为所述第二中继节点生成并配置第四配置信息,所述第四配置信息用于复制来自所述第一边缘节点的所述第二数据包,向所述第一中继节点输出复制所获得的第五数据包,以及从复制所获得的第六数据包和来自所述第一中继节点的第三数据包中获取先接收到的数据包并复制数据包,向所述第三中继节点发送复制所获得的第十一数据包,向所述第四中继节点发送复制所获得的第十二数据包。
  37. 根据权利要求36所述的装置,其特征在于,所述装置还包括:
    第七配置模块,用于为所述第四中继节点生成并配置第七配置信息,所述第七配置信息用于从来自所述第一中继节点的所述第八数据包和来自所述第二中继节点的所述第十二数据包中获取先接收到的数据包先接收到的数据包并复制,向所述第三中继节点发送复制所获得的第十三数据包,以及从复制所获得的第十四数据包和来自所述第三中继节点的 第九数据包中获取先接收到的数据包并向所述第二边缘节点发送。
  38. 根据权利要求20所述的装置,其特征在于,
    所述第二配置信息还用于向第四中继节点发送复制所述第一数据包所获得的第十一数据包,以及将所述获取的先接收到的数据包输出至第三中继节点;
    所述装置还包括:
    第六配置模块,用于为第三中继节点生成并配置第六配置信息,所述第六配置信息用于复制来自所述第一中继节点的数据包,向第四中继节点发送复制所获得的第十二数据包,以及从来自所述第二中继节点的数据包、来自所述第四中继节点的数据包和复制所获得的第十三数据包中获取先接收到的数据包并向所述第二边缘节点发送;
    其中,所述第三中继节点为所述第一中继节点和所述第二边缘节点之间链路上的节点,所述第四中继节点位于所述第一边缘节点经所述第三中继节点到所述第二边缘节点的链路之外。
PCT/CN2019/113506 2018-10-31 2019-10-28 一种业务流处理方法及装置 WO2020088379A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
JP2021522526A JP7239258B2 (ja) 2018-10-31 2019-10-28 トラフィックフロー処理方法および装置
EP19877762.5A EP3866413A4 (en) 2018-10-31 2019-10-28 PROCESS AND DEVICE FOR PROCESSING SERVICE FLOWS
KR1020217015150A KR102547681B1 (ko) 2018-10-31 2019-10-28 서비스 흐름 처리 방법 및 장치
US17/243,673 US11943148B2 (en) 2018-10-31 2021-04-29 Traffic flow processing method and apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201811290209.0A CN111131022B (zh) 2018-10-31 2018-10-31 一种业务流处理方法及装置
CN201811290209.0 2018-10-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/243,673 Continuation US11943148B2 (en) 2018-10-31 2021-04-29 Traffic flow processing method and apparatus

Publications (1)

Publication Number Publication Date
WO2020088379A1 true WO2020088379A1 (zh) 2020-05-07

Family

ID=70462993

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/113506 WO2020088379A1 (zh) 2018-10-31 2019-10-28 一种业务流处理方法及装置

Country Status (6)

Country Link
US (1) US11943148B2 (zh)
EP (1) EP3866413A4 (zh)
JP (1) JP7239258B2 (zh)
KR (1) KR102547681B1 (zh)
CN (2) CN113114564A (zh)
WO (1) WO2020088379A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022260924A1 (en) * 2021-06-07 2022-12-15 Citrix Systems, Inc. Improvements to node security with intermediate devices

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113630175B (zh) * 2021-09-08 2022-07-05 西北工业大学 一种中继网络的接入方法

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902353A (zh) * 2009-05-31 2010-12-01 华为技术有限公司 分组网络的保护方法、装置与系统
CN102594649A (zh) * 2011-01-07 2012-07-18 中兴通讯股份有限公司 虚拟通道组播数据远端复制方法及系统
US20160308696A1 (en) * 2015-04-20 2016-10-20 Fujitsu Limited Packet relay device, and copy function distribution method of packet relay device
CN106992874A (zh) * 2015-12-30 2017-07-28 丛林网络公司 用于通信的方法和网络设备
CN108462591A (zh) * 2017-02-20 2018-08-28 华为技术有限公司 一种分组网络中处理业务流的方法及装置

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1382165A2 (en) * 2001-04-13 2004-01-21 MOTOROLA INC., A Corporation of the state of Delaware Manipulating data streams in data stream processors
US20050207407A1 (en) * 2004-03-16 2005-09-22 Baumberger Daniel P Method, apparatus and system for improved packet demultiplexing on a host virtual machine
US7733812B2 (en) * 2004-06-07 2010-06-08 Alcatel Method for enabling multipoint network services over a ring topology network
US8565223B2 (en) * 2010-01-07 2013-10-22 Via Telecom, Inc. 1X message processing
US9894000B2 (en) * 2015-01-30 2018-02-13 Huawei Technologies Co., Ltd Method for forwarding data packets in a network and programmable ingress and egress nodes therefore
CN106550291A (zh) * 2015-09-23 2017-03-29 中兴通讯股份有限公司 资源配置信息的发送、数据分发方法及装置
CN106792969B (zh) * 2017-01-23 2019-09-06 浙江工商大学 一种能量有效的混合无线传感器网络路由方法

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101902353A (zh) * 2009-05-31 2010-12-01 华为技术有限公司 分组网络的保护方法、装置与系统
CN102594649A (zh) * 2011-01-07 2012-07-18 中兴通讯股份有限公司 虚拟通道组播数据远端复制方法及系统
US20160308696A1 (en) * 2015-04-20 2016-10-20 Fujitsu Limited Packet relay device, and copy function distribution method of packet relay device
CN106992874A (zh) * 2015-12-30 2017-07-28 丛林网络公司 用于通信的方法和网络设备
CN108462591A (zh) * 2017-02-20 2018-08-28 华为技术有限公司 一种分组网络中处理业务流的方法及装置

Non-Patent Citations (1)

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

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2022260924A1 (en) * 2021-06-07 2022-12-15 Citrix Systems, Inc. Improvements to node security with intermediate devices

Also Published As

Publication number Publication date
CN111131022B (zh) 2021-02-26
EP3866413A1 (en) 2021-08-18
JP2022512816A (ja) 2022-02-07
EP3866413A4 (en) 2021-12-15
US11943148B2 (en) 2024-03-26
CN113114564A (zh) 2021-07-13
KR102547681B1 (ko) 2023-06-27
CN111131022A (zh) 2020-05-08
KR20210079341A (ko) 2021-06-29
US20210250303A1 (en) 2021-08-12
JP7239258B2 (ja) 2023-03-14

Similar Documents

Publication Publication Date Title
US9699105B2 (en) Self-routing multicast in a software defined network fabric
US10320664B2 (en) Cloud overlay for operations administration and management
US9553736B2 (en) Aggregating data traffic from access domains
US9654303B2 (en) Method and apparatus for emulating network devices
US20170331741A1 (en) Mac chaining load balancer
CN108574630A (zh) Evpn报文处理方法、设备及系统
US7990965B1 (en) Transmission of layer two (L2) multicast traffic over multi-protocol label switching networks
CN112565046B (zh) 同步多播路由器能力
CN112202669A (zh) 使用分段路由的弹性多协议标签交换(mpls)环
US11349735B2 (en) Faster fault-detection mechanism, for example using bidirectional forwarding detection (BFD), on network nodes and/or hosts multihomed using a link aggregation group (LAG)
US8976644B2 (en) Multicast traffic forwarding on pruned interface
WO2021082812A1 (zh) 报文的发送方法和第一网络设备
US8953607B2 (en) Internet group membership protocol group membership synchronization in virtual link aggregation
WO2021093463A1 (zh) 报文转发的方法、第一网络设备以及第一设备组
WO2020088379A1 (zh) 一种业务流处理方法及装置
US9036634B2 (en) Multicast route entry synchronization
WO2020043106A1 (zh) 通信方法和通信设备
López-Rodríguez et al. A robust SDN network architecture for service providers
CN109756412B (zh) 一种数据报文转发方法以及设备
CN113765809A (zh) Bier组播流量的统计方法、设备以及系统
CN108768861B (zh) 一种发送业务报文的方法及装置
CN114422415A (zh) 在分段路由中的出口节点处理流
CN117478655A (zh) 静态组播流在组播环网中的传输方法及系统
KR20170140462A (ko) Mpls-tp 기반 네트워크의 이종 벤더망 연동시 종단 간 회선 설정 시스템 및 방법

Legal Events

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

Ref document number: 19877762

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2021522526

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

ENP Entry into the national phase

Ref document number: 20217015150

Country of ref document: KR

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 2019877762

Country of ref document: EP

Effective date: 20210512