CN111865792A - BSID management method, routing equipment and readable storage medium - Google Patents

BSID management method, routing equipment and readable storage medium Download PDF

Info

Publication number
CN111865792A
CN111865792A CN202010745152.XA CN202010745152A CN111865792A CN 111865792 A CN111865792 A CN 111865792A CN 202010745152 A CN202010745152 A CN 202010745152A CN 111865792 A CN111865792 A CN 111865792A
Authority
CN
China
Prior art keywords
forwarded
bsid
policy
routing
traffic
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
CN202010745152.XA
Other languages
Chinese (zh)
Other versions
CN111865792B (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 Information Technologies Co Ltd
Original Assignee
Hangzhou H3C 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 Hangzhou H3C Technologies Co Ltd filed Critical Hangzhou H3C Technologies Co Ltd
Priority to CN202010745152.XA priority Critical patent/CN111865792B/en
Publication of CN111865792A publication Critical patent/CN111865792A/en
Application granted granted Critical
Publication of CN111865792B publication Critical patent/CN111865792B/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/34Source 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/38Flow based 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/74Address processing for routing

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)

Abstract

The present specification provides a BSID management method, a routing device, and a readable storage medium, the method including: receiving flow to be forwarded, judging whether the flow to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel, generating a BSID when the flow to be forwarded is determined to be forwarded through the SR-Policy tunnel, sending the flow to be forwarded through the SR-Policy tunnel according to the BSID, and not generating the BSID when the flow to be forwarded is determined not to be forwarded through the SR-Policy tunnel. By the method, the BSID can be generated according to the forwarding requirement, and the traffic to be forwarded can be forwarded according to the BSID.

Description

