CN111464439A - Segment identifier issuing method and device - Google Patents

Segment identifier issuing method and device Download PDF

Info

Publication number
CN111464439A
CN111464439A CN202010246555.XA CN202010246555A CN111464439A CN 111464439 A CN111464439 A CN 111464439A CN 202010246555 A CN202010246555 A CN 202010246555A CN 111464439 A CN111464439 A CN 111464439A
Authority
CN
China
Prior art keywords
domain
segment identifier
segment
address
notification message
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
CN202010246555.XA
Other languages
Chinese (zh)
Other versions
CN111464439B (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 CN202010246555.XA priority Critical patent/CN111464439B/en
Publication of CN111464439A publication Critical patent/CN111464439A/en
Application granted granted Critical
Publication of CN111464439B publication Critical patent/CN111464439B/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
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/02Topology update or discovery
    • H04L45/04Interdomain routing, e.g. hierarchical routing
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/32Flooding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L45/00Routing or path finding of packets in data switching networks
    • H04L45/34Source routing

Abstract

The present disclosure provides a method and an apparatus for issuing a segment identifier, which use Node SID of a first regional boundary device as a segment identifier of an out-of-domain route, thereby dispensing with Prefix SID for all out-of-domain routes. The method and the device for issuing the segment identifier correspondingly reduce the process of independently flooding the Prefix SIDs of each device one by one, and can complete the flooding of the segment identifier of the route outside the domain only through the segment identifier announcement message.

Description

Segment identifier issuing method and device
Technical Field
The present disclosure relates to network communication technologies, and in particular, to a method and an apparatus for issuing a segment identifier.
Background
Segment Routing sr (Segment Routing) is a protocol designed based on the concept of source Routing to forward packets over a network, Segment Routing divides a network path into segments, and assigns Segment identifications ID. to the segments and forwarding nodes in the network to obtain a forwarding path by ordering the segments and network nodes (Segment L ist).
The Segment Routing encodes the label stack Segment L ist representing the forwarding path at the head of the data packet, and transmits with the data packet.
In Segment Routing, the following types are included:
prefix Segment, a Prefix type Segment, used to identify a certain destination address Prefix in the network;
an Adjacency Segment, which is a Segment of an Adjacency type, and is used for identifying a certain adjacent link in the network;
node Segment, Segment of Node type, is special Prefix Segment, used to identify specific Node (Node), and configures IP address as Prefix under loopback L oopback interface of Node, and Prefix Segment identifier Prefix Segment ID (SID for short) of this Node is Node SID actually.
The network device diffuses the SID information through an Interior Gateway Protocol IGP (IGP), and all devices in the entire IGP domain learn the SID information, and then use a shortest path algorithm to obtain a shortest path to a destination segment, that is, a path with the minimum overhead.
When the network scale is large, the network is generally divided into a plurality of regions, the routes between each region are mutually issued through the boundary device, the boundary device introduces the extradomain routes learned from the opposite end boundary device into the region, distributes the Prefix SID for the extradomain routes through the Segment Routing protocol, and floods in the region, and all router devices in the region can learn the extradomain routes and distribute the corresponding Prefix SID for the extradomain routes.
Disclosure of Invention
The disclosure provides a segment identifier issuing method and a segment identifier issuing device, which are used for solving the problem of large calculation amount caused by the fact that Prefix SID is required to be distributed to routes outside a domain by routing equipment in the domain in the prior art.
A first aspect of the present disclosure provides a segment identifier issuing method, including: receiving device role information sent by a controller; in the case where the character information indicates a first border device that is itself a first area,
receiving the routing information outside the domain sent by the network equipment in the second area;
generating a segment identifier advertisement message according to the out-of-domain routing information, wherein the segment identifier advertisement message is used for indicating that the segment identifier of the out-of-domain routing is the Node SID of the first boundary device; wherein, the segment identifier notification message includes: a loopback interface IP address of the first boundary equipment, a Node SID of the loopback interface and an IP address of the network equipment for issuing the routing outside the domain;
and sending the segment identification notification message to other network equipment in the first area.
Optionally, the method further includes: and under the condition that the role information indicates that the role information is an access device which is not a first boundary device of the first area, if a segment identifier notification message is received, analyzing the segment identifier notification message.
Optionally, after parsing the segment identifier advertisement packet, the parsing includes:
generating a corresponding relation between the IP address of the out-of-domain network equipment and the Node SID of the loopback port according to the analyzed IP address of the out-of-domain network equipment and the Node SID of the loopback port;
when the access device receives a message with a destination IP address being the IP address of the network device outside the domain, a label stack including the Node SID of the loopback port is added to the message, and the label stack is generated according to the corresponding relation.
Optionally, the method further includes: if the first boundary equipment senses that the routing information outside the domain changes, the segment identification notification message is regenerated;
sending the regenerated segment identification notification message to other network equipment in the first area, so that the other network equipment updates the corresponding relation;
the regenerated segment identification notification message includes the IP address of the network device corresponding to the changed out-of-domain route.
Optionally, the method further includes: and under the condition that the role information indicates that the role information is the first area core equipment, if a segment identification notification message is received, the segment identification notification message is not analyzed, and the segment identification notification message is directly forwarded.
The second aspect of the present disclosure also provides a segment identifier issuing apparatus, including:
the receiving module is used for receiving the device role information sent by the controller; in the case where the character information indicates a first border device that is itself a first area,
the receiving module is used for receiving the routing information outside the domain sent by the network equipment in the second area;
a generating module, configured to generate a segment identifier advertisement message according to the out-of-domain routing information, where the segment identifier advertisement message is used to indicate that a segment identifier of the out-of-domain route is a Node SID of the first boundary device; wherein, the segment identifier notification message includes: a loopback interface IP address of the first boundary equipment, a Node SID of the loopback interface and an IP address of the network equipment for issuing the routing outside the domain;
and the sending module is used for sending the segment identification notification message to other network equipment in the first area.
Optionally, the apparatus further comprises:
and the analysis module is used for analyzing the segment identifier notification message if the segment identifier notification message is received under the condition that the role information indicates that the role information is an access device of non-first boundary equipment in the first area.
Optionally, the generating module is further configured to, after the parsing module parses the segment identifier advertisement packet, include: generating a corresponding relation between the IP address of the out-of-domain network equipment and the Node SID of the loopback port according to the analyzed IP address of the out-of-domain network equipment and the Node SID of the loopback port;
optionally, the apparatus further comprises: a tag adding module;
and the label adding module is used for adding a label stack comprising the Node SID of the loop back port to the message when the access equipment receives the message of which the destination IP address is the IP address of the network equipment outside the domain, and the label stack is generated according to the corresponding relation.
Optionally, the generating module is further configured to regenerate the segment identifier advertisement packet if the first border device senses that the route information outside the domain changes;
sending the regenerated segment identification notification message to other network equipment in the first area, so that the other network equipment updates the corresponding relation;
the regenerated segment identification notification message includes the IP address of the network device corresponding to the changed out-of-domain route.
Optionally, the parsing module is further configured to, if a segment identifier notification packet is received under the condition that the role information indicates that the role information itself is a first regional core device, directly forward the segment identifier notification packet without parsing the segment identifier notification packet.
The Node SID of the first area boundary equipment is used as the segment identifier of the out-of-domain route, so that the Prefix SID does not need to be distributed to all the out-of-domain routes. Compared with the prior art that each out-of-domain route needs to be flooded in the domain after being allocated with the Prefix SID, the segment identifier issuing method and the segment identifier issuing device correspondingly reduce the process of individually flooding the Prefix SID of each device one by one, and can complete the flooding of the segment identifier of the out-of-domain route only through the segment identifier advertisement message.
Drawings
FIG. 1 is a schematic diagram of a networking provided by the present disclosure;
FIG. 2 is a flowchart of a method provided in an embodiment of the present disclosure;
fig. 3 is a message format of an improved segment identifier advertisement message according to an embodiment of the present disclosure;
FIG. 4 is a schematic diagram of a Prefix Sub-T L V message format;
FIG. 5 is a flow chart of a method provided by another embodiment of the present disclosure;
FIG. 6 is a schematic structural diagram of an apparatus provided in an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present disclosure.
Detailed Description
Various exemplary embodiments, features and aspects of the present disclosure will be described in detail below with reference to the accompanying drawings. In the drawings, like reference numbers can indicate functionally identical or similar elements. While the various aspects of the embodiments are presented in drawings, the drawings are not necessarily drawn to scale unless specifically indicated.
The word "exemplary" is used exclusively herein to mean "serving as an example, embodiment, or illustration. Any embodiment described herein as "exemplary" is not necessarily to be construed as preferred or advantageous over other embodiments.
In the prior art, Prefix SIDs are assigned for out-of-domain routes and flooded within the domain. It has been found that not all routes outside the domain are assigned Prefix SIDs. Therefore, the present disclosure provides a segment identifier issuing method, which uses the Node SID of the first regional boundary device as the segment identifier of the out-of-domain route, so that it is not necessary to allocate Prefix SID to all out-of-domain routes. Compared with the prior art that each domain outside route needs to be flooded in the domain after being allocated with the Prefix SID, the segment identifier issuing method provided by the disclosure correspondingly reduces the process of flooding the Prefix SID of each device one by one, and can complete the flooding of the segment identifier of the domain outside route only through the segment identifier announcement message.
Example one
In order to better describe the segment identifier publishing method provided by the present disclosure, the present disclosure is illustrated with a specific example.
Fig. 1 is a networking structure diagram provided by the present disclosure, and in the networking, the segment identifier issuing method provided by the present disclosure may be applied. In the networking architecture diagram shown in fig. 1, a plurality of network devices are included, wherein:
the network devices SW11, SW12, SW13 and SW14 are access devices of a first area, and SW21, SW22, SW23 and SW24 are access devices of a second area;
the boundary devices between the two regions are a first boundary device SW14 and a second boundary device SW21, and the first boundary device SW14 and the second boundary device SW21 exchange routing information through an External Border Gateway Protocol (EBGP);
spine1 and Spine2 are core devices of a First area, Spine3 and Spine4 are core devices of a second area, and the areas of the First area and the second area run Open Shortest Path First (OSPF) and Segment Routing protocols to perform label forwarding;
the Controller controls the network device to complete the automatic online of the device, and may define roles for each device, that is, designate which devices are access devices and which devices are core devices, and notify all the devices to open the Node SID function shared by the out-of-domain routes, that is, allow the method provided by the present disclosure to be executed.
It should be noted that the areas of the first area and the second area may also run an Intermediate System-to-Intermediate System (abbreviated as IS-IS) Routing protocol and a Segment Routing protocol from the Intermediate System to the Intermediate System, and the embodiment takes the OSPF protocol as an example for description.
For the packet sent to the network device in the second area in the first area, if the packet is forwarded based on the IP address, each device in the first area will be finally sent out by the first border device SW14, and if the packet is forwarded by using the segment identifier, the forwarding path determined by the Prefix SID of the out-of-domain route in the first area is completely the same as the forwarding path determined by the node SID of the first border device SW14, so that it can be known that the out-of-domain route can be completely forwarded by using the same segment identifier as the border device.
For example, when the access device SW11 in the first area sends a message to the access device SW22 in the second area, the next hop of the access device SW11 is Spine1 or Spine2, and if the COSTs COST of Spine1 and Spine2 are the same, an equivalent next hop is formed.
Further, spine1 or spine2 sends the packet to the first boundary device SW14, the first boundary device SW14 sends the packet to SW21, and the second boundary device SW21 of the second area sends the packet to SW22 through spine3 or spine 4.
On the basis of the configuration of the segment routing protocol in the network, it is not necessary for the access device SW11 in the first area to use the segment id of the network device in the second area for forwarding, because the access device SW11 in the first area must forward the packet to the first border device SW14 in the first area if the packet is to be sent to the second area, and the border device SW14 in the first area further sends the packet to the second border device SW21 in the second area.
Based on the above idea, when forwarding a message through the segment identifier, when the user side of the access device SW11 in the first area receives an address with a destination address of the second area (for example, addresses of the access devices SW21, SW22, SW23, and SW24 in the second area), the first access device SW11 may directly encapsulate the segment tag of the first boundary device SW14 (the segment tag is generated according to the segment identifier) and forward the segment tag, the message is forwarded to the first boundary device SW14, the first boundary device SW14 pops up the tag and forwards the tag again according to the destination address of the inner layer, the message is forwarded to the second boundary device SW21 in the second area, and the second boundary device SW21 performs routing and forwarding in the second area according to the IP address.
Therefore, in order to achieve the above object, in the segment identifier issuing method provided by the present disclosure, fig. 2 is a flowchart of a method provided by a first embodiment of the present disclosure, and as shown in fig. 2, the method includes:
step 202, receiving device role information sent by a controller; and under the condition that the role information indicates that the role information is the first boundary equipment of the first area, when receiving the out-of-domain routing information sent by the network equipment of the second area, the first boundary equipment generates a segment identifier advertisement message according to the out-of-domain routing information.
The segment identifier advertisement message is used for indicating that the segment identifier of the route outside the domain is the Node SID of the first boundary leaf device; wherein, the segment identifier notification message includes: a loopback interface IP address of the first boundary leaf device, a Node SID of the loopback interface, and an IP address of a network device issuing the route outside the domain; the IP address of the network device routed outside the domain may be a single IP address or an IP address segment.
Step 206, sending the segment identifier advertisement message to other network devices in the first area.
In an optional manner, when the controller issues the device role information to the network device, the controller further sends, to the network device of each role, a corresponding action executed by the role receiving segment identifier advertisement message.
For example, when the role of the network device is a boundary device, when receiving the out-of-domain routing information, a segment identifier advertisement message is generated; when the role of the network equipment is the intermediate equipment and the segment identification notification message is received, the content of the segment identification notification message is not identified, and the segment identification notification message is directly forwarded. An intermediate device generally refers to a non-edge device, and the device generally does not serve as a network device of a source device or a destination device for service access, for example, a host in a network does not access a core device, that is, the core device serves as a destination device.
In this embodiment, when the network device SW14 determines that it is a boundary device (denoted as a first boundary device in this embodiment) according to the received device role information, it generates a segment identifier advertisement packet when receiving the out-of-domain routing information. Or, when the first border device SW14 needs to issue a Node SID of a loopback interface, a segment identifier advertisement message is generated, and in order to enable other network devices in the first area to learn an out-of-domain route, the segment identifier advertisement message may carry IP addresses of network devices in other areas, that is, out-of-domain route information.
Specifically, the segment identifier advertisement message includes: the IP address of the loop back port of the first boundary equipment SW14, the Node SID of the loop back port and the IP address of the network equipment issuing the routing outside the domain. In this embodiment, the distribution domain outside routing network device is taken as SW22 for example.
The segment identifier advertisement message generated by the first border device SW14 may be used to advertise the segment identifier of the first border device, and may also be used to indicate that the segment identifier of the network device SW22 is the Node SID of the first border device SW14, that is, the segment identifier of the network device SW22 of the second area may be the same as the Node SID of the border device SW14 of the first area.
Fig. 3 is a message format of an improved segment identifier advertisement message provided in the embodiment of the present disclosure, and as shown in fig. 3, taking a segment identifier advertisement message under the OSPF protocol as an example, T L V (Tag field) -length field-value (content field), which is referred to as T L V) in the segment identifier advertisement message may be expanded.
The Address Prefix field is used for carrying the Address of the loopback interface of the network equipment;
an external Address Prefix field is added in the method, and the field is used for carrying the Prefix information of the routing outside the domain;
adding an external length field external L ength in an original Reserved field, wherein the field is used for carrying the length of the route prefix outside the domain;
Sub-T L Vs includes Prefix Sub-T L V field (Prefix Sub-T L V), fig. 4 is a schematic diagram of Prefix Sub-T L V message format, as shown in fig. 4, SID field in Prefix Sub-T L V is used to carry end identifier.
According to the embodiment provided by the disclosure, the network device issuing the out-of-domain route and the first boundary device are indicated to share the segment identifier through the segment identifier advertisement message, the out-of-domain route is not required to be flooded in the domain through another process, meanwhile, the consumption of the out-of-domain route on the segment label is reduced, the transmission efficiency of a protocol layer is increased, and the control of the controller on the SegmentRout protocol is further enhanced.
Example two
On the basis of the first embodiment, the first border device SW14 may issue a segment identifier advertisement message to other network devices through the OSPF protocol. The controller may determine whether the corresponding network device parses the segment identifier advertisement packet according to the role information of the network device. Specifically, the method comprises the following steps:
step 208, under the condition that the controller issues role information indicating that the controller is a first area core device, if a segment identifier notification message is received, the segment identifier notification message is not analyzed, and the segment identifier notification message is directly forwarded;
step 210, under the condition that the role information sent by the controller indicates that the role information is an access device of a non-first boundary device in the first area, if the segment identifier notification message is received, the segment identifier notification message is analyzed.
In an embodiment, as shown in fig. 1, if the spine1 and spine2 receive the role information sent by the controller and indicate that the spine1 and spine2 are core devices, the spine1 or spine2 receives the segment identifier advertisement message sent by the first border device SW14, and may directly forward the segment identifier advertisement message to the intra-domain access devices SW11, SW12, and SW13, without analyzing the end identifier advertisement message, and without storing the extra-domain routing information included in the segment identifier advertisement message in the routing table.
Of course, optionally, the controller may also instruct that the segment identifier advertisement packet is parsed when the role information is the core device. Specifically, the controller may be set according to actual conditions.
In another optional implementation, if the non-first border device network devices in the first area, for example, the network devices SW11, SW12, and SW13, receive the role information sent by the controller and indicate that the network devices themselves are access devices, when the SW11, SW12, and SW13 receive the segment identifier advertisement message forwarded by the spine1 or spine2, the segment identifier advertisement message is parsed.
Accordingly, after step 210, as shown in fig. 5, the method provided by the present disclosure may further include:
step 310, the access device receives the segment identifier notification message and analyzes the segment identifier notification message;
step 312, the access device generates a corresponding relationship between the IP address of the out-of-domain network device and the Node SID of the loopback port according to the analyzed IP address of the out-of-domain network device and the Node SID of the loopback port;
step 314, when the access device receives the message whose destination IP address is the IP address of the out-of-domain network device, adding a label stack including the Node SID of the loopback interface to the message, where the label stack is generated according to the corresponding relationship.
The IP address of the out-of-domain network device may be a single IP address or may be an IP address segment, and the present disclosure does not impose any limitation on the type of IP address.
As shown in fig. 1, when the access devices SW11, SW12, and SW13 receive the segment identifier advertisement message forwarded by Spine1 and/or Spine2, analyze a Prefix Address (IP Address of loop back port of SW 14), a Node SID, and an external Address (IP Address of SW 22), generate a corresponding relationship between the Node SID of the loop back port of the first boundary device and the loop back port IP Address of the out-of-domain network device SW22, so as to use the loop back port Node SID of SW14 as the segment identifier of the access device SW22, and simultaneously set the next route hop and the segment identifier of SW22 to be the same as those of the first boundary device SW14, where the next hop is Spine1 or Spine 2.
When the user side of the SW11, SW12, SW13 receives the address (for example, SW21, SW22, SW23, or SW24) whose destination address is the second area, directly encapsulates the label stack including the segment identifier of the first boundary device SW14, forwards the packet to the first boundary device SW14, pops off the segment identifier by the first boundary device SW14, forwards the packet to the second boundary device SW24 again according to the destination address of the inner layer, and completes the IP routing forwarding in the second area by the second boundary device SW 24. When the out-of-domain route changes, for example, one out-of-domain route is deleted or added, the method of the present disclosure may further include:
step 416, when the first border device senses that the routing information outside the domain changes, a segment identifier advertisement message is regenerated;
step 418, sending the regenerated segment identifier notification message to other network devices in the first area, so that the other network devices update the corresponding relationship; the regenerated segment identification notification message includes the IP address of the network device corresponding to the changed out-of-domain route. If the first edge device SW14 senses the second area add network device SW15 (not shown in fig. 1), at this time, the first edge device SW14 generates a segment identifier advertisement message, and the generated segment identifier advertisement message is different from the segment identifier advertisement message in the embodiment in that the External address prefix field External address prefix carries a changed out-of-domain routing address, that is, the IP address of the SW 15.
After receiving the segment identifier advertisement message, the other network devices SW11, SW12, SW13 in the first area may update the corresponding relationship in step 312 in the forwarding table.
It can be seen that when the link status in the first area changes, for example, the COST between Spine1 and access device SW11 changes, SW11 only recalculates the route in the domain, and the route outside the domain does not change. When the path from the access device SW11 to the access device SW14 changes, for example, the next hop is switched from the mine 1 to the equivalent next hop mine 2, the route from the access device SW11 to the outside of the domain is updated accordingly.
By the method, when the access device in the SDN domain accesses the network device outside the domain, the boundary device does not need to flood the outside-domain route in the domain, and does not need to distribute segment identification for the outside-domain route separately, so that flooding and calculation of a protocol layer are greatly reduced. In addition, it should be noted that, in the embodiments of the present disclosure, devices outside the domain are taken as an access device for example, and it should be understood that the access device in fig. 1 of the present disclosure may also be hung with other networks, such as a local area network, and the like, so that the network device to which the out-of-domain route is directed may be an access device, a core device, a host device, and the like. The present disclosure is not so limited.
EXAMPLE III
The present disclosure further provides a segment identifier issuing apparatus, configured to execute the method provided in the first or second embodiment, fig. 6 is a schematic structural diagram of the segment identifier issuing apparatus provided in the third embodiment of the present disclosure, and as shown in fig. 6, the apparatus includes:
a receiving module 501, configured to receive device role information sent by a controller; in the case where the character information indicates a first border device that is itself a first area,
the receiving module 501 is configured to receive the route information outside the domain sent by the network device in the second area;
a generating module 502, configured to generate a segment identifier advertisement message according to the out-of-domain routing information, where the segment identifier advertisement message is used to indicate that a segment identifier of the out-of-domain routing is a Node SID of the first boundary device; wherein, the segment identifier notification message includes: a loopback interface IP address of the first boundary equipment, a Node SID of the loopback interface and an IP address of the network equipment for issuing the routing outside the domain;
a sending module 503, configured to send the segment identifier advertisement packet to other network devices in the first area.
Optionally, the apparatus may further include: and an analyzing module (not shown in the figure), configured to, if a segment identifier notification message is received when the role information indicates that the role information itself is an access device of a non-first boundary device in the first area, analyze the segment identifier notification message.
Optionally, the generating module 502 is further configured to generate, after the analyzing module analyzes the segment identifier advertisement packet, a corresponding relationship between the IP address of the out-of-domain network device and the Node SID of the loopback interface according to the analyzed IP address of the out-of-domain network device and the Node SID of the loopback interface;
optionally, the apparatus may further include: a label adding module (not shown in the figure);
and the label adding module is used for adding a label stack comprising the Node SID of the loop back port to the message when the access equipment receives the message of which the destination IP address is the IP address of the network equipment outside the domain, and the label stack is generated according to the corresponding relation.
Optionally, the generating module 502 is further configured to regenerate the segment identifier advertisement packet if the first border device senses that the route information outside the domain changes; sending the regenerated segment identification notification message to other network equipment in the first area, so that the other network equipment updates the corresponding relation; the regenerated segment identification notification message includes the IP address of the network device corresponding to the changed out-of-domain route.
Optionally, the parsing module is further configured to, if a segment identifier notification packet is received under the condition that the role information indicates that the role information itself is a first regional core device, directly forward the segment identifier notification packet without parsing the segment identifier notification packet.
The section identification issuing device provided by the disclosure does not need to flood the outside-domain route in the domain, and does not need to distribute the section identification for the outside-domain route independently, thereby greatly reducing the flooding and calculation of the protocol layer. The present disclosure further provides a network device 60, and fig. 7 is a schematic structural diagram of a network device provided in another embodiment of the present disclosure, as shown in fig. 7, the network device 60 includes a processor 601 and a memory 602,
the memory 602 is configured to store program instructions, the processor 601 is configured to call the program instructions stored in the memory, and when the processor 601 executes the program instructions stored in the memory 602, the processor is configured to execute the method in the first embodiment or the second embodiment. The network device 60 of the present disclosure may be an access device. Furthermore, in the following detailed description, numerous specific details are set forth in order to provide a better understanding of the present disclosure. It will be understood by those skilled in the art that the present disclosure may be practiced without some of these specific details. In some instances, methods, means, elements and circuits that are well known to those skilled in the art have not been described in detail so as not to obscure the present disclosure.
In the embodiments provided in the present disclosure, it should be understood that the disclosed apparatus and method may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
In addition, functional modules in the embodiments of the present disclosure may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
The functions, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a readable storage medium. Based on such understanding, the technical solution of the present disclosure or portions thereof that contribute to the prior art in essence can be embodied in the form of a software product, which is stored in a readable storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method described in the embodiments of the present disclosure. And the aforementioned readable storage medium includes: a U-disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other various media capable of storing program codes.
The above description is only exemplary of the present disclosure and should not be taken as limiting the disclosure, as any modification, equivalent replacement, or improvement made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A segment identifier issuing method is characterized by comprising the following steps: receiving device role information sent by a controller; in the case where the character information indicates a first border device that is itself a first area,
receiving the routing information outside the domain sent by the network equipment in the second area;
generating a segment identifier advertisement message according to the out-of-domain routing information, wherein the segment identifier advertisement message is used for indicating that the segment identifier of the out-of-domain routing is the Node SID of the first boundary device; wherein, the segment identifier notification message includes: a loopback interface IP address of the first boundary equipment, a Node SID of the loopback interface and an IP address of the network equipment for issuing the routing outside the domain;
and sending the segment identification notification message to other network equipment in the first area.
2. The method of claim 1, further comprising: and under the condition that the role information indicates that the role information is an access device which is not a first boundary device of the first area, if a segment identifier notification message is received, analyzing the segment identifier notification message.
3. The method of claim 2, wherein parsing the segment identification advertisement packet comprises:
generating a corresponding relation between the IP address of the out-of-domain network equipment and the Node SID of the loopback port according to the analyzed IP address of the out-of-domain network equipment and the Node SID of the loopback port;
when the access device receives a message with a destination IP address being the IP address of the network device outside the domain, a label stack including the Node SID of the loopback port is added to the message, and the label stack is generated according to the corresponding relation.
4. The method of claim 3, further comprising: if the first boundary equipment senses that the routing information outside the domain changes, the segment identification notification message is regenerated;
sending the regenerated segment identification notification message to other network equipment in the first area, so that the other network equipment updates the corresponding relation;
the regenerated segment identification notification message includes the IP address of the network device corresponding to the changed out-of-domain route.
5. The method of claim 1, further comprising: and under the condition that the role information indicates that the role information is the first area core equipment, if a segment identification notification message is received, the segment identification notification message is not analyzed, and the segment identification notification message is directly forwarded.
6. A segment identity publication device, comprising:
the receiving module is used for receiving the device role information sent by the controller; in the case where the character information indicates a first border device that is itself a first area,
the receiving module is used for receiving the routing information outside the domain sent by the network equipment in the second area;
a generating module, configured to generate a segment identifier advertisement message according to the out-of-domain routing information, where the segment identifier advertisement message is used to indicate that a segment identifier of the out-of-domain route is a Node SID of the first boundary device; wherein, the segment identifier notification message includes: a loopback interface IP address of the first boundary equipment, a Node SID of the loopback interface and an IP address of the network equipment for issuing the routing outside the domain;
and the sending module is used for sending the segment identification notification message to other network equipment in the first area.
7. The apparatus of claim 6, further comprising:
and the analysis module is used for analyzing the segment identifier notification message if the segment identifier notification message is received under the condition that the role information indicates that the role information is an access device of non-first boundary equipment in the first area.
8. The apparatus of claim 7, wherein the generating module is further configured to, after the parsing module parses the segment identifier advertisement packet, include: generating a corresponding relation between the IP address of the out-of-domain network equipment and the Node SID of the loopback port according to the analyzed IP address of the out-of-domain network equipment and the Node SID of the loopback port;
the device further comprises: a tag adding module;
and the label adding module is used for adding a label stack comprising the Node SID of the loop back port to the message when the access equipment receives the message of which the destination IP address is the IP address of the network equipment outside the domain, and the label stack is generated according to the corresponding relation.
9. The apparatus according to claim 8, wherein the generating module is further configured to regenerate a segment identifier advertisement packet if the first border device senses that the route information outside the domain changes;
sending the regenerated segment identification notification message to other network equipment in the first area, so that the other network equipment updates the corresponding relation;
the regenerated segment identification notification message includes the IP address of the network device corresponding to the changed out-of-domain route.
10. The apparatus according to claim 6, wherein the parsing module is further configured to, if a segment identifier advertisement packet is received, forward the segment identifier advertisement packet directly without parsing the segment identifier advertisement packet if the role information indicates that the role information itself is a first regional core device.
CN202010246555.XA 2020-03-31 2020-03-31 Segment identifier issuing method and device Active CN111464439B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010246555.XA CN111464439B (en) 2020-03-31 2020-03-31 Segment identifier issuing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010246555.XA CN111464439B (en) 2020-03-31 2020-03-31 Segment identifier issuing method and device

