Method for announcing route and network equipment

By identifying that when the number of interface switching times reaches the threshold in the EVPN VPLS network, the ESI value is obtained and sent through notification routing is solved, and the user traffic forwarding is not forwarded by MAC migration is achieved, and the stable forwarding of user traffic and effective bandwidth utilization is achieved.

CN119814640AActive Publication Date: 2025-04-11NEW H3C TECH CO LTD
View PDF 11 Cites 0 Cited by

Patent Information

Application Number
CN202411891401.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-20
Publication Date
2025-04-11
Estimated Expiration
2044-12-20

AI Technical Summary

Technical Problem

In EVPN VPLS networking, if devices under different PEs are configured incorrectly with the same MAC address, it will cause the MAC address information to be continuously synchronized between PEs, forming a loop, occupying a large amount of link bandwidth, and causing user traffic forwarding to be blocked during MAC migration.

Method used

By identifying in the first Leaf that reaches the threshold when the number of interface switching times that reach the same gateway MAC reaches the threshold, a custom ESI value is obtained and sent to the aggregation device and the second Leaf through notification routing, the aggregation device is allowed to send messages to the first Leaf and the second Leaf evenly according to the ESI value, and forwarding messages through multicast.

Benefits of technology

It effectively solves the problem of user traffic not being forwarded under MAC migration and migration suppression, avoids loop formation and link bandwidth occupation, and ensures stable forwarding of user traffic.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119814640A_ABST
    Figure CN119814640A_ABST
Patent Text Reader

Abstract

The invention provides a route notification method and network equipment, and the method comprises the steps: obtaining a first ESI value when the switching frequency of a first interface and a second interface which reach the same gateway MAC reaches a threshold value, and transmitting the first ESI value to convergence equipment and a second Leaf through a route notification. By means of the method, multicast forwarding is carried out in the MAC migration and migration suppression process, and the problem that user flow cannot be forwarded under the MAC migration and migration suppression conditions is effectively solved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present specification relates to the field of communication technology, and in particular to a method and network device for announcing routing. Background Art

[0002] A-Leaf (Access Leaf): A network-level aggregation device used to carry and access Internet services.

[0003] S-Leaf (Spine-leaf): Network backbone device, used for traffic forwarding between different aggregation devices within the network and with other networks.

[0004] In an EVPN VPLS network, if the same MAC address is incorrectly configured on devices under different PEs, the PEs will constantly synchronize MAC address information and update the local EVPN MAC address table. At this time, the PEs will think that the MAC address is constantly migrating. This may cause a loop between PEs, occupying a large amount of link bandwidth.

[0005] like Figure 1 A schematic diagram of a metropolitan area network is shown, in which pUPs have a master-slave relationship and publish the same virtual MAC (i.e., gateway MAC), and the outbound interface of the virtual MAC on the S-Leaf points to the master pUP. Under normal circumstances, user services are carried on the master pUP. When the link 6 in the figure above recovers from the fault, pUP1 will be promoted to master and pUP2 will be demoted to backup (or when link 6 fails, pUP1 will be demoted to backup and pUP2 will be promoted to master). However, it takes some time to smooth a large number of users. For the same virtual MAC (gateway), some users have been switched to pUP1 and some users are still on pUP2. At this time, the virtual MAC on the S-Leaf migrates back and forth on the interfaces pointing to the two UPs. Summary of the invention

[0006] In order to overcome the problems existing in the related art, this specification provides a method and a network device for announcing routing.

[0007] According to a first aspect of an embodiment of this specification, a method for advertising routing is provided. The method is applied to a first Leaf, where the first Leaf and a second Leaf are in a dual-homing relationship. The method includes:

[0008] When it is identified that the number of switchings between the first interface and the second interface reaching the same gateway MAC reaches a threshold, obtaining a first ESI value;

[0009] The first ESI value is sent to the aggregation device and the second Leaf through the advertisement route, so that after receiving the advertisement route carrying the first ESI value sent by the first Leaf and the second Leaf, the aggregation device sends the message to the first Leaf and the second Leaf according to the first ESI value.

[0010] Optionally, the method further includes:

[0011] Determine the monitoring period and configure thresholds;

[0012] When it is identified that the number of switchings between the first interface and the second interface reaching the same gateway MAC reaches a threshold, obtaining a first ESI value includes:

[0013] In a monitoring cycle, when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold, a first ESI value is acquired.

[0014] The first ESI value is an ESI value customized by an administrator, and the first ESI value is different from the ESI value corresponding to each interface in the first Leaf.

[0015] The step of sending the first ESI value to the aggregation device through a notification route includes:

[0016] The first ESI value and the gateway MAC are sent to the aggregation device via an announcement route.

[0017] The step of sending the first ESI value to the second Leaf through a notification route includes:

[0018] The first ESI value and the gateway MAC are sent to the second Leaf through the announcement route, so that the second Leaf records the correspondence between the first ESI value, the gateway MAC, the third interface and the fourth interface, and the second Leaf sends the announcement route carrying the first ESI value to the aggregation device, wherein the third interface and the fourth interface are interfaces associated with the gateway MAC.

[0019] Wherein, the method further comprises:

[0020] After obtaining the first ESI value, the corresponding relationship between the gateway MAC, the first ESI value, the first interface and the second interface is recorded.

[0021] Wherein, the method further comprises:

[0022] After receiving the message sent by the convergence device according to the first ESI value, the message is sent through the first interface and the second interface in a multicast manner according to the corresponding relationship.

[0023] It can be seen from the above embodiments that when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold (that is, the frequent migration condition is met), the first ESI value can be sent to the aggregation device through the VSI (and the second Leaf with a dual-affiliation relationship will also be sent to the aggregation device through the VIS with the first ESI value). After receiving the first Leaf and the second Leaf sending the same first ESI value, the aggregation device will send the message to the first Leaf and the second Leaf in a balanced manner. At the same time, the first Leaf and the second Leaf will send the message sent by the aggregation device to the outside through multicast, thereby effectively solving the problem that user traffic cannot be forwarded under MAC migration and migration suppression.

[0024] According to a second aspect of an embodiment of this specification, a network device is provided, the network device enabling a Leaf function, the network device comprising:

[0025] An identification module, configured to obtain a first ESI value when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold;

[0026] The notification module is used to send the first ESI value to the aggregation device and other Leaf nodes through the notification route, so that after receiving the notification route carrying the first ESI value, the aggregation device sends the message to the network device and other Leaf nodes according to the first ESI value.

[0027] Wherein, the network device further includes: a configuration module, used to determine a monitoring period and a configuration threshold;

[0028] The identification module is specifically used to obtain a first ESI value when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold within a monitoring cycle.

[0029] The first ESI value is an ESI value customized by an administrator, and the first ESI value is different from the ESI value of each interface in the first Leaf.

[0030] The notification module is specifically used to send the first ESI value and the gateway MAC to the aggregation device through the notification route.

[0031] The notification module is specifically used to send the first ESI value and the gateway MAC to the second Leaf through the notification route, so that the second Leaf records the correspondence between the first ESI value, the gateway MAC, the third interface and the fourth interface, and enables the second Leaf to send the notification route carrying the first ESI value to the aggregation device;

[0032] The third interface and the fourth interface are interfaces associated with the gateway MAC.

[0033] Wherein, the network device further includes: a processing module;

[0034] The processing module is used to record the correspondence between the gateway MAC, the first ESI value, the first interface and the second interface after obtaining the first ESI value, and after receiving the message sent by the aggregation device according to the first ESI value, send the message through the first interface and the second interface by multicast according to the correspondence.