BSID management method, routing equipment and readable storage medium
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a method for managing BSID, a routing device, and a readable storage medium.
Background
SR-Policy (Segment Routing Policy) provides a flexible forwarding path selection method, and meets different forwarding requirements of users. When a plurality of paths exist between a source node and a destination node of a Segment Routing network, SR-TE Policy is reasonably utilized to select a forwarding path, which not only facilitates the management and planning of the network by an administrator, but also can effectively reduce the forwarding pressure of network equipment.
SR-Policy may include BSID (Binding Segment Identifier), Color (attribute of forwarding path), End-point (SR-Policy destination node, which may be identified by IP address).
After receiving the message with the stack top label being BSID, the device selects the corresponding effective SR-Policy forwarding flow according to the BSID, and if the BSID is matched with a plurality of effective SR-Policy tunnels, the device selects the SR-Policy forwarding flow according to the sequence of the configured BSID. SR-Policy, which configures BSID first, is preferentially selected to forward traffic.
Disclosure of Invention
The present specification provides a method for managing BSID, a routing device, and a readable storage medium, which can generate BSID according to a forwarding requirement, and forward a traffic to be forwarded according to BSID.
An embodiment of the present specification provides a method for managing BSID, where the method is applied to a first routing device, and the method includes:
receiving traffic to be forwarded;
judging whether the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel;
when the flow is determined to be forwarded through the SR-Policy tunnel, generating a BSID, and sending the flow to be forwarded through the SR-Policy tunnel according to the BSID;
when it is determined not to forward through the SR-Policy tunnel, no BSID is generated.
It can be seen from the foregoing embodiments that, when forwarding a traffic to be forwarded, it is determined whether forwarding needs to be performed through an SR-Policy tunnel, if so, a BSID is generated, and if not, the BSID is not generated, thereby solving the technical problem in the prior art that the BSID is generated for the traffic to be forwarded, which causes resource waste.
Optionally, the method for determining whether the traffic to be forwarded is forwarded through the segment routing Policy SR-Policy tunnel specifically includes:
judging whether a notification for indicating self generation of the BSID is received;
and when the notification is received, determining that the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel.
Optionally, the notification is sent by a second routing device connected to the first routing device or a controller connected to the first routing device.
Optionally, the sending the traffic to be forwarded through the SR-Policy tunnel according to the BSID specifically includes:
and iterating the traffic to be forwarded to an SR-Policy tunnel corresponding to the BSID according to the BSID, and sending the traffic to be forwarded through the SR-Policy tunnel.
Optionally, when the first routing device meets a preset condition;
sending a notification for indicating the second routing equipment to generate the BSID to the second routing equipment so that the second routing equipment generates the BSID according to the notification, and sending the flow in the second routing equipment through SR-Policy according to the BSID;
wherein the preset conditions include: a new neighbor relation, or a new port.
Optionally, the notification further includes attribute information of a forwarding path, so that the second routing device generates a BSID according to the notification, and determines an SR-Policy tunnel for sending traffic to be forwarded according to the attribute information of the forwarding path and the BSID.
An embodiment of the present specification further provides a routing device, where a segment routing Policy SR-Policy operates in the routing device, and the routing device includes:
the receiving module is used for receiving the flow to be forwarded;
the judging module is used for judging whether the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel;
the processing module is used for generating a BSID when the flow to be forwarded is determined to be forwarded through the SR-Policy tunnel, and sending the flow to be forwarded through the SR-Policy tunnel according to the BSID; or when determining not to forward through the SR-Policy tunnel, not generating BSID.
Optionally, the determining module is further configured to determine whether a notification for instructing the self to generate the BSID is received;
and when the judging module determines that the notification is received, determining that the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel.
An embodiment of the present specification further provides a routing device, where the routing device includes: a processor and a machine-readable storage medium:
the machine-readable storage medium stores machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing any of the embodiments described above.
Embodiments of the present specification also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing any of the embodiments described above.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present specification and together with the description, serve to explain the principles of the specification.
Fig. 1 is a flowchart illustrating a method for managing a binding segment identifier BSID according to an embodiment of the present disclosure.
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 specification. Rather, they are merely examples of apparatus and methods consistent with certain aspects of the specification, as detailed in the appended claims.
The terminology used in the description herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the description. As used in this specification 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 associated listed items.
It should be understood that although the terms first, second, third, etc. may be used herein to describe various information, these information should not be limited to these terms. These terms are only used to distinguish one type of information from another. For example, the first information may also be referred to as second information, and similarly, the second information may also be referred to as first information, without departing from the scope of the present specification. The word "if" as used herein may be interpreted as "at … …" or "when … …" or "in response to a determination", depending on the context.
Because the BSID is used as the top label judgment, the BSID applies for occupying a local label resource, in the SR, the head node often occupies more label resources and has higher pressure, and not all BSIDs are actually useful, for example, in some cases, the head node is only used as a label for encapsulating the head of the tunnel in the direction, and in this case, the packet with the top label is not received, but is only a normal IP packet. However, in the prior art, the system generates the BSID without distinguishing the situation, which results in resource waste.
To solve the foregoing technical problem, an embodiment of the present specification provides a method for managing a binding segment identifier BSID, where as shown in fig. 1, the method is applied to a first routing device, and the method includes:
s101, receiving traffic to be forwarded;
s102, judging whether the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel;
s103, when the flow is determined to be forwarded through the SR-Policy tunnel, generating a BSID, and sending the flow to be forwarded through the SR-Policy tunnel according to the BSID;
s104, when determining not to forward through the SR-Policy tunnel, not generating BSID.
In this embodiment, after receiving the traffic to be forwarded, the first routing device may determine, through step S102, whether the traffic to be forwarded is forwarded through the SR-Policy tunnel, generate the BSID if the traffic to be forwarded is forwarded through the SR-Policy tunnel, and not generate the BSID if the traffic to be forwarded is not forwarded through the SR-Policy tunnel.
Specifically, in step S102, the method for determining whether the traffic to be forwarded is forwarded through the segment routing Policy SR-Policy tunnel may include:
judging whether a notification for indicating self generation of the BSID is received;
and when the notification is received, determining that the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel.
In one case, the first routing device may be connected to the controller, and when the manager considers that the first routing device needs to generate the BSID, a notification instructing the first routing device to generate the BSID may be transmitted to the first routing device through the controller.
In another case, the second routing device connected to the first routing device may send the notification to the first routing device, for example, when the second routing device determines that there is a newly added neighbor relationship, it may be considered that there is a possibility that the packet needs to be forwarded through the SR-Policy tunnel, and at this time, the notification may be sent to the first routing device.
In step S103, when it is determined that the traffic to be forwarded needs to be forwarded through the SR-Policy tunnel, the traffic to be forwarded may be iterated into the SR-Policy tunnel according to the generated BSID, so as to send the traffic to be forwarded through the SR-Policy tunnel.
In another embodiment, the first routing device may set a trigger condition for sending a notification to other routing devices to notify the other routing devices of generating the BSID notification, for example, when receiving a new neighbor relation sent by the other routing devices, the first routing device may send the notification to the other routing devices.
Specifically, when the first routing device meets a preset condition, sending a notification to the second routing device, where the notification is used to instruct the second routing device to generate a BSID, so that the second routing device generates the BSID according to the notification, and sends a flow in the second routing device through SR-Policy according to the BSID, where the preset condition includes: a new neighbor relation, or a new port.
In the SR-Policy technology, the SR-Policy tunnels corresponding to the attribute information (e.g., Color attribute) of different forwarding paths may further include Color information, so that after the routing device receiving the notification generates the BSID, it may determine, according to the Color information, to use the BSID for the SR-Policy tunnels, so that the packet to be forwarded is forwarded in the SR-Policy tunnel corresponding to the Color.
It can be seen from the above embodiments that, when forwarding a packet to be forwarded, a routing device may determine whether forwarding needs to be performed through an SR-Policy tunnel, if so, generate a BSID, and if not, do not generate the BSID, so that it is not necessary to generate BSIDs for all packets, and tag resources are saved.
Based on the same idea concept as the foregoing method embodiment, this specification further provides a routing device, where a segment routing Policy SR-Policy operates in the routing device, and the routing device includes:
the receiving module is used for receiving the flow to be forwarded;
the judging module is used for judging whether the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel;
the processing module is used for generating a BSID when the flow to be forwarded is determined to be forwarded through the SR-Policy tunnel, and sending the flow to be forwarded through the SR-Policy tunnel according to the BSID; or when determining not to forward through the SR-Policy tunnel, not generating BSID.
The judging module is also used for judging whether a notice for indicating the self to generate the BSID is received or not;
and when the judging module determines that the notification is received, determining that the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel.
An embodiment of the present specification further provides a routing device, where the routing device includes: a processor and a machine-readable storage medium:
the machine-readable storage medium stores machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: the above embodiments are realized.
Embodiments of the present specification also provide a machine-readable storage medium storing machine-executable instructions that, when invoked and executed by a processor, cause the processor to: the above embodiments are realized.
The foregoing description has been directed to specific embodiments of this disclosure. Other embodiments are within the scope of the following claims. In some cases, the actions or steps recited in the claims may be performed in a different order than in the embodiments and still achieve desirable results. In addition, the processes depicted in the accompanying figures do not necessarily require the particular order shown, or sequential order, to achieve desirable results. In some embodiments, multitasking and parallel processing may also be possible or may be advantageous.
Other embodiments of the present description will be apparent to those skilled in the art from consideration of the specification and practice of the invention disclosed herein. This specification is intended to cover any variations, uses, or adaptations of the specification following, in general, the principles of the specification and including such departures from the present disclosure as come within known or customary practice within the art to which the specification pertains. It is intended that the specification and examples be considered as exemplary only, with a true scope and spirit of the specification being indicated by the following claims.
It will be understood that the present description is not limited to the precise arrangements described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.
The above description is only a preferred embodiment of the present disclosure, and should not be taken as limiting the present disclosure, and any modifications, equivalents, improvements, etc. made within the spirit and principle of the present disclosure should be included in the scope of the present disclosure.

