CN113949667A - Message processing method and node equipment in segmented network - Google Patents

Message processing method and node equipment in segmented network Download PDF

Info

Publication number
CN113949667A
CN113949667A CN202111484119.7A CN202111484119A CN113949667A CN 113949667 A CN113949667 A CN 113949667A CN 202111484119 A CN202111484119 A CN 202111484119A CN 113949667 A CN113949667 A CN 113949667A
Authority
CN
China
Prior art keywords
message
srv6
node device
packet
node
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202111484119.7A
Other languages
Chinese (zh)
Inventor
宋小恒
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
New H3C Big Data Technologies Co Ltd
Original Assignee
New H3C Big Data Technologies Co Ltd
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 New H3C Big Data Technologies Co Ltd filed Critical New H3C Big Data Technologies Co Ltd
Priority to CN202111484119.7A priority Critical patent/CN113949667A/en
Publication of CN113949667A publication Critical patent/CN113949667A/en
Pending legal-status Critical Current

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/12Avoiding congestion; Recovering from congestion

Landscapes

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

Abstract

The invention discloses a message processing method and node equipment in a segmented network, wherein the method comprises the following steps: receiving tunnel path information issued by a controller, wherein the tunnel path information is used for limiting end node equipment through which a message is transmitted from the source node equipment to tail node equipment, and message forwarding ports and message output queues corresponding to the end node equipment and the tail node equipment; acquiring an original message, and packaging the original message into SRv6 messages according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device; and forwarding the SRv6 message to the next hop end node equipment represented by the destination address according to the destination address defined in the SRv6 message. The technical scheme provided by the invention can improve the efficiency of message forwarding.

Description