[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present specification. BRIEF DESCRIPTION OF THE DRAWINGS

[0036] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the specification and, together with the description, serve to explain the principles of the specification.

[0037] Figure 1 This is a schematic diagram of a metropolitan area network layout shown in this specification according to an exemplary embodiment.

[0038] Figure 2 It is a schematic diagram of a network architecture shown in this specification according to an exemplary embodiment.

[0039] Figure 3 It is a flowchart of a method for advertising routing according to an exemplary embodiment of this specification. DETAILED DESCRIPTION

[0040] Exemplary embodiments will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. The implementations described in the following exemplary embodiments do not represent all implementations consistent with this specification. Instead, they are merely examples of devices and methods consistent with some aspects of this specification as detailed in the appended claims.

[0041] The terms used in this specification are for the purpose of describing specific embodiments only and are not intended to limit this specification. The singular forms "a", "the" and "the" used in this specification and the appended claims are also intended to include plural forms unless the context clearly indicates otherwise. It should also be understood that the term "and / or" used herein refers to and includes any or all possible combinations of one or more associated listed items.

[0042] It should be understood that although the terms first, second, third, etc. may be used in this specification to describe various information, this information should not be limited to these terms. These terms are only used to distinguish the same type of information from each other. For example, without departing from the scope of this specification, the first information may also be referred to as the second information, and similarly, the second information may also be referred to as the first information. Depending on the context, the word "if" as used herein may be interpreted as "at the time of" or "when" or "in response to determining".

[0043] like Figure 2 As shown in the figure, when a network failure triggers the active / standby switchover of UP1 and UP2, some users migrate to UP1 and some users are still on UP2. At this time, service traffic will be forwarded on UP1 and UP2 at the same time, and the gateway MAC may migrate frequently between L1 and L2 of S-Leaf1, or between L3 and L4 of S-Leaf2. For the above situation, the existing processing methods are as follows:

[0044] 1. Gateway MAC migration and route notification: The gateway MAC migration is indicated by carrying the gateway MAC address change extended community attribute with the migration sequence number in the route. Each time the gateway MAC migrates, the corresponding migration sequence number increases in sequence to indicate the most recent migration.

[0045] 2. Dual-homed neighbor route processing: When a dual-homed neighbor receives a gateway MAC route with a migration sequence number, it will prefer the route with a larger migration sequence number. If the preferred route is the route sent by the neighbor, the dual-homed neighbor will send a message to the A-Leaf to revoke the locally learned gateway MAC route.

[0046] 3. Route oscillation on A-Leaf: Since S-Leaf continuously sends route withdrawal and new route notifications to A-Leaf, the gateway MAC route on A-Leaf will oscillate repeatedly. This route oscillation will cause traffic packet loss, and in severe cases, it may cause users to go offline.

[0047] 4. Gateway MAC flapping detection and suppression: S-Leaf will check the number of MAC table entry jumps within a detection cycle. If the number of jumps exceeds the threshold, the flapping MAC route will be suppressed.

[0048] 5. Migration end and recovery: When the migration ends, it takes some time to lift the suppression state of the flapping MAC route. After the suppression state is lifted, the latest MAC route information is sent to the remote PE device through the BGP EVPN neighbor relationship. Before the route is re-advertised and takes effect, upstream traffic may be lost because the route is not ready.

[0049] The above examples show that packet loss may occur due to MAC migration both when a fault occurs and during fault recovery.

[0050] To solve the above technical problems, an embodiment of the present disclosure provides a method for advertising routing, the method is applied to a first Leaf, the first Leaf and the second Leaf are in a dual-affiliation relationship, such as Figure 3 As shown, the method includes:

[0051] S301, when it is identified that the number of switchings between the first interface and the second interface reaching the same gateway MAC reaches a threshold, obtain a first ESI value;

[0052] S302 sends the first ESI value to the aggregation device and the second Leaf through the announcement route, so that after receiving the announcement route carrying the first ESI value sent by the first Leaf and the second Leaf, the aggregation device sends the message to the first Leaf and the second Leaf according to the first ESI value.

[0053] In this embodiment, the administrator can define a monitoring period and a configuration threshold. For example, if the monitoring period is 10 minutes and the threshold is 10, then if the number of switching between the first interface and the second interface reaches 10 times within 10 minutes, it can be determined that frequent MAC migration occurs.

[0054] Specifically, Figure 2 As shown, UP1 realizes dual-home access to S-Leaf1 and S-Leaf2 through L1 and L3 aggregated links, while UP2 also realizes dual-home access to S-Leaf1 and S-Leaf2 through L2 and L4 aggregated links. A-Leaf, S-Leaf1 and S-Leaf2 are all configured with the same VSI (for example, vsi_up) to support the dual-home active-active mechanism. Under the vsi_up of S-Leaf1 and S-Leaf2, the validity of the active-active configuration is ensured by configuring the same ESI. UP1 and UP2 form the master-slave relationship, and the master UP publishes a virtual MAC (for example: MAC1). Under normal circumstances, user services are carried on the master UP, that is, UP1. At this time, the physical outbound interface of MAC1 on S-Leaf1 and S-Leaf2 points to UP1, that is, L1 and L3.

[0055] Assume that S-Leaf1 identifies that the number of times MAC1 switches between the first interface and the second interface reaches 10 times within 10 minutes, it can be determined that frequent switching of MAC1 occurs.

[0056] In this embodiment, the administrator can configure the ESI value. Specifically, the configured ESI value is different from the ESI value configured for the interface of the Leaf. For example, in S-Leaf1, the ESI value of the L1 interface is 1, and the ESI value of the L2 interface is 2. Then the configured ESI value can be 3, that is, the configured ESI value is kept different from the ESI value of the interface.

[0057] In step S301, when it is determined that the number of interface switching times reaches a threshold, a first ESI value (eg, ESI=3) may be obtained, and S-Leaf1 detects these migration events, records and establishes a correspondence between MAC1 and its first interface and the second interface.

[0058] In step S302, the first Leaf sends a signal to a convergence device (such as Figure 2 A-Leaf in the Figure 2 As shown in FIG. 1 , if the first Leaf is S-Leaf1, then the second Leaf is S-Leaf2) when announcing a route, the ESI carried in its MAC route is changed to VSI and announced to the aggregation device and the second Leaf.

[0059] In this embodiment, when the first Leaf sends an advertisement route to the aggregation device and the second Leaf, the advertisement route also carries the gateway MAC.

[0060] In this embodiment, after the second Leaf receives the announcement route sent by the first Leaf, it obtains the gateway MAC and the first ESI value, and when the second Leaf identifies that the number of switching between the third interface and the fourth interface corresponding to the gateway MAC reaches the threshold, it records the correspondence between the first ESI value, gateway MAC, the third interface and the fourth interface, and at the same time sends the announcement route carrying the first ESI value to the aggregation device.

[0061] In one example, if Figure 2 As shown, S-Leaf1 recognizes that the number of switching times of interfaces L1 and L2 reaching the gateway MAC (MAC1) within the cycle reaches the threshold, then S-Leaf1 obtains the first ESI value = 3, S-Leaf1 records the correspondence between MAC1, L1, L2 and the first ESI value, and sends a notification route to S-Leaf2 and A-Leaf at the same time, and the notification route can carry MAC1 and the first ESI value.

[0062] After receiving the announcement route sent by S-Leaf1, S-Leaf2 obtains MAC1 and the first ESI value. When S-Leaf2 recognizes that the number of switching of interfaces L3 and L4 reaching MAC1 reaches the threshold, S-Leaf2 sends an announcement route to A-Leaf, and the announcement route may carry MAC1 and the first ESI value.

[0063] In this embodiment, after receiving the advertised routes sent by S-Leaf1 and S-Leaf2, the aggregation device A-Leaf obtains the first ESI value and MAC1. When A-Leaf sends a message to MAC1, it sends the message to S-Leaf1 and S-Leaf2 in a balanced manner.

[0064] In this embodiment, after S-Leaf1 (the first Leaf) receives the message sent by A-Leaf, it sends the message through the L1 and L2 interfaces by multicast. Similarly, after S-Leaf2 (the second Leaf) receives the message sent by A-Leaf, it sends the message through the L3 and L4 interfaces by multicast.

[0065] The above method ensures that all UP devices can receive traffic regardless of the current status of the active and standby UP devices. The active UP device will receive and forward packets normally, while the standby UP device will receive packets but will not process them and will directly discard them, thus avoiding packet loss.

[0066] In this embodiment, when the master-slave relationship of the UP returns to normal (i.e., the number of interface switching times within the cycle is lower than the threshold), the first Leaf and / or the second Leaf may clear the allocated first ESI value and the recorded corresponding relationship, and send the notification route to the A-Leaf in a normal manner.

[0067] It can be seen from the above embodiments that by performing multicast forwarding during the process of MAC migration and migration suppression, the problem that user traffic cannot be forwarded in the case of MAC migration and migration suppression is effectively solved.

[0068] Based on the above method embodiments, the present disclosure provides a network device, the network device enables a Leaf function, and the network device includes:

[0069] An identification module, configured to obtain a first ESI value when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold;

[0070] The notification module is used to send the first ESI value to the aggregation device and other Leaf nodes through the notification route, so that after receiving the notification route carrying the first ESI value, the aggregation device sends the message to the network device and other Leaf nodes according to the first ESI value.

[0071] Wherein, the network device further includes: a configuration module, used to determine a monitoring period and a configuration threshold;

[0072] The identification module is specifically used to obtain a first ESI value when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold within a monitoring cycle.

[0073] The first ESI value is an ESI value customized by an administrator, and the first ESI value is different from the ESI value of each interface in the first Leaf.

[0074] The notification module is specifically used to send the first ESI value and the gateway MAC to the aggregation device through the notification route.

[0075] The notification module is specifically used to send the first ESI value and the gateway MAC to the second Leaf through the notification route, so that the second Leaf records the correspondence between the first ESI value, the gateway MAC, the third interface and the fourth interface, and enables the second Leaf to send the notification route carrying the first ESI value to the aggregation device;

[0076] The third interface and the fourth interface are interfaces associated with the gateway MAC.

[0077] Wherein, the network device further includes: a processing module;

[0078] The processing module is used to record the correspondence between the gateway MAC, the first ESI value, the first interface and the second interface after obtaining the first ESI value, and after receiving the message sent by the aggregation device according to the first ESI value, send the message through the first interface and the second interface by multicast according to the correspondence.

[0079] For the device embodiment, since it basically corresponds to the method embodiment, the relevant parts can refer to the partial description of the method embodiment. The device embodiment described above is only schematic, wherein the modules described as separate components may or may not be physically separated, and the components displayed as modules may or may not be physical modules, that is, they may be located in one place, or they may be distributed on multiple network modules. Some or all of the modules may be selected according to actual needs to achieve the purpose of the scheme of this specification. A person of ordinary skill in the art can understand and implement it without paying creative labor.

[0080] The above is a description of a specific embodiment of the specification. Other embodiments are within the scope of the appended claims. In some cases, the actions or steps recorded in the claims can be performed in an order different from that in the embodiments and still achieve the desired results. In addition, the processes depicted in the drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.

[0081] Those skilled in the art will readily appreciate other embodiments of the specification after considering the specification and practicing the invention claimed herein. The specification is intended to cover any variations, uses or adaptations of the specification that follow the general principles of the specification and include common knowledge or customary techniques in the art that are not claimed in the specification. The specification and examples are to be considered exemplary only, and the true scope and spirit of the specification are indicated by the following claims.

[0082] It should be understood that the present description is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present description is limited only by the appended claims.

[0083] The above description is only a preferred embodiment of this specification and is not intended to limit this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of this specification should be included in the scope of protection of this specification.

Claims

1. A method for announcing a route, characterized in that: The method is applied to a first Leaf, where the first Leaf and a second Leaf are in a dual-homing relationship, and the method includes: When it is identified that the number of switchings between the first interface and the second interface reaching the same gateway MAC reaches a threshold, obtaining a first ESI value; The first ESI value is sent to the aggregation device and the second Leaf through the advertisement route, so that after receiving the advertisement route carrying the first ESI value sent by the first Leaf and the second Leaf, the aggregation device sends the message to the first Leaf and the second Leaf according to the first ESI value.

2. The method according to claim 1, characterized in that The method further comprises: Determine the monitoring period and configure thresholds; When it is identified that the number of switchings between the first interface and the second interface reaching the same gateway MAC reaches a threshold, obtaining a first ESI value includes: In a monitoring cycle, when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold, a first ESI value is acquired.

3. The method according to claim 1, characterized in that The first ESI value is an ESI value customized by an administrator, and the first ESI value is different from the ESI value corresponding to each interface in the first Leaf.

4. The method according to claim 1, characterized in that: Sending the first ESI value to the aggregation device through a notification route includes: The first ESI value and the gateway MAC are sent to the aggregation device via an announcement route.

5. The method according to claim 1, characterized in that The first ESI value is sent to the second Leaf node through an advertisement route, including: Send the first ESI value and the gateway MAC to the second Leaf through an announcement route, so that the second Leaf records the correspondence between the first ESI value, the gateway MAC, the third interface, and the fourth interface, and the second Leaf sends the announcement route carrying the first ESI value to the aggregation device; The third interface and the fourth interface are interfaces associated with the gateway MAC.

6. The method according to claim 1, characterized in that The method further comprises: After obtaining the first ESI value, the corresponding relationship between the gateway MAC, the first ESI value, the first interface and the second interface is recorded.

7. The method according to claim 6, characterized in that The method further comprises: After receiving the message sent by the convergence device according to the first ESI value, the message is sent through the first interface and the second interface in a multicast manner according to the corresponding relationship.

8. A network device, characterized in that: The network device enables the Leaf function, and the network device includes: An identification module, configured to obtain a first ESI value when it is identified that the number of switching times between the first interface and the second interface reaching the same gateway MAC reaches a threshold; The notification module is used to send the first ESI value to the aggregation device and other Leaf nodes through the notification route, so that after receiving the notification route carrying the first ESI value, the aggregation device sends the message to the network device and other Leaf nodes according to the first ESI value.

9. The network device according to claim 8, characterized in that: The network device further comprises: a configuration module, configured to determine a monitoring period and a configuration threshold; The identification module is specifically used to obtain a first ESI value when it is identified that the number of switching times of the first interface and the second interface reaching the same gateway MAC reaches a threshold within a monitoring cycle.

10. The network device according to claim 8, characterized in that: The first ESI value is an ESI value customized by an administrator, and the first ESI value is different from the ESI value of each interface in the first Leaf.

11. The network device according to claim 8, characterized in that: The notification module is specifically configured to send the first ESI value and the gateway MAC to the aggregation device via a notification route.

12. The network device according to claim 8, characterized in that: The notification module is specifically used to send the first ESI value and the gateway MAC to the second Leaf through the notification route, so that the second Leaf records the correspondence between the first ESI value, the gateway MAC, the third interface and the fourth interface, and enables the second Leaf to send the notification route carrying the first ESI value to the aggregation device; The third interface and the fourth interface are interfaces associated with the gateway MAC.

13. The network device according to claim 8, characterized in that: The network device also includes: Processing module; The processing module is used to record the correspondence between the gateway MAC, the first ESI value, the first interface and the second interface after obtaining the first ESI value, and after receiving the message sent by the aggregation device according to the first ESI value, send the message through the first interface and the second interface by multicast according to the correspondence.

Citation Information

Patent Citations

  • MAC address deleting method, device and system of VPLS dual homing network

    CN102857399A

  • Fast uplink flow switching system and method of VPLS dual-homing business model

    CN107612738A

  • Service switching method and network device

    CN107819680A

  • Ethernet segment identifier adjacency detection processing method and device and storage medium

    CN110391951A

  • Message processing method and device

    CN111277482A