Claims (10)

1. A management method for Binding Segment Identifiers (BSIDs), which is applied to a first routing device, comprises:
receiving traffic to be forwarded;
judging whether the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel;
when the flow is determined to be forwarded through the SR-Policy tunnel, generating a BSID, and sending the flow to be forwarded through the SR-Policy tunnel according to the BSID;
when it is determined not to forward through the SR-Policy tunnel, no BSID is generated.
2. The method according to claim 1, wherein the method for determining whether the traffic to be forwarded is forwarded through a segment routing Policy SR-Policy tunnel specifically comprises:
judging whether a notification for indicating self generation of the BSID is received;
and when the notification is received, determining that the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel.
3. The method of claim 2, wherein the notification is sent by a second routing device connected to the first routing device or a controller connected to the first routing device.
4. The method according to claim 1, wherein the sending the traffic to be forwarded through the SR-Policy tunnel according to the BSID specifically includes:
and iterating the traffic to be forwarded to an SR-Policy tunnel corresponding to the BSID according to the BSID, and sending the traffic to be forwarded through the SR-Policy tunnel.
5. The method of claim 1, further comprising:
when the first routing equipment meets a preset condition;
sending a notification for indicating the second routing equipment to generate the BSID to the second routing equipment so that the second routing equipment generates the BSID according to the notification, and sending the flow in the second routing equipment through SR-Policy according to the BSID;
wherein the preset conditions include: a new neighbor relation, or a new port.
6. The method of claim 5, wherein the notification further includes attribute information of a forwarding path, so that the second routing device generates a BSID according to the notification, and determines an SR-Policy tunnel for sending traffic to be forwarded according to the attribute information of the forwarding path and the BSID.
7. A routing device, wherein a segment routing Policy (SR-Policy) is run in the routing device, and the routing device comprises:
the receiving module is used for receiving the flow to be forwarded;
the judging module is used for judging whether the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel;
the processing module is used for generating a BSID when the flow to be forwarded is determined to be forwarded through the SR-Policy tunnel, and sending the flow to be forwarded through the SR-Policy tunnel according to the BSID; or when determining not to forward through the SR-Policy tunnel, not generating BSID.
8. The routing device of claim 7, wherein the determination module,
the system is also used for judging whether a notice for indicating the self generation of the BSID is received or not;
and when the judging module determines that the notification is received, determining that the traffic to be forwarded is forwarded through a segmented routing strategy SR-Policy tunnel.
9. A routing device, characterized in that the routing device comprises: a processor and a machine-readable storage medium:
the machine-readable storage medium stores machine-executable instructions executable by the processor, the processor being caused by the machine-executable instructions to: implementing the functionality of any of claims 1-6.
10. A machine-readable storage medium having stored thereon machine-executable instructions that, when invoked and executed by a processor, cause the processor to: implementing the functionality of any of claims 1-6.
CN202010745152.XA 2020-07-29 2020-07-29 BSID management method, routing equipment and readable storage medium Active CN111865792B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010745152.XA CN111865792B (en) 2020-07-29 2020-07-29 BSID management method, routing equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010745152.XA CN111865792B (en) 2020-07-29 2020-07-29 BSID management method, routing equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111865792A true CN111865792A (en) 2020-10-30
CN111865792B CN111865792B (en) 2022-07-12