Publications (2)

Publication Number Publication Date
CN111464439A true CN111464439A (en) 2020-07-28
CN111464439B CN111464439B (en) 2022-04-01

Family

ID=71680545

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010246555.XA Active CN111464439B (en) 2020-03-31 2020-03-31 Segment identifier issuing method and device

Country Status (1)

Country Link
CN (1) CN111464439B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671654A (en) * 2020-12-28 2021-04-16 北京东土军悦科技有限公司 Routing information updating method, device, equipment, medium and OSPF network
CN113691451A (en) * 2021-09-22 2021-11-23 新华三信息安全技术有限公司 Segment identifier determination method and device

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634940A (en) * 2014-10-27 2016-06-01 中兴通讯股份有限公司 SR information acquisition method and route segment network establishment method
CN109861913A (en) * 2018-12-25 2019-06-07 北京华为数字技术有限公司 A kind of prefix mark notifying method and device across Interior Gateway Protocol
CN109995655A (en) * 2018-01-03 2019-07-09 中兴通讯股份有限公司 A kind of method and device for realizing seamless optimal cross-domain path
CN110636008A (en) * 2018-06-22 2019-12-31 中国电信股份有限公司 Network topology information acquisition method, network topology construction system and boundary router
CN110661711A (en) * 2018-06-29 2020-01-07 华为技术有限公司 Method for generating label forwarding table, message sending method, device and equipment
CN110784411A (en) * 2019-09-30 2020-02-11 华为技术有限公司 Method, device and system for establishing BIER forwarding table item
CN110830352A (en) * 2018-08-07 2020-02-21 中兴通讯股份有限公司 Method and device for realizing VPN cross-domain and boundary node

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105634940A (en) * 2014-10-27 2016-06-01 中兴通讯股份有限公司 SR information acquisition method and route segment network establishment method
EP3200402A1 (en) * 2014-10-27 2017-08-02 ZTE Corporation Sr information obtainment method and sr network establishment method
CN109995655A (en) * 2018-01-03 2019-07-09 中兴通讯股份有限公司 A kind of method and device for realizing seamless optimal cross-domain path
CN110636008A (en) * 2018-06-22 2019-12-31 中国电信股份有限公司 Network topology information acquisition method, network topology construction system and boundary router
CN110661711A (en) * 2018-06-29 2020-01-07 华为技术有限公司 Method for generating label forwarding table, message sending method, device and equipment
CN110830352A (en) * 2018-08-07 2020-02-21 中兴通讯股份有限公司 Method and device for realizing VPN cross-domain and boundary node
CN109861913A (en) * 2018-12-25 2019-06-07 北京华为数字技术有限公司 A kind of prefix mark notifying method and device across Interior Gateway Protocol
CN110784411A (en) * 2019-09-30 2020-02-11 华为技术有限公司 Method, device and system for establishing BIER forwarding table item

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112671654A (en) * 2020-12-28 2021-04-16 北京东土军悦科技有限公司 Routing information updating method, device, equipment, medium and OSPF network
CN113691451A (en) * 2021-09-22 2021-11-23 新华三信息安全技术有限公司 Segment identifier determination method and device
WO2023045247A1 (en) * 2021-09-22 2023-03-30 新华三技术有限公司 Method and apparatus for determining segment identity

Also Published As

Publication number Publication date
CN111464439B (en) 2022-04-01

Similar Documents

Publication Publication Date Title
CN107483345B (en) Service processing method, device and system
CN101505227B (en) Method, device and system for implementing point to multi-point pseudowire
CN112087386B (en) Message processing method, device and system
US20140321323A1 (en) Service Instance Applied to MPLS Network
EP2005650B1 (en) Connecting multi-hop mesh networks using mac bridge
US20160014016A1 (en) Encoding Inter-Domain Shared Service Paths
CN110224934B (en) Method and device for processing message by using unified SR label stack
EP3754913A1 (en) Signaling ip path tunnels for traffic engineering
EP2135393B1 (en) Ethernet spanning tree provision
CN107026796B (en) VPN route notification method, data flow forwarding method and related equipment
CN101467401A (en) Routing multicast traffic
CN105210336A (en) Segment routing mapping server for LDP/SR interoperability
HU218402B (en) Method and apparatus for wireless communication with mobile units in a spurce routing communication network having a plurality of access points networks
JP2001189751A (en) System, element and method for supporting virtual private network of label exchange communication network
CN112511444A (en) Multicast traffic transmission method, device, communication node and storage medium
CN111131021B (en) Forwarding method and network equipment for Bidirectional Forwarding Detection (BFD) message
CN111464439B (en) Segment identifier issuing method and device
CN113497754B (en) Forwarding path establishing method and device and computer readable storage medium
US11362954B2 (en) Tunneling inter-domain stateless internet protocol multicast packets
JP2006295938A (en) Network type routing scheme
US10003518B2 (en) Span session monitoring
CN110620730B (en) Bit indexed explicit copy (BIER) penultimate jump pop-up
CN108259466B (en) DDoS flow reinjection method, SDN controller and network system
CN111490937A (en) Method, device and system for establishing cross-domain forwarding path
CN108322376B (en) Route synchronization method, device and machine-readable storage medium

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