CN109450793B - Method and device for scheduling service traffic - Google Patents
Method and device for scheduling service traffic Download PDFInfo
- Publication number
- CN109450793B CN109450793B CN201811547004.6A CN201811547004A CN109450793B CN 109450793 B CN109450793 B CN 109450793B CN 201811547004 A CN201811547004 A CN 201811547004A CN 109450793 B CN109450793 B CN 109450793B
- Authority
- CN
- China
- Prior art keywords
- priority
- service
- tunnel
- ecmp group
- identifier
- 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
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/12—Avoiding congestion; Recovering from congestion
- H04L47/125—Avoiding congestion; Recovering from congestion by balancing the load, e.g. traffic engineering
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/50—Routing or path finding of packets in data switching networks using label swapping, e.g. multi-protocol label switch [MPLS]
- H04L45/507—Label distribution
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L45/00—Routing or path finding of packets in data switching networks
- H04L45/54—Organization of routing tables
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/70—Admission control; Resource allocation
- H04L47/82—Miscellaneous aspects
- H04L47/825—Involving tunnels, e.g. MPLS
Abstract
The invention provides a method and a device for scheduling service traffic, comprising the following steps: establishing a tunnel, configuring the tunnel priority of the tunnel, and adding the identifiers of the tunnels with the same priority to the same ECMP group, wherein the priority of the tunnel is the priority of the ECMP group; establishing a corresponding relation among the service identification, the service priority and the tunnel priority; establishing a first ACL table item, wherein the first ACL table item comprises a corresponding relation between a service identifier and a service priority; establishing a second ACL table item, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority; searching a corresponding first service priority from a first ACL table item according to a first service message service identifier; searching a corresponding first tunnel priority from a second ACL table item according to the first service priority; determining an ECMP group corresponding to the first tunnel priority according to the first tunnel priority; and selecting a first tunnel from the ECMP group to send the first service message. The problem that a chip needs to identify different service message flows and needs to consume a large amount of forwarding table resources is solved.
Description
Technical Field
The present invention relates to the field of data communications, and in particular, to a method and an apparatus for scheduling traffic.
Background
In recent years, with the continuous development of internet technologies such as cloud computing and big data, the scale of a data center network is gradually enlarged, which puts higher requirements on the construction of the data center network of an ISP service provider, and how to effectively manage the network traffic of the data center, improve the network utilization rate and reduce the operation cost is a problem which needs to be solved urgently at present.
SR (segment routing) is a source routing-based network protocol with innovative significance as ethernet domain following multi-protocol label switching protocol MPLS. Compared with the traditional MPLS mechanism, the method has a simpler control plane and an easily-expanded data plane. By pressing the segment identifier in the source routing node, the message forwarding path can be effectively planned, and the flow control management can be well realized by combining the segment identifier with an SDN (Software Defined Network) controller.
In SRTE (Segment Routing Traffic Engineering) actual networking, there are many Traffic based on flow, IP address and application, and in order to realize effective control of Traffic, source Routing needs to prioritize them so as to provide differentiated services. For example: a data center metropolitan area network of a certain client adopts an SR network, priority differentiation can be carried out on service traffic on the requirement of a source node, meanwhile, traffic with different priorities can enter traffic engineering TE tunnels with different levels, and the traffic can be in load balance in the TE tunnels with the same level.
Pure IP traffic received from a CE (Customer Edge device) direction is matched with message characteristics (such as DSCP Differentiated Services Code Point) at an entry port of an operator Edge router PE, TE tunnels (TE tunnels) of 1, 2, 3 and 4 levels are respectively entered according to the mapping relation of DSCP- > TE levels, traffic with MPLS encapsulation received from a P (operator Provider) direction is matched with EXP at an entry port of P, and TE tunnels of 1, 2, 3 and 4 levels are respectively entered according to the mapping relation of EXP- > TE levels.
When the network switch equipment of the operator needs to prioritize and forward the service traffic, one method is to pass the policy Routing, and it is characterized in that the forwarding equipment can select the Routing according to the policy set by the user, the packet data message can directly appoint the exit (the exit may be a tunnel) without searching the Routing table, it is more flexible, the disadvantage of this method is that the method using manual configuration is easy to leak and the workload is larger, and does not support ECMP (Equal cost-Costmultipath Routing), and it needs to consume more ACL hardware resources.
Disclosure of Invention
In order to solve the technical problem, the embodiment of the invention adopts the following technical scheme:
a method for scheduling traffic flow comprises the following steps:
establishing a tunnel, configuring the tunnel priority of the tunnel, and adding the identifiers of the tunnels with the same priority to the same ECMP group, wherein the priority of the tunnel is the priority of the ECMP group;
establishing a corresponding relation among the service identifier, the service priority and the tunnel priority;
receiving a first service message, and searching a corresponding first service priority from a first ACL table item according to a service identifier of the first service message, wherein the first ACL table item comprises a corresponding relation between the service identifier and the service priority;
searching a corresponding first tunnel priority from a second ACL table item according to the first service priority, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority;
searching a forwarding table according to the IP address of the first service message, and determining a first ECMP group identifier corresponding to the first service message, wherein the forwarding table comprises a corresponding relation between the IP address and the ECMP group identifier;
determining a first ECMP group corresponding to the first tunnel priority according to the first ECMP group identifier and the first tunnel priority;
and selecting a first tunnel from the first ECMP group according to a load balancing strategy to send the first service message.
Optionally, the service identifier is a combination of one or more of a source/destination IP address, a protocol type, a source/destination port number, and a DSCP of the service packet.
Optionally, the number of the service priorities is the same as the number of the tunnel priorities.
Optionally, the tunnel is an SRTE tunnel.
Optionally, the forwarding table is a routing table or an MPLS forwarding table.
Another aspect of the embodiments of the present invention is to provide a device for scheduling service traffic, including:
the first establishing module is used for establishing a tunnel, configuring the tunnel priority of the tunnel, and adding the identifiers of the tunnels with the same priority to the same ECMP group, wherein the priority of the tunnel is the priority of the ECMP group;
the second establishing module is used for establishing the corresponding relation among the service identifier, the service priority and the tunnel priority;
a receiving module, configured to receive a first service packet,
a searching module, configured to search a corresponding first service priority from a first ACL entry according to a service identifier of the first service packet, where the first ACL entry includes a correspondence between the service identifier and the service priority, and search a corresponding first tunnel priority from a second ACL entry according to the first service priority, where the second ACL entry includes a correspondence between the service priority and the tunnel priority, search a forwarding table according to an IP address of the first service packet, determine a first ECMP group identifier corresponding to the first service packet, where the forwarding table includes a correspondence between the IP address and the ECMP group identifier;
a determining module, configured to determine, according to the first ECMP group identifier and the first tunnel priority, a first ECMP group corresponding to the first tunnel priority;
and the sending module is used for selecting a first tunnel from the first ECMP group according to a load balancing strategy to send the first service message.
Optionally, the service identifier is a combination of one or more of a source/destination IP address, a protocol type, a source/destination port number, and a DSCP of the service packet.
Optionally, the number of the service priorities is the same as the number of the tunnel priorities.
Optionally, the tunnel is an SRTE tunnel.
Optionally, the forwarding table is a routing table or an MPLS forwarding table.
The embodiment of the invention has the advantages that a method for scheduling the service flow is provided, a tunnel is established, the priority of the tunnel is configured, the identifiers of the tunnels with the same priority are added into the same ECMP group, and the priority of the tunnel is the priority of the ECMP group; establishing a corresponding relation among the service identifier, the service priority and the tunnel priority; receiving a first service message, and searching a corresponding first service priority from a first ACL table item according to a service identifier of the first service message, wherein the first ACL table item comprises a corresponding relation between the service identifier and the service priority; searching a corresponding first tunnel priority from a second ACL table item according to the first service priority, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority; searching a forwarding table according to the IP address of the first service message, and determining a first ECMP group identifier corresponding to the first service message, wherein the forwarding table comprises a corresponding relation between the IP address and the ECMP group identifier; determining an ECMP group corresponding to the first tunnel priority according to the first ECMP group identifier and the first tunnel priority; and selecting a first tunnel from the ECMP group according to a load balancing strategy to send the first service message. Through the two-stage ACL lookup function, the message outlet is selected according to the priority of the service message flow on the basis of the traditional routing lookup result, and the consumption of hardware resources can be greatly reduced. On the basis of not increasing network cost, the problem that a switching chip needs to identify different service message flows and needs to consume a large amount of forwarding table resources is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, 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 only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without creative efforts.
FIG. 1 is a flow chart of a method according to an embodiment of the present invention;
FIG. 2 is a diagram of an apparatus according to an embodiment of the present invention;
FIG. 3 is a diagram illustrating a priority policy matching according to an embodiment of the present invention;
fig. 4 is a network topology structure diagram according to an embodiment of the present invention.
Detailed Description
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 only a part of the embodiments of the present invention, and not all of the embodiments. 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.
A method for scheduling traffic, as shown in fig. 1, includes:
s101, establishing a tunnel, configuring the tunnel priority of the tunnel, and adding the identifiers of the tunnels with the same priority to the same ECMP group, wherein the priority of the tunnel is the priority of the ECMP group;
s103, establishing a corresponding relation among the service identifier, the service priority and the tunnel priority;
s105, receiving a first service message, and searching a corresponding first service priority from a first ACL table item according to a service identifier of the first service message, wherein the first ACL table item comprises a corresponding relation between the service identifier and the service priority;
s107, searching a corresponding first tunnel priority from a second ACL table item according to the first service priority, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority;
s109, searching a forwarding table according to the IP address of the first service message, and determining a first ECMP group identifier corresponding to the first service message, wherein the forwarding table comprises a corresponding relation between the IP address and the ECMP group identifier;
s111, determining a first ECMP group corresponding to the first tunnel priority according to the first ECMP group identifier and the first tunnel priority;
s113, selecting a first tunnel from the first ECMP group according to a load balancing policy, and sending the first service packet.
Optionally, the service identifier is a combination of one or more of a source/destination IP address, a protocol type, a source/destination port number, and a DSCP of the service packet.
Optionally, the number of the service priorities is the same as the number of the tunnel priorities.
Optionally, the tunnel is an SRTE tunnel.
Optionally, the forwarding table is a routing table or an MPLS forwarding table.
The embodiment of the invention has the advantages that a method for scheduling the service flow is provided, a tunnel is established, the priority of the tunnel is configured, the identifiers of the tunnels with the same priority are added into the same ECMP group, and the priority of the tunnel is the priority of the ECMP group; establishing a corresponding relation among the service identifier, the service priority and the tunnel priority; receiving a first service message, and searching a corresponding first service priority from a first ACL table item according to a service identifier of the first service message, wherein the first ACL table item comprises a corresponding relation between the service identifier and the service priority; searching a corresponding first tunnel priority from a second ACL table item according to the first service priority, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority; searching a forwarding table according to the IP address of the first service message, and determining a first ECMP group identifier corresponding to the first service message, wherein the forwarding table comprises a corresponding relation between the IP address and the ECMP group identifier; determining a first ECMP group corresponding to the first tunnel priority according to the first ECMP group identifier and the first tunnel priority; and selecting a first tunnel from the first ECMP group according to a load balancing strategy to send the first service message. Through the two-stage ACL lookup function, the message outlet is selected according to the priority of the service message flow on the basis of the traditional routing lookup result, and the consumption of hardware resources can be greatly reduced. On the basis of not increasing network cost, the problem that a switching chip needs to identify different service message flows and needs to consume a large amount of forwarding table resources is solved
Another aspect of the embodiments of the present invention is to provide an apparatus for scheduling service traffic, as shown in fig. 2, including:
a first establishing module 201, configured to establish a tunnel, configure tunnel priorities of the tunnels, and add identifiers of tunnels with the same priority to a same ECMP group, where the priority of the tunnel is the priority of the ECMP group;
a second establishing module 203, configured to establish a correspondence between the service identifier, the service priority, and the tunnel priority;
a receiving module 205, configured to receive a first service packet,
a searching module 207, configured to search a corresponding first service priority from a first ACL entry according to a service identifier of the first service packet, where the first ACL entry includes a correspondence between the service identifier and the service priority, and search a corresponding first tunnel priority from a second ACL entry according to the first service priority, where the second ACL entry includes a correspondence between the service priority and the tunnel priority, search a forwarding table according to an IP address of the first service packet, determine a first ECMP group identifier corresponding to the first service packet, where the forwarding table includes a correspondence between an IP address and an ECMP group identifier;
a determining module 209, configured to determine, according to the first ECMP group identifier and the first tunnel priority, a first ECMP group corresponding to the first tunnel priority;
a sending module 211, configured to select a first tunnel from the first ECMP group according to a load balancing policy to send the first service packet.
Optionally, the service identifier is a combination of one or more of a source/destination IP address, a protocol type, a source/destination port number, and a DSCP of the service packet.
Optionally, the number of the service priorities is the same as the number of the tunnel priorities.
Optionally, the tunnel is an SRTE tunnel.
Optionally, the forwarding table is a routing table or an MPLS forwarding table.
The embodiment of the invention has the advantages that a method for scheduling the service flow is provided, a tunnel is established, the priority of the tunnel is configured, the identifiers of the tunnels with the same priority are added into the same ECMP group, and the priority of the tunnel is the priority of the ECMP group; establishing a corresponding relation among the service identifier, the service priority and the tunnel priority; receiving a first service message, and searching a corresponding first service priority from a first ACL table item according to a service identifier of the first service message, wherein the first ACL table item comprises a corresponding relation between the service identifier and the service priority; searching a corresponding first tunnel priority from a second ACL table item according to the first service priority, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority; searching a forwarding table according to the IP address of the first service message, and determining a first ECMP group identifier corresponding to the first service message, wherein the forwarding table comprises a corresponding relation between the IP address and the ECMP group identifier; determining a first ECMP group corresponding to the first tunnel priority according to the first ECMP group identifier and the first tunnel priority; and selecting a first tunnel from the first ECMP group according to a load balancing strategy to send the first service message. Through the two-stage ACL lookup function, the message outlet is selected according to the priority of the service message flow on the basis of the traditional routing lookup result, and the consumption of hardware resources can be greatly reduced. On the basis of not increasing network cost, the problem that a switching chip needs to identify different service message flows and needs to consume a large amount of forwarding table resources is solved.
The following further describes the embodiments of the present invention with reference to a specific application scenario of the SRTE tunnel, but the description should not be construed as limiting the scope of the present invention:
in the application scenario, service priority mapping may be configured on a core switch, and the steps are as follows:
step one, according to the IP address, protocol type, port number, DSCP and other network characteristic elements of the service flow (service message), the priority of the service is distinguished. For example, a Class Service may be identified by "DSCP" or "protocol type" alone, or a Class Service may be identified by "IP + DSCP" or "IP + protocol port number", the Service priority is represented by Service Class, and the number of Service priorities may be determined by client configuration.
And step two, configuring the priority attribute of the SRTE tunnel, wherein the priority attribute corresponds to a Service Class. For example, DSCP is specified here as a service class identity:
service 1: when DSCP is 20, Service Class is 2;
service 2: when DSCP is 30, Service Class is 3;
the service 1 and the service 2 are required to be forwarded in the SRTE tunnels with the priorities of 2 and 3, respectively, the specific mapping relationship is shown in table 1, and the corresponding relationship among the service identifier, the service priority and the tunnel priority is established.
Business | Identification (DSCP) | Priority of service | Priority of |
Service | |||
1 | 20 | 2 | 2 |
|
30 | 3 | 3 |
TABLE 1
After the above configuration is made, the switch hardware (chip) implementation flow is as follows, but in other embodiments, there is no precedence relationship between the above configuration process and the switch hardware implementation flow:
step one, establishing an SRTE tunnel, configuring the priority of the tunnel (as shown in table 1, may be the same as the Service priority Class), and placing the tunnel with the same priority in the same ECMP group, such as the ECMP group (ECMP0, ECMP1, ECMP2, ECMP3, where 0, 1, 2, and 3 are not the ID of the ECMP, but only represent the first priority ECMP group, the second priority ECMP group, the third priority ECMP group, and the fourth priority ECMP group, respectively) in fig. 3, and respectively correspond to the traffic flow (assuming that the traffic flow with 4 priorities is planned) whose Service priority (Service Class) is (1, 2, 3, 4).
Step two, a forwarding table (e.g., a routing table) is established, the ethernet IP service packet enters the switch, and the forwarding table contains a corresponding relationship between an IP address and an ECMP group identifier, and then the forwarding table can be searched according to a destination IP address DIP to obtain an ECMP group identifier ID (e.g., the ID of ECMP0 is 0x0010, the ID of ECMP1 is 0x0011, the ID of ECMP2 is 0x0012, and the ID of ECMP3 is 0x 0013).
And step three, establishing a second-level ACL table item, wherein an ACL matching domain is a service priority value SCValue, only one ACL table item can be installed in the second-level ACL table item, and when a service message is processed subsequently, the chip can automatically add the ECMPID searched in the step two to the service priority value SCValue obtained in ACL matching to obtain a new ECMPID, wherein the new ECMP ID is pointed to an ECMP group which is used for storing the SRTE tunnel with priority in advance.
If the ID of the ECMP0 found in step two is 0x0010, and the value SCValue of the service priority obtained from the ACL matching is 2, the ECMP 0+2 is 0x0010+2 is 0x0012, 0x0012 is a new ECMP ID, and the new ECMP ID is the ID of ECMP2, then ECMP2 points to the ECMP group that is used to store the SRTE tunnel with priority in advance.
And step four, establishing a first-level ACL table item for matching the characteristics of the Service messages (can be in the header information of the Service messages), dividing the Service messages with the same characteristics into a priority group (Service Class), and using SCValue on a chip to express the priority of the packet messages.
The process of processing the service message is as follows:
step one, receiving a service message 1, and searching a corresponding service priority 2 from a first ACL table item (namely, a first-level ACL table item) according to a service identifier 20 (which can be in header information of the service message) of the service message 1;
step two, searching a forwarding table according to the IP address of the service message 1 to obtain an ECMP group identifier ID of 0x0010, searching a corresponding tunnel priority 2 from the second ACL entry (i.e., the second ACL entry) according to the service priority 2, or adding the service priority 2 to the ID value 0x0010 of the ECMP0 to be equal to 0x0012, and obtaining a new ECMP group ECMP2 according to 0x 0012;
step three, determining that an ECMP group corresponding to the tunnel priority is ECMP2 according to the tunnel priority 2 and the ECMP 0; the ECMP2 or the new ECMP group ECMP2 in step two points to the ECMP group that was previously used to deposit the SRTE tunnel with priority.
And step four, selecting a first tunnel from the ECMP2 group according to a load balancing strategy to send the first service message.
As shown in fig. 4, the virtual private network L3VPN and SRTE hybrid networking diagram is a simple third-layer-based virtual private network L3VPN and SRTE hybrid networking diagram, in this scenario, CE1 and CE2 access an SRTE network through PE1 and PE2, respectively, there are 4 groups of SRTE tunnels (indicated by four solid lines between PE1 and PE 2) with different priorities in the SRTE network and form an ECMP, which is used for transmitting multiple traffic flows between CE1 and CE2, and if no traffic flow is prioritized, traffic congestion is easily caused as the traffic flows increase, so that various traffic flows are affected. By adopting the scheme described in the embodiment of the invention, the automatic routing of the service traffic can be easily realized as long as the embodiment of the invention containing two levels of ACLs is deployed on the nodes PE1 and PE 2.
The embodiment of the invention has the advantages that the two-stage ACL lookup function is adopted to realize the selection of the message outlet according to the priority of the service message flow on the basis of the traditional routing lookup result, thereby greatly reducing the consumption of hardware resources. On the basis of not increasing network cost, the problem that a switching chip needs to identify different service message flows and needs to consume a large amount of forwarding table resources is solved.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.
Claims (10)
1. A method for scheduling traffic, comprising:
establishing a tunnel, configuring the tunnel priority of the tunnel, and adding the identifiers of the tunnels with the same priority to the same ECMP group, wherein the priority of the tunnel is the priority of the ECMP group;
establishing a corresponding relation among the service identifier, the service priority and the tunnel priority;
receiving a first service message, and searching a corresponding first service priority from a first ACL table item according to a service identifier of the first service message, wherein the first ACL table item comprises a corresponding relation between the service identifier and the service priority;
searching a corresponding first tunnel priority from a second ACL table item according to the first service priority, wherein the second ACL table item comprises the corresponding relation between the service priority and the tunnel priority;
searching a forwarding table according to the IP address of the first service message, and determining a first ECMP group identifier corresponding to the first service message, wherein the forwarding table comprises a corresponding relation between the IP address and the ECMP group identifier;
determining a first ECMP group corresponding to the first tunnel priority according to the first ECMP group identifier and the first tunnel priority;
and selecting a first tunnel from the first ECMP group according to a load balancing strategy to send the first service message.
2. The method of claim 1, wherein the traffic identification is a combination of one or more of a source/destination IP address, a protocol type, a source/destination port number, and a DSCP of a traffic packet.
3. A method according to any of claims 1-2, characterized in that the number of traffic priorities is the same as the number of tunnel priorities.
4. The method of any of claims 1-2, wherein the tunnel is an SRTE tunnel.
5. The method of claim 1, wherein the forwarding table is a routing table or an MPLS forwarding table.
6. An apparatus for traffic scheduling, comprising:
the first establishing module is used for establishing a tunnel, configuring the tunnel priority of the tunnel, and adding the identifiers of the tunnels with the same priority to the same ECMP group, wherein the priority of the tunnel is the priority of the ECMP group;
the second establishing module is used for establishing the corresponding relation among the service identifier, the service priority and the tunnel priority;
a receiving module, configured to receive a first service packet,
a searching module, configured to search a corresponding first service priority from a first ACL entry according to a service identifier of the first service packet, where the first ACL entry includes a correspondence between the service identifier and the service priority, and search a corresponding first tunnel priority from a second ACL entry according to the first service priority, where the second ACL entry includes a correspondence between the service priority and the tunnel priority, search a forwarding table according to an IP address of the first service packet, determine a first ECMP group identifier corresponding to the first service packet, where the forwarding table includes a correspondence between the IP address and the ECMP group identifier;
a determining module, configured to determine, according to the first ECMP group identifier and the first tunnel priority, a first ECMP group corresponding to the first tunnel priority;
and the sending module is used for selecting a first tunnel from the first ECMP group according to a load balancing strategy to send the first service message.
7. The apparatus of claim 6, wherein the traffic identification is a combination of one or more of a source/destination IP address, a protocol type, a source/destination port number, and a DSCP of a traffic packet.
8. An apparatus according to any of claims 6-7, wherein the number of traffic priorities is the same as the number of tunnel priorities.
9. The apparatus of any of claims 6-7, wherein the tunnel is an SRTE tunnel.
10. The apparatus of claim 6, wherein the forwarding table is a routing table or an MPLS forwarding table.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811547004.6A CN109450793B (en) | 2018-12-18 | 2018-12-18 | Method and device for scheduling service traffic |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811547004.6A CN109450793B (en) | 2018-12-18 | 2018-12-18 | Method and device for scheduling service traffic |
Publications (2)
Publication Number | Publication Date |
---|---|
CN109450793A CN109450793A (en) | 2019-03-08 |
CN109450793B true CN109450793B (en) | 2021-07-16 |
Family
ID=65558819
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811547004.6A Active CN109450793B (en) | 2018-12-18 | 2018-12-18 | Method and device for scheduling service traffic |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109450793B (en) |
Families Citing this family (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110519168B (en) * | 2019-08-27 | 2022-03-11 | 北京华为数字技术有限公司 | Method for establishing SRTE tunnel and related equipment |
CN111600793B (en) * | 2020-03-31 | 2022-07-12 | 新华三信息安全技术有限公司 | Message forwarding method and device |
CN112187636B (en) * | 2020-09-22 | 2022-08-16 | 锐捷网络股份有限公司 | ECMP route storage method and device |
CN112436990B (en) * | 2020-10-12 | 2022-06-07 | 网络通信与安全紫金山实验室 | Data forwarding method, data forwarding equipment and computer-readable storage medium |
CN114615200A (en) * | 2022-03-14 | 2022-06-10 | 芯河半导体科技(无锡)有限公司 | Elephant flow detection method and device based on ACL |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2234448A1 (en) * | 2009-03-27 | 2010-09-29 | Research In Motion Limited | Method and system for establishing and maintaining high speed radio access bearer for foreground application |
CN102065020A (en) * | 2011-01-24 | 2011-05-18 | 中兴通讯股份有限公司 | Method and device for transmitting L2VPN service by using tunnel group in MPLS network |
CN103384218A (en) * | 2012-05-03 | 2013-11-06 | 中兴通讯股份有限公司 | Flow forward method and system on basis of service grade |
CN105745880A (en) * | 2013-07-29 | 2016-07-06 | 瑞典爱立信有限公司 | Method and apparatus for using entropy labels in segment routed networks |
CN108199974A (en) * | 2017-12-25 | 2018-06-22 | 新华三技术有限公司 | Service traffics forwarding management method, device and network node |
CN108768788A (en) * | 2018-06-26 | 2018-11-06 | 新华三技术有限公司合肥分公司 | Path failure detection method and device |
Family Cites Families (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN100596088C (en) * | 2007-11-13 | 2010-03-24 | 华为技术有限公司 | Classification based tunnel selecting method and apparatus |
WO2016019985A1 (en) * | 2014-08-06 | 2016-02-11 | Nokia Solutions And Networks Oy | Method computer program product and apparatus for traffic flow differentiation |
CN106470157B (en) * | 2015-08-21 | 2020-06-30 | 中兴通讯股份有限公司 | Method and device for setting priority of tunnel |
CN106878184B (en) * | 2017-02-28 | 2020-02-11 | 新华三技术有限公司 | Data message transmission method and device |
CN108989210B (en) * | 2017-06-02 | 2021-08-24 | 中兴通讯股份有限公司 | Strategy-based tunnel selection method and software defined network controller |
-
2018
- 2018-12-18 CN CN201811547004.6A patent/CN109450793B/en active Active
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP2234448A1 (en) * | 2009-03-27 | 2010-09-29 | Research In Motion Limited | Method and system for establishing and maintaining high speed radio access bearer for foreground application |
CN102065020A (en) * | 2011-01-24 | 2011-05-18 | 中兴通讯股份有限公司 | Method and device for transmitting L2VPN service by using tunnel group in MPLS network |
CN103384218A (en) * | 2012-05-03 | 2013-11-06 | 中兴通讯股份有限公司 | Flow forward method and system on basis of service grade |
CN105745880A (en) * | 2013-07-29 | 2016-07-06 | 瑞典爱立信有限公司 | Method and apparatus for using entropy labels in segment routed networks |
CN108199974A (en) * | 2017-12-25 | 2018-06-22 | 新华三技术有限公司 | Service traffics forwarding management method, device and network node |
CN108768788A (en) * | 2018-06-26 | 2018-11-06 | 新华三技术有限公司合肥分公司 | Path failure detection method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109450793A (en) | 2019-03-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109450793B (en) | Method and device for scheduling service traffic | |
JP7417825B2 (en) | slice-based routing | |
EP3624408B1 (en) | Method for generating forwarding table entry, controller, and network device | |
US10263889B2 (en) | Data forwarding method, device, and system in software-defined networking | |
US10212088B2 (en) | Tactical traffic engineering based on segment routing policies | |
US9602415B2 (en) | Flow based network service insertion | |
CN111385207B (en) | Service data forwarding method, network device and network system | |
US9450874B2 (en) | Method for internet traffic management using a central traffic controller | |
WO2021007963A1 (en) | Route distribution method and controller, information routing method and network node device | |
CN107370673B (en) | Method, controller and system for establishing forwarding path in network | |
US10630508B2 (en) | Dynamic customer VLAN identifiers in a telecommunications network | |
CN106453138B (en) | Message processing method and device | |
US10511518B2 (en) | Mechanism and framework for finding optimal multicast tree roots without the knowledge of traffic sources and receivers for Fabricpath and TRILL | |
CN104954288B (en) | Method for sending information, device and communication system | |
CN101841487A (en) | Configuration method for aggregating link service flow and packet switching device | |
CN106209623A (en) | Determine method and the control equipment of forward-path | |
US20170310581A1 (en) | Communication Network, Communication Network Management Method, and Management System | |
US20230300070A1 (en) | Packet Sending Method, Device, and System | |
CN108141392A (en) | The method and apparatus that pseudowire load is shared | |
US20230216786A1 (en) | Method for forwarding service packet, method for sending sr policy, device, and system | |
WO2023050874A1 (en) | Packet forwarding method and apparatus, and dragonfly network | |
CN112995036B (en) | Network traffic scheduling method and device | |
CN106789671B (en) | Service message forwarding method and device | |
RU2675212C1 (en) | Adaptive load balancing during package processing | |
WO2022166465A1 (en) | Message processing method and related apparatus |
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 |