Message processing method and node equipment in segmented network
Technical Field
The invention relates to the technical field of internet, in particular to a message processing method and node equipment in a segmented network.
Background
Segment Routing (SR), as a source Routing technology based on SDN (Software Defined Network) concept, may form a Network architecture facing path connection, thereby supporting multi-level programmable requirements of future networks.
Currently, SRv6 is an extended SR scheme based on IPv 6. Specifically, after the source node device receives the IPv6 message, it encapsulates an SRH (Segment Routing Header) in the IPv6 message, thereby generating a SRv6 message. In SRH, node Segment Identifiers (SIDs) of node devices in a transmission path are usually carried. Based on the SID, SRv6 may go through the various node devices in the transmission path in turn. When SRv6 message arrives at a certain end node device, the end node device can forward SRv6 message to next hop device by looking up routing table through destination address SRv 6. When SRv6 message reaches the tail node device, the tail node device can strip the IPv6 basic header and SRH, thereby restoring the original message. Finally, the tail node device can search the routing table according to the destination address in the original message, and then forward the original message.
However, the scheduling advantage of the source node device is not fully utilized in the conventional SRv6 packet processing method, because the end node device and the tail node device still perform independent egress scheduling in a manner of looking up a routing table when forwarding packets, and the process of the egress scheduling cannot be preset by the source node device. If the output queue under the output port defined by the routing table has data congestion, the efficiency of message forwarding is seriously affected. In view of this, there is a need for an improved way of handling messages in a segmented network.
Disclosure of Invention
In view of this, the embodiment of the present invention provides a packet processing method and a node device in a segmented network, which can improve the efficiency of packet forwarding.
One aspect of the present invention provides a method for processing a packet in a segment network, where the method is applied to a source node device of the segment network, and the method includes: receiving tunnel path information issued by a controller, wherein the tunnel path information is used for limiting end node equipment through which a message is transmitted from the source node equipment to tail node equipment, and message forwarding ports and message output queues corresponding to the end node equipment and the tail node equipment; acquiring an original message, and packaging the original message into SRv6 messages according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device; and forwarding the SRv6 message to a next hop end node device represented by the destination address according to the destination address defined in the IPv6 basic header of the SRv6 message.
In one embodiment, encapsulating the original packet into an SRv6 packet according to the tunnel path information specifically includes: constructing a segmented routing extension head, wherein the segmented routing extension head comprises a source transmission marking bit and node segment identifications of the end node equipment and the tail node equipment, and when the source transmission marking bit is set to be a valid bit, the end node equipment and the tail node equipment are indicated to carry out message transmission according to a message forwarding port and a message output queue limited in the node segment identifications; and splicing the segmented routing extension header into the original message to generate an encapsulated SRv6 message.
In one embodiment, the node segment identifier further includes a network address of the end node device or the end node device and a processing method of the end node device or the end node device on the received packet.
In one embodiment, the method further comprises: and if updated tunnel path information sent by the controller is received again, encapsulating the original message to be processed according to the updated tunnel path information.
Another aspect of the present invention further provides a source node device of a segmented network, where the source node device includes: a tunnel path information receiving unit, configured to receive tunnel path information issued by a controller, where the tunnel path information is used to limit end node devices through which a packet needs to pass when being transmitted from the source node device to a tail node device, and packet forwarding ports and packet output queues corresponding to the end node devices and the tail node device; a message encapsulation unit, configured to obtain an original message, and encapsulate the original message into an SRv6 message according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device; and a packet forwarding unit, configured to forward the SRv6 packet to the next-hop end node device represented by the destination address according to the destination address defined in the IPv6 basic header of the SRv6 packet.
Another aspect of the present invention further provides a packet processing method in a segment network, where the method is applied to an end node device of the segment network, and the method includes: receiving SRv6 messages sent by previous hop equipment, and after recognizing that SRv6 messages carry effective source transmission marking bits, analyzing node segment identifications of the messages in SRv6 messages so as to recognize message forwarding ports and message output queues from the node segment identifications; analyzing a node segment identifier of a next hop device in the SRv6 message to identify a network address of the next hop device; and modifying the destination address in the SRv6 message into the network address of the next hop device, and forwarding the modified SRv6 message to the next hop device according to the message forwarding port and the message output queue.
In one embodiment, the method further comprises: counting congestion parameters of each message output queue at each message forwarding port at the current moment, and reporting the counted congestion parameters to a controller, so that the controller updates tunnel path information based on the received congestion parameters, and sends the updated tunnel path information to source node equipment of the segmented network; wherein the tunnel path information is used by the source node device to construct SRv6 a packet.
In another aspect, the present invention further provides an end node device in a segmented network, where the end node device includes: a message analyzing unit, configured to receive an SRv6 message sent by a previous hop device, and after recognizing that the SRv6 message carries an effective source transmission flag bit, analyze a node segment identifier of the message in the SRv6 message, so as to recognize a message forwarding port and a message output queue from the node segment identifier; an address identifying unit, configured to analyze a node segment identifier of a next hop device in the SRv6 message, so as to identify a network address of the next hop device; and the message forwarding unit is configured to modify the destination address in the SRv6 message into the network address of the next-hop device, and forward the modified SRv6 message to the next-hop device according to the message forwarding port and the message output queue.
Another aspect of the present invention further provides a packet processing method in a segment network, where the method is applied to a tail node device of the segment network, and the method includes: receiving SRv6 messages sent by previous hop equipment, and after recognizing that SRv6 messages carry effective source transmission marking bits, analyzing node segment identifications of the messages in SRv6 messages so as to recognize message forwarding ports and message output queues from the node segment identifications; and decapsulating the SRv6 packet into an original packet, and forwarding the original packet to a host device to which a destination address of the original packet points through the packet forwarding port and the packet output queue.
Another aspect of the present invention further provides a tail node device in a segment network, where the tail node device includes: a message identification unit, configured to receive an SRv6 message sent by a previous hop device, and after identifying that the SRv6 message carries an effective source transmission flag bit, parse a node segment identifier of the message in the SRv6 message, so as to identify a message forwarding port and a message output queue from the node segment identifier; and the decapsulation forwarding unit is configured to decapsulate the SRv6 packet into an original packet, and forward the original packet to the host device to which the destination address of the original packet points through the packet forwarding port and the packet output queue.
According to the technical scheme provided by the application, the end node equipment and the tail node equipment can acquire the congestion parameters of each message output queue under each message forwarding port of the end node equipment and the tail node equipment according to the designated period, and report the acquired congestion parameters to the controller. The controller can plan an optimal transmission path according to the received congestion parameters. The optimal transmission path not only limits each end node device from the source node device to the tail node device, but also limits the message forwarding port and the message output queue adopted by the node device at the upper end of the path and the tail node device, thereby avoiding the congestion condition in the message transmission process to the maximum extent.
After the controller plans the optimal path, the controller may issue the corresponding tunnel path information to the source node device. The tunnel path information may include the information of the end node device, and the packet forwarding port and the packet output queue corresponding to the end node device and the tail node device. Thus, when the source node device encapsulates the original message, the generated SID may include a message forwarding port and a message output queue. The end node device and the tail node device can forward according to the message forwarding port and the message output queue designated in the SID without spending time to inquire the routing table, so that the message forwarding process of the end node device and the tail node device is simplified under the condition of avoiding data congestion, and the message forwarding efficiency is improved.
Drawings
The features and advantages of the present invention will be more clearly understood by reference to the accompanying drawings, which are illustrative and not to be construed as limiting the invention in any way, and in which:
FIG. 1 shows an architectural diagram of a segmented network in one embodiment of the invention;
fig. 2 is a schematic diagram illustrating steps of a packet processing method in a segment network performed by a source node device according to an embodiment of the present invention;
fig. 3 is a schematic structural diagram illustrating an encapsulated SRv6 message according to an embodiment of the present invention;
fig. 4 is a functional block diagram of a source node device according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating steps of a packet processing method in a segment network executed by an end node device according to an embodiment of the present invention;
FIG. 6 is a functional block diagram of an end node device in accordance with an embodiment of the present invention;
fig. 7 is a schematic diagram illustrating steps of a packet processing method in a segment network performed by a tail node device according to an embodiment of the present invention;
fig. 8 is a functional block diagram of a tail node device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be described clearly and completely with reference to the accompanying drawings of the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all embodiments of the present invention. All other embodiments, which can be obtained by a person skilled in the art without inventive step based on the embodiments of the present invention, are within the scope of the present invention.
SRv6 message Header usually contains IPv6 basic Header and segment routing Header (SR Header, SRH). Referring to table 1, the IPv6 basic header may include a Source Address field and a Destination Address field, which are respectively used to fill a Source Address (Source Address) and a Destination Address (Destination Address) of the message. The existing Segment routing header may include Segment Left information (SL), flags field (flags), and node Segment Identification (SID). The segment residual information may represent the number of segment networks that the message needs to be transmitted. The flag field may be filled with a preset flag, which in the prior art may include C, P, O, A, H, for example. Wherein, different preset marks can represent different processing modes and/or different types of the message.
Table 1 structural schematic of 1 SRv6 header
Figure BDA0003396779650000061
In the present application, the SRH in the SRv6 message may be improved. Referring to Table 2, SRH usually contains three fields, Locator, Function and definitions. The Locator has a positioning function, and can uniformly allocate a unique address field of the whole network by the controller, wherein the unique address field of the whole network can correspond to the end node device or the tail node device. The source node device may publish the network-wide unique address segment in the network, and the other node devices may learn a route to the address segment, thereby locating the node device at the address segment based on the learned route. The Function may represent an action instruction of the node device, and what processing should be performed on the packet when the packet is received by the node device is determined by the action instruction in the Function. For example, in the present application, in the SID corresponding to the end node device, the action instruction in the Function may be a forwarding instruction, which indicates to forward the packet. In the SID corresponding to the tail node device, the action instruction in the Function may be a stripping and forwarding instruction, which indicates to strip the IPv6 basic header and SRH from SRv6, restore the original packet, and forward the original packet. The Arguments may represent parameters corresponding to the action instructions in the Function. In this application, the definitions may fill in a packet forwarding port and a packet output queue used by the node device when forwarding a packet. In this way, when parsing the SID, the node device may know from the Function that a forwarding action should be currently performed on a packet, and may know from rules through which packet forwarding port and packet output queue the forwarding action should be performed.
TABLE 2 schematic representation of the improved SRH
Figure BDA0003396779650000071
In table 2, Port indicates the packet forwarding Port, and Queue indicates the packet output Queue. In the present application, in addition to improving the content of the field in the SID, the preset flag in the flag field may also be improved. C, P, O, A, H may be included in the flag field, and in this application, in order to instruct the end node device and the end node device to forward packets according to the packet forwarding port and packet egress queue in the SID, a source transmission flag bit (S) may be added in the flag field, and when the value of the source transmission flag bit is set to 1, it may indicate that the source transmission flag bit is set to a valid bit. At this time, the end node device and the tail node device do not forward the message according to the mode of inquiring the routing table any more, but forward the message according to the message forwarding port and the message exit queue in the SID.
The technical scheme provided by the application can be applied to the segmented network shown in figure 1. In the segmented network shown in fig. 1, a controller, a spine switch (spine), a leaf switch (leaf), a virtual switch (ovs), and a host device (host) may be included. The virtual switch and the host device can be located in the same server, and the virtual switch and the host device can be separated from the server through a virtualization technology. In fig. 1, ovs1 may serve as source node devices, ovs4 may serve as tail node devices, and leaf switches and spine switches may serve as end node devices. Ovs1 receives the original message from host1, and encapsulates the original message into SRv6 message, and transmits SRv6 message through leaf switch and spine switch to ovs 4. After the header is stripped from ovs4, the original packet obtained by the restoration may be forwarded to host 4.
Specifically, referring to fig. 2, a method for processing a packet in a segmented network executed by a source node device according to an embodiment of the present application may include the following steps.
S11: and receiving tunnel path information issued by a controller, wherein the tunnel path information is used for limiting end node equipment through which a message is transmitted from the source node equipment to the tail node equipment, and message forwarding ports and message output queues corresponding to the end node equipment and the tail node equipment.
In this embodiment, the end node device and the tail node device may count congestion parameters of each packet output queue at each packet forwarding port of the end node device and the tail node device at the current time according to a specified period. In practical applications, the congestion parameter may be represented by a plurality of items of data. For example, the congestion parameter may be a data length in each packet output queue, a packet loss rate corresponding to each packet output queue, or a comprehensive parameter calculated based on the data length and the packet loss rate. The concrete expression form of the congestion parameter is not limited, and the data transmission quality of the message output queue under the message forwarding port can be represented.
In this embodiment, the end node device and the tail node device may report the statistical congestion parameter to the controller, so that the controller may plan an optimal transmission path from the source node device to the tail node device according to an existing path planning algorithm based on the received congestion parameter. The optimal transmission path not only limits each end node device from the source node device to the tail node device, but also limits the message forwarding port and the message output queue adopted by the node device at the upper end of the path and the tail node device, thereby avoiding the congestion condition in the message transmission process to the maximum extent.
In this embodiment, the controller may issue the planned optimal transmission path to the source node device in the form of tunnel path information. In the tunnel path information, the device identifiers of the end node device and the tail node device can be noted, and the network addresses of the end node device and the tail node device, the corresponding message forwarding ports and the corresponding message output queues can be associated with the device identifiers. Therefore, after receiving the tunnel path information sent by the controller, the source node device can know the end node device through which the message sent by the host needs to be transmitted from the source node device to the tail node device, and the message forwarding port and the message output queue corresponding to the end node device and the tail node device.
S13: acquiring an original message, and packaging the original message into SRv6 messages according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device.
In this embodiment, the source node device may obtain an original packet to be transmitted from the host device, and then encapsulate the original packet into an SRv6 packet by constructing a segment routing extension header, and then transmit the SRv6 packet through a segment network.
Specifically, in one embodiment, the source node device may construct an SRH as shown in table 2, and in the SRH, may include a source transmission flag bit (S) and node Segment Identifications (SIDs) of the end node device and the tail node device. When the source transmission marking bit is set to be the valid bit, the end node device and the tail node device are indicated to need to carry out message transmission according to the message forwarding port and the message output queue limited in the node segment identification.
After the SRH is constructed, the SRH may be spliced into the original message, thereby generating an encapsulated SRv6 message. The generated SRv6 message may be as shown in fig. 3, the content of the original message may be filled in the IPv6 payload, and in SRv6 message, the basic header of IPv6 and the constructed SRH may be included.
S15: and forwarding the SRv6 message to a next hop end node device represented by the destination address according to the destination address defined in the IPv6 basic header of the SRv6 message.
In the present embodiment, in the basic header of IPv6, the source address may be set as the IP address of the source node device, and the destination address may be set as the IP address of the next hop device (leaf 1). Thus, when forwarding SRv6 packets, the source node device may forward SRv6 packets to the next-hop node device (leaf1) characterized by the destination address defined in the SRv6 packet.
It should be noted that, because the environment of the segment network is constantly changing, the optimal transmission path planned by the controller based on the congestion parameter at the current time is not necessarily suitable for the subsequent packet forwarding process. Therefore, the controller plans the optimal transmission path based on the congestion parameters at different time points. If the optimal transmission path is changed, the controller generates corresponding tunnel path information based on the changed optimal transmission path, and sends the regenerated tunnel path information to the source node equipment.
Therefore, when the source node device receives the updated tunnel path information sent by the controller again, the original message to be processed can be encapsulated according to the updated tunnel path information. That is, for original messages received at different times, the source node device may generate SRHs with different contents, so that the packaged SRv6 messages are also not identical. Therefore, by sensing the network environment in real time, the transmission paths can be uniformly scheduled from the source node equipment, and the message forwarding of each end node equipment or tail node equipment is not required to be carried out by inquiring a routing table, so that the message forwarding efficiency is greatly improved.
Referring to fig. 4, an embodiment of the present application further provides a source node device of a segmented network, where the source node device includes:
a tunnel path information receiving unit, configured to receive tunnel path information issued by a controller, where the tunnel path information is used to limit end node devices through which a packet needs to pass when being transmitted from the source node device to a tail node device, and packet forwarding ports and packet output queues corresponding to the end node devices and the tail node device;
a message encapsulation unit, configured to obtain an original message, and encapsulate the original message into an SRv6 message according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device;
and a packet forwarding unit, configured to forward the SRv6 packet to the next-hop end node device represented by the destination address according to the destination address defined in the IPv6 basic header of the SRv6 packet.
In one embodiment, the packet encapsulation unit specifically includes:
an SRH constructing module, configured to construct a segment routing extension header, where the segment routing extension header includes a source transmission flag bit and node segment identifiers of the end node device and the tail node device, and when the source transmission flag bit is set to a valid bit, it indicates that the end node device and the tail node device perform packet transmission according to a packet forwarding port and a packet output queue defined in the node segment identifiers;
and the encapsulating module is used for splicing the segmented routing extension head into the original message to generate an encapsulated SRv6 message.
Referring to fig. 5, an embodiment of the present application further provides a message processing method in a segmented network performed by an end node device, where the method may include the following steps.
S21: receiving SRv6 messages sent by previous hop equipment, and after recognizing that SRv6 messages carry effective source transmission marking bits, analyzing node segment identifications of the messages in SRv6 messages so as to recognize message forwarding ports and message output queues from the node segment identifications.
In this embodiment, when the end node device receives the SRv6 message sent by the previous-hop device (which may be the source node device or other end node devices), it can be identified whether the SRv6 message carries a valid source transmission flag bit. If the valid source transmission flag bit is not carried, the end node device may identify the network address of the next-hop device from the corresponding SID according to the existing segment routing technology based on the current SL, and forward SRv6 the packet to the next-hop device by querying the routing table.
If SRv6 carries valid source transmission flag bit, it indicates that the end node device needs to forward message according to the message forwarding port and message output queue defined in SID, and does not need to execute the action of inquiring routing table. Specifically, after determining that the SRv6 message carries an effective source transmission flag bit, the end node device may first analyze the SID corresponding to itself in the SRv6 message, thereby obtaining an action instruction (forwarding) executed on the SRv6 message from the Function of the SID, and further obtaining a message forwarding port and a message output queue for forwarding the SRv6 message from the definitions of the SID.
S23: and resolving the node segment identification of the next-hop equipment in the SRv6 message to identify the network address of the next-hop equipment.
In this embodiment, the end node device may further analyze the SID of the next-hop device from the SRv6 message, and identify the network address of the next-hop device from the Locator of the SID of the next-hop device. In this way, the end node device knows to which network address the next hop device the current SRv6 packet should be forwarded according to what packet forwarding port and packet output queue.
S25: and modifying the destination address in the SRv6 message into the network address of the next hop device, and forwarding the modified SRv6 message to the next hop device according to the message forwarding port and the message output queue.
In this embodiment, before forwarding SRv6 a packet, an end node device needs to update a destination address in a basic header of IPv6, specifically, the end node device may modify the destination address in the basic header of IPv6 to a network address of an identified next-hop device, and forward SRv6 a modified packet to the next-hop device according to the packet forwarding port and the packet output queue.
In the application, the end node device not only forwards the message, but also counts the congestion parameters of each message output queue under each message forwarding port of the end node device according to the specified time period, and reports the counted congestion parameters to the controller. In this way, the controller may update the tunnel path information based on the received congestion parameter, and issue the updated tunnel path information to the source node device of the segment network. The source node device may construct SRv6 messages to be transmitted according to the tunnel path information.
For example, in fig. 1, if a queue 2 from a leaf1 to a port 1 of a spine1 has a congestion risk and the bandwidth utilization rate exceeds 90%, the controller may select another queue 3 of the port 1 as a packet output queue, and send tunnel path information updated from ovs1 to ovs4 to ovs1, and ovs1 may update local tunnel path information.
For another example, queue 2 of port 1 of leaf1 to spine1 has a packet loss at a certain time, and the controller finds that each queue of port 1 has a congestion risk and no queue is available for selection. The controller may switch traffic between host1 to host4 to other tunnels between ovs1 and ovs4, the tunnel path of which may be ovs 1-leaf 1-spine 2-leaf 4-ovs 4, and the selected path is not at risk of congestion.
Therefore, through the method, SRv6 tunnel forwarding between the source node equipment and the tail node equipment is completely specified by the source node equipment, the controller can monitor the flow forwarding state of the tunnel along the way in real time and timely regulate and control ports and queues, and flow supervision on the tunnel is completed flexibly.
Referring to fig. 6, the present application further provides an end node device in a segmented network, the end node device comprising:
a message analyzing unit, configured to receive an SRv6 message sent by a previous hop device, and after recognizing that the SRv6 message carries an effective source transmission flag bit, analyze a node segment identifier of the message in the SRv6 message, so as to recognize a message forwarding port and a message output queue from the node segment identifier;
an address identifying unit, configured to analyze a node segment identifier of a next hop device in the SRv6 message, so as to identify a network address of the next hop device;
and the message forwarding unit is configured to modify the destination address in the SRv6 message into the network address of the next-hop device, and forward the modified SRv6 message to the next-hop device according to the message forwarding port and the message output queue.
In one embodiment, the end node device further comprises:
a congestion statistic unit, configured to count congestion parameters of each packet output queue at each packet forwarding port at a current time, and report the counted congestion parameters to a controller, so that the controller updates tunnel path information based on the received congestion parameters, and sends the updated tunnel path information to a source node device of the segment network; wherein the tunnel path information is used by the source node device to construct SRv6 a packet.
Referring to fig. 7, an embodiment of the present application further provides a method for packet processing in a segmented network, where the method is executed by a tail node device, and the method includes the following steps.
S31: receiving SRv6 messages sent by previous hop equipment, and after recognizing that SRv6 messages carry effective source transmission marking bits, analyzing node segment identifications of the messages in SRv6 messages so as to recognize message forwarding ports and message output queues from the node segment identifications.
S33: and decapsulating the SRv6 packet into an original packet, and forwarding the original packet to a host device to which a destination address of the original packet points through the packet forwarding port and the packet output queue.
In this embodiment, after receiving the SRv6 message sent by the previous device, the tail node device may also determine whether the SRv6 message carries an effective source transmission flag bit first according to a similar processing manner of the end node device. If not, it can be processed in the prior art manner. If a valid source transport flag bit is carried, the contents of functions and definitions can be identified in the SID itself. The content in the Function indicates that the tail node device needs to strip and forward SRv6, and the rules define the port and queue for forwarding packets. In this way, the tail node device can strip off SRv6 the basic header and SRH of IPv6, thereby restoring the original message. In the original message, the source and destination addresses are also carried, except that the source address points to host1 and the destination address points to host 4. Thus, the tail node device may forward the original message to host4 according to the destination address in the original message. At this point, the message forwarding process from host1 to host4 is finished.
Referring to fig. 8, an embodiment of the present application further provides a tail node device in a segmented network, where the tail node device includes:
a message identification unit, configured to receive an SRv6 message sent by a previous hop device, and after identifying that the SRv6 message carries an effective source transmission flag bit, parse a node segment identifier of the message in the SRv6 message, so as to identify a message forwarding port and a message output queue from the node segment identifier;
and the decapsulation forwarding unit is configured to decapsulate the SRv6 packet into an original packet, and forward the original packet to the host device to which the destination address of the original packet points through the packet forwarding port and the packet output queue.
Therefore, according to the technical scheme provided by the application, the end node device and the tail node device can acquire the congestion parameters of each message output queue under each message forwarding port of the end node device and the tail node device according to the designated period, and report the acquired congestion parameters to the controller. The controller can plan an optimal transmission path according to the received congestion parameters. The optimal transmission path not only limits each end node device from the source node device to the tail node device, but also limits the message forwarding port and the message output queue adopted by the node device at the upper end of the path and the tail node device, thereby avoiding the congestion condition in the message transmission process to the maximum extent.
After the controller plans the optimal path, the controller may issue the corresponding tunnel path information to the source node device. The tunnel path information may include the information of the end node device, and the packet forwarding port and the packet output queue corresponding to the end node device and the tail node device. Thus, when the source node device encapsulates the original message, the generated SID may include a message forwarding port and a message output queue. The end node device and the tail node device can forward according to the message forwarding port and the message output queue designated in the SID without spending time to inquire the routing table, so that the message forwarding process of the end node device and the tail node device is simplified under the condition of avoiding data congestion, and the message forwarding efficiency is improved.
The present application further provides a node device, where the node device includes a memory and a processor, where the memory is used to store a computer program, and when the computer program is executed by the processor, the node device implements the packet processing method in the segmented network.
The present application further provides a computer storage medium, where the computer storage medium is used to store a computer program, and when the computer program is executed by a processor, the method for processing a message in a segment network is implemented.
The processor may be a Central Processing Unit (CPU). The Processor may also be other general purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, or a combination thereof.
The memory, which is a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules corresponding to the methods of the embodiments of the present invention. The processor executes various functional applications and data processing of the processor by executing non-transitory software programs, instructions and modules stored in the memory, that is, the method in the above method embodiment is realized.
The memory may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created by the processor, and the like. Further, the memory may include high speed random access memory, and may also include non-transitory memory, such as at least one disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, the memory optionally includes memory located remotely from the processor, and such remote memory may be coupled to the processor via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
It will be understood by those skilled in the art that all or part of the processes of the methods of the above embodiments may be implemented by a computer program, which can be stored in a computer-readable storage medium, and when executed, can include the processes of the embodiments of the methods described above. The storage medium may be a magnetic Disk, an optical Disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a Flash Memory (Flash Memory), a Hard Disk (Hard Disk Drive, abbreviated as HDD), a Solid State Drive (SSD), or the like; the storage medium may also comprise a combination of memories of the kind described above.
Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope defined by the appended claims.

