CN112311592A - SRv6SID self-adaptive networking method and device - Google Patents

SRv6SID self-adaptive networking method and device Download PDF

Info

Publication number
CN112311592A
CN112311592A CN202011047369.XA CN202011047369A CN112311592A CN 112311592 A CN112311592 A CN 112311592A CN 202011047369 A CN202011047369 A CN 202011047369A CN 112311592 A CN112311592 A CN 112311592A
Authority
CN
China
Prior art keywords
node
srv6sid
srv6
sid
protocol packet
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.)
Granted
Application number
CN202011047369.XA
Other languages
Chinese (zh)
Other versions
CN112311592B (en
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 Security Technologies Co Ltd
Original Assignee
New H3C Security 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 Security Technologies Co Ltd filed Critical New H3C Security Technologies Co Ltd
Priority to CN202011047369.XA priority Critical patent/CN112311592B/en
Publication of CN112311592A publication Critical patent/CN112311592A/en
Application granted granted Critical
Publication of CN112311592B publication Critical patent/CN112311592B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2854Wide area networks, e.g. public data networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/46Interconnection of networks
    • H04L12/4604LAN interconnection over a backbone network, e.g. Internet, Frame Relay
    • 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/04Network management architectures or arrangements
    • 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

Landscapes

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

Abstract

The application provides an adaptive networking method and device for SRv6SID, the method is applied to a first SR node, the first SR node is in SRv6 networking, SRv6 networking also comprises a second SR node, and the method comprises the following steps: after the second SR node reestablishes the neighbor relation, the locally configured SR-TE strategy is obtained; generating a first protocol message according to the SR-TE strategy, wherein the first protocol message comprises address information of a target SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and a second SR node; and sending the first protocol message to the second SR node, so that the second SR node acquires a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID dynamically allocated locally according to the second SRv6 SID.

Description

SRv6SID self-adaptive networking method and device
Technical Field
The present application relates to the field of communications technologies, and in particular, to an adaptive networking method and apparatus for an SRv6 SID.
Background
The Segment Routing (SR) technique adopts a source node path selection mechanism, and encapsulates Segment Identifiers (SID) of segments through which a forwarding path passes at a source node in advance at the head of a service packet. When the service message passes through the SR node, the SR node forwards the service message according to the SID included in the header of the service message. The intermediate nodes and the destination nodes included in the forwarding path do not need to maintain the path state except the source node.
The Internet Protocol Version 6-Segment Routing (IPv 6 SR or SRv6) refers to using SR technology in an IPv6 network, using an IPv6 address as SID, and forwarding a service packet through a SRv6 tunnel. In SRv6, SID refers to an identifier that defines a certain network function and represents a network command. The SID, referred to as SRv6SID, takes the form of an IPv6 address, but does not correspond to the IPv6 address of the interface that any SR node includes.
In the service packet forwarding process, the SR node can satisfy different forwarding requirements of the user based on a flexible forwarding path selection manner provided by SR-TE Policy (Segment Routing Traffic Engineering Policy) of SRv 6. When a plurality of forwarding paths exist between the source node and the destination node, the SR-TE Policy is reasonably utilized to select the forwarding paths, so that management and planning of a network by management personnel are facilitated, and the forwarding pressure of network equipment can be effectively relieved.
As shown in FIG. 1, FIG. 1 is a schematic diagram of the SR-TE Policy composition. In fig. 1, SR-TE Policy is composed of a plurality of Candidate Paths (Cpath) with different priorities, each Candidate path including one or more forwarding Paths identified by a SID List (Segment Identifier List).
As shown in fig. 2, fig. 2 is a SRv6 networking diagram. In fig. 2, an EVPN L3VPN over SR-TE service IS deployed between a PE1 device and a PE2 device, SR-TE Policy IS specified in the PE1 device, a destination address IS an address of the PE2 device, and SRv6SID in a SID list IS notified by an IS-IS protocol after PE2 device IS automatically allocated. When the PE2 device reboots, PE2 reassigns the SRv6 SID. If the assigned SRv6SID is the same as the SRv6SID before restart, the SR-TE Policy specified in the PE1 device may execute normally; if the assigned SRv6SID is different from the SRv6SID before restart, the SR-TE Policy specified in the PE1 device cannot be executed normally, which results in SRv6 tunnel down and cannot forward the service packet.
At present, the method adopted to solve the problems is to avoid the problems by static manual configuration. For example, static assignment SRv6 SIDs are configured in PE2 devices. Therefore, the SRv6SID before and after the PE2 equipment is restarted can be ensured to be unchanged, so that the SR-TE Policy specified in the PE1 equipment can be normally executed, and the normal forwarding of the service message is realized. However, the SRv6SID is statically and manually configured, which increases the labor cost and is not flexible enough for practical networking.
Disclosure of Invention
In view of this, the present application provides an adaptive networking method and apparatus for SRv6SID, so as to solve the problems that in the prior art, the manual maintenance cost is increased by statically configuring SRv6SID by hand, and the actual networking is not flexible enough.
In a first aspect, the present application provides an adaptive networking method for SRv6SID, where the method is applied to a first SR node, the first SR node is in a SRv6 network, the SRv6 network further includes a second SR node, and an SR-TE service is established between the first SR node and the second SR node, and the method includes:
after the second SR node reestablishes the neighbor relation, acquiring a locally configured SR-TE strategy;
generating a first protocol message according to the SR-TE strategy, wherein the first protocol message comprises address information of a target SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
and sending the first protocol packet to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second SR node acquires a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID which is locally and dynamically allocated according to the second SRv6 SID.
In a second aspect, the present application provides an adaptive networking method for SRv6SID, where the method is applied to a second SR node, the second SR node is in a SRv6 network, the SRv6 network further includes a first SR node, and an SR-TE service is established between the second SR node and the first SR node, and the method includes:
after the second SR node is restarted, according to the local configuration information, the first SRv6SID of the second node is redistributed;
after the first SR node reestablishes the neighbor relation, receiving a first protocol message sent by the first SR node, wherein the first protocol message comprises address information of a target SR node and second SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
if the address information is characterized as the second SR node, acquiring a third SRv6SID corresponding to the second SR node from the second SRv6 SID;
determining whether the third SRv6SID is the same as the first SRv6 SID;
if not, updating the first SRv6SID according to the third SRv6 SID.
In a third aspect, the present application provides an adaptive networking apparatus for SRv6SID, where the apparatus is applied to a first SR node, the first SR node is in a SRv6 network, the SRv6 network further includes a second SR node, and an SR-TE service is established between the first SR node and the second SR node, and the apparatus includes:
the acquisition unit is used for acquiring a locally configured SR-TE strategy after the second SR node reestablishes a neighbor relation;
a generating unit, configured to generate a first protocol packet according to the SR-TE policy, where the first protocol packet includes address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
a sending unit, configured to send the first protocol packet to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second SR node obtains a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID locally and dynamically allocated according to the second SRv6 SID.
In a fourth aspect, the present application provides an adaptive networking apparatus for SRv6SID, where the apparatus is applied to a second SR node, the second SR node is in a SRv6 network, the SRv6 network further includes a first SR node, and an SR-TE service is established between the second SR node and the first SR node, and the apparatus includes:
the allocation unit is used for reallocating the first SRv6SID of the second node according to local configuration information after the second SR node is restarted;
a receiving unit, configured to receive a first protocol packet sent by the first SR node after a neighbor relation is reestablished with the first SR node, where the first protocol packet includes address information of a destination SR node and second SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
an obtaining unit, configured to obtain a third SRv6SID corresponding to the second SR node from the second SRv6SID if the address information is characterized by the second SR node;
a judging unit, configured to judge whether the third SRv6SID is identical to the first SRv6 SID;
an updating unit, configured to update the first SRv6SID according to the third SRv6SID if the first SRv6SID is different from the third SRv6 SID.
In a fifth aspect, the present application provides a network device comprising a processor and a machine-readable storage medium storing machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to perform the method provided by the first aspect of the present application.
Therefore, by applying the adaptive networking method and the adaptive networking device for SRv6 SIDs provided by the application, after the first SR node and the second SR node reestablish the neighbor relation, the first SR node acquires the locally configured SR-TE policy. According to the SR-TE strategy, the first SR node generates a first protocol message, wherein the first protocol message comprises address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node. And the first SR node sends the first protocol message to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second node acquires a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID which is locally and dynamically allocated according to the second SRv6 SID.
After the first SR node and the second SR node reestablish the neighbor relation, the first SR node sends SRv6 SIDs of all SR nodes in the path between the first SR node and the second SR node to the second SR node. When the second SR node judges that the SRv6SID of the local dynamic distribution is different from the SRv6SID sent by the first SR node, the second SR node updates the SRv6SID of the local dynamic distribution, so that the problems that in the prior art, the manual maintenance cost is increased and the actual networking is not flexible enough in a static manual configuration mode of SRv6SID are solved.
Drawings
FIG. 1 is a schematic diagram of the SR-TE Policy configuration;
FIG. 2 is a networking schematic of SRv 6;
fig. 3 is a flowchart of an adaptive networking method for SRv6SID according to an embodiment of the present disclosure;
fig. 4 is a flowchart of another adaptive networking method for SRv6SID according to an embodiment of the present disclosure;
fig. 5 is a structural diagram of an adaptive networking device for SRv6SID according to an embodiment of the present disclosure;
fig. 6 is a block diagram of an adaptive networking apparatus for SRv6SID according to an embodiment of the present disclosure;
fig. 7 is a hardware structure diagram of a network device according to an embodiment of the present application.
Detailed Description
Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, like numbers in different drawings represent the same or similar elements unless otherwise indicated. The embodiments described in the following exemplary embodiments do not represent all embodiments consistent with the present application. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the present application, as detailed in the appended claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this application and the appended claims, the singular forms "a", "an", and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It should also be understood that the term "and/or" as used herein refers to and encompasses any and all possible combinations of one or more of the corresponding listed items.
It is to be understood that although the terms first, second, third, etc. may be used herein to describe various information, such information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, first information may also be referred to as second information, and similarly, second information may also be referred to as first information, without departing from the scope of the present application. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
The adaptive networking method of SRv6SID provided in the embodiments of the present application is described in detail below. Referring to fig. 2, fig. 2 is a networking schematic diagram of SRv 6.
In fig. 2, EVPN L3VPN over SR-TE traffic is deployed between PE1 and PE2 devices. In this embodiment, the PE1 device and the PE2 device may be embodied as SR nodes. For example, PE1 device is a source SR node and PE2 device is a destination SR node.
SR-TE Policy is specified in the PE1 device. The structure of the SR-TE Policy can be shown in FIG. 1. The SR-TE Policy includes a BSID attribute field, a Color attribute field, and an Endpoint attribute field. The SR-TE Policy further comprises at least one Candidate path (Candidate Paths, Cpath) and a priority (Preference) of each Candidate path. And when the SR node forwards the service message, the SR node selects an optimal path from the candidate paths according to the priorities of the candidate paths.
Each candidate path includes at least one list of SIDs and a Weight (Weight) for each list of SIDs. The SID list includes forwarding path information for the source SR node to reach the destination SR node, and the forwarding path information is composed of SRv6 SIDs of each SR node on the forwarding path. After selecting a certain candidate path, the SR node performs load sharing of the service packet among the plurality of SID lists included in the candidate path according to the weight of each SID list.
In the embodiment of the application, the IP address of the PE1 device is 1::1, and the SRv6SID is 1000:: 1. The IP address of the PE2 device is 2::2, the SRv6SID dynamically allocated by the PE2 is 2000::4, and the type is End-x. The PE1 device establishes IS-IS neighbors and BGP neighbors with the PE2 device. The PE1 device and the PE2 device respectively send IS-IS messages including the SID of the local terminal SRv6 to the opposite terminal device. Each end device stores the SRv6SID sent by the peer device. EVPN L3VPN over SRv6 services are respectively configured on PE1 equipment and PE2 equipment, and SR-TE Policy is arranged in PE1 equipment. Wherein, the value of the BSID attribute field is SRv6SID of PE1 device, and the value of the Endpoint attribute field is IP address of PE2 device.
In the networking diagram shown in fig. 2, there is no other SR node between the PE1 device and the PE2 device, so the SR-TE Policy includes a SID list in which the SID list stores SRv6SID of PE2 as 2000::4, and configures a drainage action. The PE1 equipment enables the configured SR-TE Policy and guides the forwarding of the service message through the SR-TE Policy.
It is understood that if there are other SR nodes between the PE1 device and the PE2 device, the SR-TE Policy includes a list of SIDs that stores SRv6 SIDs for each device on the forwarding path from the PE1 device to the PE2 device.
In the embodiment of the present application, the PE2 device dynamically allocates its SRv6SID according to the dynamic allocation procedure in the prior art, and will not be repeated here.
After the PE2 device is restarted, the PE2 device performs configuration recovery according to the locally stored configuration information. The PE2 device dynamically assigns its own SRv6SID, again based on configuration information. The SRv6SID reassigned by PE2 is 2000::2, type is End-x.
After the PE1 device and the PE2 device reestablish IS-IS and BGP neighbor relations, the PE2 device generates a first IS-IS protocol message, and fills the reallocated SRv6SID (2000::2) into the sub-TLV field. The PE2 device sends the first IS-IS protocol packet to the PE1 device.
It IS to be understood that Locator route information IS also included in the first IS-IS protocol message to enable the PE1 device to learn routes to reach the PE2 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
Similarly, the PE1 device also generates an IS-IS protocol message, which includes SRv6SID (1000::1) of the PE1 device and Locator routing information, so that the PE2 device stores SRv6SID (1000::1) of the PE1 device and learns the routing to the PE1 device.
In an implementation manner, after receiving a first IS-IS protocol packet sent by a PE2 device, a PE1 device obtains a SRv6SID reallocated by a PE2 device from the first IS-IS protocol packet (2000:: 2). Meanwhile, the PE1 device determines whether the reassigned SRv6SID (2000::2) already exists in the SID list included in the SR-TE Policy configured locally by the PE1 device. That is, the PE1 device determines whether the reallocated SR-TE policies are the same as the SRv6 SIDs of PE2 stored in the SID list included in the locally configured SR-TE policies.
If not, that is, not the same, the PE1 device obtains a locally configured SR-TE Policy, and obtains the value of the Endpoint attribute field and the SRv6SID of PE2 stored in the SID list from the SR-TE Policy. If so, i.e., the same, the PE1 device may not perform the step of obtaining the locally configured SR-TE Policy.
In another implementation manner, after the first SR node of the PE1 device receives the second IS-IS protocol packet sent by the PE2 device, the first SR node does not determine the SRv6SID (2000::2) reallocated by the PE2 device included in the second IS-IS protocol packet, and the PE1 device directly executes the following steps.
The PE1 device generates a second IS-IS protocol packet. The second IS-IS protocol packet includes a flag (Flags) attribute field. The Flags attribute field includes a D flag bit (1 bit) and a Reserved (Reserved) bit (7 bits). The PE1 device occupies bit 1 of the Reserved bits for carrying flag information. When the flag information IS set, the flag information IS used for indicating the SR node receiving the second IS-IS protocol message, and guiding the dynamically allocated SRv6SID of the home terminal according to the SRv6SID included in the second IS-IS protocol message.
The PE1 equipment fills the value (2: 2) of the Endpoint attribute field in the Endpoint attribute field included in the second IS-IS protocol message; the SRv6SID (2000::4) of PE2 stored in the SID list IS padded in the sub-TLV attribute field included in the second IS-IS protocol packet.
The PE1 device sends the second IS-IS protocol packet to the PE2 device.
The PE2 device receives the second IS-IS protocol packet, and obtains the value of the flag information from the second IS-IS protocol packet. The PE2 device identifies the value of the flag information, and if the value of the flag information IS set, the PE2 device determines that the second IS-IS protocol packet IS the SRv6SID for directing the home terminal to dynamically allocate.
In the embodiment of the present application, the value of the flag information is set, that is, the value of the flag information is the first value (1). The PE2 device obtains the value of the Endpoint attribute field (2::2) from the second IS-IS protocol message. The PE2 device identifies whether the value of the Endpoint attribute field (2::2) is its own IP address. If the value of the Endpoint attribute field (2::2) characterizes its own IP address, the PE2 device obtains the value of the sub-TLV attribute field (2000::4) from the second IS-IS protocol message.
The PE2 device obtains its own reassigned SRv6SID (2000:: 2). The PE2 device identifies whether the reallocated SRv6SID (2000::2) IS the same as the SRv6SID (2000::4) of PE2 included in the second IS-IS protocol message. If not, the PE2 device updates the reallocated SRv6SID according to SRv6SID (2000::4) of the PE2 device included in the second IS-IS protocol message. That IS, the reallocated SRv6SID (2000::2) IS updated to the SRv6SID (2000::4) of the PE2 device included in the second IS-IS protocol message.
The PE2 device generates a third IS-IS protocol packet, which includes the updated SRv6SID of the PE2 device (2000:: 4). The PE2 device populates the updated SRv6SID (2000::4) of PE2 into the sub-TLV attribute field included in the third IS-IS protocol packet.
The PE2 device sends the third IS-IS protocol packet to the PE1 device.
It IS to be understood that Locator route information IS also included in the second IS-IS protocol message to enable the PE2 device to learn routes to the PE1 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
After receiving the third IS-IS protocol message, the PE1 equipment obtains the updated SRv6SID of the PE2 (2000:: 4). The PE1 device identifies whether the SRv6SID (2000::4) of the PE2 included in the third IS-IS protocol message IS the same as the SRv6SID (2000::4) of the PE2 stored in the SID list included in the locally configured SR-TE Policy.
If so, the PE1 device determines that the PE2 device has updated its own reconfigured SRv6 SID. The PE1 device obtains the Locator routing information from the third IS-IS protocol packet, and the PE1 device learns the route to the PE2 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
It should be noted that the IS-IS packet may specifically be an LSP packet in the IS-IS protocol. In the embodiment of the present application, each device may also use the OSPF protocol to carry SRv6SID, and the specific procedure is similar to the foregoing procedure and will not be repeated here.
Therefore, after the PE1 device and the PE2 device reestablish the neighbor relationship, the PE1 device sends SRv6 SIDs of all SR nodes in the path between itself and the PE2 device to the PE2 device. When the PE2 device determines that the SRv6SID of the local dynamic assignment is different from the SRv6SID sent by the PE1 device, the PE2 device updates the SRv6SID of the local dynamic assignment, so that the problems that in the prior art, the labor maintenance cost is increased and the actual networking is not flexible enough in a mode of statically and manually configuring the SRv6SID are solved.
The adaptive networking method of SRv6SID provided in the embodiments of the present application is described in detail below. Referring to fig. 3, fig. 3 is a flowchart of an adaptive networking method for SRv6SID according to an embodiment of the present application. The method is applied to a first SR node. The first SR node is in SRv6 mesh, which SRv6 mesh also includes a second SR node. And an SR-TE service is established between the first SR node and the second SR node. The adaptive networking method for SRv6SID provided by the embodiment of the application can include the following steps.
And step 210, after the second SR node reestablishes the neighbor relation, acquiring the locally configured SR-TE strategy.
Specifically, EVPN L3VPN over SR-TE service is deployed between a first SR node and a second SR node. In this embodiment, the first SR node is a source SR node, and the second SR node is a destination SR node.
SR-TE Policy is specified in the first SR node. The structure of the SR-TE Policy can be shown in FIG. 1. The SR-TE Policy includes a BSID attribute field, a Color attribute field, and an Endpoint attribute field. The SR-TE Policy further comprises at least one Candidate path (Candidate Paths, Cpath) and a priority (Preference) of each Candidate path. And when the SR node forwards the service message, the SR node selects an optimal path from the candidate paths according to the priorities of the candidate paths.
Each candidate path includes at least one list of SIDs and a Weight (Weight) for each list of SIDs. The SID list includes forwarding path information for the source SR node to reach the destination SR node, and the forwarding path information is composed of SRv6 SIDs of each SR node on the forwarding path. After selecting a certain candidate path, the SR node performs load sharing of the service packet among the plurality of SID lists included in the candidate path according to the weight of each SID list.
In the embodiment of the application, the IP address of the first SR node is 1::1, and the SRv6SID is 1000:: 1. The IP address of the first SR node is 2::2, the SRv6SID dynamically allocated by PE2 is 2000::4, and the type is End-x. The first SR node establishes an IS-IS neighbor and a BGP neighbor with the second SR node. The first SR node and the second SR node respectively send IS-IS messages including the SID of the local terminal SRv6 to the opposite terminal equipment. Each end device stores the SRv6SID sent by the peer device. EVPN L3VPN over SRv6 services are respectively configured on the first SR node and the first SR node, and SR-TE Policy is arranged in the first SR node. Wherein, the value of the BSID attribute field is SRv6SID of the first SR node, and the value of the Endpoint attribute field is IP address of the second SR node.
If there are no other SR nodes between the first SR node and the second SR node, therefore, the SR-TE Policy includes a SID list storing SRv6 SIDs of the second SR node as 2000::4, and configuring the drainage action. The first SR node enables the configured SR-TE Policy and guides the forwarding of the service message through the SR-TE Policy.
If other SR nodes exist between the first SR node and the first SR node, the list of SIDs included in the SR-TE Policy stores SRv6 SIDs of each SR node on the forwarding path from the first SR node to the first SR node.
In the embodiment of the present application, the SRv6SID dynamically allocated by the first SR node may refer to a dynamic allocation process in the prior art, and will not be repeated here.
And when the second SR node is restarted, the second SR node carries out configuration recovery according to the locally stored configuration information. The second SR node dynamically assigns its SRv6SID again according to the configuration information. The second SR node reassigns SRv6 SIDs of 2000::2, type End-x.
After the first SR node and the second SR node reestablish the IS-IS and BGP neighbor relations, the second SR node generates an IS-IS protocol packet (which may be denoted as a second IS-IS protocol packet in this embodiment of the present application). The second SR node populates the sub-TLV field with the reallocated SRv6 SIDs (2000:: 2). And the second SR node sends the second IS-IS protocol message to the first SR node.
It will be appreciated that Locator route information IS also included in this second IS-IS protocol message to enable the first SR node to learn routes to reach the PE2 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
Similarly, the first SR node also generates an IS-IS protocol packet including the SRv6SID (1000::1) of the first SR node and Locator routing information, so that the second SR node stores the SRv6SID (1000::1) of the first SR node and learns the route to the first SR node.
In one implementation manner, after receiving a second IS-IS protocol message sent by a second SR node, a first SR node acquires SRv6 SIDs (2000::2) reallocated by the second SR node from the second IS-IS protocol message. Meanwhile, the first SR node determines whether the reassigned SRv6SID (2000::2) already exists in the SID list included in the SR-TE Policy that the first SR node has configured. That is, the first SR node determines whether the reallocated SR-TE Policy is the same as the SRv6SID of PE2 stored in the SID list included in the locally configured SR-TE Policy.
If not, i.e., not identical, the first SR node obtains the locally configured SR-TE Policy. If so, i.e., the same, the PE1 device may not perform the step of obtaining the locally configured SR-TE Policy.
In another implementation manner, after the first SR node receives the second IS-IS protocol packet sent by the second SR node, the SRv6SID (2000::2) reallocated by the second SR node included in the second IS-IS protocol packet IS not judged, and the first SR node directly performs the following steps.
Step 220, according to the SR-TE policy, generating a first protocol packet, where the first protocol packet includes address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node.
Specifically, the first SR node generates an IS-IS protocol packet (which may be referred to as a first IS-IS protocol packet in this embodiment). The first IS-IS protocol packet includes a flag (Flags) attribute field. The Flags attribute field includes a D flag bit (1 bit) and a Reserved (Reserved) bit (7 bits). The first SR node occupies 1 bit of the Reserved bits for carrying flag information. When the flag information IS set, the flag information IS used for indicating the SR node receiving the first IS-IS protocol message, and guiding the SRv6SID dynamically allocated by the home terminal according to the SRv6SID included in the first IS-IS protocol message.
The first SR node fills the value (2::2) of the Endpoint attribute field in the Endpoint attribute field included in the first IS-IS protocol message; the SRv6SID (2000::4) of PE2 stored in the SID list IS padded in the sub-TLV attribute field included in the first IS-IS protocol packet.
In the embodiment of the present application, the SRv6SID of all SR nodes in the path between the first SR node and the second SR node is referred to as the first SRv6 SID. If there are no other SR nodes between the first SR node and the second SR node, the first SRv6SID is the SRv6SID of the second SR node.
Step 230, sending the first protocol packet to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second SR node obtains a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID locally and dynamically allocated according to the second SRv6 SID.
Specifically, the first SR node sends the first IS-IS protocol packet to the second SR node.
And the second SR node receives the first IS-IS protocol message and acquires the value of the mark information from the first IS-IS protocol message. The second SR node recognizes the value of the flag information, and if the value of the flag information IS set, the second SR node determines that the first IS-IS protocol packet IS an SRv6SID for guiding the home terminal to dynamically allocate.
In the embodiment of the present application, the value of the flag information is set, that is, the value of the flag information is the first value (1). The second SR node obtains the value (2::2) of the Endpoint attribute field from the first IS-IS protocol message. The second SR node identifies whether the value of the Endpoint attribute field (2::2) is its own IP address. If the value of the Endpoint attribute field (2::2) characterizes its own IP address, the second SR node obtains the value of the sub-TLV attribute field from the first IS-IS protocol message (2000:: 4).
The second SR node obtains its own reassigned SRv6SID (2000:: 2). The second SR node identifies whether the reallocated SRv6SID (2000::2) IS the same as the SRv6SID (2000::4) of PE2 included in the first IS-IS protocol packet. If not, the second SR node updates the reallocated SRv6SID according to the SRv6SID (2000::4) of PE2 included in the first IS-IS protocol packet. That IS, the reallocated SRv6SID (2000::2) IS updated to the SRv6SID (2000::4) of PE2 included in the first IS-IS protocol message. If so, the second SR node does not update the reallocated SRv6SID according to the SRv6SID (2000::4) of PE2 included in the first IS-IS protocol packet.
The second SR node generates a third IS-IS protocol packet that includes the updated SRv6SID of the second SR node (2000:: 4). The second SR node populates the SRv6SID (2000::4) of the updated PE2 into a sub-TLV attribute field included in the third IS-IS protocol packet.
And the second SR node equipment sends the third IS-IS protocol message to the first SR node.
And after receiving the third IS-IS protocol message, the first SR node acquires the updated SRv6SID (2000::4) of the second SR node. The first SR node identifies whether the SRv6SID (2000::4) of PE2 included in the third IS-IS protocol message IS the same as the SRv6SID (2000::4) of the second SR node stored in the SID list included in the locally configured SR-TE Policy.
If so, the first SR node determines that the second SR node has updated its own reconfigured SRv6 SID. The first SR node acquires the Locator routing information from the third IS-IS protocol message, and learns the routing reaching the PE2 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
It should be noted that, if there are other SR nodes between the first SR node and the second SR node, the second SR node acquires the plurality of first SRv6 SIDs from the first IS-IS protocol packet. The second SR node obtains a second SRv6SID having the same network segment (i.e., address prefix) as itself from the plurality of first SRv6 SIDs, and then updates a locally dynamically allocated SRv6SID (denoted as a third SRv6SID in this embodiment) according to the second SRv6 SID.
In the foregoing example, taking the example that there is no other SR node between the first SR node and the second SR node as an example, the first SRv6SID is the second SRv6SID, and the second SR node can update the locally dynamically allocated SRv6SID directly according to the first SRv6 SID.
Therefore, by applying the adaptive networking method and the adaptive networking device for SRv6 SIDs provided by the application, after the first SR node and the second SR node reestablish the neighbor relation, the first SR node acquires the locally configured SR-TE policy. According to the SR-TE strategy, the first SR node generates a first protocol message, wherein the first protocol message comprises address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node. And the first SR node sends the first protocol message to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second node acquires a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID which is locally and dynamically allocated according to the second SRv6 SID.
After the first SR node and the second SR node reestablish the neighbor relation, the first SR node sends SRv6 SIDs of all SR nodes in the path between the first SR node and the second SR node to the second SR node. When the second SR node judges that the SRv6SID of the local dynamic distribution is different from the SRv6SID sent by the first SR node, the second SR node updates the SRv6SID of the local dynamic distribution, so that the problems that in the prior art, the manual maintenance cost is increased and the actual networking is not flexible enough in a static manual configuration mode of SRv6SID are solved.
The adaptive networking method of SRv6SID provided in the embodiments of the present application is described in detail below. Referring to fig. 4, fig. 4 is a flowchart of another adaptive networking method for SRv6SID provided in this embodiment of the present application. The method is applied to a second SR node. The second SR node is in SRv6 mesh, which SRv6 mesh also includes the first SR node. And an SR-TE service is established between the first SR node and the second SR node. The adaptive networking method for SRv6SID provided by the embodiment of the application can include the following steps.
And step 410, after the second SR node is restarted, redistributing the first SRv6SID of the second node according to local configuration information.
Specifically, EVPN L3VPN over SR-TE service is deployed between a first SR node and a second SR node. In this embodiment, the first SR node is a source SR node, and the second SR node is a destination SR node.
SR-TE Policy is specified in the first SR node device. The structure of the SR-TE Policy can be shown in FIG. 1. The SR-TE Policy includes a BSID attribute field, a Color attribute field, and an Endpoint attribute field. The SR-TE Policy further comprises at least one Candidate path (Candidate Paths, Cpath) and a priority (Preference) of each Candidate path. And when the SR node forwards the service message, the SR node selects an optimal path from the candidate paths according to the priorities of the candidate paths.
Each candidate path includes at least one list of SIDs and a Weight (Weight) for each list of SIDs. The SID list includes forwarding path information for the source SR node to reach the destination SR node, and the forwarding path information is composed of SRv6 SIDs of each SR node on the forwarding path. After selecting a certain candidate path, the SR node performs load sharing of the service packet among the plurality of SID lists included in the candidate path according to the weight of each SID list.
In the embodiment of the application, the IP address of the first SR node is 1::1, and the SRv6SID is 1000:: 1. The IP address of the first SR node is 2::2, the SRv6SID dynamically allocated by PE2 is 2000::4, and the type is End-x. The first SR node establishes an IS-IS neighbor and a BGP neighbor with the second SR node. The first SR node and the second SR node respectively send IS-IS messages including the SID of the local terminal SRv6 to the opposite terminal equipment. Each end device stores the SRv6SID sent by the peer device. EVPN L3VPN over SRv6 services are respectively configured on the first SR node and the first SR node, and SR-TE Policy is arranged in the first SR node. Wherein, the value of the BSID attribute field is SRv6SID of the first SR node, and the value of the Endpoint attribute field is IP address of the second SR node.
If there are no other SR nodes between the first SR node and the second SR node, therefore, the SR-TE Policy includes a SID list storing SRv6 SIDs of the second SR node as 2000::4, and configuring the drainage action. The first SR node enables the configured SR-TE Policy and guides the forwarding of the service message through the SR-TE Policy.
If other SR nodes exist between the first SR node and the first SR node, the list of SIDs included in the SR-TE Policy stores SRv6 SIDs of each SR node on the forwarding path from the first SR node to the first SR node.
In the embodiment of the present application, the SRv6SID dynamically allocated by the first SR node may refer to a dynamic allocation process in the prior art, and will not be repeated here.
And when the second SR node is restarted, the second SR node carries out configuration recovery according to the locally stored configuration information. The second SR node dynamically assigns its SRv6SID (in this embodiment, denoted as the first SRv6 SID) again according to the configuration information. The second SR node reassigns SRv6 SIDs of 2000::2, type End-x.
After the first SR node and the second SR node reestablish the IS-IS and BGP neighbor relations, the second SR node generates an IS-IS protocol packet (which may be denoted as a second IS-IS protocol packet in this embodiment of the present application). The second SR node populates the sub-TLV field with the reallocated SRv6 SIDs (2000:: 2). And the second SR node sends the second IS-IS protocol message to the first SR node.
It will be appreciated that Locator route information IS also included in this second IS-IS protocol message to enable the first SR node to learn routes to reach the PE2 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
Similarly, the first SR node also generates an IS-IS protocol packet including the SRv6SID (1000::1) of the first SR node and Locator routing information, so that the second SR node stores the SRv6SID (1000::1) of the first SR node and learns the route to the first SR node.
Step 420, after the first SR node reestablishes the neighbor relation, receiving a first protocol packet sent by the first SR node, where the first protocol packet includes address information of a destination SR node and second SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node.
Specifically, in an implementation manner, after receiving a second IS-IS protocol message sent by a second SR node, a first SR node acquires SRv6 SIDs (2000::2) redistributed by the second SR node from the second IS-IS protocol message. Meanwhile, the first SR node determines whether the reassigned SRv6SID (2000::2) already exists in the SID list included in the SR-TE Policy that the first SR node has configured. That is, the first SR node determines whether the reallocated SR-TE Policy is the same as the SRv6SID of PE2 stored in the SID list included in the locally configured SR-TE Policy.
If not, i.e., not identical, the first SR node obtains the locally configured SR-TE Policy. If so, i.e., the same, the PE1 device may not perform the step of obtaining the locally configured SR-TE Policy.
In another implementation manner, after the first SR node receives the second IS-IS protocol packet sent by the second SR node, the SRv6SID (2000::2) reallocated by the second SR node included in the second IS-IS protocol packet IS not judged, and the first SR node directly performs the following steps.
The first SR node generates an IS-IS protocol packet (which may be referred to as a first IS-IS protocol packet in this embodiment). The first IS-IS protocol packet includes a flag (Flags) attribute field. The Flags attribute field includes a D flag bit (1 bit) and a Reserved (Reserved) bit (7 bits). The first SR node occupies 1 bit of the Reserved bits for carrying flag information. When the flag information IS set, the flag information IS used for indicating the SR node receiving the first IS-IS protocol message, and guiding the SRv6SID dynamically allocated by the home terminal according to the SRv6SID included in the first IS-IS protocol message.
The first SR node fills the value (2::2) of the Endpoint attribute field in the Endpoint attribute field included in the first IS-IS protocol message; the SRv6SID (2000::4) of the second SE node stored in the SID list IS populated within the sub-TLV attribute field included in the first IS-IS protocol packet.
And the first SR node sends the first IS-IS protocol message to the second SR node.
In the embodiment of the present application, the SRv6SID of all SR nodes in the path between the first SR node and the second SR node is referred to as the second SRv6 SID. If there are no other SR nodes between the first SR node and the second SR node, the second SRv6SID is the SRv6SID of the second SR node stored in the SID list in the first SR node. And 430, if the address information is characterized as the second SR node, acquiring a third SRv6SID corresponding to the second SR node from the second SRv6 SID.
Specifically, the second SR node receives the first IS-IS protocol packet, and obtains the value of the flag information therefrom. The second SR node recognizes the value of the flag information, and if the value of the flag information IS set, the second SR node determines that the first IS-IS protocol packet IS an SRv6SID for guiding the home terminal to dynamically allocate.
In the embodiment of the present application, the value of the flag information is set, that is, the value of the flag information is the first value (1). The second SR node obtains the value (2::2) of the Endpoint attribute field from the first IS-IS protocol message. The second SR node identifies whether the value of the Endpoint attribute field (2::2) is its own IP address. If the value of the Endpoint attribute field (2::2) characterizes its own IP address, the second SR node obtains the value of the sub-TLV attribute field from the first IS-IS protocol message (2000:: 4).
The second SR node obtains its own reassigned SRv6SID (2000:: 2).
It should be noted that, if there are other SR nodes between the first SR node and the second SR node, the second SR node acquires a plurality of second SRv6 SIDs from the first IS-IS protocol packet. The second SR node obtains SRv6SID (in this embodiment, denoted as third SRv6 SID) having the same network segment (i.e., address prefix) as itself from the plurality of second SRv6 SIDs. Step 440, determining whether the third SRv6SID is the same as the first SRv6 SID.
Specifically, the second node determines whether the third SRv6SID which belongs to the same network segment as the second node and IS acquired from the first IS-IS protocol message IS the same as the reallocated first SRv6 SID.
According to the foregoing example, the second SR node identifies whether the reallocated SRv6SID (2000::2) IS the same as the SRv6SID (2000::4) of PE2 included in the first IS-IS protocol message.
And step 450, if the two SIDs are different, updating the first SRv6SID according to the third SRv6 SID.
Specifically, if not identical, the second SR node updates the reallocated SRv6SID according to the SRv6SID (2000::4) of the second SR node included in the first IS-IS protocol packet. That IS, the reallocated SRv6SID (2000::2) IS updated to the SRv6SID (2000::4) of the second SR node included in the first IS-IS protocol packet.
In the foregoing example, taking the example that there is no other SR node between the first SR node and the second SR node as an example, the second SRv6SID is the third SRv6SID, and the second SR node can directly update the locally dynamically allocated SRv6SID according to the second SRv6SID, that is, update the first SRv6SID according to the second SRv6 SID.
If so, the second SR node does not update the reallocated SRv6SID according to the SRv6SID (2000::4) of PE2 included in the first IS-IS protocol packet.
The second SR node generates a third IS-IS protocol packet that includes the updated SRv6SID of the second SR node (2000:: 4). The second SR node populates the SRv6SID (2000::4) of the updated PE2 into a sub-TLV attribute field included in the third IS-IS protocol packet.
And the second SR node equipment sends the third IS-IS protocol message to the first SR node.
And after receiving the third IS-IS protocol message, the first SR node acquires the updated SRv6SID (2000::4) of the second SR node. The first SR node identifies whether the SRv6SID (2000::4) of PE2 included in the third IS-IS protocol message IS the same as the SRv6SID (2000::4) of the second SR node stored in the SID list included in the locally configured SR-TE Policy.
If so, the first SR node determines that the second SR node has updated its own reconfigured SRv6 SID. The first SR node acquires the Locator routing information from the third IS-IS protocol message, and learns the routing reaching the PE2 device. The process of learning the Locator routing information can adopt the existing route learning mode for learning, and is not repeated here.
Therefore, by applying the adaptive networking method and the adaptive networking device for SRv6 SIDs provided by the application, after the first SR node and the second SR node reestablish the neighbor relation, the first SR node acquires the locally configured SR-TE policy. According to the SR-TE strategy, the first SR node generates a first protocol message, wherein the first protocol message comprises address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node. And the first SR node sends the first protocol message to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second node acquires a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID which is locally and dynamically allocated according to the second SRv6 SID.
After the first SR node and the second SR node reestablish the neighbor relation, the first SR node sends SRv6 SIDs of all SR nodes in the path between the first SR node and the second SR node to the second SR node. When the second SR node judges that the SRv6SID of the local dynamic distribution is different from the SRv6SID sent by the first SR node, the second SR node updates the SRv6SID of the local dynamic distribution, so that the problems that in the prior art, the manual maintenance cost is increased and the actual networking is not flexible enough in a static manual configuration mode of SRv6SID are solved.
Based on the same inventive concept, the embodiment of the present application further provides an adaptive networking device of SRv6SID corresponding to the adaptive networking method of SRv6 SID. Referring to fig. 5, fig. 5 is a structural diagram of an adaptive networking device for SRv6SID according to an embodiment of the present application,
the device is applied to a first SR node, the first SR node is in SRv6 networking, the SRv6 networking further comprises a second SR node, and SR-TE service is established between the first SR node and the second SR node, and the device comprises:
an obtaining unit 510, configured to obtain a locally configured SR-TE policy after a neighbor relation is reestablished with the second SR node;
a generating unit 520, configured to generate a first protocol packet according to the SR-TE policy, where the first protocol packet includes address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
a sending unit 530, configured to send the first protocol packet to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second SR node obtains a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID locally and dynamically allocated according to the second SRv6 SID.
Optionally, the first protocol packet further includes flag information; when the flag information is set, the flag information is used for indicating the second SR node, and when the address information is determined to be characterized as the second SR node, a second SRv6SID corresponding to the second SR node is obtained from the first SRv6SID, and a third SRv6SID which is locally and dynamically allocated is updated according to the second SRv6 SID.
Optionally, the SR-TE policy comprises SRv6SID list, the SRv6SID list comprising the first SRv6 SIDs of all SR nodes in the path between the first SR node and the second SR node;
the device further comprises: a receiving unit (not shown in the figure), configured to receive a second protocol packet sent by the second SR node, where the second protocol packet includes the third SRv6 SID;
a determining unit (not shown in the figure) for determining whether the third SRv6SID already exists in the first SRv6 SID;
the obtaining unit 510 is further configured to, if the SR-TE policy does not exist, obtain a locally configured SR-TE policy.
Optionally, the receiving unit is further configured to receive a third protocol packet sent by the second SR node, where the third protocol packet includes an updated third SRv6SID, and the updated third SRv6SID is the same as the second SRv6 SID;
the judging unit is further configured to judge whether the updated third SRv6SID already exists in the first SRv6 SID;
the device further comprises: and a learning unit (not shown in the figure), if the third protocol message exists, learning the routing information included in the third protocol message.
Based on the same inventive concept, the embodiment of the present application further provides another adaptive networking device for SRv6SID, which corresponds to the adaptive networking method for SRv6 SID. Referring to fig. 6, fig. 6 is a structural diagram of another adaptive networking device for SRv6SID provided in this embodiment of the present application, where the device is applied to a second SR node, the second SR node is in a SRv6 network, the SRv6 network further includes a first SR node, and an SR-TE service is established between the second SR node and the first SR node, and the device includes:
the allocating unit 610 is configured to reallocate the first SRv6SID of the second node according to local configuration information after the second SR node is restarted;
a receiving unit 620, configured to receive a first protocol packet sent by the first SR node after a neighbor relationship is reestablished with the first SR node, where the first protocol packet includes address information of a destination SR node and second SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
an obtaining unit 630, configured to obtain a third SRv6SID corresponding to the second SR node from the second SRv6SID if the address information is characterized as the second SR node;
a determining unit 640, configured to determine whether the third SRv6SID is identical to the first SRv6 SID;
an updating unit 650, configured to update the first SRv6SID according to the third SRv6SID if the two SIDs are different.
Optionally, the first protocol packet further includes flag information; the device further comprises: an identifying unit (not shown in the figure) for identifying whether the value of the flag information is a first value;
the determining unit 640 is further configured to determine whether the address information is characterized as the second SR node if the address information is the first value.
Optionally, the apparatus further comprises: a sending unit (not shown in the figure), configured to send a second protocol packet to the first SR node, where the second protocol packet includes the first SRv6SID, so that the first SR node determines whether the first SRv6SID already exists in the second SRv6SID, and if not, after reestablishing a neighbor relationship with the second SR node, obtains a locally configured SR-TE policy.
Optionally, the sending unit (not shown in the figure) is further configured to send a third protocol packet to the first SR node, where the third protocol packet includes the updated first SRv6SID, so that the first SR node learns the routing information included in the third protocol packet when determining that the updated first SRv6SID already exists in the second SRv6 SID;
the updated first SRv6SID is the same as the third SRv6 SID.
Based on the same inventive concept, the present application further provides a network device, as shown in fig. 7, including a processor 710, a transceiver 720, and a machine-readable storage medium 730, where the machine-readable storage medium 730 stores machine-executable instructions capable of being executed by the processor 710, and the processor 710 is caused by the machine-executable instructions to perform the adaptive networking method for SRv6SID provided in the present application. The adaptive networking apparatus for SRv6SID shown in fig. 5 and fig. 6 can be implemented by using the hardware structure of the network device shown in fig. 7.
The computer-readable storage medium 730 may include a Random Access Memory (RAM) or a Non-volatile Memory (NVM), such as at least one disk Memory. Optionally, the computer-readable storage medium 730 may also be at least one memory device located remotely from the processor 710.
The Processor 710 may be a general-purpose Processor, and includes a Central Processing Unit (CPU), a Network Processor (NP), and the like; the Integrated Circuit can also be a Digital Signal Processor (DSP), an Application Specific Integrated Circuit (ASIC), a Field Programmable Gate Array (FPGA), or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components.
In the present embodiment, the processor 710 is caused by machine executable instructions to implement the processor 710 itself and to invoke the transceiver 720 to perform the adaptive networking method of SRv6SID described in the present embodiment by reading the machine executable instructions stored in the machine readable storage medium 730.
Additionally, embodiments of the present application provide a machine-readable storage medium 730, the machine-readable storage medium 730 storing machine executable instructions that, when invoked and executed by the processor 710, cause the processor 710 itself and the invoking transceiver 720 to perform the adaptive networking method of SRv6SID described in embodiments of the present application.
The implementation process of the functions and actions of each unit in the above device is specifically described in the implementation process of the corresponding step in the above method, and is not described herein again.
For the device embodiments, since they substantially correspond to the method embodiments, reference may be made to the partial description of the method embodiments for relevant points. The above-described embodiments of the apparatus are merely illustrative, and the units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the modules can be selected according to actual needs to achieve the purpose of the scheme of the application. One of ordinary skill in the art can understand and implement it without inventive effort.
For the adaptive networking device and machine-readable storage medium embodiment of SRv6SID, the content of the related method is basically similar to the foregoing method embodiment, so the description is relatively simple, and the relevant points can be referred to the partial description of the method embodiment.
The above description is only exemplary of the present application and should not be taken as limiting the present application, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present application should be included in the scope of protection of the present application.

Claims (10)

1. An adaptive networking method for SRv6 SIDs, the method being applied to a first SR node, the first SR node being in a SRv6 network, the SRv6 network further comprising a second SR node, and SR-TE services being established between the first SR node and the second SR node, the method comprising:
after the second SR node reestablishes the neighbor relation, acquiring a locally configured SR-TE strategy;
generating a first protocol message according to the SR-TE strategy, wherein the first protocol message comprises address information of a target SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
and sending the first protocol packet to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second SR node acquires a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID which is locally and dynamically allocated according to the second SRv6 SID.
2. The method of claim 1, wherein the first protocol packet further comprises flag information;
when the flag information is set, the flag information is used for indicating the second SR node, and when the address information is determined to be characterized as the second SR node, a second SRv6SID corresponding to the second SR node is obtained from the first SRv6SID, and a third SRv6SID which is locally and dynamically allocated is updated according to the second SRv6 SID.
3. The method of claim 1, wherein the SR-TE policy comprises an SRv6SID list, the SRv6SID list comprising the first SRv6 SIDs for all SR nodes in a path between the first SR node and the second SR node;
after the neighbor relation is reestablished with the second SR node, the method further includes:
receiving a second protocol message sent by the second SR node, where the second protocol message includes the third SRv6 SID;
determining whether the third SRv6SID already exists in the first SRv6 SID;
and if not, acquiring the locally configured SR-TE strategy.
4. The method of claim 1, further comprising:
receiving a third protocol message sent by the second SR node, where the third protocol message includes an updated third SRv6SID, and the updated third SRv6SID is the same as the second SRv6 SID;
determining whether the updated third SRv6SID already exists in the first SRv6 SID;
if yes, the routing information included in the third protocol message is learned.
5. An adaptive networking method for SRv6 SIDs, the method being applied to a second SR node, the second SR node being in a SRv6 network, the SRv6 network further comprising a first SR node, and SR-TE services being established between the second SR node and the first SR node, the method comprising:
after the second SR node is restarted, according to the local configuration information, the first SRv6SID of the second node is redistributed;
after the first SR node reestablishes the neighbor relation, receiving a first protocol message sent by the first SR node, wherein the first protocol message comprises address information of a target SR node and second SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
if the address information is characterized as the second SR node, acquiring a third SRv6SID corresponding to the second SR node from the second SRv6 SID;
determining whether the third SRv6SID is the same as the first SRv6 SID;
if not, updating the first SRv6SID according to the third SRv6 SID.
6. The method of claim 5, wherein the first protocol packet further comprises flag information;
after receiving the first protocol packet sent by the first SR node, the method further includes:
identifying whether the value of the flag information is a first value;
and if the address information is the first value, judging whether the address information is characterized as the second SR node.
7. The method according to claim 5, wherein before receiving the first protocol packet sent by the first SR node, the method further comprises:
and sending a second protocol message to the first SR node, wherein the second protocol message comprises the first SRv6SID, so that the first SR node judges whether the first SRv6SID already exists in the second SRv6SID, and if not, acquires a locally configured SR-TE policy.
8. The method of claim 5, further comprising:
sending a third protocol packet to the first SR node, the third protocol packet including an updated first SRv6SID, so that the first SR node learns routing information included in the third protocol packet when determining that the updated first SRv6SID already exists in the second SRv6 SID;
the updated first SRv6SID is the same as the third SRv6 SID.
9. An adaptive networking device for SRv6 SIDs, the device being applied to a first SR node, the first SR node being in a SRv6 network, the SRv6 network further comprising a second SR node, and SR-TE traffic being established between the first SR node and the second SR node, the device comprising:
the acquisition unit is used for acquiring a locally configured SR-TE strategy after the second SR node reestablishes a neighbor relation;
a generating unit, configured to generate a first protocol packet according to the SR-TE policy, where the first protocol packet includes address information of a destination SR node and first SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
a sending unit, configured to send the first protocol packet to the second SR node, so that when the second SR node determines that the address information is characterized as the second SR node, the second SR node obtains a second SRv6SID corresponding to the second SR node from the first SRv6SID, and updates a third SRv6SID locally and dynamically allocated according to the second SRv6 SID.
10. An adaptive networking device for SRv6 SIDs, the device being applied to a second SR node, the second SR node being in a SRv6 network, the SRv6 network further comprising a first SR node, and SR-TE traffic is established between the second SR node and the first SR node, the device comprising:
the allocation unit is used for reallocating the first SRv6SID of the second node according to local configuration information after the second SR node is restarted;
a receiving unit, configured to receive a first protocol packet sent by the first SR node after a neighbor relation is reestablished with the first SR node, where the first protocol packet includes address information of a destination SR node and second SRv6 SIDs of all SR nodes in a path between the first SR node and the second SR node;
an obtaining unit, configured to obtain a third SRv6SID corresponding to the second SR node from the second SRv6SID if the address information is characterized by the second SR node;
a judging unit, configured to judge whether the third SRv6SID is identical to the first SRv6 SID;
an updating unit, configured to update the first SRv6SID according to the third SRv6SID if the first SRv6SID is different from the third SRv6 SID.
CN202011047369.XA 2020-09-29 2020-09-29 SRv6SID self-adaptive networking method and device Active CN112311592B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011047369.XA CN112311592B (en) 2020-09-29 2020-09-29 SRv6SID self-adaptive networking method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011047369.XA CN112311592B (en) 2020-09-29 2020-09-29 SRv6SID self-adaptive networking method and device

Publications (2)

Publication Number Publication Date
CN112311592A true CN112311592A (en) 2021-02-02
CN112311592B CN112311592B (en) 2022-02-22

Family

ID=74489402

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011047369.XA Active CN112311592B (en) 2020-09-29 2020-09-29 SRv6SID self-adaptive networking method and device

Country Status (1)

Country Link
CN (1) CN112311592B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452606A (en) * 2021-05-18 2021-09-28 新华三信息安全技术有限公司 Communication method and device
CN113542123A (en) * 2021-05-31 2021-10-22 网络通信与安全紫金山实验室 Method and device for determining forwarding path
CN113794637A (en) * 2021-08-20 2021-12-14 新华三信息安全技术有限公司 SID list processing method and device
CN114301849A (en) * 2021-12-15 2022-04-08 中电信数智科技有限公司 SRv 6-based network path priority analysis method and system
CN115473641A (en) * 2022-11-02 2022-12-13 南京易科腾信息技术有限公司 Quantum encryption communication method and system capable of realizing automatic networking
WO2023016550A1 (en) * 2021-08-13 2023-02-16 华为技术有限公司 Route sending method and device
WO2024139547A1 (en) * 2022-12-30 2024-07-04 中兴通讯股份有限公司 Path finding method, packet transmission method, device, and medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170346718A1 (en) * 2016-05-26 2017-11-30 Cisco Technology, Inc. Enforcing strict shortest path forwarding using strict segment identifiers
US9923798B1 (en) * 2012-06-28 2018-03-20 Juniper Networks, Inc. Dynamic load balancing of network traffic on a multi-path label switched path using resource reservation protocol with traffic engineering
CN109246011A (en) * 2018-10-25 2019-01-18 新华三技术有限公司 A kind of message forwarding method and device
CN110958181A (en) * 2019-12-06 2020-04-03 Ut斯达康通讯有限公司 Method and device for distributing SRv 6-crossing slicing network by ISIS (intermediate system to intermediate system)
CN110971433A (en) * 2018-09-29 2020-04-07 华为技术有限公司 Method, device and system for acquiring SRv6 tunnel information
CN111107004A (en) * 2018-10-27 2020-05-05 华为技术有限公司 Message processing method, related equipment and computer storage medium
US10736029B1 (en) * 2019-05-02 2020-08-04 Verizon Patent And Licensing Inc. Enabling network-slice functions in transport domains

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9923798B1 (en) * 2012-06-28 2018-03-20 Juniper Networks, Inc. Dynamic load balancing of network traffic on a multi-path label switched path using resource reservation protocol with traffic engineering
US20170346718A1 (en) * 2016-05-26 2017-11-30 Cisco Technology, Inc. Enforcing strict shortest path forwarding using strict segment identifiers
CN110971433A (en) * 2018-09-29 2020-04-07 华为技术有限公司 Method, device and system for acquiring SRv6 tunnel information
CN109246011A (en) * 2018-10-25 2019-01-18 新华三技术有限公司 A kind of message forwarding method and device
CN111107004A (en) * 2018-10-27 2020-05-05 华为技术有限公司 Message processing method, related equipment and computer storage medium
US10736029B1 (en) * 2019-05-02 2020-08-04 Verizon Patent And Licensing Inc. Enabling network-slice functions in transport domains
CN110958181A (en) * 2019-12-06 2020-04-03 Ut斯达康通讯有限公司 Method and device for distributing SRv 6-crossing slicing network by ISIS (intermediate system to intermediate system)

Cited By (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113452606A (en) * 2021-05-18 2021-09-28 新华三信息安全技术有限公司 Communication method and device
CN113452606B (en) * 2021-05-18 2023-12-26 新华三信息安全技术有限公司 Communication method and device
CN113542123A (en) * 2021-05-31 2021-10-22 网络通信与安全紫金山实验室 Method and device for determining forwarding path
WO2023016550A1 (en) * 2021-08-13 2023-02-16 华为技术有限公司 Route sending method and device
CN113794637A (en) * 2021-08-20 2021-12-14 新华三信息安全技术有限公司 SID list processing method and device
CN114301849A (en) * 2021-12-15 2022-04-08 中电信数智科技有限公司 SRv 6-based network path priority analysis method and system
CN114301849B (en) * 2021-12-15 2024-05-17 中电信数智科技有限公司 SRv 6-based network path priority analysis method and system
CN115473641A (en) * 2022-11-02 2022-12-13 南京易科腾信息技术有限公司 Quantum encryption communication method and system capable of realizing automatic networking
CN115473641B (en) * 2022-11-02 2023-02-03 南京易科腾信息技术有限公司 Quantum encryption communication method and system capable of realizing automatic networking
WO2024139547A1 (en) * 2022-12-30 2024-07-04 中兴通讯股份有限公司 Path finding method, packet transmission method, device, and medium

Also Published As

Publication number Publication date
CN112311592B (en) 2022-02-22

Similar Documents

Publication Publication Date Title
CN112311592B (en) SRv6SID self-adaptive networking method and device
CN111541613B (en) Data processing method based on SRv6 and related equipment
CN107070798B (en) Network area division method, network equipment and system
US7849215B2 (en) Updating state in edge routers
CN110912795A (en) Transmission control method, node, network system and storage medium
US20150109902A1 (en) SCALABLE EDGE NODE PROTECTION USING IPv6 SEGMENT ROUTING EXTENSION HEADER
US7580359B2 (en) Method and system for maximizing network capacity utilization in multiprotocol label switched networks by moving label switched paths
CN111224874B (en) Path construction method and related equipment
US8593986B2 (en) Lightweight storing mode for constrained computer networks
US11743204B2 (en) Tunnel establishment method, apparatus, and system
US20070268821A1 (en) Rpr representation in ospf-te
CN109391478B (en) Multicast service control method and device and computer readable storage medium
CN104380673A (en) System and method for using label distribution protocol (LDP) in IPv6 networks
KR101457317B1 (en) Prioritization of routing information updates
US20060268853A1 (en) Methods and apparatus for distributing label information
CN101686188B (en) Method for establishing route table, routing method and router in hierarchy sequential address packet network
CN113285876A (en) Routing method, routing device and computer readable storage medium
US11296983B1 (en) Stateless multicasting over traffic engineered unicast tunnels
CN115277548A (en) Transmission method, device and storage medium
CN105939262B (en) Label distribution method and device
KR20170123662A (en) Software defined network (SDN) control signaling for traffic engineering that enables multi-type transmission in the data plane
CN112532520B (en) PCE-based TE-LSP implementation method and device
CN110191055B (en) Label distribution method and device
CN114938328A (en) Path determining method, network element and computer readable storage medium
CN113726663B (en) Routing processing method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant