Method and related equipment for forwarding message
By configuring load sharing weights for multiple routes in the communication network, the problems of low bandwidth resource utilization and route congestion caused by equal-cost load sharing are solved, and transmission efficiency and reliability are improved.
Patent Information
- Application Number
- CN202010366484.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-04-30
- Publication Date
- 2024-09-27
- Estimated Expiration
- 2040-04-30
AI Technical Summary
In communication networks, the equal-cost load sharing method leads to low utilization of bandwidth resources and may cause route congestion and packet loss, especially during route transmission with unbalanced bandwidth.
By pre-configuring load sharing weights for multiple routes, load sharing is performed based on the bandwidth of the route to avoid equal-cost load sharing, improve bandwidth utilization and reduce the risk of congestion.
It improves the bandwidth utilization of each route, avoids congestion on routes with smaller bandwidth, and enhances the efficiency and reliability of message transmission.
Smart Images

Figure CN113595915B
Abstract
Description
Technical Field
[0001] The present application relates to the field of routing technology, and in particular to a method for forwarding a message and related equipment. Background Art
[0002] With the development of routing technology, any node in the communication network can forward messages based on the configured route. And with the complexity of network topology, there may be more than one route between any node and the destination node. In this scenario, how to forward messages is an urgent problem to be solved. For example, in an Ethernet virtual private network (EVPN), each forwarding node can obtain the route to each host based on the Border Gateway Protocol (BGP). Subsequently, for any forwarding node, if the forwarding node receives a message with the destination address being the media access control (MAC) address of a host, the message is forwarded based on the pre-acquired route to the host.
[0003] In the related art, after a forwarding node receives a message whose destination address is the MAC address of a host, if there are multiple routes to the host in the pre-acquired routes, one of the multiple routes is selected as the destination route in accordance with the equal-cost load sharing method. The message is then forwarded based on the destination route. The equal-cost load sharing method means that the probability of selecting these multiple routes is the same. This method of sending messages can only achieve equal-cost load sharing, which is easy to reduce the utilization rate of bandwidth resources in the network. Summary of the invention
[0004] The present application provides a method and related equipment for forwarding messages, which can avoid the problems that occur in the equal-cost load sharing method. The technical solution is as follows:
[0005] In a first aspect, a method for forwarding a message is provided. The method is applied to a first forwarding node in a communication network. The communication network includes a plurality of forwarding nodes. The first forwarding node is any one of the plurality of forwarding nodes.
[0006] In the method, a first forwarding node receives a message, the message carries a destination address, the first forwarding node determines multiple routes according to the destination address, the multiple routes refer to routes from the first forwarding node to the destination node indicated by the destination address, the first forwarding node obtains the load sharing weight of each route in the multiple routes, and the first forwarding node selects a route from the multiple routes according to the load sharing weight of each route to forward the message. The load sharing weight of any route is used to indicate the probability of selecting the corresponding route from the multiple routes to forward the message.
[0007] It can be seen from this that in the present application, if there are multiple routes from the first forwarding node to the destination node indicated by the destination address carried by the message, load sharing weights are pre-configured for each of these multiple routes, so that a route is subsequently selected to forward the message based on the load sharing weights of each route. Since the load sharing weight of any route is used to indicate the probability of selecting the corresponding route from these multiple routes to forward the message, therefore, in the embodiment of the present application, equal-cost load sharing is not performed blindly, but forwarding the message based on the pre-configured load sharing weights. In this way, the load sharing weights on each route can be customized based on the problems that arise in forwarding messages during the equal-cost load sharing process, thereby avoiding the recurrence of problems that arise when forwarding messages during equal-cost load sharing.
[0008] Based on the method provided in the first aspect, in a possible implementation manner, the load sharing weight of each route is associated with the bandwidth of each route.
[0009] In the case where the bandwidths of various routes from the first forwarding node to the same destination node are inconsistent, when the first forwarding node receives the target message to be forwarded, if it directly adopts the equal-cost load sharing method to transmit the target message, the traffic shared by each route will eventually be consistent. In this way, for routes with larger bandwidths, the bandwidth of this type of route cannot be fully utilized by the equal-cost load sharing method, which will lead to a decrease in the bandwidth utilization of the network. For routes with smaller bandwidths, the traffic on this type of route will easily be congested by the equal-cost load sharing method, so that packet loss and retransmission are likely to occur during the message transmission process, resulting in low message transmission efficiency.
[0010] Based on the technical problems arising from the above-mentioned equal-cost load sharing method, in the present application, if there are multiple routes from the first forwarding node to the destination node indicated by the target destination address, load sharing weights are pre-configured for each of the multiple routes, and the load sharing weight of each route is associated with the bandwidth of each route to achieve load sharing based on the bandwidth of each route, rather than blindly performing equal-cost load sharing, so as to improve the bandwidth utilization of routes with wider bandwidth among each route, and also avoid congestion in routes with smaller bandwidth among each route when transmitting messages.
[0011] Based on the method provided in the first aspect, in a possible implementation manner, a ratio of load sharing weights between any two routes in each route is consistent with a ratio of bandwidths between any two routes.
[0012] The ratio between the load sharing weights of the routes can be directly configured based on the ratio between the bandwidths of the routes, so that the bandwidth resources on the routes in the communication network can be fully utilized.
[0013] Based on the method provided in the first aspect, in a possible implementation manner, the bandwidth of any route is a minimum value or an average value of bandwidths of links included in the any route.
[0014] Load balancing is performed based on the minimum bandwidth of each route to further avoid traffic congestion caused by the minimum bandwidth limit when each route transmits packets. Alternatively, load balancing weights can be configured based on average bandwidth, which improves the flexibility of configuring load balancing weights.
[0015] Based on the method provided in the first aspect, in a possible implementation manner, the bandwidth of each link is the link reserved bandwidth or the link remaining bandwidth, which improves the flexibility of configuring the load sharing weight.
[0016] Based on the method provided in the first aspect, in a possible implementation manner, the implementation process of the first forwarding node obtaining the load sharing weight of each route in the multiple routes can be: the first forwarding node obtains the load sharing weight of each route from the locally stored weight data.
[0017] In order to improve the efficiency of message transmission, the load sharing weight of each route can be determined in advance and stored locally, so that the load sharing weight of each route can be quickly obtained in forwarding messages.
[0018] Based on the method provided in the first aspect, in a possible implementation, in this method, the first forwarding node can also obtain the bandwidth of each route, determine the load sharing weight of each route according to the bandwidth of each route, and add the load sharing weight of each route to the above-mentioned weight data.
[0019] In one possible implementation, the forwarding node itself can configure the load sharing weight of each route based on the bandwidth of each route. The process of pre-configuring the load sharing weight does not require the participation of the control node, thereby improving the flexibility of the method for configuring the load sharing weight provided in the present application.
[0020] Based on the method provided in the first aspect, in a possible implementation, the implementation process of the first forwarding node obtaining the bandwidth of each route can be: the first forwarding node receives the first route announcement message sent by the second forwarding node. Among them, the second forwarding node is the next-hop forwarding node of the first forwarding node on the first route among these routes, the first route is any one of the routes, the first route announcement message carries the target destination address and the bandwidth of the link from the second forwarding node to the destination node in the first route, and the first route announcement message is used to indicate that the second forwarding node can forward the message to the destination node. Then the first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node, and determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message.
[0021] It can be seen that the route advertisement message in the traditional technology can be expanded so that the route advertisement message can carry not only the destination address to be learned (in EVPN, the destination address is a MAC address), but also the bandwidth of the link, so that the first forwarding node can obtain the bandwidth on each route. This makes the method of configuring the load sharing weight by the forwarding node provided by the present application more feasible, which is conducive to the promotion of the method of forwarding messages provided by the present application.
[0022] Based on the method provided in the first aspect, in a possible implementation manner, if the bandwidth of the link carried by the first route announcement message is the minimum bandwidth on the link from the second forwarding node to the destination node in the first route, then the first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the first route announcement message. The implementation process can be: the first forwarding node determines the smaller bandwidth of the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the first route announcement message, and uses the smaller bandwidth as the bandwidth of the first route.
[0023] Through the above implementation, when each forwarding node transmits the link bandwidth, it can compare the bandwidth of the link between itself and the next hop node with the bandwidth in the received route advertisement message, and use the smaller value as the bandwidth of the link between itself and the destination node. In this way, when each forwarding node transmits the route advertisement message to the previous hop, it only needs to carry a minimum bandwidth value, thereby reducing the number of bytes of the route advertisement message and avoiding occupying too many network resources in the process of transmitting the route advertisement message.
[0024] Based on the method provided in the first aspect, in a possible implementation, the bandwidth of the link carried in the first route announcement message is the remaining bandwidth on the link. In this scenario, the first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node, which means: obtaining the remaining bandwidth of the link between the first forwarding node and the second forwarding node. The implementation process of the first forwarding node determining the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message can be: the first forwarding node determines the bandwidth of the first route based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route announcement message.
[0025] In a scenario where the link bandwidth refers to the remaining bandwidth of the link, the bandwidth of the first route may be determined in the above manner.
[0026] Based on the method provided in the first aspect, in a possible implementation, in the scenario where the link bandwidth is the remaining bandwidth, the implementation process of the first forwarding node determining the load sharing weight of each route according to the bandwidth of each route can be: when the bandwidth of the first route meets the trigger condition, the load sharing weight of each route is determined according to the bandwidth of each route. The trigger condition is that the change value between the current bandwidth of the first route and the historical bandwidth of the first route is greater than the reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0027] It can be seen from this that when the bandwidth of a link is the remaining bandwidth of the link, since the traffic on the link may change in real time, the remaining bandwidth of the link may also change dramatically. In this case, the bandwidth on each route also changes dynamically. Therefore, in this application, the load sharing weight of each route can be dynamically adjusted accordingly to make the adjusted load sharing weight more in line with the needs of the network.
[0028] It should be noted that the judgment process of whether the bandwidth of the first route meets the trigger condition can be implemented by the second forwarding node. At this time, when the second forwarding node determines that the change value between the bandwidth of the link between itself and the target node and the historical bandwidth is greater than the reference amplitude, it indicates that the bandwidth of the first route meets the trigger condition. At this time, it can trigger the issuance of a route announcement message to the first forwarding node. When the first forwarding node receives the route announcement message, it directly adjusts the load sharing weight based on the received route announcement message.
[0029] The judgment process of whether the bandwidth of the first route meets the trigger condition can also be implemented by the first forwarding node. In this scenario, each forwarding node periodically publishes a route announcement message. At this time, the first forwarding node first determines the bandwidth of the first route after receiving the route announcement message each time. Only when the bandwidth of the first route among multiple routes meets the trigger condition, the load sharing weights of each route will be adjusted.
[0030] Based on the method provided in the first aspect, in a possible implementation manner, the first route advertisement message carries a subtype length value TLV, and the sub-TLV is used to carry the bandwidth of the link between the second forwarding node and the destination node in the first route.
[0031] That is, a sub-TLV can be directly extended in the routing advertisement message in the traditional technology to carry the link bandwidth, thereby realizing the method for forwarding messages provided by the present application, which is conducive to the smooth evolution of the method for forwarding messages provided by the present application in the traditional technology.
[0032] Based on the method provided in the first aspect, in a possible implementation, in this method, the first forwarding node can receive the load sharing weights of each route sent by the control node, the load sharing weights of each route are determined by the control node based on the bandwidth of each route, and then the load sharing weights of each route are added to the above-mentioned weight data.
[0033] In one possible implementation, the control node can configure the load sharing weight of each route based on the bandwidth of each route, without the need for each forwarding node to configure itself, thereby improving the flexibility of the method for configuring load sharing weights provided in the present application.
[0034] Based on the method provided in the first aspect, in a possible implementation, before the first forwarding node receives the load sharing weights of each route sent by the control node, the first forwarding node can also report a link status message to the control node, and the link status message carries the target destination address and the link bandwidth between the first forwarding node and the next hop node on the first route, and the first route is any one of the multiple routes.
[0035] If the control node configures the load sharing weight of each route based on the bandwidth of each route, then each forwarding node needs to report the bandwidth of its own link to the control node in advance so that the control node can configure the load sharing weight on each forwarding node. In the present application, the link state message in the traditional technology can be directly used to report the bandwidth of the link to the control node, without the need to expand other messages, which improves the flexibility of the method for forwarding messages provided in the present application.
[0036] Based on the method provided in the first aspect, in a possible implementation, the first forwarding node can also receive the bandwidth of each route sent by the control node, and then the first forwarding node determines the load sharing weight of each route according to the bandwidth of each route, and adds the load sharing weight of each route to the above-mentioned weight data.
[0037] In another possible implementation, the control node can send the determined bandwidth pairs of each route to the forwarding node, and the forwarding node determines the load sharing weight of each route based on the bandwidth of each route to alleviate the data processing pressure of the control node and improve the flexibility of the method for configuring load sharing weights provided in the present application.
[0038] In a second aspect, a method for forwarding a message is provided, the method being applied to a first forwarding node in a communication network, the communication network comprising a plurality of forwarding nodes, the first forwarding node being any one of the plurality of forwarding nodes. In the method, the first forwarding node acquires bandwidths of a plurality of routes, the plurality of routes being routes from the first forwarding node to a destination node; the first forwarding node determines load sharing weights of the plurality of routes according to the bandwidths of the plurality of routes, the load sharing weight of any route being used to indicate the probability of selecting a corresponding route from the plurality of routes to forward the message.
[0039] The above provides a technical solution in which the first forwarding node itself pre-configures the load sharing weights for the multiple routes respectively, so as to select a route to forward the message based on the load sharing weights of each route later. Since the load sharing weight of any route is used to indicate the probability of selecting the corresponding route from the multiple routes to forward the message, in the embodiment of the present application, equal-cost load sharing is not performed blindly, but the message is forwarded based on the pre-configured load sharing weights. In this way, the load sharing weights on each route can be customized based on the problems that occur in the forwarding of messages during the equal-cost load sharing process, thereby avoiding the recurrence of the problems that occur when forwarding messages during equal-cost load sharing.
[0040] Based on the method provided in the second aspect, in a possible implementation manner, the implementation process of the above-mentioned first forwarding node obtaining the bandwidth of multiple routes can be: the first forwarding node receives a first route announcement message sent by a second forwarding node, the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among the multiple routes, the first route is any one of the multiple routes, and the first route announcement message carries a destination address and the bandwidth of the link from the second forwarding node to the destination node in the first route; the first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node; the first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message.
[0041] It can be seen that the route advertisement message in the traditional technology can be expanded so that the route advertisement message can carry not only the destination address to be learned (in EVPN, the destination address is a MAC address), but also the bandwidth of the link, so that the first forwarding node can obtain the bandwidth on each route. This makes the method of configuring the load sharing weight by the forwarding node provided by the present application more feasible, which is conducive to the promotion of the method of forwarding messages provided by the present application.
[0042] Based on the method provided in the second aspect, in a possible implementation, the bandwidth of any route is the minimum value of the bandwidths of the links included in any route. In this scenario, the implementation process of the first forwarding node determining the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message can be: the first forwarding node determines the smaller bandwidth of the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the first route announcement message, and uses the smaller bandwidth as the bandwidth of the first route.
[0043] Through the above implementation, when each forwarding node transmits the link bandwidth, it can compare the bandwidth of the link between itself and the next hop node with the bandwidth in the received route advertisement message, and use the smaller value as the bandwidth of the link between itself and the destination node. In this way, when each forwarding node transmits the route advertisement message to the previous hop, it only needs to carry a minimum bandwidth value, thereby reducing the number of bytes of the route advertisement message and avoiding occupying too many network resources in the process of transmitting the route advertisement message.
[0044] Based on the method provided in the first aspect, in a possible implementation, the bandwidth of the link carried in the first route announcement message is the remaining bandwidth on the link. In this scenario, the first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node, which means: obtaining the remaining bandwidth of the link between the first forwarding node and the second forwarding node. The implementation process of the first forwarding node determining the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message can be: the first forwarding node determines the bandwidth of the first route based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route announcement message.
[0045] In a scenario where the link bandwidth refers to the remaining bandwidth of the link, the bandwidth of the first route may be determined in the above manner.
[0046] Based on the method provided in the first aspect, in a possible implementation, in the scenario where the link bandwidth is the remaining bandwidth, the implementation process of the first forwarding node determining the load sharing weight of each route according to the bandwidth of each route can be: when the bandwidth of the first route meets the trigger condition, the load sharing weight of each route is determined according to the bandwidth of each route. The trigger condition is that the change value between the current bandwidth of the first route and the historical bandwidth of the first route is greater than the reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0047] It can be seen from this that when the bandwidth of a link is the remaining bandwidth of the link, since the traffic on the link may change in real time, the remaining bandwidth of the link may also change dramatically. In this case, the bandwidth on each route also changes dynamically. Therefore, in this application, the load sharing weight of each route can be dynamically adjusted accordingly to make the adjusted load sharing weight more in line with the needs of the network.
[0048] Based on the method provided in the first aspect, in a possible implementation manner, the first route advertisement message carries a subtype length value TLV, and the sub-TLV is used to carry the bandwidth of the link between the second forwarding node and the destination node in the first route.
[0049] That is, a sub-TLV can be directly extended in the routing advertisement message in the traditional technology to carry the link bandwidth, thereby realizing the method for forwarding messages provided by the present application, which is conducive to the smooth evolution of the method for forwarding messages provided by the present application in the traditional technology.
[0050] In the third aspect, a message sending method is provided, which is applied to a control node in a communication network, and the communication network also includes multiple forwarding nodes. In the method, the control node can determine multiple routes from a first forwarding node to a destination node indicated by a target destination address, and the bandwidth of each of the multiple routes, and the first forwarding node is any one of the multiple forwarding nodes; the control node determines the load sharing weight of each route based on the bandwidth of each route; the control node sends the load sharing weight of each route to the first forwarding node, and the load sharing weight of any route is used to indicate the probability of selecting a corresponding route from the multiple routes to forward the message.
[0051] In the present application, the load sharing weight of each route can be configured by the control node to implement the method for forwarding messages provided in the first aspect above. Thus, load sharing is performed based on the bandwidth of each route, rather than blindly performing equal-cost load sharing, so as to improve the bandwidth utilization of the routes with wider bandwidth among the routes, and also avoid congestion in the routes with smaller bandwidth among the routes when transmitting messages.
[0052] Based on the method provided in the third aspect, in a possible implementation manner, the control node determines multiple routes from the first forwarding node to the destination node indicated by the target address, and the implementation process of the bandwidth of each of the multiple routes can be: the control node obtains link status messages reported by one or more forwarding nodes among the forwarding nodes, the link status message carries the destination address corresponding to the destination node, and the bandwidth of the link between the node that reports the link status message and the next hop node on the route to the destination node; the control node determines multiple routes from the first forwarding node to the destination node, and the bandwidth of each of the multiple routes based on the reported link status messages.
[0053] The control node can determine the bandwidth of the route based on the link status message in the traditional technology, thereby improving the compatibility of the method for forwarding messages provided by the present application with the traditional technology.
[0054] Based on the method provided in the third aspect, in a possible implementation, the bandwidth of any route is determined based on the link remaining bandwidth of each link included in the corresponding route. In this scenario, the implementation process of the above-mentioned control node determining the load sharing weight of each route based on the bandwidth of each route can be: when the bandwidth of the first route meets the trigger condition, the load sharing weight of each route is determined according to the bandwidth of each route. Among them, the trigger condition is that the change value between the current bandwidth of the first route and the historical bandwidth of the first route is greater than the reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0055] It can be seen from this that when the bandwidth of a link is the remaining bandwidth of the link, since the traffic on the link may change in real time, the remaining bandwidth of the link may also change dramatically. In this case, the bandwidth on each route also changes dynamically. Therefore, in this application, the load sharing weight of each route can be dynamically adjusted accordingly to make the adjusted load sharing weight more in line with the needs of the network.
[0056] Based on the method provided in the third aspect, in a possible implementation, each forwarding node includes an access service gateway ASG and a base station side gateway CSG, and the CSG is connected to the ASG. In this scenario, the link status message reported by the aforementioned one or more forwarding nodes includes a link status message reported by the ASG, and the link status message reported by the ASG also carries the bandwidth of the link between the CSG and the next hop node.
[0057] In EVPN technology, considering that the number of CSGs in the communication network is usually large, in order to avoid network congestion at the control node, CSG can transmit link status messages to ASG based on IGP, so as to report to the control node through ASG link status messages, thereby improving the efficiency of forwarding messages provided by this application.
[0058] The detailed technical effects of the method for forwarding messages provided in the third aspect can also refer to the technical effects of the related scheme for configuring load sharing weights by the control node in the first aspect, which will not be described in detail here.
[0059] In a fourth aspect, a first forwarding node in a communication network is provided, wherein the communication network includes a plurality of forwarding nodes, and the first forwarding node is any one of the plurality of forwarding nodes. The first forwarding node has a function of implementing the method behavior of forwarding a message in the first aspect or the second aspect. The first forwarding node includes at least one module, and the at least one module is used to implement the method of forwarding a message provided in the first aspect or the second aspect.
[0060] In a fifth aspect, a control node in a communication network is provided, wherein the communication network also includes a plurality of forwarding nodes. The control node has a function of implementing the method behavior of forwarding messages in the third aspect above. The control node includes at least one module, and the at least one module is used to implement the method of forwarding messages provided in the third aspect above.
[0061] In a sixth aspect, a first forwarding node in a communication network is provided, the communication network includes a plurality of forwarding nodes, and the first forwarding node is any one of the plurality of forwarding nodes;
[0062] Wherein, the first forwarding node includes a memory and a processor;
[0063] The memory is used to store computer programs;
[0064] The processor is used to execute the computer program stored in the memory to perform the method of any one of the first aspect or the second aspect.
[0065] In a seventh aspect, a control node in a communication network is provided, the control node comprising a memory and a processor;
[0066] The memory is used to store computer programs;
[0067] The processor is used to execute the computer program stored in the memory to perform any method in the third aspect above.
[0068] In an eighth aspect, a chip is provided, wherein the chip is arranged in a first forwarding node in a communication network, wherein the communication network includes a plurality of forwarding nodes, and the first forwarding node is any one of the plurality of forwarding nodes.
[0069] Wherein, the chip includes a processor and an interface circuit;
[0070] The interface circuit is used to receive instructions and transmit them to the processor;
[0071] The processor is used to execute the method of any one of the first aspect or the second aspect above.
[0072] In a ninth aspect, a chip is provided, and the chip is arranged in a control node in a communication network.
[0073] Wherein, the chip includes a processor and an interface circuit;
[0074] The interface circuit is used to receive instructions and transmit them to the processor;
[0075] The processor is used to execute any one of the methods in the third aspect above.
[0076] In the tenth aspect, a computer-readable storage medium is provided, in which instructions are stored, and when the computer-readable storage medium is executed on a computer, the computer executes any method of forwarding messages in the first aspect, the second aspect or the third aspect.
[0077] In the eleventh aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute any method of forwarding messages of the first aspect, the second aspect or the third aspect.
[0078] In a twelfth aspect, a system for forwarding messages is provided, the system comprising a plurality of forwarding nodes;
[0079] Among them, any forwarding node is used to implement any method of forwarding messages in the first aspect or the second aspect mentioned above.
[0080] Based on the system provided in the twelfth aspect, in a possible implementation, the system may further include a control node, which is used to implement any method of forwarding messages in the third aspect above.
[0081] The technical effects obtained in the above-mentioned fourth to twelfth aspects are similar to the technical effects obtained by the corresponding technical means in the first to third aspects, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0082] Figure 1 is a schematic diagram of a system architecture of a communication network provided in an embodiment of the present application;
[0083] Figure 2 is a schematic diagram of a system architecture of another communication network provided in an embodiment of the present application;
[0084] Figure 3 This is a flow chart of a method for forwarding a message provided by an embodiment of the present application;
[0085] Figure 4 This is a flow chart of a method for obtaining load sharing weights provided in an embodiment of the present application;
[0086] Figure 5 This is a schematic diagram of a process of announcing bandwidth provided by an embodiment of the present application;
[0087] Figure 6 This is a schematic diagram of the format of a routing advertisement message provided in an embodiment of the present application;
[0088] Figure 7 This is a schematic diagram of the format of another routing advertisement message provided in an embodiment of the present application;
[0089] Figure 8 is a flow chart of another method for obtaining load sharing weights provided in an embodiment of the present application;
[0090] Fig. 9 It is a schematic diagram of each forwarding node reporting a link status message provided in an embodiment of the present application;
[0091] Fig.10 It is a structural diagram of a network device provided in an embodiment of the present application;
[0092] Fig.11 It is a structural diagram of a network device provided in an embodiment of the present application;
[0093] Fig.12 is a structural diagram of a first forwarding node in a communication network provided in an embodiment of the present application;
[0094] Fig.13 is a structural schematic diagram of a first forwarding node in another communication network provided in an embodiment of the present application;
[0095] Fig.14 It is a schematic diagram of the structure of a control node in a communication network provided by an embodiment of the present application;
[0096] Fig.15 It is a structural diagram of another network device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0097] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0098] Before explaining the embodiments of the present application in detail, the application scenarios of the embodiments of the present application are first explained.
[0099] Load balancing means that when there are multiple links to the destination node indicated by the destination address, traffic is distributed to multiple links. On the one hand, load balancing can make full use of network resources. On the other hand, when one of the load-sharing links fails, traffic can continue to be forwarded from other links, thereby improving the reliability of network communication.
[0100] At present, traditional mobile and home broadband services in operator networks have become saturated, while enterprise private lines based on business-to-business (B2B) have become an important business growth point for operators. Therefore, most operators gradually provide bandwidth services to enterprises and open enterprise private lines to provide private network services.
[0101] In the process of opening enterprise private lines, the following two situations are usually faced. On the one hand, in order to save costs, different operators' networks are mutually leased and traversed through other operators' networks to build enterprise private lines. In addition, the bandwidth planning of the primary and backup plane links of enterprise private lines is inconsistent, which leads to different utilization rates of the primary and backup links.
[0102] On the other hand, most operators currently use virtual leased line (VLL) and virtual private LAN service (VPLS) technologies to carry enterprise private lines, but these technologies do not support load sharing of traffic transmission in multi-homed networks. Therefore, although these technologies ensure the reliability of enterprise private lines, they cause a waste of network resources.
[0103] With the evolution of technology, the existing EVPN technology can solve the problem that VLL\VPLS technology cannot achieve load balancing. In EVPN, the route publishing process of MAC addresses between Layer 2 networks is transferred from the data plane to the control plane through the extended BGP protocol. In this way, each forwarding node in the network can learn the relevant information of each next-hop node to the same MAC address on the control plane, that is, learn different routes to the same MAC address, so that when the forwarding node receives a message with the same MAC address as the destination address on the data plane, it can achieve load balancing based on the different routes learned in advance.
[0104] The message forwarding method provided in the embodiment of the present application can be applied to the scenario of load balancing traffic in the above-mentioned EVPN. Optionally, the message forwarding method provided in the embodiment of the present application can also be applied to other scenarios where messages need to be forwarded in a load balancing manner, which will not be illustrated one by one here.
[0105] Figure 1Schematic diagram of a system architecture of a communication network provided in an embodiment of the present application. Figure 1 As shown, the communication network 100 includes a plurality of forwarding nodes. Figure 1 In the figure, six forwarding nodes are taken as examples for explanation. Figure 1 In the figure, these six forwarding nodes are marked as R1, R2, R3, R4, R5, and R6 respectively.
[0106] like Figure 1 As shown, forwarding node R1 is connected to forwarding node R2, forwarding node R4 and forwarding node R5 respectively. Forwarding node R2 is connected to forwarding node R3. Forwarding node R3, forwarding node R4 and forwarding node R5 are connected respectively. When traffic is transmitted from forwarding node R1 to forwarding node R6, when forwarding node R1 receives any message in the traffic, there are three routes to transmit the message to forwarding node R6. These three routes are: R1→R2→R3→R6; R1→R4→R6; R1→R5→R6.
[0107] Therefore, when forwarding node R1 receives a message, if the destination node of the message is forwarding node R6 or another node that forwarding node R6 can reach, then forwarding node R1 will Figure 1 The network architecture shown determines that there are currently three routes that can forward the message, and the forwarding node R1 can select a target route from the three routes to forward the message through the method for forwarding a message provided in an embodiment of the present application.
[0108] The communication network used in the embodiment of the present application can be further described below using an EVPN network.
[0109] Figure 2 Schematic diagram of another system architecture of a communication network provided in an embodiment of the present application. Figure 2 As shown, the communication network 200 includes a plurality of customer edge devices (CE). Figure 2 CE1 and CE2 are used as examples to illustrate the use of multiple provider edge devices (PE). Figure 1 PE1, PE2, and PE3 are used as examples for explanation. The user edge device or the operator edge device can be a forwarding node such as a router or a switch.
[0110] like Figure 2As shown, CE1 is connected to PE1 and PE2 respectively, PE1 and PE2 are connected to PE3 respectively, and PE3 is connected to CE2. The transmission direction of the data flow is CE2→CE1. When the forwarding node PE3 receives the message sent by CE2, it can select a next hop node from PE1 or PE2 to forward the message based on the method provided in the embodiment of the present application, thereby realizing load sharing of the data flow.
[0111] It should be noted that Figure 2 This is only an example of an EVPN network and does not limit the specific structure of the EVPN network.
[0112] also, Figure 2 It is only used to illustrate a possible application scenario of the communication network provided in the embodiment of the present application. The message forwarding method provided in the embodiment of the present application can also be applied to other types of communication networks, and will not be illustrated one by one here.
[0113] The message forwarding method provided in the embodiment of the present application is explained in detail below.
[0114] Figure 3 is a flow chart of a method for forwarding a message provided in an embodiment of the present application. The method can be applied to Figure 1 or Figure 2 The following embodiment takes the first forwarding node in the communication network as an example to illustrate how the forwarding node in the communication network forwards a message. The first forwarding node is any one of the multiple forwarding nodes included in the communication network. Figure 3 As shown, the method includes the following steps:
[0115] Step 301: A first forwarding node receives a message, which carries a destination address.
[0116] In the embodiment of the present application, when the first forwarding node receives any message, since the message carries a destination address corresponding to the destination node, indicating that the message needs to be forwarded to the destination node, the first forwarding node can forward the message through the following steps 302 to 304 based on the destination address.
[0117] The first forwarding node may be a head node in the communication network, or may be an intermediate node for transmitting the message.
[0118] In addition, for the EVPN technology, the target destination address in step 301 may be a MAC address of a destination node.
[0119] Step 302: The first forwarding node determines a plurality of routes according to the destination address, where the plurality of routes refer to routes from the first forwarding node to the destination node indicated by the destination address.
[0120] For the first forwarding node, a forwarding table entry is pre-configured in the first forwarding node, and the forwarding table entry includes identifiers of multiple next-hop nodes to reach the destination node, and the identifiers of the multiple next-hop nodes are respectively used to indicate a route to reach the destination node. Therefore, when the first forwarding node receives a target message carrying a target destination address, it can determine each route to reach the destination node through the forwarding table entry.
[0121] Step 303: The first forwarding node obtains the load sharing weight of each of the multiple routes. The load sharing weight of any route is used to indicate the probability of selecting a corresponding route from the multiple routes to forward the message.
[0122] In an embodiment of the present application, when the bandwidths of various routes from the first forwarding node to the same destination node are inconsistent, when the first forwarding node receives the target message to be forwarded, if the target message is directly transmitted by equal-cost load sharing, the traffic shared by each route will eventually be consistent. In this way, for routes with larger bandwidths, the bandwidth of this type of route cannot be fully utilized by the equal-cost load sharing method, thereby causing the bandwidth utilization of the network to decrease. For routes with smaller bandwidths, the traffic on this type of route will easily become congested by the equal-cost load sharing method, so that packet loss and retransmission are likely to occur during the message transmission process, resulting in low message transmission efficiency.
[0123] Based on the technical problems arising from the above-mentioned equal-cost load sharing method, in a possible implementation method, if there are multiple routes from the first forwarding node to the destination node indicated by the target destination address, load sharing weights can be pre-configured for each of the multiple routes, and the load sharing weight of any route is used to indicate the probability of selecting a corresponding route from the multiple routes to forward the target message, so as to select a route as the target route to forward the message based on the load sharing weights of each route in the subsequent step 304. The load sharing weight of each route is associated with the bandwidth of each route to achieve load sharing based on the bandwidth of each route, rather than blindly performing equal-cost load sharing, so as to improve the bandwidth utilization of the routes with wider bandwidth among the routes, and also avoid congestion of the routes with smaller bandwidth among the routes when transmitting messages.
[0124] In order to improve the efficiency of forwarding messages, in an embodiment of the present application, the first forwarding node may store the load sharing weights of each route in local weight data in advance. In this way, the implementation of the above step 303 may be: the first forwarding node obtains the load sharing weights of each route from the locally stored weight data. Among them, the weight data includes the load sharing weights of the routes corresponding to each destination address. The weight data may be stored in a forwarding table entry.
[0125] In addition, for any of the multiple routes, the bandwidth of the route may refer to the minimum value of the bandwidth of each link included in the route. That is, load sharing is performed based on the minimum bandwidth on each route to further avoid traffic congestion caused by the limitation of the minimum bandwidth when each route transmits messages. A route is a transmission path composed of multiple adjacent forwarding nodes. Therefore, the minimum bandwidth on a route refers to the minimum bandwidth of the link between any two adjacent forwarding nodes on the route. For example, for Figure 1 In the route R1→R2→R3→R6 shown in the figure, if the bandwidth of the link between R1 and R2 is 10 Gigabit Ethernet (GE), the bandwidth of the link between R2 and R3 is 50 GE, and the bandwidth of the link between R3 and R6 is 20 GE, then the bandwidth of the link between R1 and R2, 10 GE, is used as the bandwidth of this route.
[0126] Optionally, for any of the multiple routes, the bandwidth of the route may also refer to the average bandwidth of each link included in the route. That is, the bandwidth of the route may refer to the average bandwidth on the route. For example, for the above Figure 1 The route R1→R2→R3→R6 shown in the figure can use the average value of 27GE of the bandwidth of the link between R1 and R2 (10GE), the bandwidth of the link between R2 and R3 (50GE), and the bandwidth of the link between R3 and R6 (20GE) as the bandwidth of the route.
[0127] The method for obtaining the bandwidth of the link between any two adjacent forwarding nodes on each of the above routes will be explained in detail in the following embodiments, and will not be described in detail here.
[0128] In addition, the association between the load sharing weights of each route and the bandwidth of each route may mean that the ratio between the load sharing weights of each route is consistent with the ratio between the bandwidths of each route. Therefore, in a possible implementation, the ratio between the load sharing weights of any two routes among the routes is consistent with the ratio between the bandwidths of the any two routes.
[0129] For example, for Figure 1For a communication network, assume that the bandwidth of route R1→R2→R3→R6 is 10GE, the bandwidth of route R1→R4→R6 is 20GE, and the bandwidth of route R1→R5→R6 is 10GE. Then the ratio of the load sharing weights of these three routes can be 1:2:1. In this scenario, the load sharing weight of route R1→R2→R3→R6 can be set to 1, the load sharing weight of route R1→R4→R6 can be set to 2, and the load sharing weight of route R1→R5→R6 can be set to 1. As above, the bandwidth of each route here can be the minimum bandwidth of each route, or the average bandwidth.
[0130] In the embodiment of the present application, the load sharing weight of a route is used to indicate the probability of the route being selected each time a route is selected, so as to realize traffic distribution according to the load sharing weight of each route. Figure 1 In the communication network shown, assume that the load sharing weight of route R1→R2→R3→R6 is set to 1, the load sharing weight of route R1→R4→R6 is set to 2, and the load sharing weight of route R1→R5→R6 is set to 1. Then, after 80G of traffic is transmitted at R1, 20G of the 80G traffic is transmitted through route R1→R2→R3→R6, and 40G of the traffic is transmitted through route R1→R4→R6. 20G of the traffic is transmitted through route R1→R5→R6.
[0131] In addition, for any route, the bandwidth of each link included in the route can be the link reserved bandwidth or the link remaining bandwidth. The embodiment of the present application does not limit this. Among them, the link reserved bandwidth refers to the bandwidth when the link is unloaded, and the link reserved bandwidth can also be called the link interface bandwidth, etc. The link remaining bandwidth refers to the bandwidth remaining after the traffic is transmitted on the link. For example, the link reserved bandwidth of a link is 10GE, if 2GE is currently used, the link remaining bandwidth of the link is 8GE.
[0132] When the bandwidth of the link is the reserved bandwidth of the link, the bandwidth of the above-mentioned routes basically does not change when the network topology does not change. In this scenario, the load sharing weights on each route are fixed. When the bandwidth of the link is the remaining bandwidth of the link, since the traffic on the link may change in real time, the remaining bandwidth of the link may also change dramatically. In this case, the bandwidth on each route also changes dynamically, resulting in the load sharing weights of each route being dynamically adjusted accordingly, so that the adjusted load sharing weights are more in line with the needs of the network. The specific implementation method of dynamically adjusting the load sharing weights will be described in detail in the subsequent embodiments, and will not be discussed here.
[0133] In addition, setting the load sharing weight of each route based on the bandwidth of each route can be implemented by the first forwarding node or by the control node. This part of the content is also described in detail in the following embodiments and will not be described in detail here.
[0134] The above uses route bandwidth as an example to explain how to configure the load sharing weight. In the embodiment of the present application, the load sharing weight can also be configured based on other information on the route, so that the first forwarding node can make full use of network resources after shunting based on the configured load sharing weight. For example, the load sharing weight of each route can also be associated with the transmission delay on each route. In this way, after shunting based on the configured load sharing weight, the congestion in the network can be alleviated, thereby improving the efficiency of message forwarding.
[0135] Step 304: The first forwarding node selects a route from the multiple routes according to the load sharing weights of the routes to forward the message.
[0136] Since the load sharing weight of a route is used to indicate the probability of the route being selected each time a route is selected, a route may be selected as the target route from the multiple routes in a random selection manner based on the load sharing weights of the routes.
[0137] For example, for Figure 1 In the communication network shown in the figure, assume that the load sharing weight of route R1→R2→R3→R6 is set to 1, the load sharing weight of route R1→R4→R6 is set to 2, and the load sharing weight of route R1→R5→R6 is set to 1. Then when node R1 forwards a message, it randomly selects one of the three routes. Among them, the probability of selecting route R1→R2→R3→R6 is 25%, the probability of selecting route R1→R4→R6 is 50%, and the probability of selecting route R1→R5→R6 is 25%.
[0138] After the target route is determined, the message can be forwarded according to the target route. Figure 1 In the communication network shown, assuming that the target route is R1→R2→R3→R6, the first forwarding node only needs to forward the message to the forwarding node R2.
[0139] In summary, if there are multiple routes from the first forwarding node to the destination node indicated by the destination address carried by the message, load sharing weights are pre-configured for each of these multiple routes, so that a route is subsequently selected to forward the message based on the load sharing weights of each route. Since the load sharing weight of any route is used to indicate the probability of selecting the corresponding route from these multiple routes to forward the message, in the embodiment of the present application, equal-cost load sharing is not performed blindly, but forwarding the message based on the pre-configured load sharing weights. In this way, the load sharing weights on each route can be customized based on the problems that arise in forwarding messages during the equal-cost load sharing process, thereby avoiding the recurrence of problems that arise when forwarding messages during equal-cost load sharing.
[0140] Above Figure 3 The illustrated embodiment is used to explain how the first forwarding node implements traffic sharing based on load sharing weights. Figure 3 It can be seen from step 303 of the embodiment shown that for the first forwarding node, the load sharing weights of each route can be obtained in advance, and then the load sharing weights of the multiple routes can be stored in the local weight data. The following embodiment will explain in detail how to obtain the load sharing weights of each route. In addition, since the process of configuring the load sharing weights can be implemented by the first forwarding node itself, it can also be implemented by the control node in the communication network. Therefore, the following will explain in detail the implementation method of obtaining the load sharing weights of each route in advance in the first forwarding node through two embodiments.
[0141] Figure 4 1 is a flow chart of a method for obtaining load sharing weights provided by an embodiment of the present application. The method is applied to the first forwarding node, that is, the forwarding node itself configures the load sharing weights of each route based on the bandwidth of each route. Figure 4 As shown, the method includes the following steps:
[0142] Step 401: A first forwarding node obtains bandwidths of multiple routes, where the multiple routes refer to routes from the first forwarding node to a destination node.
[0143] In EVPN technology, each forwarding node in the communication network has the BGP accumulated interior gateway protocol metric (AIGP) function. In this function, for each forwarding node on a route to a destination node, the MAC address of the destination node is gradually notified to the previous hop forwarding node starting from the last hop forwarding node, so that each forwarding node on the route can learn the MAC address of the destination node and the next hop nodes through which the message can be forwarded to the destination node, and the learned MAC address and these next hop nodes are added to the forwarding table.
[0144] The above-mentioned notification of the MAC address of the destination node in the BGP AIGP function can be implemented through a route announcement message. Therefore, in the embodiment of the present application, in order to enable each forwarding node to configure the load sharing weight of each route to the same destination node, the BGP AIGP function can be extended so that each forwarding node can also notify the bandwidth of its own link to the destination node when notifying the MAC address of the destination node.
[0145] Therefore, in a possible implementation, the implementation process of step 401 can be: the first forwarding node receives the first route announcement message sent by the second forwarding node, the second forwarding node is the next-hop forwarding node of the first forwarding node on the first route, the first route is any one of the routes, the first route announcement message carries the target destination address and the bandwidth of the link from the second forwarding node to the destination node in the first route, and the first route announcement message is used to indicate that the second forwarding node can forward the message to the destination node; the first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node; the first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message.
[0146] based on Figure 3It can be seen from the illustrated embodiment that the link bandwidth can be the remaining bandwidth of the link or the reserved bandwidth of the link. The above implementation method is explained below by taking the link bandwidth as the remaining bandwidth of the link as an example. At this time, the bandwidth of the link carried in the first route announcement message is the remaining bandwidth on the link. In this scenario, the first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node, which means: obtaining the remaining bandwidth of the link between the first forwarding node and the second forwarding node. The implementation process of the first forwarding node determining the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message can be: the first forwarding node determines the bandwidth of the first route based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route announcement message.
[0147] In addition, since the first forwarding node can be a head node or an intermediate node in the communication network. If the first forwarding node is an intermediate node, it indicates that there are other forwarding nodes upstream of the first forwarding node. At this time, after the first forwarding node receives the route announcement message from the second forwarding node, if there are other forwarding nodes upstream of the first forwarding node, the first forwarding node can also continue to send route announcement messages to the upstream forwarding nodes, so that the upstream forwarding nodes can also learn the target destination address of the destination node. Therefore, in a possible implementation method, after determining the bandwidth of the first route, the first forwarding node can also send a second route announcement message to the third forwarding node, and the second route announcement message carries the target destination address and the bandwidth of the first route. Among them, the third forwarding node is a forwarding node that sends the target message to the first forwarding node, that is, the third forwarding node is the upstream node of the first forwarding node, so that the upstream node can refer to the first forwarding node to configure the load sharing weights on each route to the destination node.
[0148] That is, in the present application, the routing advertisement message in the conventional technology is extended so that the routing advertisement message can carry not only the destination address to be learned (in EVPN, the destination address is the MAC address) but also the bandwidth of the link. Figure 3 As explained in step 303 of FIG. 1 , the bandwidth of the link can be the reserved bandwidth of the link or the remaining bandwidth of the link.
[0149] Similarly, based on Figure 3As explained in step 303 of , the bandwidth on the route can be the minimum bandwidth or the average bandwidth. In the case where the bandwidth on the route is the minimum bandwidth, the bandwidth of the link from the second forwarding node to the destination node in the first route carried in the above-mentioned first route announcement message can refer to the minimum bandwidth on the link from the second forwarding node to the destination node. At this time, starting from the previous hop forwarding node of the last hop node on the first route, each forwarding node, when receiving the bandwidth sent by the next hop forwarding node, first determines the bandwidth of the link between itself and the next hop node, and then determines a smaller value between the received bandwidth and the determined bandwidth and carries it in the route announcement message sent by itself to the previous hop forwarding node. In this way, the bandwidth carried in the route announcement message received by each forwarding node is the minimum bandwidth on the link from the next hop node of the forwarding node to the destination node.
[0150] In a scenario where the bandwidth of the link carried by the first route announcement message is the minimum bandwidth on the link from the second forwarding node to the destination node in the first route, the first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the first route announcement message. The implementation method can be: the first forwarding node determines the smaller bandwidth between the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the first route announcement message, and uses the smaller bandwidth as the bandwidth of the first route.
[0151] Figure 5 FIG. 1 is a flow chart of a bandwidth notification process provided by an embodiment of the present application. Figure 5As shown in the figure, at the data level, the data flow is transmitted from the cell site gate (CSG) 1 to the customer premise equipment (CPE), where CPE can also be called customer terminal equipment or customer premise equipment. At the control level, when the access service gateway (ASG) 1 transmits the MAC address of the destination node, it carries the link bandwidth information 20GE from the ASG1 outbound interface to the CPE, and records the information in the route advertisement message, which is then transmitted to the radio service gateway (RSG) 1. RSG1 calculates the minimum value of the bandwidth value (50GE) of the link between itself and the next hop (ASG1) and the received bandwidth (20GE), and regenerates the route advertisement message and transmits it to ASG3. ASG3 calculates the minimum value of the bandwidth value (40GE) of the link between itself and the next hop (RSG1) and the received bandwidth (20GE), and regenerates the route advertisement message and transmits it to CSG1. CSG1 calculates the minimum value of 10GE between the bandwidth of the link between itself and the next hop (ASG3) (10GE) and the received bandwidth (20GE). CSG1 obtains that the minimum bandwidth on the route CSG1→ASG3→RSG1→ASG1→CPE is 10GE.
[0152] Similarly, when ASG2 transmits the MAC address of the destination node, it carries the link bandwidth information 20GE of the outbound interface of ASG2 to CPE, records the information in the route advertisement message, and transmits it to RSG2. RSG2 calculates the minimum value of 20GE between the bandwidth value (40GE) of the link between itself and the next hop (ASG2) and the received route bandwidth (20GE), and regenerates the route advertisement message to transmit it to ASG4. ASG4 calculates the minimum value of 20GE between the bandwidth value (30GE) of the link between itself and the next hop (RSG2) and the received bandwidth (20GE), and regenerates the route advertisement message to transmit it to CSG1. CSG1 calculates the minimum value of 20GE between the bandwidth value (25GE) of the link between itself and the next hop (ASG4) and the received bandwidth (20GE), and CSG1 obtains the minimum bandwidth value 20GE on the route CSG1→ASG4→RSG2→ASG2→CPE.
[0153] Based on the above two processes, CSG1 can obtain the minimum bandwidth of each of the two routes. Therefore, the ratio between the load sharing weights of the two routes can be set to 1:2, achieving the purpose of unequal load sharing based on route bandwidth.
[0154] In addition, for Figure 5In the communication network shown in the figure, all routers realize route interconnection. Among them, RSG1 / 2 establishes BGP neighbor relationship with ASG1 / 2 and ASG3 / 4, and ASG3 / 4 establishes BGP neighbor relationship with CSG. In EVPN, route announcement messages are transmitted through BGP, and BGP AIGP function is extended on routers, so that routers can carry bandwidth information hop by hop through route announcement messages. Figure 5 As shown in the figure, when the remote router ASG1 / 2 device of EVPN announces the MAC address of the destination node connected to the CPE through BGP hop by hop based on the route announcement message, the route announcement message is extended to carry the hop-by-hop link bandwidth information, that is, each time it passes through a device, the bandwidth information of the next hop device iterated to is extended to the route announcement message. When passing the route announcement message to the next device, the next device takes the relatively smaller bandwidth between the bandwidth of the link between itself and the next hop and the bandwidth carried in the route announcement message as the bandwidth information to be announced to the next device. Figure 5 As shown in the figure, in the direction from headquarters to branch (that is, from CPE to CSG1), when ASG1 transmits the route notification message, it carries the link bandwidth between ASG1->CPE to RSG1. RSG1 calculates the min(RSG1->ASG1,ASG1->CPE) bandwidth and transmits it to ASG3. ASG3 also calculates the smaller bandwidth value and transmits it to CSG1. The transmission process of ASG2 is similar to that of ASG1, so it will not be repeated here. CSG1 finally calculates the bandwidth ratio of the two routes as the weight for unequal load sharing.
[0155] Optionally, the bandwidth of the link from the second forwarding node to the destination node in the first route carried in the above-mentioned first route announcement message may also refer to the bandwidth of the link between each two adjacent forwarding nodes on the link between the second forwarding node and the destination node. In this scenario, each forwarding node does not need to compare the bandwidth carried in the route announcement message with the bandwidth between itself and the next hop node, but only needs to continue to add the bandwidth of the link between itself and the next hop node in the route announcement message. Finally, the first forwarding node itself uniformly calculates the minimum bandwidth on each link segment from itself to the destination node to obtain the minimum bandwidth on the first route. This implementation method can reduce the calculation time of each forwarding node, but it is easy to cause the route announcement message to be relatively large, thereby causing a waste of network resources.
[0156] The above explanation of the route advertisement message is based on the example that the bandwidth of the route is the minimum bandwidth of each link included in the route. If the bandwidth of the route is the average bandwidth of each link included in the route, each node can also publish the route advertisement message in the same manner as above, which will not be described in detail here.
[0157] Figure 6This is a schematic diagram of the format of the routing advertisement message provided in the request for comments (RFC) 7311. The content of this document and the relevant parts of this article are incorporated into this text as if they were copied as a whole. For any description that contradicts or conflicts with this article, the description in this article shall prevail. Figure 6 As shown, the route advertisement message is an AIGP TLV, the type definition in the AIGP TLV is 1, the length is defined as 11, and the value is used to carry the advertised MAC address and the accumulated link cost value of the destination node. The meaning of the type definition of 1 and the definition of the length definition of 11 can be referred to the explanation in RFC7311, and will not be described in detail here.
[0158] Therefore, in one possible implementation, Figure 7 As shown, a sub-TLV can be added to the route advertisement message of RFC7311. For the first route advertisement message sent from the second forwarding node to the first forwarding node, the sub-TLV added in the first route advertisement message is used to carry the bandwidth of the link from the second forwarding node to the destination node in the first route. The type of the newly added sub-TLV can be set to 2, the length can be set to 11, and the value can reuse the maximum link bandwidth value in the IGP sub-TLV. It should be noted that although the value of the newly added sub-TLV can reuse the maximum link bandwidth value in the IGP sub-TLV, the bandwidth of the link carried by the newly added sub-TLV can be the minimum bandwidth on the link, the average bandwidth on the link, or the bandwidth between each adjacent forwarding node included in the link.
[0159] It should be noted that Figure 7 It is merely a possible format diagram of a routing advertisement message with a newly added sub-TLV, and does not constitute a limitation on the format of the routing advertisement message provided in the application embodiment.
[0160] In addition, currently in the ISIS protocol, RFC5305 has a related sub-TLV definition for link bandwidth, so the first forwarding node can collect the bandwidth of the link between itself and the next hop node through the sub-TLV for link bandwidth. After collecting the bandwidth of the link between itself and the next hop node through RFC5305, the routing advertisement message can be published based on RFC7311. It will not be described in detail here.
[0161] The above content is explained by taking the first forwarding node itself as an example to determine the bandwidth of each route. In another possible implementation, the bandwidth of each route can also be determined by the control node, and then the control node sends the bandwidth of each route to the first forwarding node, and then the first forwarding node determines the load sharing weight of each route based on the bandwidth of each route. The implementation method of the control node determining the bandwidth of each route will be described below. Figure 8 The detailed description is given in the embodiment shown and will not be elaborated here.
[0162] Step 402: The first forwarding node determines the load sharing weight of each route according to the bandwidth of multiple routes.
[0163] The implementation of step 402 is Figure 3 The illustrated embodiment has been described in detail and will not be repeated here.
[0164] In addition, based on the above Figure 3 As can be seen from the explanation in step 303 in , the bandwidth of the link can be the reserved bandwidth of the link or the remaining bandwidth of the link. Moreover, when the bandwidth of the link is the remaining bandwidth of the link, since the traffic on the link may change in real time, the remaining bandwidth of the link may also change dramatically. In this case, the bandwidth on each route also changes dynamically, so that the load sharing weight of each route may be dynamically adjusted accordingly, so that the adjusted load sharing weight is more in line with the needs of the network.
[0165] In a possible implementation, the implementation process of dynamically adjusting the load sharing weight can be: for the first route among each route, the second forwarding node can be configured to periodically publish a route announcement message, so that the first forwarding node can periodically determine the bandwidth of the first route. In this scenario, after determining the bandwidth of the first route each time, the first forwarding node can determine whether the change value between the bandwidth of the currently determined first route and the historical remaining bandwidth needs to be greater than the reference amplitude. If it is greater, the load sharing weights of each route are readjusted; if it is not greater, there is no need to adjust the load sharing weights of each route. That is, the first forwarding node will determine the load sharing weights of each route according to the bandwidth of each route only when the bandwidth of the first route meets the trigger condition. Among them, the trigger condition is that the change value between the current bandwidth of the first route and the historical bandwidth of the first route is greater than the reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0166] In another possible implementation, the implementation process of the above-mentioned dynamic adjustment of the load sharing weight can be: when the second forwarding node determines that the change value between the bandwidth of the link between itself and the target node and the historical bandwidth is greater than the reference amplitude, it can trigger the issuance of a route announcement message to the first forwarding node. When the first forwarding node receives the route announcement message, it indicates that the bandwidth of the current first route meets the triggering condition, and therefore the load sharing weight can be adjusted directly based on the received route announcement message.
[0167] For example, for the tail node on any route, if the remaining bandwidth of the link between itself and the destination node changes dramatically, a new round of route notification messages will be triggered to notify the first forwarding node to adjust the load sharing weights on each route in a timely manner.
[0168] That is, in the embodiment of the present application, the load sharing weight adjustment may be triggered by other forwarding nodes, or by the first forwarding node.
[0169] In summary, in the embodiments of the present application, the routing announcement message in the traditional technology is expanded so that the routing announcement message can carry not only the destination address to be learned, but also the bandwidth of the link, thereby realizing the technical solution of sharing the traffic according to the bandwidth ratio in the embodiments of the present application to improve the link bandwidth utilization.
[0170] Figure 8 1 is a flow chart of another method for obtaining load sharing weights provided in an embodiment of the present application. The method is applied to a control node in a communication network. Figure 8 As shown, the method includes the following steps:
[0171] Step 801: A control node determines a bandwidth of each of a plurality of routes, where the plurality of routes refer to routes from a first forwarding node to a destination node, and the first forwarding node is any one of the plurality of forwarding nodes.
[0172] In an embodiment of the present application, in order to enable the control node to configure the load sharing weight of each route, in a possible implementation method, each forwarding node in the communication network can report a link state message to the control node. The link state message carries the identifier of the link between the reporter and the neighbor node and the bandwidth of the link on the route to the target node indicated by a certain destination address. In this way, the control node can restore the various routes from the first forwarding node to a certain destination node and the bandwidth of each route based on the link state messages reported by each forwarding node, thereby configuring the load sharing weight of each route based on the bandwidth of each route.
[0173] Therefore, the implementation method of step 801 can be: the control node receives the link status message reported by one or more forwarding nodes among the forwarding nodes, the link status message carries the target destination address and the link bandwidth between the node that reports the link status message and the next hop node on the route to the destination node indicated by the target destination address, and the control node determines multiple routes from the first forwarding node to the destination node indicated by the target address, and the bandwidth of each of the multiple routes based on the reported link status messages.
[0174] The bandwidth of each of the above routes can also be the minimum bandwidth on the route. In this way, when the control node determines any route, it can determine a minimum bandwidth based on the bandwidth of the link between any two adjacent forwarding nodes among the forwarding nodes that constitute the route, and use the minimum bandwidth as the bandwidth of the route.
[0175] The bandwidth of the above-mentioned routes can also be the average bandwidth on the routes. In this way, when the control node determines any route, it can determine an average bandwidth based on the bandwidth of the link between any two adjacent forwarding nodes among the forwarding nodes constituting the route, and use the average bandwidth as the bandwidth of the route.
[0176] In addition, the bandwidth of the link between any two adjacent forwarding nodes may be a link reserved bandwidth or a link remaining bandwidth, which will not be described in detail herein.
[0177] In a possible implementation, each forwarding node can report a link state message to the control node through the existing BGP link state (LS) protocol. At this time, the link state message includes a sub-TLV, which is used for the bandwidth of the link bandwidth between the node reporting the link state message and the next hop node. The specific format of the link state message will be described in detail in the following embodiments, and will not be described here. In addition, the control node can be a network control engine (NCE) or a controller in other networks.
[0178] In addition, if Figure 5As shown, in the EVPN technology, each forwarding node in the communication network includes an ASG and a CSG. In this scenario, each forwarding node can report a link state message to the control node respectively. Optionally, considering that the number of CSGs in the communication network is usually large, in order to avoid network congestion at the control node, the CSG can transmit a link state message to the ASG based on the IGP, so as to report it to the control node through the ASG link state message. At this time, the link state message reported by the above one or more forwarding nodes includes the link state message reported by the ASG, and the link state message reported by the ASG includes not only the bandwidth of the link between itself and the next hop node, but also carries the bandwidth of the link between the CSG and the next hop node.
[0179] Fig. 9 Schematic diagram of each forwarding node reporting a link status message provided by an embodiment of the present application. Fig. 9 As shown, all forwarding nodes (CSG, ASG, RSG) achieve route interconnection through IGP (ISIS / OSPF). ASG, RSG and control node establish BGP-LS interconnection. CSG can transmit the destination address of the message that can be forwarded by this device, the identifier of the link between this device and ASG on the route to the destination node indicated by the destination address, and the bandwidth information of the link to ASG through the link state message based on IGP, so as to report the destination address, the identifier of the link between this device and ASG, and the bandwidth information of the link to the control node through ASG. ASG and RSG also send the destination address of the message that can be forwarded by this device and the bandwidth information of the link between this device and the next hop forwarding node on the route to the destination node indicated by the destination address to the control node through the link state message based on BGP-LS. That is, for ASG3, when ASG3 uploads the bandwidth information of the link between this device and the next hop forwarding node, it also reports the bandwidth information of the link between CSG1 and ASG3. Similarly, the related forwarding process of ASG4 can refer to ASG3, and will not be described in detail here.
[0180] After receiving the link state messages reported by each forwarding node, the control node may first select a specific destination address (that is, a specific EVPN instance), that is, the target destination address, and then perform route restoration through each link state message carrying the target destination address, because the forwarding node may report link state messages for multiple destination addresses. Fig. 9As shown in the figure, the control node can restore the detailed hop-by-hop information of the two routes from CSG to CPE of the EVPN service based on the MAC address of the CPE or the MAC address of the node to which the CPE is connected. After restoring the two routes, the control node can determine the bandwidth of each of the two routes based on the bandwidth information of each link segment on the two routes in the reported link state message, thereby obtaining the minimum bandwidth of 10GE on CSG1→ASG3→RSG1→ASG1→CPE and the minimum bandwidth value of 20GE on CSG1→ASG4→RSG2→ASG2→CPE. Therefore, the control node can determine that the load sharing ratio of the two routes is 1:2, and send the sharing ratio to CSG1, thereby achieving the purpose of non-equal sharing ratio through CSG1.
[0181] From this we can see that for Figure 5 In the EVPN shown, all devices transmit link bandwidth information to the control node based on the link bandwidth reporting function of BGP-LS. The control node can view the bandwidth of the link by restoring the EVPN service link information. The control node enables the EVPN non-equal-cost route load sharing weight calculation function to determine the load sharing weight of each route, and dynamically sends the calculation results to the forwarding node, which improves the overall control of the control node over the network bandwidth utilization, optimizes the network utilization, and effectively solves the shortcomings of equal-cost load sharing in traditional technologies.
[0182] In addition, the link status message may be a link status message defined in the RFC7752 protocol. Since the link status message defined in the RFC7752 protocol has defined a sub-TLV that can carry the link bandwidth, the embodiment of the present application may directly use the sub-TLV in the link status message defined in the RFC7752 protocol to report the link bandwidth information to the control node. The specific format of the link status message defined in the RFC7752 protocol and the sub-TLV that can carry the link bandwidth will not be described in detail in the embodiment of the present application.
[0183] Step 802: The control node determines the load sharing weight of each route based on the bandwidth of each route.
[0184] The implementation of step 802 is Figure 3 The illustrated embodiment has been described in detail and will not be repeated here.
[0185] It should be noted that if the bandwidth of any route is determined based on the link remaining bandwidth of each link included in the corresponding route, in this scenario, the implementation process of the control node determining the load sharing weight of each route based on the bandwidth of each route in step 802 can be: when the bandwidth of the first route meets the trigger condition, the load sharing weight of each route is determined according to the bandwidth of each route. The trigger condition is that the change value between the current bandwidth of the first route and the historical bandwidth of the first route is greater than the reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0186] The above implementation method can dynamically adjust the load sharing weight of each route based on the change of remaining bandwidth. For details, please refer to Figure 3 The detailed explanation of the load sharing weights of each route by the first forwarding node based on the change of the remaining bandwidth in the embodiment will not be repeated here.
[0187] Step 803: The control node sends the load sharing weights of each route to the first forwarding node.
[0188] pass Figure 8 The illustrated embodiment can realize that the control node uniformly sends the load sharing weights of each route, thereby realizing the control of the bandwidth utilization rate of each route in the network.
[0189] In another possible implementation, after the control node determines the bandwidth of each route for the first forwarding node, it can also send the bandwidth of each route to the first forwarding node, and the first forwarding node determines the load sharing weight of each route based on the bandwidth of each route, which will not be described in detail here.
[0190] Next, the structure of each node in the communication network provided in the embodiment of the present application is explained.
[0191] Fig.10 It is a structural diagram of a network device provided in an embodiment of the present application. The network device can be any forwarding node among the multiple forwarding nodes included in the communication network in any of the above embodiments, can be a head node, or can be an intermediate node with multiple routes to the destination node. The network device 1000 can be a switch, a router or other network device that forwards messages. In this embodiment, the network device 1000 includes: a main control board 1010, an interface board 1030 and an interface board 1040. In the case of multiple interface boards, a switching network board (not shown in the figure) can be included, and the switching network board is used to complete data exchange between each interface board (the interface board is also called a line card or a service board).
[0192] The main control board 1010 is used to complete functions such as system management, equipment maintenance, and protocol processing. The interface boards 1030 and 1040 are used to provide various service interfaces (for example, POS interface, GE interface, ATM interface, etc.) and realize message forwarding. The main control board 1010 mainly includes three types of functional units: system management control unit, system clock unit, and system maintenance unit. The main control board 1010, the interface board 1030, and the interface board 1040 are connected to the system backplane through the system bus to achieve intercommunication. The interface board 1030 includes one or more processors 1031. The processor 1031 is used to control and manage the interface board and communicate with the central processor on the main control board, as well as to forward messages. The memory 1032 on the interface board 1030 is used to store forwarding table entries, and the processor 1031 forwards messages by searching the forwarding table entries stored in the memory 1032.
[0193] The interface board 1030 includes one or more network interfaces 1033 for receiving messages sent by the previous hop node and sending the processed messages to the next hop node according to the instruction of the processor 1031. In the embodiment of the present application, the messages forwarded by the forwarding node may include three categories, the first category is data messages, the second category is routing announcement messages, and the third category is link status messages. When the forwarded message is a data message, the specific implementation process of the network interface 1033 can refer to Figure 3 Step 301 in the embodiment is used to receive a data message to be forwarded. When the forwarded message is a routing advertisement message, the specific implementation process of the network interface 1033 can refer to Figure 4 Step 401 in the embodiment is used to receive a routing notification message sent by the next-hop node. Furthermore, in the scenario where the forwarding node is an intermediate node, the one or more network interfaces 1033 are also used to send the routing notification message involved in the above step 401 to the forwarding node of the previous hop, so that each forwarding node can configure its own load sharing weight. In addition, when the forwarded message is a link status message, the one or more network interfaces 1033 are also used to send the link status message involved in step 801 to the control node, so that the control node can Figure 8 The load sharing weight configured for the forwarding node is issued from step 801 to step 803. The processor 1031 can be used to refer to step 401 to step 402 to determine the load sharing weight on each route and the link state message involved in step 801. The specific functions of the processor 1031 will not be described one by one here.
[0194] It is understandable that Fig.10 As shown, this embodiment includes multiple interface boards and adopts a distributed forwarding mechanism. Under this mechanism, the operation on the interface board 1040 is basically similar to the operation on the interface board 1030. For the sake of brevity, it will not be repeated. In addition, it can be understood that Fig.10 The processor 1031 and / or 1041 in the interface board can be a dedicated hardware or chip, such as a network processor or an application specific integrated circuit (application specific integrated circuit) to implement the above functions. This implementation method is generally referred to as the forwarding plane using dedicated hardware or chip processing. The specific implementation method using the network processor as a dedicated hardware or chip can be referred to below Fig.11 In another embodiment, the processor 1031 and / or 1041 may also use a general-purpose processor, such as a general-purpose CPU, to implement the functions described above. For details, please refer to the following Fig.15 The embodiment shown.
[0195] In addition, it should be noted that there may be one or more main control boards, and when there are multiple boards, they may include a main main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capability of the device, the more interface boards are provided. In the case of multiple interface boards, the multiple interface boards can communicate with each other through one or more switching network boards, and when there are multiple boards, they can jointly realize load sharing and redundant backup. Under the centralized forwarding architecture, the device may not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. Under the distributed forwarding architecture, the device includes multiple interface boards, and data exchange between multiple interface boards can be realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with distributed architecture are greater than those of devices with centralized architecture. Which architecture to adopt depends on the specific networking deployment scenario, and no limitation is made here.
[0196] In a specific embodiment, the memory 1032 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1032 may exist independently and be connected to the processor 1031 via a communication bus. The memory 1032 may also be integrated with the processor 1031.
[0197] The memory 1032 is used to store program codes, and the processor 1031 controls the execution to execute the method for forwarding messages provided in the above embodiment. The processor 1031 is used to execute the program codes stored in the memory 1032. The program codes may include one or more software modules. The one or more software modules may be as follows: Fig.12 or Fig.13 The software modules provided in the embodiments.
[0198] In a specific embodiment, the network interface 1033 may be a device such as a transceiver for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area networks (WLAN), etc.
[0199] Fig.11It is a structural schematic diagram of another network device provided in an embodiment of the present application. The network device may be the first forwarding node among the multiple forwarding nodes in the communication network provided in any embodiment of the above figure. The first forwarding node may be a head node, or may be an intermediate node with multiple routes to the destination node. The network device 1100 may be a switch, a router, or other network device for forwarding messages. In this embodiment, the network device 1100 includes: a main control board 1110, an interface board 1130, a switching network board 1120, and an interface board 1140. The main control board 1110 is used to complete functions such as system management, equipment maintenance, and protocol processing. The switching network board 1120 is used to complete data exchange between various interface boards (interface boards are also called line cards or service boards). Interface boards 1130 and 1140 are used to provide various service interfaces (for example, POS interfaces, GE interfaces, ATM interfaces, etc.) and realize the forwarding of data packets. The control plane is composed of various control units of the main control board 1110 and control units on interface boards 1130 and 1140. There are mainly three types of functional units on the main control board 1110: system management control unit, system clock unit and system maintenance unit. The main control board 1110, interface boards 1130 and 1140, and switching network board 1120 are connected to the system backplane through a system bus to achieve intercommunication. The central processor 1131 on the interface board 1130 is used to control and manage the interface board and communicate with the central processor on the main control board. In the scenario where the forwarded message is a data message, the forwarding table entry memory 1134 on the interface board 1130 is used to store the forwarding table entries, and the network processor 1132 forwards the message by searching the forwarding table entries stored in the forwarding table entry memory 1134. The specific implementation method can be referred to. Figure 3 Step 302 in the embodiment.
[0200] In addition, in the scenario where the forwarded message is a routing advertisement message, the physical interface card 1133 of the interface board 1130 is used to receive the above Figure 4 The specific implementation process will not be described one by one here.
[0201] The network processor 1132 is used to determine the routing advertisement message involved in step 401. The routing advertisement message can be any routing advertisement message in the above embodiments. The specific functions of the network processor 1132 will not be described one by one here.
[0202] Then, the processed route advertisement message may also be sent to other adjacent forwarding nodes through the physical interface card 1133 .
[0203] In addition, in the scenario of forwarding the link notification message, the physical interface card 1133 is also used to send the link status message involved in step 801 to the control node, so that the control node can Figure 8Steps 801 to 803 in the above method deliver the load sharing weights configured on each forwarding node, and the specific implementation process will not be described one by one here.
[0204] It is understandable that Fig.11 As shown, this embodiment includes multiple interface boards and adopts a distributed forwarding mechanism. Under this mechanism, the operation on the interface board 1140 is basically similar to the operation on the interface board 1130, and for the sake of brevity, it will not be repeated. In addition, as mentioned above, Fig.11 The functions of the network processors 1132 and 1142 can be replaced by application specific integrated circuits (ASICs).
[0205] In addition, it should be noted that there may be one or more main control boards, and when there are multiple boards, they may include a main main control board and a standby main control board. There may be one or more interface boards. The stronger the data processing capability of the device, the more interface boards are provided. There may also be one or more physical interface cards on the interface board. There may be no switching network board, or there may be one or more switching network boards. When there are multiple switching network boards, load sharing and redundant backup can be achieved together. In a centralized forwarding architecture, the device may not need a switching network board, and the interface board is responsible for the processing function of the service data of the entire system. In a distributed forwarding architecture, the device may have at least one switching network board, and data exchange between multiple interface boards is realized through the switching network board, providing large-capacity data exchange and processing capabilities. Therefore, the data access and processing capabilities of network devices with distributed architectures are greater than those of devices with centralized architectures. Which architecture to adopt depends on the specific networking deployment scenario, and no limitation is made here.
[0206] Fig.12 1 is a schematic diagram of the structure of a first forwarding node in a communication network provided in an embodiment of the present application. The communication network includes multiple forwarding nodes, and the first forwarding node is any one of the multiple forwarding nodes. Fig.12 As shown, the first forwarding node 1200 includes:
[0207] The receiving module 1201 is used to receive a message, which carries a destination address. For specific implementation methods, please refer to Figure 3 Step 301 in the embodiment.
[0208] The determination module 1202 is used to determine multiple routes according to the destination address, where the multiple routes refer to routes from the first forwarding node to the destination node indicated by the destination address. Figure 3 Step 302 in the embodiment.
[0209] The acquisition module 1203 is used to obtain the load sharing weight of each route in the multiple routes. The load sharing weight of any route is used to indicate the probability of selecting the corresponding route from the multiple routes to forward the message. For specific implementation methods, please refer to Figure 3 Step 303 in the embodiment.
[0210] The sending module 1204 is used to select a route from multiple routes to forward the message according to the load sharing weight of each route. Figure 3 Step 304 in an embodiment.
[0211] Optionally, the load sharing weight of each route is associated with the bandwidth of each route.
[0212] Optionally, a ratio of the load sharing weights between any two routes among the routes is consistent with a ratio of the bandwidths between any two routes.
[0213] Optionally, the bandwidth of any route is a minimum value or an average value of bandwidths of links included in any route.
[0214] Optionally, the bandwidth of each link is a link reserved bandwidth or a link remaining bandwidth.
[0215] Optionally, obtain a module for:
[0216] Obtain the load sharing weight of each route from the locally stored weight data.
[0217] Optionally, the acquisition module is further used to obtain the bandwidth of each route;
[0218] The determination module is further used to determine the load sharing weight of each route according to the bandwidth of each route;
[0219] The first forwarding node also includes a storage module, which is used to add the load sharing weight of each route to the weight data.
[0220] Optionally, the acquisition module is used to:
[0221] receiving a first route advertisement message sent by a second forwarding node, where the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among the routes, the first route is any one of the routes, and the first route advertisement message carries a destination address and a bandwidth of a link from the second forwarding node to the destination node in the first route;
[0222] Obtaining a bandwidth of a link between a first forwarding node and a second forwarding node;
[0223] The bandwidth of the first route is determined based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message.
[0224] Optionally, the bandwidth of the link carried by the first route advertisement message is the minimum bandwidth of the link between the second forwarding node and the destination node in the first route;
[0225] The acquisition module is used to:
[0226] A smaller bandwidth between a bandwidth of a link between the first forwarding node and the second forwarding node and a bandwidth of a link carried in the first route advertisement message is determined, and the smaller bandwidth is used as a bandwidth of the first route.
[0227] Optionally, the first route advertisement message carries a subtype length value TLV, and the sub-TLV is used to carry the bandwidth of the link between the second forwarding node and the destination node in the first route.
[0228] Optionally, the bandwidth of the link carried in the first route advertisement message is the remaining bandwidth on the link;
[0229] The acquisition module is used to:
[0230] Obtaining a remaining bandwidth of a link between the first forwarding node and the second forwarding node;
[0231] The bandwidth of the first route is determined based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route advertisement message.
[0232] Optionally, the determination module is used to:
[0233] When the bandwidth of the first route meets the trigger condition, the load sharing weight of each route is determined according to the bandwidth of each route;
[0234] The trigger condition is that the change between the current bandwidth of the first route and the historical bandwidth of the first route is greater than a reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0235] Optionally, the first route advertisement message carries a sub-TLV, where the sub-TLV is used to carry the bandwidth of the link from the second forwarding node to the destination node in the first route.
[0236] Optionally, the receiving module is further used for:
[0237] Receive the load sharing weight of each route sent by the control node, where the load sharing weight of each route is determined by the control node based on the bandwidth of each route;
[0238] The first forwarding node also includes a storage module, which is used to add the load sharing weight of each route to the weight data.
[0239] Optionally, the sending module is further used for:
[0240] A link state message is reported to the control node, where the link state message carries a destination address and a link bandwidth between a first forwarding node and a next hop node on a first route, where the first route is any one of the multiple routes.
[0241] Optionally,
[0242] The receiving module is also used to receive the bandwidth of each route sent by the control node;
[0243] The determination module is further used to determine the load sharing weight of each route according to the bandwidth of each route;
[0244] The first forwarding node also includes a storage module, which is used to add the load sharing weight of each route to the weight data.
[0245] In summary, if there are multiple routes from the first forwarding node to the destination node indicated by the destination address carried by the message, load sharing weights are pre-configured for each of these multiple routes, so that a route is subsequently selected to forward the message based on the load sharing weights of each route. Since the load sharing weight of any route is used to indicate the probability of selecting the corresponding route from these multiple routes to forward the message, in the embodiment of the present application, equal-cost load sharing is not performed blindly, but forwarding the message based on the pre-configured load sharing weights. In this way, the load sharing weights on each route can be customized based on the problems that arise in forwarding messages during the equal-cost load sharing process, thereby avoiding the recurrence of problems that arise when forwarding messages during equal-cost load sharing.
[0246] It should be noted that: the first forwarding node provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when forwarding a message. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the first forwarding node provided in the above embodiment and the method embodiment for forwarding a message belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0247] Fig.13 1 is a schematic diagram of the structure of a first forwarding node in another communication network provided in an embodiment of the present application. The communication network includes multiple forwarding nodes, and the first forwarding node is any one of the multiple forwarding nodes. Fig.13 As shown, the first forwarding node 1300 includes:
[0248] The acquisition module 1301 is used to acquire the bandwidth of multiple routes, where the multiple routes refer to the routes from the first forwarding node to the destination node. Figure 4 Step 401 in the embodiment.
[0249] The determination module 1302 is further used to determine the load sharing weights of the multiple routes according to the bandwidths of the multiple routes. The load sharing weight of any route is used to indicate the probability of selecting the corresponding route from the multiple routes to forward the message. For specific implementation methods, please refer to Figure 4 Step 402 in an embodiment.
[0250] Optionally, the acquisition module is used to:
[0251] receiving a first route advertisement message sent by a second forwarding node, where the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among multiple routes, the first route is any one of the multiple routes, and the first route advertisement message carries a destination address and a bandwidth of a link from the second forwarding node to the destination node in the first route;
[0252] Obtaining a bandwidth of a link between a first forwarding node and a second forwarding node;
[0253] The bandwidth of the first route is determined based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message.
[0254] Optionally, the bandwidth of any route is the minimum value of the bandwidths of all links included in any route;
[0255] The acquisition module is used to:
[0256] A smaller bandwidth between a bandwidth of a link between the first forwarding node and the second forwarding node and a bandwidth of a link carried in the first route advertisement message is determined, and the smaller bandwidth is used as a bandwidth of the first route.
[0257] Optionally, the bandwidth of the link carried in the first route advertisement message is the remaining bandwidth on the link;
[0258] The acquisition module is used to:
[0259] Obtaining a remaining bandwidth of a link between the first forwarding node and the second forwarding node;
[0260] The bandwidth of the first route is determined based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route advertisement message.
[0261] Optionally, the determination module is used to:
[0262] When the bandwidth of the first route meets the trigger condition, the load sharing weight of each route is determined according to the bandwidth of each route;
[0263] The trigger condition is that the change between the current bandwidth of the first route and the historical bandwidth of the first route is greater than a reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
[0264] Optionally, the first route advertisement message carries a subtype length value TLV, and the sub-TLV is used to carry the bandwidth of the link between the second forwarding node and the destination node in the first route.
[0265] In summary, if there are multiple routes from the first forwarding node to the destination node indicated by the destination address carried by the message, load sharing weights are pre-configured for each of these multiple routes, so that a route is subsequently selected to forward the message based on the load sharing weights of each route. Since the load sharing weight of any route is used to indicate the probability of selecting the corresponding route from these multiple routes to forward the message, in the embodiment of the present application, equal-cost load sharing is not performed blindly, but forwarding the message based on the pre-configured load sharing weights. In this way, the load sharing weights on each route can be customized based on the problems that arise in forwarding messages during the equal-cost load sharing process, thereby avoiding the recurrence of problems that arise when forwarding messages during equal-cost load sharing.
[0266] It should be noted that: the first forwarding node provided in the above embodiment only uses the division of the above functional modules as an example to illustrate when forwarding a message. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the first forwarding node provided in the above embodiment and the method embodiment for forwarding a message belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0267] Fig.14 is a schematic diagram of the structure of a control node in a communication network provided by an embodiment of the present application, wherein the communication network also includes multiple forwarding nodes. Fig.14 As shown, the control node 1400 includes:
[0268] The determination module 1401 is used to determine multiple routes from the first forwarding node to the destination node, and the bandwidth of each of the multiple routes. The first forwarding node is any one of the multiple forwarding nodes. For specific implementation methods, please refer to Figure 8 Step 801 in the embodiment.
[0269] The determination module 1401 is further used to determine the load sharing weight of each route based on the bandwidth of each route. The load sharing weight of any route is used to indicate the probability of selecting a corresponding route from multiple routes to forward a message. For specific implementation methods, please refer to Figure 8 Step 802 in an embodiment.
[0270] The sending module 1402 is used to send the load sharing weight of each route to the first forwarding node. Figure 8 Step 803 in the embodiment.
[0271] Optionally, the determination module is used to:
[0272] Acquire a link state message reported by one or more forwarding nodes among the forwarding nodes, where the link state message carries a destination address of a destination node and a bandwidth of a link between a node reporting the link state message and a next hop node on a route to the destination node;
[0273] According to each reported link status message, multiple routes from the first forwarding node to the destination node and the bandwidth of each of the multiple routes are determined.
[0274] Optionally, the bandwidth of any route is determined based on the link residual bandwidth of each link included in the corresponding route;
[0275] Determine the module used to:
[0276] Determine a change value between a current bandwidth of a first route among the routes and a historical bandwidth of the first route, where the first route is any one of the routes, and the historical bandwidth of the first route refers to the bandwidth of the first route used when the load sharing weights of the routes were most recently determined before the current time;
[0277] When the change value is greater than the reference amplitude, a step of determining a load sharing weight of each route based on the bandwidth of each route is performed.
[0278] Optionally, each forwarding node includes an access service gateway ASG and a base station side gateway CSG, and the CSG is connected to the ASG;
[0279] The link state message reported by one or more forwarding nodes includes the link state message reported by the ASG. The link state message reported by the ASG also carries the bandwidth of the link between the CSG and the next hop node.
[0280] In summary, if there are multiple routes from the first forwarding node to the destination node indicated by the destination address carried by the message, load sharing weights are pre-configured for each of these multiple routes, so that a route is subsequently selected to forward the message based on the load sharing weights of each route. Since the load sharing weight of any route is used to indicate the probability of selecting the corresponding route from these multiple routes to forward the message, in the embodiment of the present application, equal-cost load sharing is not performed blindly, but forwarding the message based on the pre-configured load sharing weights. In this way, the load sharing weights on each route can be customized based on the problems that arise in forwarding messages during the equal-cost load sharing process, thereby avoiding the recurrence of problems that arise when forwarding messages during equal-cost load sharing.
[0281] It should be noted that: the control node provided in the above embodiment only uses the division of the above functional modules as an example when sending down the load sharing weight. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above. In addition, the control node provided in the above embodiment and the method embodiment of forwarding messages belong to the same concept. The specific implementation process is detailed in the method embodiment, which will not be repeated here.
[0282] Fig.15 1500 is a schematic diagram of the structure of a network device provided in an embodiment of the present invention. The network device can be any forwarding node in the above embodiments, or a controllable node. When the network device is a forwarding node, the network device 1500 can be a switch, a router or other network device for forwarding messages. The specific functions of the network device 1500 can refer to the above Figure 3 as well as Figure 4 The specific implementation of the first forwarding node in the embodiment will not be described in detail here. When the network device is a control node, the specific function of the network device 1500 can refer to the aforementioned Figure 8 The specific implementation of the control node in the embodiment will not be described in detail here. Fig.15 The network device includes at least one processor 1501, a communication bus 1502, a memory 1503 and at least one communication interface 1504.
[0283] Processor 1501 may be a general-purpose central processing unit (CPU), an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present application. When the network device is used as any of the forwarding nodes of the communication network, processor 1501 is used to determine Figure 3as well as Figure 4 When the network device is used as a control node in the communication network, the processor 1501 is used to determine Figure 8 The load sharing weight of each route in the embodiment. The specific functions are not described here.
[0284] Communication bus 1502 may include a pathway for transmitting information between the above-mentioned components.
[0285] The memory 1503 may be a read-only memory (ROM) or other types of static storage devices that can store static information and instructions, a random access memory (RAM) or other types of dynamic storage devices that can store information and instructions, or an electrically erasable programmable read-only memory (EEPROM), a compact disc read-only memory (CD-ROM) or other optical disc storage, optical disc storage (including compressed optical disc, laser disc, optical disc, digital versatile disc, Blu-ray disc, etc.), a magnetic disk or other magnetic storage device, or any other medium that can be used to carry or store the desired program code in the form of instructions or data structures and can be accessed by a computer, but is not limited thereto. The memory 1503 may exist independently and be connected to the processor 1501 through the communication bus 1502. The memory 1503 may also be integrated with the processor 1501.
[0286] The memory 1503 is used to store the program code for executing the solution of the present application, and the execution is controlled by the processor 1501. The processor 1501 is used to execute the program code stored in the memory 1503. The program code may include one or more software modules. The control node or any of the multiple forwarding nodes in the above-mentioned embodiment can determine the data for developing the application through the processor 1501 and one or more software modules in the program code in the memory 1503. The one or more software modules may be Fig.13 or Fig.14 A software module provided in any embodiment.
[0287] The communication interface 1504 uses any transceiver-like device for communicating with other devices or communication networks, such as Ethernet, radio access network (RAN), wireless local area network (WLAN), etc. When the network device serves as any forwarding node among multiple forwarding nodes of the communication network, the communication interface 1504 is used to receive a first routing announcement message sent by a certain adjacent forwarding node, and send a second routing announcement message to other adjacent forwarding nodes. The specific implementation method can be referred to Figure 4 Step 401 in the embodiment. Alternatively, the communication interface 1504 is used to report the link status message to the control node. For specific implementation, please refer to Figure 8 Step 801 of the embodiment. Alternatively, the communication interface 1504 is used to receive a data message and forward the data message based on the forwarding table entry. In addition, when the network device acts as a control node in the communication network, the communication interface 1504 is used to receive a link state message reported by a forwarding node. The specific implementation method can be referred to Figure 8 Step 801 in the embodiment.
[0288] In a specific implementation, as an embodiment, the network device may include multiple processors, such as Fig.15 1501 and processor 1505 shown in FIG. Each of these processors may be a single-CPU processor or a multi-CPU processor. A processor herein may refer to one or more devices, circuits, and / or processing cores for processing data (e.g., computer program instructions).
[0289] The above network device can be a general network device or a dedicated network device. In a specific implementation, the network device can be a desktop computer, a portable computer, a network server, a personal digital assistant (PDA), a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of network device.
[0290] It is understandable that in Fig.15When the network device shown is any of the first forwarding nodes in the above method embodiments, this embodiment can also be based on a general physical server combined with the network function virtualization NFV technology to implement a virtual first forwarding node, the virtual first forwarding node is a virtual router, and can virtualize the second, third, N forwarding nodes (according to actual needs). The virtual first forwarding node can be a virtual machine (English: Virtual Machine, VM) running a program for providing a message sending function, and the virtual machine is deployed on a hardware device (for example, a physical server). A virtual machine refers to a complete computer system with complete hardware system functions simulated by software and running in a completely isolated environment. By reading this application, a person skilled in the art can combine NFV technology to virtualize multiple first nodes with the above functions on a general physical server. No further details will be given here.
[0291] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented by software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions may be transmitted from a website site, computer, server or data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, wireless, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium may be any available medium that a computer can access or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (eg, a floppy disk, a hard disk, a magnetic tape), an optical medium (eg, a digital versatile disc (DVD)), or a semiconductor medium (eg, a solid state disk (SSD)).
[0292] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0293] The above-mentioned embodiments are provided for the present application and are not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application shall be included in the protection scope of the present application.
Claims
1. A method for forwarding a message, characterized in that: The method is applied to a first forwarding node in a communication network, wherein the communication network is an Ethernet virtual private network EVPN, wherein the communication network includes a plurality of forwarding nodes, wherein each of the plurality of forwarding nodes has an extended inter-domain routing protocol accumulated internal gateway protocol metric BGP AIGP function, and wherein the first forwarding node is any one of the plurality of forwarding nodes. The first forwarding node receives a message, where the message carries a destination address; The first forwarding node determines a plurality of routes according to the destination address, where the plurality of routes refer to routes from the first forwarding node to the destination node indicated by the destination address; The first forwarding node obtains a load sharing weight of each of the multiple routes, where the load sharing weight of any route is used to indicate a probability of selecting a corresponding route from the multiple routes to forward the message; The first forwarding node selects a route from the multiple routes to forward the message according to the load sharing weights of the routes; The first forwarding node obtains the load sharing weight of each of the multiple routes, including: The first forwarding node obtains the load sharing weight of each route from the locally stored weight data; The method further comprises: The first forwarding node obtains the bandwidth of each route; The first forwarding node determines the load sharing weight of each route according to the bandwidth of each route; Adding the load sharing weight of each route to the weight data; The first forwarding node obtains the bandwidth of each route, including: The first forwarding node receives a first route advertisement message sent by a second forwarding node through an extended BGP AIGP function, the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among the routes, the first route is any one of the routes, the first route advertisement message includes an AIGP TLV and a subtype length value TLV, the AIGP TLV is used to carry the destination address, and the sub-TLV is used to carry the bandwidth of a link from the second forwarding node to the destination node in the first route; The first forwarding node obtains a bandwidth of a link between the first forwarding node and the second forwarding node; The first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message.
2. The method according to claim 1, characterized in that The load sharing weight of each route is associated with the bandwidth of each route.
3. The method according to claim 2, characterized in that The ratio of the load sharing weights between any two of the routes is consistent with the ratio of the bandwidths between the any two routes.
4. The method according to claim 2 or 3, characterized in that The bandwidth of any route is the minimum value or average value of the bandwidths of the links included in the route.
5. The method according to claim 4, characterized in that The bandwidth of each link is the link reserved bandwidth or the link remaining bandwidth.
6. The method according to claim 1, characterized in that The bandwidth of the link carried by the first route advertisement message is the minimum bandwidth of the link from the second forwarding node to the destination node in the first route; The first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the first route advertisement message, including: The first forwarding node determines a smaller bandwidth between a bandwidth of a link between the first forwarding node and the second forwarding node and a bandwidth of a link carried in the first route advertisement message, and uses the smaller bandwidth as a bandwidth of the first route.
7. The method according to claim 1, characterized in that The bandwidth of the link carried in the first routing advertisement message is the remaining bandwidth on the link; The first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node, including: The first forwarding node obtains a remaining bandwidth of a link between the first forwarding node and the second forwarding node; The first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message, including: The first forwarding node determines the bandwidth of the first route based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route advertisement message.
8. The method according to claim 7, characterized in that The first forwarding node determines the load sharing weight of each route according to the bandwidth of each route, including: When the bandwidth of the first route meets the trigger condition, determining the load sharing weight of each route according to the bandwidth of each route; The trigger condition is that a change between a current bandwidth of the first route and a historical bandwidth of the first route is greater than a reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
9. A method for determining load sharing weights, characterized in that: The method is applied to a first forwarding node in a communication network, wherein the communication network is an Ethernet virtual private network EVPN, wherein the communication network includes a plurality of forwarding nodes, wherein each of the plurality of forwarding nodes has an extended inter-domain routing protocol accumulated internal gateway protocol metric BGP AIGP function, and wherein the first forwarding node is any one of the plurality of forwarding nodes. The first forwarding node acquires bandwidths of multiple routes, where the multiple routes refer to routes from the first forwarding node to a destination node; The first forwarding node determines the load sharing weights of the multiple routes according to the bandwidths of the multiple routes, where the load sharing weight of any route is used to indicate the probability of selecting a corresponding route from the multiple routes to forward a message; The first forwarding node obtains bandwidths of multiple routes, including: The first forwarding node receives a first route advertisement message sent by a second forwarding node through an extended BGP AIGP function, the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among the multiple routes, the first route is any one of the multiple routes, the first route advertisement message includes an AIGP TLV and a subtype length value TLV, the AIGP TLV is used to carry the destination address, and the sub-TLV is used to carry the bandwidth of a link from the second forwarding node to the destination node in the first route; The first forwarding node obtains a bandwidth of a link between the first forwarding node and the second forwarding node; The first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message.
10. The method according to claim 9, characterized in that The bandwidth of any route is the minimum value of the bandwidths of the links included in the route; The first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message, including: The first forwarding node determines a smaller bandwidth between a bandwidth of a link between the first forwarding node and the second forwarding node and a bandwidth of a link carried in the first route advertisement message, and uses the smaller bandwidth as a bandwidth of the first route.
11. The method according to claim 9, characterized in that The bandwidth of the link carried in the first routing advertisement message is the remaining bandwidth on the link; The first forwarding node obtains the bandwidth of the link between the first forwarding node and the second forwarding node, including: The first forwarding node obtains a remaining bandwidth of a link between the first forwarding node and the second forwarding node; The first forwarding node determines the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message, including: The first forwarding node determines the bandwidth of the first route based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route advertisement message.
12. The method according to claim 11, characterized in that The first forwarding node determines the load sharing weight of each route according to the bandwidth of each route, including: When the bandwidth of the first route meets the trigger condition, determining the load sharing weight of each route according to the bandwidth of each route; The trigger condition is that a change between a current bandwidth of the first route and a historical bandwidth of the first route is greater than a reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
13. A first forwarding node in a communication network, characterized in that: The communication network is an Ethernet virtual private network EVPN, the communication network includes a plurality of forwarding nodes, each of the plurality of forwarding nodes has an extended inter-domain routing protocol accumulated internal gateway protocol metric BGP AIGP function, the first forwarding node is any one of the plurality of forwarding nodes, and the first forwarding node includes: A receiving module, used for receiving a message, wherein the message carries a destination address; A determination module, configured to determine a plurality of routes according to the destination address, wherein the plurality of routes refer to routes from the first forwarding node to the destination node indicated by the destination address; An acquisition module, used to acquire the load sharing weight of each of the multiple routes, wherein the load sharing weight of any route is used to indicate the probability of selecting a corresponding route from the multiple routes to forward the message; A sending module, configured to select a route from the multiple routes to forward the message according to the load sharing weights of the routes; Wherein, the acquisition module is used to: acquire the load sharing weight of each route from the locally stored weight data; The acquisition module is further used to acquire the bandwidth of each route; the determination module is further used to determine the load sharing weight of each route according to the bandwidth of each route; the first forwarding node also includes a storage module, which is used to add the load sharing weight of each route to the weight data; The acquisition module is used to: receive a first route announcement message sent by a second forwarding node through an extended BGP AIGP function, where the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among the routes, and the first route is any one of the routes, and the first route announcement message includes an AIGP TLV and a subtype length value TLV, where the AIGP TLV is used to carry the destination address, and the sub-TLV is used to carry the bandwidth of the link from the second forwarding node to the destination node in the first route; obtain the bandwidth of the link between the first forwarding node and the second forwarding node; and determine the bandwidth of the first route based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route announcement message.
14. The first forwarding node according to claim 13, characterized in that: The load sharing weight of each route is associated with the bandwidth of each route.
15. The first forwarding node according to claim 14, characterized in that: The ratio of the load sharing weights between any two of the routes is consistent with the ratio of the bandwidths between the any two routes.
16. The first forwarding node according to claim 14 or 15, characterized in that: The bandwidth of any route is the minimum value or average value of the bandwidths of the links included in the route.
17. The first forwarding node according to claim 16, characterized in that: The bandwidth of each link is the link reserved bandwidth or the link remaining bandwidth.
18. The first forwarding node according to claim 13, characterized in that: The bandwidth of the link carried by the first route advertisement message is the minimum bandwidth of the link from the second forwarding node to the destination node in the first route; The acquisition module is used for: A smaller bandwidth between a bandwidth of a link between the first forwarding node and the second forwarding node and a bandwidth of a link carried in the first route advertisement message is determined, and the smaller bandwidth is used as a bandwidth of the first route.
19. The first forwarding node according to claim 13, characterized in that: The bandwidth of the link carried in the first routing advertisement message is the remaining bandwidth on the link; The acquisition module is used for: Acquire a remaining bandwidth of a link between the first forwarding node and the second forwarding node; The bandwidth of the first route is determined based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route advertisement message.
20. The first forwarding node according to claim 19, characterized in that: The determination module is used for: When the bandwidth of the first route meets the trigger condition, determining the load sharing weight of each route according to the bandwidth of each route; The trigger condition is that a change between a current bandwidth of the first route and a historical bandwidth of the first route is greater than a reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
21. A first forwarding node in a communication network, characterized in that: The communication network is an Ethernet virtual private network EVPN, the communication network includes a plurality of forwarding nodes, each of the plurality of forwarding nodes has an extended inter-domain routing protocol accumulated internal gateway protocol metric BGP AIGP function, the first forwarding node is any one of the plurality of forwarding nodes, and the first forwarding node includes: An acquisition module, used to acquire bandwidths of multiple routes, where the multiple routes refer to routes from the first forwarding node to the destination node; The determination module is further used to determine the load sharing weights of the multiple routes according to the bandwidths of the multiple routes, and the load sharing weight of any route is used to indicate the probability of selecting a corresponding route from the multiple routes to forward a message; Wherein, the acquisition module is used for: receiving a first route advertisement message sent by a second forwarding node through an extended BGP AIGP function, where the second forwarding node is a next-hop forwarding node of the first forwarding node on a first route among the multiple routes, the first route is any one of the multiple routes, and the first route advertisement message includes an AIGP TLV and a subtype length value TLV, the AIGP TLV is used to carry the destination address, and the sub-TLV is used to carry the bandwidth of a link from the second forwarding node to the destination node in the first route; Obtaining a bandwidth of a link between the first forwarding node and the second forwarding node; The bandwidth of the first route is determined based on the bandwidth of the link between the first forwarding node and the second forwarding node and the bandwidth of the link carried in the route advertisement message.
22. The first forwarding node according to claim 21, characterized in that: The bandwidth of any route is the minimum value of the bandwidths of the links included in the route; The acquisition module is used for: A smaller bandwidth between a bandwidth of a link between the first forwarding node and the second forwarding node and a bandwidth of a link carried in the first route advertisement message is determined, and the smaller bandwidth is used as a bandwidth of the first route.
23. The first forwarding node according to any one of claim 21, characterized in that: The bandwidth of the link carried in the first routing advertisement message is the remaining bandwidth on the link; The acquisition module is used for: Acquire a remaining bandwidth of a link between the first forwarding node and the second forwarding node; The bandwidth of the first route is determined based on the remaining bandwidth of the link between the first forwarding node and the second forwarding node and the remaining bandwidth carried in the route advertisement message.
24. The first forwarding node according to claim 23, characterized in that: The determination module is used for: When the bandwidth of the first route meets the trigger condition, determining the load sharing weight of each route according to the bandwidth of each route; The trigger condition is that a change between a current bandwidth of the first route and a historical bandwidth of the first route is greater than a reference amplitude, and the historical bandwidth of the first route is the bandwidth used when the load sharing weight of the first route was determined most recently before the current one.
25. A system for forwarding messages, the system comprising a plurality of forwarding nodes; characterized in that: Any forwarding node among the multiple forwarding nodes is used to implement the method described in any one of claims 1-18, or the method described in any one of claims 9-12.