Claims (10)

1. A message processing method in a segmented network is applied to a source node device of the segmented network, and the method comprises the following steps:
receiving tunnel path information issued by a controller, wherein the tunnel path information is used for limiting end node equipment through which a message is transmitted from the source node equipment to tail node equipment, and message forwarding ports and message output queues corresponding to the end node equipment and the tail node equipment;
acquiring an original message, and packaging the original message into SRv6 messages according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device;
and forwarding the SRv6 message to a next hop end node device represented by the destination address according to the destination address defined in the IPv6 basic header of the SRv6 message.
2. The method according to claim 1, wherein encapsulating the original packet into the SRv6 packet according to the tunnel path information specifically includes:
constructing a segmented routing extension head, wherein the segmented routing extension head comprises a source transmission marking bit and node segment identifications of the end node equipment and the tail node equipment, and when the source transmission marking bit is set to be a valid bit, the end node equipment and the tail node equipment are indicated to carry out message transmission according to a message forwarding port and a message output queue limited in the node segment identifications;
and splicing the segmented routing extension header into the original message to generate an encapsulated SRv6 message.
3. The method according to claim 1 or 2, wherein the node segment identifier further includes a network address of the end node device or the tail node device and a processing manner of the end node device or the tail node device on the received packet.
4. The method of claim 1, further comprising:
and if updated tunnel path information sent by the controller is received again, encapsulating the original message to be processed according to the updated tunnel path information.
5. A source node device of a segmented network, the source node device comprising:
a tunnel path information receiving unit, configured to receive tunnel path information issued by a controller, where the tunnel path information is used to limit end node devices through which a packet needs to pass when being transmitted from the source node device to a tail node device, and packet forwarding ports and packet output queues corresponding to the end node devices and the tail node device;
a message encapsulation unit, configured to obtain an original message, and encapsulate the original message into an SRv6 message according to the tunnel path information; the SRv6 message includes node segment identifiers of the end node device and the tail node device, and the node segment identifiers include a message forwarding port and a message output queue corresponding to the end node device or the tail node device;
and a packet forwarding unit, configured to forward the SRv6 packet to the next-hop end node device represented by the destination address according to the destination address defined in the IPv6 basic header of the SRv6 packet.
6. A message processing method in a segmented network, wherein the method is applied to an end node device of the segmented network, and the method comprises the following steps:
receiving SRv6 messages sent by previous hop equipment, and after recognizing that SRv6 messages carry effective source transmission marking bits, analyzing node segment identifications of the messages in SRv6 messages so as to recognize message forwarding ports and message output queues from the node segment identifications;
analyzing a node segment identifier of a next hop device in the SRv6 message to identify a network address of the next hop device;
and modifying the destination address in the SRv6 message into the network address of the next hop device, and forwarding the modified SRv6 message to the next hop device according to the message forwarding port and the message output queue.
7. The method of claim 1, further comprising:
counting congestion parameters of each message output queue at each message forwarding port at the current moment, and reporting the counted congestion parameters to a controller, so that the controller updates tunnel path information based on the received congestion parameters, and sends the updated tunnel path information to source node equipment of the segmented network; wherein the tunnel path information is used by the source node device to construct SRv6 a packet.
8. An end node device in a segmented network, the end node device comprising:
a message analyzing unit, configured to receive an SRv6 message sent by a previous hop device, and after recognizing that the SRv6 message carries an effective source transmission flag bit, analyze a node segment identifier of the message in the SRv6 message, so as to recognize a message forwarding port and a message output queue from the node segment identifier;
an address identifying unit, configured to analyze a node segment identifier of a next hop device in the SRv6 message, so as to identify a network address of the next hop device;
and the message forwarding unit is configured to modify the destination address in the SRv6 message into the network address of the next-hop device, and forward the modified SRv6 message to the next-hop device according to the message forwarding port and the message output queue.
9. A method for processing a message in a segmented network is applied to a tail node device of the segmented network, and the method comprises the following steps:
receiving SRv6 messages sent by previous hop equipment, and after recognizing that SRv6 messages carry effective source transmission marking bits, analyzing node segment identifications of the messages in SRv6 messages so as to recognize message forwarding ports and message output queues from the node segment identifications;
and decapsulating the SRv6 packet into an original packet, and forwarding the original packet to a host device to which a destination address of the original packet points through the packet forwarding port and the packet output queue.
10. A tail-node device in a segmented network, the tail-node device comprising:
a message identification unit, configured to receive an SRv6 message sent by a previous hop device, and after identifying that the SRv6 message carries an effective source transmission flag bit, parse a node segment identifier of the message in the SRv6 message, so as to identify a message forwarding port and a message output queue from the node segment identifier;
and the decapsulation forwarding unit is configured to decapsulate the SRv6 packet into an original packet, and forward the original packet to the host device to which the destination address of the original packet points through the packet forwarding port and the packet output queue.
CN202111484119.7A 2021-12-07 2021-12-07 Message processing method and node equipment in segmented network Pending CN113949667A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111484119.7A CN113949667A (en) 2021-12-07 2021-12-07 Message processing method and node equipment in segmented network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111484119.7A CN113949667A (en) 2021-12-07 2021-12-07 Message processing method and node equipment in segmented network