Family

ID=72945455

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010745152.XA Active CN111865792B (en) 2020-07-29 2020-07-29 BSID management method, routing equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111865792B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015144018A1 (en) * 2014-03-28 2015-10-01 华为技术有限公司 Information transmission method, device and communication system
WO2015192501A1 (en) * 2014-06-20 2015-12-23 中兴通讯股份有限公司 Address information publishing method and apparatus
CN110535772A (en) * 2019-08-27 2019-12-03 南京中兴软件有限责任公司 Sending and receiving method, device and the network element of Segment routing traffic engineering strategy
CN110944357A (en) * 2018-09-25 2020-03-31 中兴通讯股份有限公司 Network slicing method and device
CN110971433A (en) * 2018-09-29 2020-04-07 华为技术有限公司 Method, device and system for acquiring SRv6 tunnel information
CN110995595A (en) * 2019-12-16 2020-04-10 新华三大数据技术有限公司 Message sending method, device, storage medium and node equipment
CN111181855A (en) * 2018-11-13 2020-05-19 北京华为数字技术有限公司 Multicast method and routing equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2015144018A1 (en) * 2014-03-28 2015-10-01 华为技术有限公司 Information transmission method, device and communication system
WO2015192501A1 (en) * 2014-06-20 2015-12-23 中兴通讯股份有限公司 Address information publishing method and apparatus
CN110944357A (en) * 2018-09-25 2020-03-31 中兴通讯股份有限公司 Network slicing method and device
CN110971433A (en) * 2018-09-29 2020-04-07 华为技术有限公司 Method, device and system for acquiring SRv6 tunnel information
CN111181855A (en) * 2018-11-13 2020-05-19 北京华为数字技术有限公司 Multicast method and routing equipment
CN110535772A (en) * 2019-08-27 2019-12-03 南京中兴软件有限责任公司 Sending and receiving method, device and the network element of Segment routing traffic engineering strategy
CN110995595A (en) * 2019-12-16 2020-04-10 新华三大数据技术有限公司 Message sending method, device, storage medium and node equipment

