CN105915465B - Method, equipment and system for adjusting priority of BGP flow-spec table - Google Patents

Method, equipment and system for adjusting priority of BGP flow-spec table Download PDF

Info

Publication number
CN105915465B
CN105915465B CN201610507118.2A CN201610507118A CN105915465B CN 105915465 B CN105915465 B CN 105915465B CN 201610507118 A CN201610507118 A CN 201610507118A CN 105915465 B CN105915465 B CN 105915465B
Authority
CN
China
Prior art keywords
priority
forwarding
spec table
bgp flow
bgp
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.)
Active
Application number
CN201610507118.2A
Other languages
Chinese (zh)
Other versions
CN105915465A (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.)
Huawei Technologies Co Ltd
Original Assignee
Huawei 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 Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201610507118.2A priority Critical patent/CN105915465B/en
Publication of CN105915465A publication Critical patent/CN105915465A/en
Application granted granted Critical
Publication of CN105915465B publication Critical patent/CN105915465B/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
    • H04L47/00Traffic control in data switching networks
    • H04L47/10Flow control; Congestion control
    • H04L47/33Flow control; Congestion control using forward notification
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/50Queue scheduling
    • H04L47/62Queue scheduling characterised by scheduling criteria
    • H04L47/6295Queue scheduling characterised by scheduling criteria using multiple queues, one for each individual QoS, connection, flow or priority
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L47/00Traffic control in data switching networks
    • H04L47/70Admission control; Resource allocation
    • H04L47/80Actions related to the user profile or the type of traffic
    • H04L47/805QOS or priority aware

Abstract

The embodiment of the invention provides a method, equipment and a system for adjusting the priority of a BGP flow-spec table. A method of BGP flow-spec table priority adjustment, comprising: network equipment generates an announcement message, wherein the announcement message contains BGP flow-spec table priority adjustment information; and the network equipment sends the notification message to forwarding equipment, wherein the notification message is used for indicating the forwarding equipment to adjust the priority of a BGP flow-spec table in the forwarding equipment when the BGP flow-spec table is used for message forwarding according to the BGP flow-spec table priority adjustment information. The embodiment of the invention solves the problem that the forwarding device can not reasonably forward the message due to the conflict between the forwarding strategy corresponding to the BGP Flow-spec table and the forwarding strategies corresponding to other forwarding tables.

Description