Publications (1)

Publication Number Publication Date
CN113949667A true CN113949667A (en) 2022-01-18

Family

ID=79339057

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111484119.7A Pending CN113949667A (en) 2021-12-07 2021-12-07 Message processing method and node equipment in segmented network

Country Status (1)

Country Link
CN (1) CN113949667A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037690A (en) * 2022-06-21 2022-09-09 阿里巴巴(中国)有限公司 Traffic scheduling method and device, electronic equipment and storage medium
WO2024065732A1 (en) * 2022-09-30 2024-04-04 新华三技术有限公司 Data processing method and apparatus, forwarding chip, and network device
CN117896177A (en) * 2024-03-12 2024-04-16 明阳产业技术研究院(沈阳)有限公司 SRv6 communication method and system based on IPv6 password identification
CN117896177B (en) * 2024-03-12 2024-05-14 明阳产业技术研究院(沈阳)有限公司 SRv6 communication method and system based on IPv6 password identification

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115037690A (en) * 2022-06-21 2022-09-09 阿里巴巴(中国)有限公司 Traffic scheduling method and device, electronic equipment and storage medium
WO2024065732A1 (en) * 2022-09-30 2024-04-04 新华三技术有限公司 Data processing method and apparatus, forwarding chip, and network device
CN117896177A (en) * 2024-03-12 2024-04-16 明阳产业技术研究院(沈阳)有限公司 SRv6 communication method and system based on IPv6 password identification
CN117896177B (en) * 2024-03-12 2024-05-14 明阳产业技术研究院(沈阳)有限公司 SRv6 communication method and system based on IPv6 password identification