Also Published As

Publication number Publication date
CN111865792B (en) 2022-07-12

Similar Documents

Publication Publication Date Title
CN107666438B (en) Message forwarding method and device
CN105991437B (en) Message forwarding processing method and device, controller and route forwarding equipment
US9124504B2 (en) System and method for implementing label switch router (LSR) overload protection
CN112087386B (en) Message processing method, device and system
US9014049B2 (en) Selectively populating forwarding information bases in a packet switch
US9253084B2 (en) Neighbor-label distribution with label distribution protocol
WO2019007316A1 (en) Method and device for achieving bidirectional segment routing tunnel, storage medium, and apparatus
CN103841017B (en) The method and apparatus that label is distributed automatically in looped network protection
CN106559280A (en) Bidirectional forwarding detection (BFD) method and device
CN104901881A (en) Route device, load balancing device, and message distribution method and system
CN112104557A (en) Method and device for detecting link
CN107547369B (en) flow switching method and device
Papán et al. The survey of current IPFRR mechanisms
US8223629B2 (en) Core router capable of securing the output router of an autonomous system
US8902738B2 (en) Dynamically adjusting active members in multichassis link bundle
CN110391961A (en) A kind of tunnel binding method, equipment and system
CN111865792B (en) BSID management method, routing equipment and readable storage medium
CN106209634B (en) Learning method and device of address mapping relation
CN106330701B (en) Rapid rerouting method and device for ring network
US20240205087A1 (en) Traffic message forwarding method, and client, controller and storage medium
CN102143038B (en) Service creation method and node
WO2017143958A1 (en) System, method and apparatus for implementing fast reroute (frr)
CN113132220B (en) Method and device for processing routing information
US10715420B2 (en) System, method and apparatus for implementing fast reroute (FRR)
CN106656786B (en) Flow protection 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
TR01 Transfer of patent right
TR01 Transfer of patent right

Effective date of registration: 20230602

Address after: 310052 11th Floor, 466 Changhe Road, Binjiang District, Hangzhou City, Zhejiang Province

Patentee after: H3C INFORMATION TECHNOLOGY Co.,Ltd.

Address before: 310052 Changhe Road, Binjiang District, Hangzhou, Zhejiang Province, No. 466

Patentee before: NEW H3C TECHNOLOGIES Co.,Ltd.