Method, equipment and system for adjusting priority of BGP flow-spec table
Technical Field
The embodiment of the invention relates to the field of communication, in particular to a method, equipment and a system for adjusting the priority of a Border Gateway Protocol (BGP) flow rule (flow-spec) table.
Background
In order to protect network security, a forwarding policy needs to be configured to the forwarding device so that the forwarding device can perform forwarding processing on a packet according to the forwarding policy.
In the prior art, the forwarding policy configured to the forwarding device will eventually form a forwarding table of the forwarding device. The forwarding Policy may be, for example, a BGP flow-spec based Policy, a Complex Traffic Classification (CTC) Policy, a BGP Propagation QoS Policy (QPPB, QoS Policy transmission Through the border Gateway Protocol), and the like, and the corresponding forwarding tables are a BGP flow-spec table, a CTC table, and a QPPB table in sequence. If forwarding strategies corresponding to the multiple forwarding tables respectively conflict (for example, the forwarding table 1 indicates that an outgoing interface of a message is interface a, and the forwarding table 2 indicates that an outgoing interface of a message is interface b), when a certain message matches the multiple forwarding tables at the same time, the forwarding device forwards the message according to the forwarding strategy corresponding to the forwarding table with the highest priority in the multiple forwarding tables. In the prior art, the BGP Flow-spec table is validated on all interfaces of the forwarding device, while other forwarding tables are validated only on specific interfaces of the forwarding device.
Therefore, in the prior art, there are many problems that the forwarding policy corresponding to the BGP Flow-spec table conflicts with the forwarding policies corresponding to other forwarding tables, which causes the forwarding device to perform unreasonable message forwarding processing.
Disclosure of Invention
Embodiments of the present invention provide a method, a device, and a system for adjusting a priority of a BGP Flow-spec table, so as to solve a problem in the prior art that a forwarding policy corresponding to the BGP Flow-spec table conflicts with forwarding policies corresponding to other forwarding tables, which causes an unreasonable forwarding processing of a packet by a forwarding device.
In a first aspect, an embodiment of the present invention provides a method for adjusting a priority of a BGP flow-spec table, where the method includes:
network equipment generates an announcement message containing BGP flow-spec table priority adjustment information;
and the network equipment sends the notification message to forwarding equipment, wherein the notification message is used for indicating the forwarding equipment to adjust the priority of a BGP flow-spec table in the forwarding equipment when the BGP flow-spec table is used for message forwarding according to the BGP flow-spec table priority adjustment information.
In the method for adjusting the priority of the BGP flow-spec table provided by the first aspect, the network device sends, to the forwarding device, an advertisement message including information for adjusting the priority of the BGP flow-spec table, where the advertisement message is used to indicate that the forwarding device adjusts the priority of the BGP flow-spec table in the forwarding device when being used for packet forwarding according to the information for adjusting the priority of the BGP flow-spec table in the forwarding device, so that the forwarding device can adjust the priority of the BGP flow-spec table in the forwarding device when being used for packet forwarding according to the information for adjusting the priority of the BGP flow-spec table in the forwarding device when a forwarding policy corresponding to the BGP flow-spec table in the forwarding device conflicts with forwarding policies corresponding to other forwarding tables, so that the priority of the flow-spec table in the forwarding device when being used for packet forwarding can be adjusted according to a requirement, and the method can adjust the priority of the flow-spec table in the forwarding device to be higher than (or lower than) the priority of the BGP flow-spec table in the forwarding device according to the requirement ) And other forwarding tables are adopted, so that the problem that the forwarding device unreasonable in forwarding processing of the message due to the fact that the forwarding strategy corresponding to the BGP Flow-spec table conflicts with the forwarding strategies corresponding to the other forwarding tables is solved.
In one possible design, the network device is a Controller in a control forwarding split network architecture, or the network device is another forwarding device that establishes a BGP peer with the forwarding device.
In one possible design, the notification message is a BGP UPDATE message, and the network layer reachability information NLRI of the BGP UPDATE message includes the BGP flow-spec table priority adjustment information.
By the method for adjusting the priority of the BGP flow-spec table provided by the embodiment, the network equipment can send the BGP flow-spec table priority adjustment information to the forwarding equipment through the BGP UPDATE message.
In one possible design, the BGP flow-spec table priority adjustment information includes the priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information includes the priority relationship between the BGP flow-spec table and other forwarding tables.
By the method for adjusting the priority of the BGP flow-spec table provided by the embodiment, the priority of the BGP flow-spec table in the forwarding equipment is adjusted by a mode that network equipment sets the priority of the BGP flow-spec table or sets the priority relation between the BGP flow-spec table and other forwarding tables.
In a second aspect, an embodiment of the present invention provides a method for adjusting a priority of a flow-spec table of a BGP flow rule, where the method includes:
the forwarding equipment receives an announcement message sent by the network equipment, wherein the announcement message contains BGP flow-spec table priority adjustment information;
and the forwarding equipment adjusts the priority of the BGPflow-spec table in the forwarding equipment when the BGPflow-spec table is used for message forwarding according to the priority adjustment information of the BGP flow-spec table.
By the BGP Flow-spec table priority adjustment method provided in the second aspect, the forwarding device receives the notification message that includes the BGP Flow-spec table priority adjustment information and is sent by the network device, and adjusts the priority of the BGP Flow-spec table in the forwarding device when being used for packet forwarding according to the BGP Flow-spec table priority adjustment information, so that the forwarding device can adjust the priority of the BGP Flow-spec table in the forwarding device when being used for packet forwarding according to the BGP Flow-spec table priority adjustment information, so that when a forwarding policy corresponding to the BGP Flow-spec table in the forwarding device conflicts with forwarding policies corresponding to other forwarding tables, the priority of the Flow-spec table in the forwarding device when being used for packet forwarding can be adjusted according to a requirement, thereby implementing adjustment of the priority of the BGP Flow-spec table in the forwarding device to be higher (or lower) than (or than) other forwarding tables according to the requirement, therefore, the problem that the forwarding device unreasonable in forwarding processing of the message due to the fact that the forwarding strategy corresponding to the BGP Flow-spec table conflicts with the forwarding strategies corresponding to other forwarding tables is solved.
In one possible design, the BGP flow-spec table priority adjustment information includes a priority of a BGP flow-spec table, and the forwarding device adjusts the priority of the BGP pflow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information, including:
and the forwarding equipment sets the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information.
By the method for adjusting the priority of the BGP flow-spec table provided by the embodiment, the setting of the priority of the BGP flow-spec table according to the network equipment is realized, and the adjustment of the priority of the BGP flow-spec table in the forwarding equipment is completed.
In one possible design, the BGP flow-spec table priority adjustment information includes a priority relationship between the BGP flow-spec table and another forwarding table, and the forwarding device adjusts the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information, including:
and the forwarding equipment sets the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of other forwarding tables or sets the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of other forwarding tables according to the priority relation between the BGP flow-spec table and other forwarding tables.
By the method for adjusting the priority of the BGP flow-spec table provided by the embodiment, the priority relationship between the BGP flow-spec table and other forwarding tables is set according to network equipment, and the adjustment of the priority of the BGP flow-spec table in the forwarding equipment is completed.
In a third aspect, an embodiment of the present invention provides a network device, including:
the generation module is used for generating an announcement message which contains priority adjustment information of a BGP flow rule flow-spec table;
and a sending module, configured to send the notification message to a forwarding device, where the notification message is used to instruct the forwarding device to adjust the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information.
In one possible design, the network device is a Controller in a control forwarding split network architecture, or the network device is another forwarding device that establishes a BGP peer with the forwarding device.
In one possible design, the notification message is a BGP UPDATE message, and the network layer reachability information NLRI of the BGP UPDATE message includes the BGP flow-spec table priority adjustment information.
In one possible design, the BGP flow-spec table priority adjustment information includes the priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information includes the priority relationship between the BGP flow-spec table and other forwarding tables.
The beneficial effects of the network device provided by the third aspect and the possible embodiments of the third aspect may refer to the beneficial effects brought by the possible embodiments of the first aspect and the first aspect, and are not described herein again.
In a fourth aspect, an embodiment of the present invention provides a forwarding device, including:
the receiving module is used for receiving an announcement message sent by the network equipment, wherein the announcement message contains priority adjustment information of a Border Gateway Protocol (BGP) flow rule flow-spec table;
and the adjusting module is used for adjusting the priority of the BGP flow-spec table in the forwarding equipment when the BGP flow-spec table is used for message forwarding according to the priority adjusting information of the BGP flow-spec table.
In one possible design, the BGP flow-spec table priority adjustment information includes a priority of the BGP flow-spec table, and the adjustment module is specifically configured to:
and setting the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information.
In a possible design, the BGP flow-spec table priority adjustment information includes a priority relationship with the BGP flow-spec table and other forwarding tables, and the setting module is specifically configured to:
and according to the priority relation between the BGP flow-spec table and other forwarding tables, setting the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of the other forwarding tables, or setting the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of the other forwarding tables.
The beneficial effects of the forwarding device provided by the fourth aspect and each possible implementation manner of the fourth aspect may refer to the beneficial effects brought by each possible implementation manner of the second aspect, and are not described herein again.
In a fifth aspect, an embodiment of the present invention provides a system for adjusting priority of a BGP flow rule flow-spec table, where the system includes: a network device in any of the possible designs of the third aspect or the third aspect, and a forwarding device in any of the possible designs of the fourth aspect or the fourth aspect.
The beneficial effects of the system for adjusting the priority of the BGP flow-spec table provided in each possible implementation manner of the fifth aspect may refer to the beneficial effects brought by each possible implementation manner of the first aspect and each possible implementation manner of the second aspect and the second aspect, and are not described herein again.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings needed to be used in the description of the embodiments or the prior art will be briefly described below, and it is obvious that the drawings in the following description are some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to these drawings without creative efforts.
Fig. 1 is a schematic view of an application scenario of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention;
fig. 2 is a schematic flowchart of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention;
fig. 3 is a schematic flowchart of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention;
fig. 4 is a schematic flowchart of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention;
fig. 5 is a forwarding schematic diagram of a forwarding device according to an embodiment of the present invention;
fig. 6 is a forwarding schematic diagram of a forwarding device according to an embodiment of the present invention;
fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 8 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, but not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Fig. 1 is a schematic application scenario diagram of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention. As shown in fig. 1, an application scenario of the embodiment of the present invention may include a network device 11 and a forwarding device 12. The network device 11 and the forwarding device 12 are communicatively connected, specifically, the communicative connection may be implemented by wired communication, or may also be implemented by wireless communication. The network device 11 may be a Controller (Controller) in a control forwarding separation network architecture, or may also be another forwarding device that establishes a BGP peer with the forwarding device 12. The forwarding device 12 may be, for example, a router, a switch, or the like. Specifically, the network device 11 sends an announcement message including BGP flow-spec table priority adjustment information to the forwarding device 12, and the forwarding device 12 adjusts the priority of the BGP flow-spec table in the forwarding device 12 when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information.
Fig. 2 is a schematic flowchart of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention, and this embodiment mainly describes an implementation manner of a network device side. As shown in fig. 2, the method of this embodiment may include:
step 201, the network device generates an announcement message, wherein the announcement message contains BGP flow-spec table priority adjustment information.
In this step, the notification message may be any existing message that the network device can send to the forwarding device, or the notification message may also be a newly defined message that the network device can send to the forwarding device. The method for the network device to determine the BGP flow-spec table priority adjustment information may be: the priority adjustment information is determined according to user input, or may be determined after current flow data is analyzed, or may be determined by receiving priority adjustment information of a BGPflow-spec table sent by other equipment.
Step 202, the network device sends the notification message to a forwarding device, where the notification message is used to instruct the forwarding device to adjust the priority of the BGP pflow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information.
In this embodiment, a network device sends a notification message containing BGP Flow-spec table priority adjustment information to a forwarding device, where the notification message is used to instruct the forwarding device to adjust the priority of a BGP Flow-spec table in the forwarding device when the BGP Flow-spec table is used for packet forwarding according to the BGP Flow-spec table priority adjustment information, so that the forwarding device can adjust the priority of a BGP Flow-spec table in the forwarding device when the BGP Flow-spec table is used for packet forwarding according to the BGP Flow-spec table priority adjustment information, so that when a forwarding policy corresponding to the BGP Flow-spec table in the forwarding device conflicts with forwarding policies corresponding to other forwarding tables, the priority of the BGP Flow-spec table in the forwarding device when the BGP Flow-spec table is used for packet forwarding can be adjusted according to a requirement, so as to adjust the priority of the BGP Flow-spec table in the forwarding device to be higher than (or lower than) the other forwarding tables according to the requirement, therefore, the problem that the forwarding device unreasonable in forwarding processing of the message due to the fact that the forwarding strategy corresponding to the BGP Flow-spec table conflicts with the forwarding strategies corresponding to other forwarding tables is solved.
Fig. 3 is a schematic flowchart of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention, and this embodiment mainly describes an implementation manner of a forwarding device side. As shown in fig. 3, the method of this embodiment may include:
step 301, the forwarding device receives an announcement message sent by the network device, where the announcement message includes BGPflow-spec table priority adjustment information.
In this step, the forwarding device may be, for example, a router, a switch, or other devices for forwarding a packet.
And step 302, the forwarding device adjusts the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information.
In this step, the purpose of adjusting the priority of the BGP flow-spec table in the forwarding device when being used for packet forwarding is to adjust the priority of the BGP flow-spec table in the forwarding device to be higher (or lower) than other forwarding tables (e.g., CTC tables). When the priority of the BGP flow-spec table in the forwarding equipment is adjusted to be higher than that of the CTC table, if a certain message is matched with the BGP flow-spec table and the CTC table in the forwarding equipment at the same time, the message is forwarded according to the BGP flow-spec table in the forwarding equipment. When the priority of the BGP flow-spec table in the forwarding equipment is adjusted to be lower than that of the CTC table, if a certain message is matched with the BGP flow-spec table and the CTC table in the forwarding equipment at the same time, the message is forwarded according to the CTC table in the forwarding equipment.
In this embodiment, a forwarding device receives an announcement message containing BGP Flow-spec table priority adjustment information sent by a network device, and adjusts the priority of a BGP pflow-spec table in the forwarding device when the BGP Flow-spec table is used for packet forwarding according to the BGP Flow-spec table priority adjustment information, so that the forwarding device can adjust the priority of the BGP Flow-spec table in the forwarding device when the BGP Flow-spec table is used for packet forwarding according to the BGP Flow-spec table priority adjustment information, so that when a forwarding policy corresponding to a BGP Flow-spec table in the forwarding device conflicts with a forwarding policy corresponding to another forwarding table, the priority of the BGP Flow-spec table in the forwarding device when the BGP Flow-spec table is used for packet forwarding can be adjusted according to a requirement, thereby adjusting the priority of the BGP Flow-spec table in the forwarding device to be higher (or lower) than the other forwarding table according to the requirement, therefore, the problem that the forwarding device unreasonable in forwarding processing of the message due to the fact that the forwarding strategy corresponding to the BGP Flow-spec table conflicts with the forwarding strategies corresponding to other forwarding tables is solved.
Fig. 4 is a schematic flowchart of a method for adjusting priority of a BGP flow-spec table according to an embodiment of the present invention, and this embodiment mainly describes an interactive implementation manner of a network device and a forwarding device based on the embodiments shown in fig. 2 and fig. 3. As shown in fig. 4, the method of this embodiment may include:
step 401, the network device generates an advertisement message, where the advertisement message includes BGP flow-spec table priority adjustment information.
In this step, optionally, the BGP flow-spec table priority adjustment information includes a priority of the BGP flow-spec table; or the BGP flow-spec table priority adjustment information contains priority relations between the BGP flow-spec table and other forwarding tables. When the BGP flow-spec table priority adjustment information includes priority relationships between the BGP flow-spec table and other forwarding tables, the number of the other forwarding tables may be one or more, and the other forwarding tables may be, for example, CTC table QPPB tables and the like. Optionally, the notification message may specifically be a BGP UPDATE message, where Network Layer Reachability Information (NLRI) of the BGP UPDATE message includes the BGP flow-spec table priority adjustment information.
The following describes a specific manner in which BGP flow-spec table priority adjustment information including priority relationships between a BGP flow-spec table and other forwarding tables is included in the NLRI, by way of adding a new priority extension attribute to the NLRI.
The following priority extension attribute descriptions are added in the NLRI:
+---------------------------------+
| Flags (1 byte (octet)) > information reading
+---------------------------------+
|Features Type(1octet)|
+---------------------------------+
|Priority Flag(1octet)|
+---------------------------------+
Wherein, the identification (Flags) field: for indicating a priority extension attribute.
Function Type (Features Type) field: for indicating other forwarding tables, e.g., CTC tables, QPPB tables, etc.
Priority Flag field: indicating the priority relationship between the BGP flow-spec table and the other forwarding tables indicated by the featuretype field. Specifically, the following definitions may be used:
the Priority Flag is 0, indicating that the Priority of the BGP flow-spec table is the default Priority.
Priority Flag is 1, indicating that the BGP flow-spec table has a higher Priority than the other forwarding tables indicated by the Features Type field.
Priority Flag is 2, indicating that the BGP flow-spec table has a lower Priority than the other forwarding tables indicated by the Features Type field.
Among other things, the Priority relationship between a BGP flow-spec table and a plurality of other forwarding tables may be indicated by including a plurality of featuretype fields and Priority Flag fields in the NRLI.
Step 402, the network device sends the notification message to a forwarding device.
Step 403, the forwarding device adjusts the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information in the notification message.
In this step, optionally, when the BGP flow-spec table priority adjustment information includes the priority of the BGP flow-spec table, the method may specifically be: and the forwarding equipment sets the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information. For example, when the priority of the BGP flow-spec table included in the BGP flow-spec table priority adjustment information is 1, the priority of the BGP flow-spec table in the forwarding device is set to 1 according to the BGP flow-spec table priority adjustment information. When the BGP flow-spec table priority adjustment information includes a priority relationship with the BGP flow-spec table and other forwarding tables, the priority adjustment information may specifically be: and the forwarding equipment sets the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of other forwarding tables or sets the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of other forwarding tables according to the priority relation between the BGP flow-spec table and other forwarding tables. For example, when the BGP flow-spec table priority adjustment signal includes that the BGP flow-spec table has a higher priority than the CTC table, and the CTC table has a priority of 3, the BGP flow-spec table priority adjustment signal sets the BGP flow-spec table priority in the forwarding device to 2 (here, it is assumed that a smaller value indicates a higher priority). For another example, when the BGP flow-spec table priority adjustment message includes that the BGP flow-spec table has a lower priority than the CTC table and the CTC table has a priority of 3, the BGP flow-spec table priority adjustment message sets the BGP flow-spec table in the forwarding device to a priority of 4 according to the BGP pflow-spec table priority adjustment message.
The following describes the forwarding processes of the forwarding devices before and after adjustment, taking the adjustment of the priority relationship between the BGP flow-spec table and the CTC table as an example. Specifically, the method comprises the following steps:
step 1, a CTC strategy is configured to a forwarding device X, and the CTC strategy redirects an outgoing interface to an outgoing interface B.
In this step, specifically, the CTC policy may be configured for the forwarding device X through an access control interface of the forwarding device X. After the CTC strategy is configured to the forwarding device X, a corresponding CTC table is formed in the forwarding device X, and the exit interface is redirected to the exit interface B in the CTC table.
And 2, configuring a BGP flow-spec-based strategy for the forwarding device X, and redirecting the outgoing interface into an outgoing interface A by the BGP flow-spec-based strategy.
In this step, after a policy based on BGP flow-spec is configured for forwarding device X, forwarding device X forms a corresponding BGP flow-spec table, where an egress interface is redirected to egress interface a.
And step 3, assuming that the priority of the BGP flow-spec table in the forwarding device X is lower than that of the CTC table, as shown in FIG. 5, the forwarding device X forwards the message which needs to be forwarded by the forwarding device X from the outgoing interface B according to the CTC table.
And 4, the network equipment sends BGP flow-spec table priority adjustment information to the forwarding equipment X, wherein the BGP flow-spec table priority adjustment information comprises the priority relation between a BGP flow-spec table and a CTC table, and the priority relation between the BGP flow-spec table and the CTC table is that the BGP flow-spec table is higher than the CTC table.
And 5, after the forwarding device X receives the BGP flow-spec table priority adjustment information, setting the priority of the BGP flow-spec table in the forwarding device X to be higher than the priority of the CTC table.
Step 6, as shown in fig. 6, the forwarding device X forwards the packet that needs to be forwarded by the forwarding device X from the egress interface a according to the BGP flow-spec table.
It should be noted that the black arrows in fig. 5 and fig. 6 indicate the messages that need to be forwarded by the forwarding device.
In this embodiment, the forwarding device sets the priority of the BGP flow-spec table in the forwarding device, or sets the priority relationship between the BGP flow-spec table in the forwarding device and other forwarding tables, so that when the forwarding policy corresponding to the BGP pflow-spec table in the forwarding device conflicts with the forwarding policies corresponding to other forwarding tables, the priority of the BGP flow-spec table in the forwarding device can be adjusted according to the requirement when the BGP flow-spec table is used for forwarding a packet, and the priority of the BGP flow-spec table in the forwarding device is adjusted to be higher (or lower) than other forwarding tables according to the requirement, thereby avoiding the problem that the forwarding device cannot handle the packet correctly due to the conflict between the forwarding policy corresponding to the BGP flow-spec table and the forwarding policies corresponding to other forwarding tables.
Fig. 7 is a schematic structural diagram of a network device according to an embodiment of the present invention, where the network device according to this embodiment may be applied to the methods according to the embodiments of fig. 2 and fig. 4 to implement the functions of the network device. As shown in fig. 7, the network device of this embodiment may include: a generating module 701 and a sending module 702. The generation module 701 is configured to generate an advertisement message, where the advertisement message includes priority adjustment information of a border gateway protocol BGP flow rule flow-spec table; a sending module 702, configured to send the notification message generated by the generating module 701 to a forwarding device, where the notification message is used to instruct the forwarding device to adjust the priority of a BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information.
Optionally, the network device of this embodiment is a Controller in a control forwarding separation network architecture, or the network device is another forwarding device that establishes a BGP peer with the forwarding device.
Optionally, the notification message is a BGP UPDATE message, and network layer reachability information NLRI of the BGP UPDATE message includes the BGP flow-spec table priority adjustment information.
Optionally, the BGP flow-spec table priority adjustment information includes a priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information includes a priority relationship between the BGP flow-spec table and another forwarding table.
The network device of this embodiment may be configured to execute the technical solution on the network device side in the method embodiment shown in fig. 2 or the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 8 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention, where the forwarding device provided in this embodiment may be applied to the methods in the embodiments of fig. 3 and fig. 4 to implement the function of the forwarding device. As shown in fig. 8, the forwarding device of this embodiment may include: a receiving module 801 and an adjusting module 802. The receiving module 801 is configured to receive an advertisement message sent by a network device, where the advertisement message includes priority adjustment information of a BGP flow rule flow-spec table; an adjusting module 802, configured to adjust a priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information included in the notification message received by the receiving module 801.
Optionally, the BGP flow-spec table priority adjustment information includes a priority of the BGP flow-spec table.
Correspondingly, the adjusting module 802 is specifically configured to: and setting the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information.
Optionally, the BGP flow-spec table priority adjustment information includes a priority relationship between the BGP flow-spec table and another forwarding table.
Correspondingly, the setting module 802 is specifically configured to: and according to the priority relation between the BGP flow-spec table and other forwarding tables, setting the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of the other forwarding tables, or setting the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of the other forwarding tables.
The forwarding device of this embodiment may be configured to execute the technical solution on the forwarding device side in the method embodiment shown in fig. 3 or the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
The embodiment of the invention also provides a system for adjusting the priority of the BGP flow-spec table, which comprises the following steps: the network device according to the embodiment of the network device shown in fig. 7 and the forwarding device according to the embodiment of the forwarding device shown in fig. 8.
The network device in the system of this embodiment may be configured to execute the technical solution on the network device side in the method embodiment shown in fig. 2 or the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again. The forwarding device in the system of this embodiment may be configured to execute the technical solution on the forwarding device side in the method embodiment shown in fig. 3 or the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 9 is a schematic structural diagram of a network device according to an embodiment of the present invention, where the network device according to this embodiment may be applied to the methods according to the embodiments of fig. 2 and fig. 4 to implement the functions of the network device. As shown in fig. 9, the network device 900 includes: a processor 901 and a network interface 902. Optionally, network device 900 also includes memory 903.
The processor 901 includes, but is not limited to, one or more of a Central Processing Unit (CPU), a Network Processor (NP), an application-specific integrated circuit (ASIC), or a Programmable Logic Device (PLD). The PLD may be a Complex Programmable Logic Device (CPLD), a field-programmable gate array (FPGA), a General Array Logic (GAL), or any combination thereof.
The network Interface 902 may be a wired Interface, such as a Fiber Distributed Data Interface (FDDI), an Ethernet Interface. The network interface 902 may also be a wireless interface, such as a wireless local area network interface.
The memory 903 may be, but is not limited to, a content-addressable memory (CAM), such as a Ternary CAM (TCAM) or a random-access memory (RAM).
The memory 903 may also be integrated in the processor 901. If the memory 903 and the processor 901 are separate devices, the memory 903 and the processor 901 may be connected, for example, the memory 903 and the processor 901 may communicate via a bus. The network interface 902 and the processor 901 may communicate via a bus, and the network interface 902 may also be directly connected to the processor 901.
Wherein, the processor 901 is configured to execute:
and generating an announcement message, wherein the announcement message contains priority adjustment information of a BGP flow rule flow-spec table.
And sending the notification message to the forwarding device through the network interface 902, where the notification message is used to instruct the forwarding device to adjust the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information.
Optionally, the notification message is a BGP UPDATE message, and network layer reachability information NLRI of the BGP UPDATE message includes the BGP flow-spec table priority adjustment information.
Optionally, the BGP flow-spec table priority adjustment information includes a priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information includes a priority relationship between the BGP flow-spec table and another forwarding table.
The network device of this embodiment may be configured to execute the technical solution on the network device side in the method embodiment shown in fig. 2 or the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Fig. 10 is a schematic structural diagram of a forwarding device according to an embodiment of the present invention, where the forwarding device provided in this embodiment may be applied to the methods in the embodiments of fig. 3 and fig. 4 to implement the function of the forwarding device. As shown in fig. 10, the forwarding device 1000 includes: a processor 1001 and a network interface 1002. Optionally, the forwarding device 1000 further includes a memory 1003.
Processor 1001 includes, but is not limited to, one or more of a CPU, NP, ASIC, or PLD. The aforementioned PLD may be a CPLD, an FPGA, a GAL, or any combination thereof.
The network interface 1002 may be a wired interface, such as an FDDI, Ethernet interface. The network interface 902 may also be a wireless interface, such as a wireless local area network interface.
Memory 1003 may be, including but not limited to, a CAM, such as a TCAM or RAM.
The memory 1003 may also be integrated in the processor 1001. If the memory 1003 and the processor 1001 are separate devices, the memory 1003 and the processor 1001 may be connected, for example, the memory 1003 and the processor 1001 may communicate via a bus. The network interface 1002 and the processor 1001 may communicate via a bus, and the network interface 1002 may also be directly connected to the processor 1001.
The processor 1001 is configured to perform:
receiving an announcement message sent by network equipment through a network interface 1002, wherein the announcement message contains priority adjustment information of a Border Gateway Protocol (BGP) flow rule flow-spec table;
and adjusting the priority of the BGP flow-spec table in the forwarding equipment when the BGP flow-spec table is used for message forwarding according to the priority adjustment information of the BGP flow-spec table included in the notification message.
Optionally, the BGP flow-spec table priority adjustment information includes a priority of the BGP flow-spec table.
Accordingly, the processor 1001 is specifically configured to: and setting the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information.
Optionally, the BGP flow-spec table priority adjustment information includes a priority relationship between the BGP flow-spec table and another forwarding table.
Accordingly, the processor 1001 is specifically configured to: and according to the priority relation between the BGP flow-spec table and other forwarding tables, setting the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of the other forwarding tables, or setting the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of the other forwarding tables.
The forwarding device of this embodiment may be configured to execute the technical solution on the forwarding device side in the method embodiment shown in fig. 3 or the method embodiment shown in fig. 4, and the implementation principle and the technical effect are similar, which are not described herein again.
Those of ordinary skill in the art will understand that: all or a portion of the steps of implementing the above-described method embodiments may be performed by hardware associated with program instructions. The program may be stored in a computer-readable storage medium. When executed, the program performs steps comprising the method embodiments described above; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
Finally, it should be noted that: the above embodiments are only used for illustrating the technical solutions of the embodiments of the present invention, and are not limited thereto; although embodiments of the present invention have been described in detail with reference to the foregoing embodiments, those skilled in the art will understand that: the technical solutions described in the foregoing embodiments can still be modified; and the modifications or the substitutions do not make the essence of the corresponding technical solutions depart from the scope of the technical solutions of the embodiments of the present invention.

Claims (13)

1. A method for adjusting priority of a Border Gateway Protocol (BGP) flow rule flow-spec table is characterized by comprising the following steps:
network equipment generates an announcement message, wherein the announcement message contains BGP flow-spec table priority adjustment information;
the network device sends the notification message to a forwarding device, wherein the notification message is used for indicating the forwarding device to adjust the priority of a BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for message forwarding according to the BGP flow-spec table priority adjustment information;
the BGP flow-spec table priority adjustment information comprises the priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information comprises the priority relation between the BGP flow-spec table and other forwarding tables.
2. The method of claim 1, wherein the network device is a Controller in a control forwarding disjoint network architecture or is another forwarding device that establishes a BGP peer with the forwarding device.
3. The method as claimed in claim 1 or 2, wherein the notification message is a BGP UPDATE message, and the network layer reachability information NLRI of the BGP UPDATE message contains the BGP flow-spec table priority adjustment information.
4. A method for adjusting priority of a Border Gateway Protocol (BGP) flow rule flow-spec table is characterized by comprising the following steps:
the forwarding equipment receives an announcement message sent by the network equipment, wherein the announcement message contains BGP flow-spec table priority adjustment information;
the forwarding equipment adjusts the priority of the BGPflow-spec table in the forwarding equipment when the BGPflow-spec table is used for message forwarding according to the priority adjustment information of the BGP flow-spec table;
the BGP flow-spec table priority adjustment information comprises the priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information comprises the priority relation between the BGP flow-spec table and other forwarding tables.
5. The method as claimed in claim 4, wherein the BGP flow-spec table priority adjustment information includes a priority of a BGP flow-spec table, and the adjusting, by the forwarding device, the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information includes:
and the forwarding equipment sets the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information.
6. The method as claimed in claim 4, wherein the BGP flow-spec table priority adjustment information includes a priority relationship between a BGP flow-spec table and other forwarding tables, and the forwarding device adjusts the priority of the BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information, including:
and the forwarding equipment sets the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of other forwarding tables or sets the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of other forwarding tables according to the priority relation between the BGP flow-spec table and other forwarding tables.
7. A network device, comprising:
the generation module is used for generating an announcement message, and the announcement message contains priority adjustment information of a BGP flow rule flow-spec table;
a sending module, configured to send the notification message to a forwarding device, where the notification message is used to instruct the forwarding device to adjust a priority of a BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding according to the BGP flow-spec table priority adjustment information;
the BGP flow-spec table priority adjustment information comprises the priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information comprises the priority relation between the BGP flow-spec table and other forwarding tables.
8. The network device of claim 7, wherein the network device is a Controller in a control forwarding disjoint network architecture, or wherein the network device is another forwarding device that establishes a BGP peer with the forwarding device.
9. The network device of claim 7 or 8, wherein the notification message is a BGP UPDATE message, and wherein the network layer reachability information NLRI of the BGP UPDATE message comprises the BGP flow-spec table priority adjustment information.
10. A forwarding device, comprising:
the receiving module is used for receiving an announcement message sent by the network equipment, wherein the announcement message contains priority adjustment information of a Border Gateway Protocol (BGP) flow rule flow-spec table;
an adjusting module, configured to adjust, according to the BGP flow-spec table priority adjustment information, a priority of a BGP flow-spec table in the forwarding device when the BGP flow-spec table is used for packet forwarding;
the BGP flow-spec table priority adjustment information comprises the priority of the BGP flow-spec table, or the BGP flow-spec table priority adjustment information comprises the priority relation between the BGP flow-spec table and other forwarding tables.
11. The forwarding device of claim 10 wherein the BGP flow-spec table priority adjustment information comprises a priority of a BGP flow-spec table;
the adjustment module is specifically configured to: and setting the priority of the BGP flow-spec table in the forwarding equipment according to the priority of the BGP flow-spec table contained in the BGP flow-spec table priority adjustment information.
12. The forwarding device of claim 10 wherein the BGP flow-spec table priority adjustment information comprises a priority relationship with BGP flow-spec tables and other forwarding tables;
the setting module is specifically configured to: and according to the priority relation between the BGP flow-spec table and other forwarding tables, setting the priority of the BGP flow-spec table in the forwarding equipment to be higher than that of the other forwarding tables, or setting the priority of the BGP flow-spec table in the forwarding equipment to be lower than that of the other forwarding tables.
13. A system for adjusting BGP flow rule flow-spec table priority, comprising: a network device as claimed in any one of claims 7 to 9, and a forwarding device as claimed in any one of claims 10 to 12.
CN201610507118.2A 2016-06-30 2016-06-30 Method, equipment and system for adjusting priority of BGP flow-spec table Active CN105915465B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610507118.2A CN105915465B (en) 2016-06-30 2016-06-30 Method, equipment and system for adjusting priority of BGP flow-spec table

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610507118.2A CN105915465B (en) 2016-06-30 2016-06-30 Method, equipment and system for adjusting priority of BGP flow-spec table

Publications (2)

Publication Number Publication Date
CN105915465A CN105915465A (en) 2016-08-31
CN105915465B true CN105915465B (en) 2020-04-21

Family

ID=56754336

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610507118.2A Active CN105915465B (en) 2016-06-30 2016-06-30 Method, equipment and system for adjusting priority of BGP flow-spec table

Country Status (1)

Country Link
CN (1) CN105915465B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254252B (en) * 2016-09-06 2019-12-06 新华三技术有限公司 Flow spec route issuing method and device
CN108156080A (en) * 2016-12-02 2018-06-12 中国移动通信有限公司研究院 Stream configuration information processing method and device
CN111935100B (en) * 2020-07-16 2022-05-20 锐捷网络股份有限公司 Flowspec rule issuing method, device, equipment and medium
CN112532519B (en) * 2020-12-21 2022-07-22 安徽皖通邮电股份有限公司 Method for controlling data Flow behavior by using BGP Flow Specification

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102075419A (en) * 2010-12-27 2011-05-25 杭州华三通信技术有限公司 Method for generating and transmitting three-layer virtual special network equative routing and edge router
US8205023B1 (en) * 2010-09-30 2012-06-19 Juniper Networks, Inc. Concurrent pairing of resources and requestors

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103220228A (en) * 2013-04-10 2013-07-24 杭州华三通信技术有限公司 Method and equipment for sending border gateway protocol (BGP) routes
CN103929367B (en) * 2014-04-17 2017-06-06 新华三技术有限公司 A kind of method and apparatus of load balancing
CN104038423B (en) * 2014-05-29 2017-11-14 新华三技术有限公司 A kind of Open flow flow tables method for refreshing and routing device
CN104780103B (en) * 2015-04-14 2018-05-08 新华三技术有限公司 Message forwarding method and device
CN104811384B (en) * 2015-05-04 2018-01-16 山东超越数控电子股份有限公司 A kind of multilevel flow table priority level adjustment method

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8205023B1 (en) * 2010-09-30 2012-06-19 Juniper Networks, Inc. Concurrent pairing of resources and requestors
CN102075419A (en) * 2010-12-27 2011-05-25 杭州华三通信技术有限公司 Method for generating and transmitting three-layer virtual special network equative routing and edge router

Also Published As

Publication number Publication date
CN105915465A (en) 2016-08-31

Similar Documents

Publication Publication Date Title
US10855574B2 (en) Method and network device for computing forwarding path
EP3672168B1 (en) Link state advertisement (lsa) transmission method, device, and system
EP2995042B1 (en) Data plane learning of bi-directional service chains
CN105915465B (en) Method, equipment and system for adjusting priority of BGP flow-spec table
CN112771820B (en) Differentiated services within a service grid
US20160014016A1 (en) Encoding Inter-Domain Shared Service Paths
EP2883334B1 (en) Techniques for flooding optimization for link state protocols in a network topology
US9678840B2 (en) Fast failover for application performance based WAN path optimization with multiple border routers
EP3337093B1 (en) Optimizing information related to a route and/or a next hop for multicase traffic
US7843967B2 (en) Multiple protocol cross layer customized QoS propagation and mapping
US11616724B2 (en) Packet transmission method and apparatus
WO2014099316A1 (en) System, method and apparatus to resolve rpf-vector attribute conflicts
CN100548001C (en) A kind of method of trigger downstream device process message and switching equipment
US20190268239A1 (en) Bgp logical topology generation method, and device
US10320667B2 (en) Notification method and device and acquisition device for MAC address of ESADI
EP3240246A1 (en) Point to multiple point service transmission method and device
US20220070094A1 (en) Network equipment with inter-network policy-based routing function
US20150295815A1 (en) Autonomous System (AS) Policy-Adaptive Confederations with Selective Advertisement of AS Numbers to Non-Members
CN110581799A (en) Service flow forwarding method and device
US20230068443A1 (en) Dynamic packet routing using prioritized groups
CN113141265B (en) Cross-equipment link aggregation method and equipment
WO2023036087A1 (en) Routing advertisement method, path establishment method, service data transmission method and autonomous system border router
EP3471351B1 (en) Method and device for acquiring path information about data packet
CN116032759A (en) Method, device, storage medium and network equipment for slice management
CN116527294A (en) Method, device, equipment and medium for intercepting route prefix of border gateway protocol

Legal Events

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