Similar Documents

Publication Publication Date Title
US11374848B2 (en) Explicit routing with network function encoding
US10243827B2 (en) Techniques to use a network service header to monitor quality of service
CN111953604B (en) Method and device for providing business service for business flow
CN105723657B (en) Switch, controller, system and link quality detection method
CN111385121B (en) Transmission method of operation administration maintenance (iOAM) message and corresponding device
CN107181663A (en) A kind of message processing method, relevant device and computer-readable recording medium
CN113949667A (en) Message processing method and node equipment in segmented network
CN105024985A (en) Message processing method and apparatus
US8938794B2 (en) Access relay method and access gateway device
CN113259239A (en) Method, equipment and system for forwarding message in hybrid network
CN108964943A (en) A kind of method and device for realizing IOAM encapsulation
CN111147372B (en) Downlink message sending and forwarding method and device
WO2018188663A1 (en) Method and device for information notification
WO2021190009A1 (en) Performance measurement method and apparatus, device, and storage medium
CN109547288B (en) Programmable flow measuring method for protocol independent forwarding network
CN113328902A (en) Network performance detection method and device and network equipment
CN105516025A (en) End-to-end path control and data transmission method, OpenFlow controller and a switch
CN111801911A (en) Traffic function chain congestion tracking
CN111543034B (en) Self-describing packet headers for parallel processing
CN114205282B (en) SRv6 Policy scheduling method, system, router and controller
US10587519B2 (en) Clos network load balancing method and apparatus
CN112737995B (en) Method, device and equipment for processing Ethernet frame and storage medium
US20230327983A1 (en) Performance measurement in a segment routing network
CN115242892B (en) Stream identifier acquisition method, device, equipment and medium
CN111327445B (en) Message sampling method, message unpacking method, node, system and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication