Method and device for implementing hierarchical ECMP
By maintaining ECMP table information in the Overlay network layer and Underlay network layer respectively, the problem of table resource waste and bandwidth consumption in the existing ECMP routing implementation solution is solved, and resource saving and bandwidth saving are achieved.
Patent Information
- Application Number
- CN202111423832.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-26
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-11-26
AI Technical Summary
In existing ECMP routing implementation solutions, table entry resources are wasted, or internal chip bandwidth and forwarding bandwidth are consumed.
Through the forwarding separation of the Overlay network layer and the Underlay network layer, ECMP table information is maintained in the respective network layers. When the ECMP routing members of any layer change, only the ECMP member information of this layer needs to be updated, and no refresh is required. surface.
A large amount of table entry resources and forwarding bandwidth are saved, and since the loopback method is not used to achieve forwarding separation, there is no problem of high consumption of internal chip bandwidth and forwarding bandwidth.
Smart Images

Figure CN116192729B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to network communication technology, and in particular to a method and device for implementing hierarchical ECMP. Background Art
[0002] In data center networks, layered network technologies such as Vxlan and NVGRE are widely used. In such layered networks, the way to implement Equal Cost Multi-path (ECMP) basically adopts the implementation solution of level 1 ECMP, so there are great limitations.
[0003] In the prior art, the equal-cost multi-path routes generated by the tunnel technology network Overlay in the data center network and the underlying network Underlay of the data center network are combined and calculated. The ECMP method combines the ECMP equal-cost routes calculated by the Overlay network layer and the ECMP equal-cost routes generated by the Underlay network layer. Due to the merging, when any layer of network routes changes, such as when ARP changes, the associated table entries need to be refreshed, which will cause the ECMP member table entries to become larger, wasting table entry resources.
[0004] To this end, another implementation idea is to separate the message forwarding in the Overlay network layer and the Underlay network layer to solve the above problem. Specifically, after the message generates ECMP information based on the Inner IPDA for routing, the egress process engine (EPE) encapsulates the message in the Overlay layer, and then loops back to the ingress process engine (IPE) through the chip. Then the IPE performs a route lookup based on the IPDA of the Overlay network layer, and obtains the ECMP information of the Underlay network for forwarding. Although this technical solution can achieve message forwarding separation, it consumes a large amount of internal bandwidth of the chip due to the use of loopback, and also indirectly consumes the forwarding bandwidth of the chip. Summary of the invention
[0005] The technical problem to be solved by the embodiments of the present invention is how to solve the problem of large waste of table entry resources or large consumption of chip internal bandwidth and forwarding bandwidth in the existing ECMP routing implementation solution.
[0006] In order to solve the above technical problems, an embodiment of the present invention provides a method for implementing hierarchical ECMP, which includes: at the IPE end, a message obtains a first ECMP member table item according to a first ECMP group table item of the Overlay network; when the lower-layer ECMP path information identification bit in the first ECMP member table item is valid, the second ECMP group table item of the Underlay network is obtained through the lower-layer ECMP group ID in the first ECMP member table item, thereby obtaining the second member table item of the Underlay network, and then obtaining the egress information of the message; otherwise, directly obtaining the egress information of the message; according to the table item index information in the first ECMP member table item, by indexing on the EPE end, the relevant information required to complete the Overlay layer encapsulation is obtained.
[0007] In the above-mentioned implementation method of hierarchical ECMP, the first ECMP group table item includes {mem_num, member_base}; the mem_num represents the number of members included in the first ECMP group; the member_base represents the starting index of the first ECMP member table item; the first ECMP member table item is obtained according to the first ECMP group table item of the Overlay network, including: according to the hash value obtained in the IPE, the first ECMP member table item is obtained by the hash value%mem_num+member_base index.
[0008] In the above-mentioned implementation method of hierarchical ECMP, the second ECMP group table item includes {mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table item; the obtaining of the second ECMP group table item of the Underlay network, thereby obtaining the second member table item of the Underlay network, and then obtaining the egress information of the message includes: according to the hash value obtained in the IPE, the second ECMP member table item of the Underlay network is obtained by the hash value%mem_num+member_base index.
[0009] In the above-mentioned hierarchical ECMP implementation method, the relevant information required to complete the Overlay layer encapsulation is obtained by indexing on the EPE side according to the table entry index information in the first ECMP member table entry, including: the message obtains the DsNexthop table by indexing according to the table entry index information; according to the DsL2Edit and DsOverlayEdit information in the DsNexthop table, the Innner Ethernet Header, VxlanHeader, and Outer IP / UDPHeader information required for editing the Vxlan message.
[0010] In the above-mentioned implementation method of hierarchical ECMP, the relevant information required to complete the Overlay layer encapsulation is obtained by indexing on the EPE side according to the table entry index information in the first ECMP member table entry, including: indexing the information of the second ECMP member table through the hash value %mem_num+member_base generated on the IPE side; the second ECMP group table entry contains {mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table entry; the DsUnderlayEdit table entry is indexed according to the UnderlayEditPtr in the second ECMP member table, thereby editing the OuterEthernet Header information of the Vxlan message through the editing information of the Underlay network.
[0011] In order to solve the above technical problems, an embodiment of the present invention provides an implementation device of hierarchical ECMP, which includes: an IPE-end processing unit, which is used for a message at the IPE end to obtain a first ECMP member table item according to a first ECMP group table item of the Overlay network; when the lower-layer ECMP path information identification bit in the first ECMP member table item is valid, the second ECMP group table item of the Underlay network is obtained through the lower-layer ECMP group ID in the first ECMP member table item, thereby obtaining the second member table item of the Underlay network, and then obtaining the egress information of the message; otherwise, directly obtaining the egress information of the message; an EPE-end processing unit, which is used to obtain the relevant information required to complete the Overlay layer encapsulation by indexing on the EPE end according to the table item index information in the first ECMP member table item.
[0012] In the above-mentioned hierarchical ECMP implementation device, the first ECMP group table entry includes {mem_num, member_base}; the mem_num represents the number of members included in the first ECMP group; the member_base represents the starting index of the first ECMP member table entry; the IPE end processing unit obtains the first ECMP member table entry through the hash value%mem_num+member_base index based on the hash value obtained in the IPE.
[0013] In the above-mentioned hierarchical ECMP implementation device, the second ECMP group table entry includes {mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table entry; the IPE end processing unit obtains the second ECMP member table entry of the Underlay network through the hash value%mem_num+member_base index based on the hash value obtained in the IPE.
[0014] In the above-mentioned hierarchical ECMP implementation device, the EPE end processing unit is used to index the DsNexthop table according to the table entry index information; and, according to the DsL2Edit and DsOverlayEdit information in the DsNexthop table, edit the Innner Ethernet Header, VxlanHeader, and Outer IP / UDPHeader information required for the Vxlan message.
[0015] In the above-mentioned hierarchical ECMP implementation device, the EPE-end processing unit is used to index and obtain the information of the second ECMP member table through the hash value %mem_num+member_base generated at the IPE end; the second ECMP group table item contains {mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table item; and, according to the UnderlayEditPtr index DsUnderlayEdit table item in the second ECMP member table, the OuterEthernet Header information of the Vxlan message is edited through the editing information of the Underlay network.
[0016] The present invention aims at the problem of large waste of table entry resources or large consumption of chip internal bandwidth and forwarding bandwidth in the existing ECMP routing implementation scheme. Through forwarding separation of the Overlay network layer and the Underlay network layer, ECMP table information is maintained in respective network layers. When any layer of ECMP routing members changes, only the ECMP member information of the current layer needs to be updated, and no table flushing is required. By adopting hierarchical ECMP, a large amount of table entry resources and forwarding bandwidth can be saved, and since forwarding separation is not achieved by loopback, there is no problem of large consumption of chip internal bandwidth and forwarding bandwidth. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 It is a logic diagram of an implementation method of a hierarchical ECMP according to an embodiment of the present invention;
[0018] Figure 2 It is a schematic diagram of the format of a Vxlan message used in a method for implementing hierarchical ECMP in an embodiment of the present invention. DETAILED DESCRIPTION
[0019] The ECMP implementation method of the prior art is to merge and calculate the equivalent multi-path routes generated by the tunnel technology network Overlay in the data center network and the underlying network Underlay of the data center network. The ECMP method merges the ECMP equivalent route calculated by the Overlay network layer and the ECMP equivalent route generated by the Underlay network layer. Due to the merger, when the route of any layer of the network changes, such as when the ARP changes, the associated table items need to be refreshed, and the ECMP member table items will become larger, wasting table item resources. Another implementation idea is to solve the above problem by separating the message forwarding at the Overlay network layer and the Underlay network layer. Specifically, after the message generates ECMP information according to the Inner IPDA for routing, the egress processing engine (Egress Process Engine, EPE) encapsulates the message in the Overlay layer, and then loops back to the ingress processing engine (Ingress Process Engine, IPE) through the chip, and then the IPE performs a route search according to the IPDA of the Overlay network layer, thereby obtaining the ECMP information of the Underlay network for forwarding. Although this technical solution can realize the forwarding separation of messages, it consumes a large amount of internal bandwidth of the chip and indirectly consumes the forwarding bandwidth of the chip due to the use of loopback.
[0020] The embodiment of the present invention discloses a method for implementing hierarchical ECMP. In view of the problem that in the ECMP routing implementation scheme in the prior art, table entry resources are wasted greatly, or the internal bandwidth and forwarding bandwidth of the chip are consumed greatly, forwarding separation of the Overlay network layer and the Underlay network layer is used to maintain ECMP table information in respective network layers. When any layer of ECMP routing members changes, only the ECMP member information of the current layer needs to be updated, and table flushing is not required. By adopting hierarchical ECMP, a large amount of table entry resources and forwarding bandwidth can be saved, and since forwarding separation is not achieved by loopback, there is no problem of large consumption of internal bandwidth and forwarding bandwidth of the chip.
[0021] In order to make the above-mentioned objects, features and advantages of the present invention more obvious and easy to understand, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings.
[0022] The present embodiment provides a method for implementing hierarchical ECMP applied to a chip. The chips referred to in the present embodiment are not limited to the currently widely used ASIC chips, but also include other chips, such as FPGA or NP. At the same time, the method for implementing hierarchical ECMP in the present embodiment can be widely applied to tunnel-related networks, such as Vlxan, NVGRE, IP Tunnel, etc. For the sake of convenience, the present embodiment is described with Vlxan.
[0023] A method for implementing hierarchical ECMP in an embodiment of the present invention includes:
[0024] Step S101: At the IPE end, the message obtains the ECMP member table entry of the Overlay network according to the ECMP group table entry of the Overlay network;
[0025] like Figure 1 As shown, the message enters the ingress processing engine (IPE), and through the Inner IPDA query, the ECMP group GroupId = 1 of the Overlay network layer is obtained. Through the GroupId, the corresponding ECMP group table DsEcmpGroup of the Overlay network can be obtained. The DsEcmpGroup table contains several important information {mem_num, member_base}, where mem_num represents the number of members included in an Ecmp group; member_base represents the starting index of the corresponding member table DsEcmpMember.
[0026] According to the hash value obtained in IPE, the message can index the information of the ECMP member table DsEcmpMember of the Overlay network by adding hash value % mem_num + member_base.
[0027] Step S102, obtaining the member table entry of the Underlay network according to whether the lower layer ECMP path information flag is valid, or directly obtaining the egress information of the message;
[0028] The Overlay network member table DsEcmpMember obtained in step S101 includes the fields: {ecmp_en, groupId / port, nexthopPtr, underlayEditPtr}. Among them:
[0029] (1) ecmp_en indicates whether there is lower-layer ECMP path information;
[0030] (2) groupId / port, indicating the ECMP information or egress information of the next-layer underlay network. When ecmp_en=1, it indicates the lower-layer groupId; otherwise, it indicates the message egress information.
[0031] (3) nexthopPtr indicates the entry index of the message transmitted from IPE to EPE for editing the message;
[0032] (4) underlayEditPtr indexes the edit information of the underlay network (ie, the ARP information of the underlay network) at EPE time.
[0033] like Figure 1 As shown, in this embodiment, by obtaining the value of the above-mentioned ecmp_en as 1, that is, the lower-layer ECMP path information identification bit in the first ECMP member table entry is valid, the value of the groupId / port field can be determined, that is, the GroupId of the ECMP of the lower-layer Underlay network, and then according to the GroupId, the next-layer Underlay network layer ECMP group information can be continued to be indexed.
[0034] Similar to step S101, after obtaining the ECMP group table item DsEcmpGroup of the Underlay network, further, according to {mem_num, member_base} in DsEcmpGroup and the hash value obtained by the message in IPE, the information of the ECMP member table item DsEcmpMember of the Underlay network can be indexed by adding the hash value % mem_num + member_base. At this time, the groupId / port field in the DsEcmpMember table indicates the egress information of the message.
[0035] If the value of ecmp_en in the Overlay network ECMP member table entry is 0, that is, the lower-layer ECMP path information identification bit in the first ECMP member table entry is invalid, indicating that there is no lower-layer ECMP path information. Therefore, the value of the groupId / port field, that is, the egress information of the message, can be determined, and the egress information of the message can be directly obtained.
[0036] Step S103: According to the entry index information in the first ECMP member entry, the relevant information required to complete the Overlay layer encapsulation is obtained by indexing on the EPE side.
[0037] like Figure 1 As shown, the message obtains the table entry index information nexthopPtr of the message edited in the EPE according to the DsEcmpMember in the Overlay network, thereby obtaining the DsNexthop table at the egress processing engine (Egress Process Engine, EPE) end.
[0038] The DsNexthop table includes fields {ecmp_en, groupId / underlayEditPtr, OverlayEditPtr, L2ditPtr}:
[0039] (1) ecmp_en indicates whether there is lower-layer ECMP path information;
[0040] (2) groupId / underlayEditPtr, indicating the underlay network ECMP information or underlay network editing information. When ecmp_en=1, it indicates the lower layer groupId. Otherwise, it indicates editing the underlay network index information.
[0041] (3) OverlayEditPtr represents the index information for editing the Overlay network;
[0042] (4) L2ditPtr indicates the Inner Ethernet Header information of the inner packet.
[0043] The message edits the Innner Ethernet Header, VxlanHeader, and Outer IP / UDP Header information required for the Vxlan message according to the DsL2Edit and DsOverlayEdit information in the DsNexthop table.
[0044] At the same time, similar to the approach in step S101 and step S102, according to ecmp_en equal to 1 and groupId = 100 in the DsNexthop table, at the EPE end, continue to index the next layer of Underlay network layer ECMP group DsEcmpGroup information, and obtain the next layer of Underlay network layer ECMP member table DsEcmpMember information through the hash value %mem_num+member_base index generated by IPE. DsEcmpMember includes the underlayEditPtr field used to index the editing information of the Underlay network (that is, the ARP information of the Underlay network) at EPE. Therefore, based on this field, the DsUnderlayEdit table can be indexed to edit the OuterEthernet Header information of the Vxlan message. Finally, the relevant information required for the Overlay layer encapsulation is completed, forming the following. Figure 2 The Vxlan message format shown.
[0045] This embodiment realizes the forwarding separation of the Overlay network layer and the Underlay network layer through a hierarchical ECMP implementation method and a table entry series relationship. This method not only does not consume ECMP table entry space, but also does not require ARP updates in the Underlay network layer to refresh the table entries, and also does not consume much forwarding bandwidth of the chip.
[0046] In contrast to the implementation method of a hierarchical ECMP in an embodiment of the present invention, the present invention also proposes an implementation device of a hierarchical ECMP, including:
[0047] The IPE-end processing unit is used for obtaining, at the IPE end, a first ECMP member table item according to a first ECMP group table item of the Overlay network; when the lower-layer ECMP path information identification bit in the first ECMP member table item is valid, obtaining a second ECMP group table item of the Underlay network through the lower-layer ECMP group ID in the first ECMP member table item, thereby obtaining a second member table item of the Underlay network, and further obtaining the egress information of the message; otherwise, directly obtaining the egress information of the message; the EPE-end processing unit is used for obtaining, according to the table item index information in the first ECMP member table item, relevant information required to complete the Overlay layer encapsulation by indexing at the EPE end.
[0048] In a specific implementation, the first ECMP group table entry includes {mem_num, member_base}; the mem_num represents the number of members included in the first ECMP group; the member_base represents the starting index of the first ECMP member table entry; the IPE end processing unit obtains the first ECMP member table entry through the hash value%mem_num+member_base index based on the hash value obtained in the IPE.
[0049] In a specific implementation, the second ECMP group table entry includes {mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table entry; the IPE end processing unit obtains the second ECMP member table entry of the Underlay network through the hash value%mem_num+member_base index based on the hash value obtained in the IPE.
[0050] In a specific implementation, the EPE-end processing unit is used to index the DsNexthop table according to the table entry index information; and, according to the DsL2Edit and DsOverlayEdit information in the DsNexthop table, edit the Innner Ethernet Header, VxlanHeader, and Outer IP / UDP Header information required for the Vxlan message.
[0051] In a specific implementation, the EPE-end processing unit is used to index and obtain information of the second ECMP member table through the hash value %mem_num+member_base generated on the IPE end; the second ECMP group table item contains {mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table item; and, according to the UnderlayEditPtr index DsUnderlayEdit table item in the second ECMP member table, the OuterEthernet Header information of the Vxlan message is edited through the editing information of the Underlay network.
[0052] Those skilled in the art can understand that the device for implementing a hierarchical ECMP in this embodiment and the method for implementing a hierarchical ECMP described above are based on the same inventive concept, so the contents of the relevant embodiments can be referred to the corresponding contents in the previous text, which will not be repeated here.
[0053] A person skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing the relevant hardware through a program, and the program can be stored in a computer-readable storage medium, which can include: ROM, RAM, disk or CD, etc.
[0054] Although the present invention is disclosed as above, the present invention is not limited thereto. Any person skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the scope defined by the claims.
Claims
1. A hierarchical ECMP implementation method, It is characterized in that include: At the IPE end, the message obtains the first ECMP member entry according to the first ECMP group entry of the Overlay network; When the lower-layer ECMP path information flag in the first ECMP member table entry is valid, a second ECMP group table entry of the Underlay network is obtained through the lower-layer ECMP group ID in the first ECMP member table entry, thereby obtaining a second ECMP member table entry of the Underlay network, and further obtaining the egress information of the message; Otherwise, directly obtain the egress information of the message; According to the entry index information in the first ECMP member entry, the relevant information required to complete the Overlay layer encapsulation is obtained by indexing at the EPE end; According to the entry index information in the first ECMP member entry, the relevant information required to complete the Overlay layer encapsulation is obtained by indexing at the EPE end, including: The message obtains the DsNexthop table according to the table entry index information; Edit the Innner Ethernet Header, VxlanHeader, Outer IP / UDP Header information required for the Vxlan message according to the DsL2Edit and DsOverlayEdit information in the DsNexthop table; and / or The information of the second ECMP member table item is obtained by indexing the hash value % mem_num + member_base generated at the IPE end; the second ECMP group table item includes { mem_num, member_base}; the mem_num indicates the number of members included in the second ECMP group; the member_base indicates the starting index of the second ECMP member table item; According to the UnderlayEditPtr index DsUnderlayEdit table entry in the second ECMP member table entry, the OuterEthernet Header information of the Vxlan message is edited through the editing information of the Underlay network.
2. The method for implementing hierarchical ECMP as claimed in claim 1, It is characterized in that The first ECMP group table entry includes {mem_num, member_base}; the mem_num indicates the number of members included in the first ECMP group; the member_base indicates the starting index of the first ECMP member table entry; Obtaining the first ECMP member table entry according to the first ECMP group table entry of the Overlay network includes: obtaining the first ECMP member table entry through the hash value% mem_num+member_base index according to the hash value obtained in the IPE.
3. The method for implementing hierarchical ECMP as claimed in claim 1, It is characterized in that The second ECMP group table entry includes {mem_num, member_base}; the mem_num indicates the number of members included in the second ECMP group; the member_base indicates the starting index of the second ECMP member table entry; The obtaining of the second ECMP group entry of the Underlay network, thereby obtaining the second ECMP member entry of the Underlay network, and then obtaining the egress information of the message includes: According to the hash value obtained in the IPE, the second ECMP member table entry of the Underlay network is obtained by the hash value% mem_num+member_base index.
4. A device for implementing hierarchical ECMP, It is characterized in that include: An IPE end processing unit is used for obtaining a first ECMP member table entry according to a first ECMP group table entry of the Overlay network at the IPE end for the message; When the lower-layer ECMP path information flag in the first ECMP member table entry is valid, a second ECMP group table entry of the Underlay network is obtained through the lower-layer ECMP group ID in the first ECMP member table entry, thereby obtaining a second ECMP member table entry of the Underlay network, and further obtaining the egress information of the message; Otherwise, directly obtain the egress information of the message; An EPE-side processing unit is used to obtain relevant information required to complete the Overlay layer encapsulation by indexing at the EPE side according to the table entry index information in the first ECMP member table entry; The EPE end processing unit is used to index and obtain the DsNexthop table according to the table entry index information; and edit the InnnerEthernet Header, VxlanHeader, Outer IP / UDP Header information required for the Vxlan message according to the DsL2Edit and DsOverlayEdit information in the DsNexthop table; and / or The EPE-end processing unit is used to index and obtain the information of the second ECMP member table item by using the hash value % mem_num + member_base generated at the IPE end; the second ECMP group table item includes { mem_num, member_base}; the mem_num represents the number of members included in the second ECMP group; the member_base represents the starting index of the second ECMP member table item; and, according to the UnderlayEditPtr index DsUnderlayEdit table item in the second ECMP member table item, the OuterEthernet Header information of the Vxlan message is edited through the editing information of the Underlay network.
5. The device for implementing hierarchical ECMP as claimed in claim 4, It is characterized in that The first ECMP group table entry includes {mem_num, member_base}; the mem_num indicates the number of members included in the first ECMP group; the member_base indicates the starting index of the first ECMP member table entry; The IPE end processing unit obtains the first ECMP member table entry through the hash value% mem_num + member_base index according to the hash value obtained in the IPE.
6. The device for implementing hierarchical ECMP as claimed in claim 4, It is characterized in that The second ECMP group table entry includes {mem_num, member_base}; the mem_num indicates the number of members included in the second ECMP group; the member_base indicates the starting index of the second ECMP member table entry; The IPE end processing unit obtains the second ECMP member table entry of the Underlay network through the hash value% mem_num+member_base index according to the hash value obtained in the IPE.
Citation Information
Patent Citations
Method for achieving virtualization load balance in chip and chip equipment
CN104702525A
Device and method for supporting ECMP (Equal Cost Multipath) chip on ToR in data centre
CN105245447A
