US9270601B2 - Path resolution for hierarchical load distribution - Google Patents
Path resolution for hierarchical load distribution Download PDFInfo
- Publication number
- US9270601B2 US9270601B2 US14/025,114 US201314025114A US9270601B2 US 9270601 B2 US9270601 B2 US 9270601B2 US 201314025114 A US201314025114 A US 201314025114A US 9270601 B2 US9270601 B2 US 9270601B2
- Authority
- US
- United States
- Prior art keywords
- stage
- group
- ecmp
- next hop
- resolution
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active, expires
Links
- 230000015654 memory Effects 0.000 claims description 21
- 238000000034 method Methods 0.000 claims description 19
- 235000008694 Humulus lupulus Nutrition 0.000 abstract description 12
- 101100339496 Caenorhabditis elegans hop-1 gene Proteins 0.000 description 18
- 239000000872 buffer Substances 0.000 description 14
- 238000012545 processing Methods 0.000 description 14
- 230000006870 function Effects 0.000 description 13
- 239000004744 fabric Substances 0.000 description 8
- 230000005540 biological transmission Effects 0.000 description 5
- 230000008859 change Effects 0.000 description 4
- 238000013459 approach Methods 0.000 description 3
- 238000013507 mapping Methods 0.000 description 2
- 230000010076 replication Effects 0.000 description 2
- 241001522296 Erithacus rubecula Species 0.000 description 1
- 230000003139 buffering effect Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 238000001914 filtration Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000006855 networking Effects 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 230000008569 process Effects 0.000 description 1
- 230000009467 reduction Effects 0.000 description 1
- 238000012360 testing method Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L47/00—Traffic control in data switching networks
- H04L47/10—Flow control; Congestion control
- H04L47/17—Interaction among intermediate nodes, e.g. hop by hop
Definitions
- This disclosure relates to networking. This disclosure also relates to path resolution in network devices such as switches and routers.
- High speed data networks form part of the backbone of what has become indispensable worldwide data connectivity.
- network devices such as switching devices direct data packets from source ports to destination ports, helping to eventually guide the data packets from a source to a destination. Improvements in packet handling, including improvements in path resolution, will further enhance performance of data networks.
- FIG. 1 shows an example of a switch architecture that may include packet marking functionality.
- FIG. 2 is an example switch architecture extended to include packet marking functionality.
- FIG. 3 shows an example of Equal Cost Multi-Path (ECMP) resolution.
- FIG. 4 shows an example of an overlay network.
- FIG. 5 shows an example of path weighting
- FIGS. 6-9 show examples of multiple stage ECMP resolution.
- FIGS. 10-11 show example of traffic redistribution.
- FIGS. 12-13 shows logic for multiple stage ECMP resolution and traffic redistribution.
- FIG. 1 shows an example of a switch architecture 100 that may include path resolution functionality.
- the description below provides a backdrop and a context for the explanation of path resolution, which follows this example architecture description.
- Path resolution may be performed in many different network devices in many different ways. Accordingly, the example switch architecture 100 is presented as just one of many possible network device architectures that may include path resolution functionality, and the example provided in FIG. 1 is one of many different possible alternatives. The techniques described further below are not limited to any specific device architecture.
- the switch architecture 100 includes several tiles, such as the tiles specifically labeled as tile A 102 and the tile D 104 .
- each tile has processing logic for handling packet ingress and processing logic for handling packet egress.
- a switch fabric 106 connects the tiles. Packets, sent for example by source network devices such as application servers, arrive at the network interfaces 116 .
- the network interfaces 116 may include any number of physical ports 118 .
- the ingress logic 108 buffers the packets in memory buffers. Under control of the switch architecture 100 , the packets flow from an ingress tile, through the fabric interface 120 through the switching fabric 106 , to an egress tile, and into egress buffers in the receiving tile.
- the egress logic sends the packets out of specific ports toward their ultimate destination network device, such as a destination application server.
- Each ingress tile and egress tile may be implemented as a unit (e.g., on a single die or system on a chip), as opposed to physically separate units.
- Each tile may handle multiple ports, any of which may be configured to be input only, output only, or bi-directional. Thus, each tile may be locally responsible for the reception, queueing, processing, and transmission of packets received and sent over the ports associated with that tile.
- each port may provide a physical interface to other networks or network devices, such as through a physical network cable (e.g., an Ethernet cable).
- each port may have its own line rate (i.e., the rate at which packets are received and/or sent on the physical interface).
- the line rates may be 10 Mbps, 100 Mbps, 1 Gbps, or any other line rate.
- the techniques described below are not limited to any particular configuration of line rate, number of ports, or number of tiles, nor to any particular network device architecture. Instead, the techniques described below are applicable to any network device that incorporates the path resolution analysis logic described below.
- the network devices may be switches, routers, bridges, blades, hubs, or any other network device that handles routing packets from sources to destinations through a network.
- the network devices are part of one or more networks that connect, for example, application servers together across the networks.
- the network devices may be present in one or more data centers that are responsible for routing packets from a source to a destination.
- the tiles include packet processing logic, which may include ingress logic 108 , egress logic 110 , analysis logic, and any other logic in support of the functions of the network device.
- the ingress logic 108 processes incoming packets, including buffering the incoming packets by storing the packets in memory.
- the ingress logic 108 may define, for example, virtual output queues 112 (VoQs), by which the ingress logic 108 maintains one or more queues linking packets in memory for the egress ports.
- the ingress logic 108 maps incoming packets from input ports to output ports, and determines the VoQ to be used for linking the incoming packet in memory.
- the mapping may include, as examples, analyzing addressee information in the packet headers, and performing a lookup in a mapping table that matches addressee information to output port(s).
- the egress logic 110 may maintain one or more output buffers 114 for one or more of the ports in its tile.
- the egress logic 110 in any tile may monitor the output buffers 114 for congestion.
- the egress logic 110 may throttle back its rate of granting bandwidth credit to the ingress logic 108 in any tile for bandwidth of the congested output port.
- the ingress logic 108 responds by reducing the rate at which packets are sent to the egress logic 110 , and therefore to the output ports associated with the congested output buffers.
- the ingress logic 108 receives packets arriving at the tiles through the network interface 116 .
- a packet processor may perform link-layer processing, tunnel termination, forwarding, filtering, and other packet processing functions on the received packets.
- the packets may then flow to an ingress traffic manager (ITM).
- ITM writes the packet data to a buffer, from which the ITM may decide whether to accept or reject the packet.
- the ITM associates accepted packets to a specific VoQ, e.g., for a particular output port.
- the ingress logic 108 may manage one or more VoQs that are linked to or associated with any particular output port. Each VoQ may hold packets of any particular characteristic, such as output port, class of service (COS), priority, packet type, or other characteristic.
- COS class of service
- the ITM upon linking the packet to a VoQ, generates an enqueue report.
- the ITM may also send the enqueue report to an ingress packet scheduler.
- the enqueue report may include the VoQ number, queue size, and other information.
- the ITM may further determine whether a received packet should be placed on a cut-through path or on a store and forward path. If the receive packet should be on a cut-through path, then the ITM may send the packet directly to an output port with as low latency as possible as unscheduled traffic, and without waiting for or checking for any available bandwidth credit for the output port.
- the ITM may also perform packet dequeueing functions, such as retrieving packets from memory, forwarding the packets to the destination egress tiles, and issuing dequeue reports.
- the ITM may also perform buffer management, such as admission control, maintaining queue and device statistics, triggering flow control, and other management functions.
- packets arrive via the fabric interface 120 .
- a packet processor may write the received packets into an output buffer 114 (e.g., a queue for an output port through which the packet will exit) in the egress traffic manager (ETM). Packets are scheduled for transmission and pass through an egress transmit packet processor (ETPP) and ultimately out of the output ports.
- ETM egress traffic manager
- ETPP egress transmit packet processor
- the ETM may perform, as examples: egress packet reassembly, through which incoming cells that arrive interleaved from multiple source tiles are reassembled according to source tile contexts that are maintained for reassembly purposes; egress multicast replication, through which the egress tile supports packet replication to physical and logical ports at the egress tile; and buffer management, through which, prior to enqueueing the packet, admission control tests are performed based on resource utilization (i.e., buffer and packet descriptors).
- resource utilization i.e., buffer and packet descriptors
- the ETM may also perform packet enqueue/dequeue, by processing enqueue requests coming from the ERPP to store incoming frames into per egress port class of service (CoS) queues prior to transmission (there may be any number of such CoS queues, such as 2, 4, or 8) per output port.
- CoS class of service
- the ETM may also include an egress packet scheduler to determine packet dequeue events, resulting in packets flowing from the ETM to the ETPP.
- the ETM may also perform egress packet scheduling by arbitrating across the outgoing ports and COS queues handled by the tile, to select packets for transmission; flow control of egress credit scheduler (ECS), by which, based on total egress tile, per egress port, and per egress port and queue buffer utilization, flow control is sent to the ECS to adjust the rate of transmission of credit grants (e.g., by implementing an ON/OFF type of control over credit grants); flow control of tile fabric data receive, through which, based on total ETM buffer utilization, link level flow control is sent to the fabric interface 120 to cease sending any traffic to the ETM.
- ECS egress credit scheduler
- FIG. 2 shows an example architecture 200 which is extended to include the path logic 202 .
- the path logic 202 may be implemented in any combination of hardware, firmware, and software.
- the path logic 202 may be implemented at any one or more points in the switch architecture 100 , or in other architectures in any network device.
- the path logic 202 may be a separate controller or processor/memory subsystem.
- the path logic 202 may be incorporated into, and share the processing resources of the ingress logic 108 , egress logic 110 , fabric interfaces 120 , network interfaces 116 , or switch fabric 106 .
- the path logic 202 includes a processor 204 and a memory 206 .
- the memory 206 stores path resolution instructions 210 , and resolution configuration information 212 .
- the path resolution instructions 210 may execute multiple stage Equal Cost Multi-Path (ECMP) routing as described below, for example.
- ECMP Equal Cost Multi-Path
- the memory may also store ECMP group tables 214 and ECMP member tables 216 , the purpose of which is described in detail below.
- the resolution configuration information 212 may guide the operation of the path resolution instructions 210 .
- the resolution configuration information 212 may specify the number of size of ECMP groups, ECMP member tables, may specify hash functions, the number of stages in the path resolution, or other parameters employed by the multiple stage resolution techniques described below.
- a node may perform ECMP resolution and may determine the next hop node on one of the equal cost paths to the destination B.
- One goal of ECMP resolution is to increase bandwidth available between A and B by distributing traffic among the equal cost paths.
- the paths between A and B forming an ECMP group may be weighted differently.
- the Weighted (W) ECMP (W-ECMP) resolution may then select a path from an ECMP group based on the weights of each path, typically given by the weights on the next hop nodes.
- FIG. 3 shows an example of W-ECMP resolution 300 .
- the parameter Ecmp_group indexes an ECMP group table 302 .
- the ECMP group table stores ECMP group entries for different ECMP groups.
- an entry may include a member count (“member_count”), which indicates the number of entries in the ECMP member table 304 for a particular group, and a base pointer (“base_ptr”), which addresses the first entry in the ECMP member table 304 for the group.
- member_count member count
- base_ptr base pointer
- the system may determine a hash value 308 .
- the hash value 308 may be a function of the data in selected packet fields. Given the hash value 308 , the next hop may be selected from the ECMP member table 304 .
- next hop may appear multiple times in the ECMP member table 304 for the group, in proportion to its weighting.
- the multiple appearances in the ECMP member table 304 implements the weighting for the next hop by providing additional or fewer entries for the next hop, leading to additional or fewer selections of the next hop.
- FIG. 4 shows an example of an overlay network 400 .
- An overlay network may include networks running on top of other networks.
- a datacenter may run an L2 or L3 network over an existing underlying Internet Protocol (IP) network.
- IP Internet Protocol
- the overlay network 400 includes a layer N and a layer M. Within layer M is a first ECMP group 402 . Within layer N is a second ECMP group 404 and a third ECMP group 406 .
- FIG. 4 shows tunnel A 408 between nodes R1 and R2, and tunnel B 410 between nodes R1 and R3.
- the nodes may be routers, switches, or any other type of network device.
- M is the overlay network running over network N
- network N is an existing IP network.
- node R1 receives packets originating from Host A and forwards the packets toward Host B, e.g., at layer M and N.
- the node R1 may select between the following paths for reaching host B:
- the nodes R6, R7 and R8, R9, R10 are assumed, in this example, to forward only in Layer N. Any node, including the nodes R6-R10, may also perform ECMP resolution to select the next hops in Layer N to reach node R2, or R3 respectively. The example below is given from the perspective of the node R1 making a decision on which node is the next hop for a particular packet it has received.
- nodes, e.g., R1 in an overlay network may need to resolve ECMP paths in multiple layers.
- the ECMP paths in one or more layers may be weighted.
- FIG. 5 shows an example weighting 500 for the paths in FIG. 4 at R1 to reach host B.
- tunnel A 408 has weight 3 and tunnel B 410 has weight 2.
- FIG. 5 shows the weightings for the nodes in the lower level network also, Layer N.
- Table 1 summarizes the weights shown in FIG. 5 .
- Tunnel A Wa 3
- the tunnel A will carry 1.5 times the traffic as tunnel B (e.g., 3 packets for every 2 packets that Tunnel B carries).
- Tunnel B Wb 2 Two of five packets will travel through Tunnel B.
- R6 W6 1 R6 will handle one third as much traffic as R7, and 1 ⁇ 4 of the traffic for tunnel A
- R8 W8 1 R8 handles one sixth of the traffic for tunnel B
- R9 W9 2
- R9 handles one third of the traffic for tunnel B
- the number of entries in the ECMP member table may grow as a multiplicative function of the weights. For this example:
- the number of entries per node in the ECMP member table reflects the desired percentage of traffic sent through that node.
- the minimum number of entries will also change, and the minimum number of entries is very often a multiplicative function of the weights. This causes the ECMP member table 304 to grow quickly, consuming valuable resources in the system.
- the number of ECMP member table entries may be reduced.
- the path resolution techniques described below avoid growth in the number of entries as a function of the multiplication of the weights in the multiple layers.
- the reduction in the number of entries may translate into, as examples, a lower memory requirement for routing, freeing existing memory for other uses, or permitting less memory to be installed in the node, or other benefits.
- a network device may perform ECMP resolution in multiple stages.
- the multiple stage resolution may occur in hardware, or for example by executing the path resolution instructions 210 with the processor 204 , or in a combination of hardware and software. Examples of multiple stage ECMP resolution are shown in FIGS. 6-8 .
- a system 600 includes a first stage 602 (stage 1 ) of resolution and a second stage 604 (stage 2 ) of resolution.
- the stages may resolve in order of higher to lower level layers, with a stage for each layer, and there may be any number of layers.
- the first stage 602 resolves ECMP in Layer M (e.g., the higher level layer first).
- Layer M e.g., the higher level layer first
- an ECMP pointer 612 points to an ECMP group 614 in the ECMP group table 616 .
- the ECMP group 614 specifies the ECMP group 1 412 (e.g., R2 and R3).
- the stage 1 ECMP member table 608 (e.g., 8K entries in size) implements the relative weighting of R2 and R3 using multiple entries for R2 (e.g., 3 entries as noted in Table 1) and R3 (e.g., 2 entries as noted in Table 1).
- the output 618 of the first stage 602 may be considered an intermediate path resolution output.
- the output 618 of the first stage 602 is an identifier of either ECMP Group 2 (to reach R2) or ECMP Group 3 (to reach R3). Note that both ECMP Group 2 and ECMP Group 3 may point to different places in the ECMP group table 620 where the group 2 and group 3 entries are stored.
- the second stage 604 performs path resolution for Layer N, in sequence after the first stage 602 has resolved Layer M.
- the second stage 604 resolves in Layer N (e.g., proceeding to the next lower network layer).
- the output 622 of the second stage 604 is next hop R6 or R7 to reach R2 (when stage 1 determined that R2 was the next hop), or next hop R8 or R9 or R10 to reach R3 (when stage 1 determined that R2 was the next hop).
- the stage 2 ECMP member table 624 (e.g., 8K entries in size) implements the relative weighting of R6, R7, R8, R9, and R10 (e.g., 3 entries for R7 and 1 entry for R6 as noted in Table 1).
- FIG. 6 also shows optional mode selection logic 606 .
- the mode selection logic 606 may be responsive to an operational mode, such as load balancing mode (LB_Mode).
- the load balancing mode selection may select among multiple options for generating an offset into the ECMP member table 608 .
- the LB_Mode may determine whether load balancing between group members (e.g., R2 and R3) occurs based on packet hash values, random values, a counter, or other factors.
- the mode selection logic 606 chooses between a modulo function 626 (e.g., member count modulo a hash value obtained from packet fields) of the member count obtained from the ECMP group table 616 and a hash 628 of the member count.
- the adder 630 adds the offset output from the mode selection logic 606 to the base address obtained from the ECMP group 614 to obtain an index into the ECMP member table 608 that actually selects the ECMP group for R2 or R3.
- the ECMP member table 608 may specify a next hop when, e.g., a single level of resolution is performed, when the current stage resolves down to an actual next hop, or may specify a next ECMP group, e.g., that identifies a group in the next network layer down.
- a type entry e.g., a bit field
- a type entry in the ECMP member table 608 may specify which type of result (e.g., a next hop or a group) is found in any entry in the table.
- different types of packets may be subject to different numbers of levels of resolution. If in this example, the network device is only forwarding in layer N for a particular packet, then there may be only one ECMP group to check.
- the output selection logic 610 may be responsive to the output selection signal 632 .
- the output selection signal 632 may determine whether the path resolution is finished at a particular stage (e.g., finished at stage 1 602 ). In other words, the output selection signal 632 may force the resolution to end at any given stage, and, as a specific example, to be a single level resolution.
- the output selection signal 632 may be provided for backwards compatibility and for low latency operation by avoiding multiple sequential table lookups. In that case, the first stage 602 may be configured to operate as previously described, to resolve one or more stages of path selection using many more entries in the ECMP member table 608 , for example.
- the output selection signal 632 may facilitate operation in a reduced number of levels mode (e.g., a single level mode), in which there may be, in the final stage, a relatively larger ECMP member table as described above that holds a number of entries that may be a multiplicative function of the weights to implementing path weighting.
- a reduced number of levels mode e.g., a single level mode
- FIG. 7 shows a three stage example 700 .
- the example 700 includes a first stage 702 , a second stage 74 , and a third stage 706 .
- Output selection logic 708 selects the output of one of the stages as the next hop output 710 .
- An output selection signal 712 provides the control input to the output selection logic 708 to cause the output selection logic 708 to choose the output of one of the three stages for the next hop.
- the path resolution may be considered to address multiple (e.g., 2) sequential tables for path resolution, instead of one very large table for path resolution.
- the example 802 shows that the output of the first stage 602 can also be a next hop, rather than a pointer into the group table for a subsequent stage.
- the direct output of a next hop in the first stage 602 may happen, for example, when the network device is forwarding only in a layer that is resolved by the first stage (in this example layer M) for all packets or for selected packets. In other words, the network device may bypass subsequent stages, such as the second stage 604 that ordinarily resolves layer N.
- the first stage 602 has resolved the path for layer M, and no further resolution is desired, e.g., because the specific packet does not need further path resolution.
- FIG. 8 shows that the output of the first stage 602 can also be a next hop, rather than a pointer into the group table for a subsequent stage.
- the direct output of a next hop in the first stage 602 may happen, for example, when the network device is forwarding only in a layer that is resolved by the first stage (in this example layer M) for all packets
- each output of the multiple stages may be analyzed (e.g., using a multiplexer and the type bits) to select an actual next hop that was found in any stage, as the overall next hop output of the multiple stages.
- FIG. 8 also shows an example 804 in which the resolved member index 806 from the first stage 602 points to the ECMP member table 624 in the second stage 604 .
- the member index may be the base pointer for the member table, plus the offset determined, e.g., by the member count.
- a modulo function, random number, round robin selection, or other function may determine the offset among the member count number of entries.
- the network device may interpret a member index as a pointer to a member table in a different stage.
- the ECMP group in any particular stage may have access to entries in an ECMP member table in another stage (e.g., the second stage 604 ), as well as to entries in the ECMP member table within that particular stage.
- FIG. 9 shows that the first stage 602 may be bypassed if there is no ECMP resolution in Layer M. This may happen, for example, when the network device is forwarding a packet directly to tunnel B in, e.g., an overlay network such as that shown in FIG. 4 .
- the second stage 604 may resolve ECMP for the layer N tunnel B to select between R6 and R7.
- packets may be selectively subject to path resolution in any one or more of the stages in the multiple stage resolution architecture.
- ECMP Group member count is programmed to 3 and ECMP member table has 3 entries, R1, R2, R3.
- R3 goes down, the network device updates member count to 2. The update, however, may cause traffic that was not flowing to R3 to be potentially reassigned to a different next hop, and this may result in temporary re-ordering of packets within a flow received at node B.
- traffic previously assigned to R1 should be affected by R3 going down, and that only the R3 traffic should be redirected to either R1 or R2.
- traffic previously assigned to R1 should not change assignment to R2 and traffic previously assigned to R2 should not change to R1. It may also take a certain amount of time for the network device to reprogram the ECMP group table and each ECMP member table entry that included an R3 next hop entry (e.g., to remove the entry).
- FIG. 10 shows an example traffic redistribution architecture 1000 .
- entries in the ECMP member table A 1002 may include redistribution protection entries.
- An example member table entry 1020 is shown for next hop 1 .
- the member table entry 1020 includes: next hop ID 1014 , which identifies a selected next hop, and the following redistribution protection entries: fallback group 1016 , which identifies the ECMP group to use if a protection status is set; and protection group pointer 1018 , which points to a protection group table from which to obtain status information.
- the status information may be, e.g., a bit that indicates whether the next hop is down.
- FIG. 10 shows examples of protection group tables 1010 and 1012 , which are discussed further below.
- the first stage 1004 ECMP Resolution has ECMP Group 100 containing next hop 1 , next hop 2 , next hop 3 as members
- the second stage 1006 ECMP resolution has an ECMP group table 1008 specifying ECMP group 101 , 102 , and 103 .
- ECMP group 101 contains next hop 2 and next hop 3 as members
- ECMP Group 102 contains next hop 1 and next hop 3 as members
- ECMP Group 103 contains next hop 1 and next hop 2 as members.
- the first stage 1004 ECMP member table is configured so that the next hop 1 entry points to protection group 10 ; the next hop 2 entry points to protection group 20 ; and the next hop 3 entry points to protection group 30 .
- the architecture 1000 may establish fallback ECMP groups that selectively omit specific next hops for which protection is desired. For example, to protect against next hop 1 failure, an ECMP group is defined to include next hop 2 and next hop 3 . Similarly, to protect against next hop 2 failure, an ECMP group is defined to include next hop 1 and next hop 3 . And, to protect against next hop 3 failure, an ECMP group is defined to include next hop 2 and next hop 1 . Accordingly regardless of which next hop fails, there is another ECMP group that omits the failed next hop and that can resolve the next hop in the path by specifying the allowable routing options other than the failed next hop. Note that a processing stage subsequent to the stage that detects the failure may resolve the fallback group.
- the first stage 1004 may resolve ECMP Group 100 to next hop 1 , next hop 2 or next hop 3 . Since the result of the first stage 1004 is a next hop, the network device need not execute the second stage 1006 .
- the network device software may set the status information in the protection group table 1102 accordingly (e.g., by setting a status bit to 1), for protection group 10 defined within the protection group table 1102 .
- ECMP member table A 1002 may include member table entries (e.g., the member table entry 1020 ) that include: next hop ID 1014 , which identifies a selected next hop, and the following redistribution protection entries: fallback group 1016 (set to 101 in this example), which identifies the ECMP group to use if a protection status is set; and protection group pointer 1018 (set to 10 in this example), which points to a protection group table from which to obtain status information.
- member table entries e.g., the member table entry 1020
- next hop ID 1014 which identifies a selected next hop
- redistribution protection entries include: fallback group 1016 (set to 101 in this example), which identifies the ECMP group to use if a protection status is set; and protection group pointer 1018 (set to 10 in this example), which points to a protection group table from which to obtain status information.
- the network device retrieves the protection group pointer 1018 from the member table entry 1020 , and reads the protection group 10 in the protection group table 1102 .
- the status information for protection group 10 indicates that next hop 1 is down.
- the network device selects the fallback ECMP group specified by fallback group 1016 : ECMP group 101 . Recall that ECMP group 101 includes next hop 2 and next hop 3 as members, and thus will not route any packets through next hop 1 .
- the network device passes the ECMP group selection ( 101 ) to the resolution stage 2 1006 .
- the network device may also set the stage 2 ECMP flag 1104 to indicate that the second stage 1006 should act on the output of the first stage 1004 .
- the second stage 1006 thus resolves ECMP group 101 , and obtains either next hop 2 or next hop 3 as a next hop.
- the second stage 1006 may also check whether the selected next hop is down, using the protection group table, and member table entries described above.
- the second stage 1006 may also include a protection group table 1012 , and provide protection against next hop 2 or next hop 3 going down.
- the resolution architecture may provide bypass selection as described with respect to FIG. 6 , using the output selection logic 610 and output selection signal 632 .
- the network device sets, e.g., a bit in the protection group table entry to protect against next hop failures. This may significantly decrease the failover time. In other words, the network device does not need to update all of the entries in the various ECMP member tables that point to next hop 1 . Note that the approach described above facilitates fast redirection of traffic to the failed next hop to other members in the ECMP group. Further, the approach does not affect traffic that was not assigned to the failed next hop.
- FIG. 12 shows logic 1200 that a network device may implement in hardware, software, or both to perform multiple stage ECMP path resolution.
- the logic 1200 determines how to allocate selection between multiple stages ( 1202 ).
- the allocation may be by network layer, for example, such that each stage performs ECMP path resolution for a particular network layer (e.g., layer M or N).
- layer M or N e.g., layer M or N
- other allocations of path resolution may be made, and some individual stages may be configured to resolve multiple layers, for example.
- the ECMP group table is established to include a group entry for each group that the stage will handle ( 1204 ).
- an ECMP member table is established to include group member entries for each group that reflect the weighting of the group members in each group ( 1206 ).
- the network device may perform multi-stage ECMP resolution.
- the network device need not use multi-stage ECMP resolution for every packet, however. Instead the network device may decide for which packets to perform ECMP resolution based on packet characteristics and packet criteria that may be present, for example, in the resolution configuration information 212 .
- the network device When the network device will perform multi-stage ECMP resolution, the network device starts the next stage of resolution ( 1212 ).
- the result of the stage may be a next hop, for example ( 1214 ). In that case, the network device may send the packet to the next hop determined by the resolution stage ( 1216 ). Note that the network device may stop resolution at any stage ( 1218 ). If resolution will continue, then the network device may pass the current resolution stage result on to the next stage ( 1220 ).
- the current resolution stage result may be an identifier of a next group (e.g., for routing in the next network layer), for example. Resolution may continue through as many stages as desired, until a next hop is identified, or until the network device decides to stop the resolution.
- the logic 1200 When multi-stage resolution is not performed, then the logic 1200 may perform single stage resolution and forward the packet to the next hop ( 1222 ).
- FIG. 13 shows logic 1300 that a network device may implement in hardware, software, or both to perform controlled traffic redistribution, e.g., in a multiple stage ECMP path resolution architecture.
- the logic 1300 determines how many and which next hop(s) to protect against failure ( 1302 ). For example, in an ECMP group of next hop 1 , next hop 2 , and next hop 3 , the logic 1300 may decide to protect against a failure by any of the three next hops. Accordingly, the logic 1300 may establish fallback ECMP groups that selectively omit specific next hops for which protection is desired ( 1304 ). For example, to protect against next hop 1 failure, the logic 1300 defines an ECMP group that includes: ⁇ next hop 2 , next hop 3 ⁇ .
- the logic 1300 defines an ECMP group that includes ⁇ next hop 1 , nop 3 ⁇ , and to protect against next hop 3 failure, the logic 1300 defines an ECMP group that includes: ⁇ next hop 2 , next hop 1 ⁇ . Accordingly regardless of which next hops fails, there is another ECMP group that omits the failed next hop and that can resolve the next hop in the path by specifying the allowable routing options that remain.
- the logic 1300 sets up the fallback ECMP groups in a processing stage subsequent to the stage that is able to detect a failure of an next hop ( 1306 ).
- the network device receives a packet ( 1308 ), and also monitors for next hop failure, and sets status bits accordingly, e.g., in the appropriate protection group tables.
- the logic 1300 submits the packet to the next stage of path resolution ( 1310 ).
- the logic 1300 may, for example, retrieve the protection group pointer from the member entry, and read the protection group in the protection group table for the next hop selected by the resolution stage ( 1312 ).
- the protection group table includes status information that indicates whether the next hop is down, and the member group entry for a next hop includes identifies a fallback group to use in the next stage when the next hop is down.
- the logic 1300 may select the fallback ECMP group specified by fallback group identifier in the next hop member entry ( 1314 ).
- the logic 1300 provides the fallback group identifier to the next resolution stage ( 1316 ).
- the logic 1300 may provide a pointer into the ECMP group table in the next stage that points to the fallback group.
- ECMP resolution may then continue in the subsequent stage, e.g., to select from among the next hops in the fallback group as the next hop for the packet.
- the methods, devices, techniques, and logic described above may be implemented in many different ways in many different combinations of hardware, software or both hardware and software.
- all or parts of the system may include circuitry in a controller, a microprocessor, or an application specific integrated circuit (ASIC), or may be implemented with discrete logic or components, or a combination of other types of analog or digital circuitry, combined on a single integrated circuit or distributed among multiple integrated circuits.
- ASIC application specific integrated circuit
- All or part of the logic described above may be implemented as instructions for execution by a processor, controller, or other processing device and may be stored in a tangible or non-transitory machine-readable or computer-readable medium such as flash memory, random access memory (RAM) or read only memory (ROM), erasable programmable read only memory (EPROM) or other machine-readable medium such as a compact disc read only memory (CDROM), or magnetic or optical disk.
- a product such as a computer program product, may include a storage medium and computer readable instructions stored on the medium, which when executed in an endpoint, computer system, or other device, cause the device to perform operations according to any of the description above.
- the processing capability described above may be distributed among multiple system components, such as among multiple processors and memories, optionally including multiple distributed processing systems.
- Parameters, databases, and other data structures may be separately stored and managed, may be incorporated into a single memory or database, may be logically and physically organized in many different ways, and may implemented in many ways, including data structures such as linked lists, hash tables, or implicit storage mechanisms.
- Programs may be parts (e.g., subroutines) of a single program, separate programs, distributed across several memories and processors, or implemented in many different ways, such as in a library, such as a shared library (e.g., a dynamic link library (DLL)).
- the DLL for example, may store code that performs any of the system processing described above. While various embodiments of the invention have been described, it will be apparent to those of ordinary skill in the art that many more embodiments and implementations are possible within the scope of the invention. Accordingly, the invention is not to be restricted except in light of the attached claims and their equivalents.
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
Abstract
Description
member_index=(hash_value %(member_count+1))+base— ptr
TABLE 1 | ||
Entity | Weight | Comment |
Tunnel A | Wa = 3 | The tunnel A will carry 1.5 times the traffic as |
tunnel B (e.g., 3 packets for every 2 packets that | ||
Tunnel B carries). | ||
Tunnel B | Wb = 2 | Two of five packets will travel through Tunnel B. |
R6 | W6 = 1 | R6 will handle one third as much traffic as R7, |
and ¼ of the traffic for tunnel A | ||
R7 | W7 = 3 | R7 will handle 3 times the traffic as R6, and |
¾th of the traffic for tunnel A | ||
R8 | W8 = 1 | R8 handles one sixth of the traffic for tunnel B |
R9 | W9 = 2 | R9 handles one third of the traffic for tunnel B |
R10 | W10 = 3 | R10 handles half of the traffic for tunnel B |
R6 handles (3/5)*(1/4) of all traffic=(3/20)=15% percent of all traffic
R7 handles (3/5)*(3/4)=(9/20)=45%
R8 handles (2/5)*(1/6)=(2/30)=6.66%
R9 handles (2/5)*(2/6)=(4/30)=13.33%
R10 handles (2/5)*(3/6)=(6/30)=20%
60*15%=9 entries for R6
60*45%=27 entries for R7
60*6.66%=4 entries for R8
60*13.33%=8 entries for R9
60*20%=12 entries for R10
Wa+Wb+W8+W9+W10+W6+W7=15 entries.
Claims (20)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US14/025,114 US9270601B2 (en) | 2013-04-01 | 2013-09-12 | Path resolution for hierarchical load distribution |
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201361807181P | 2013-04-01 | 2013-04-01 | |
US201361812052P | 2013-04-15 | 2013-04-15 | |
US14/025,114 US9270601B2 (en) | 2013-04-01 | 2013-09-12 | Path resolution for hierarchical load distribution |
Publications (2)
Publication Number | Publication Date |
---|---|
US20140293786A1 US20140293786A1 (en) | 2014-10-02 |
US9270601B2 true US9270601B2 (en) | 2016-02-23 |
Family
ID=51620751
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US14/025,114 Active 2034-03-12 US9270601B2 (en) | 2013-04-01 | 2013-09-12 | Path resolution for hierarchical load distribution |
Country Status (1)
Country | Link |
---|---|
US (1) | US9270601B2 (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12074760B2 (en) | 2021-09-16 | 2024-08-27 | International Business Machines Corporation | Path management |
Families Citing this family (18)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US8831010B1 (en) | 2011-10-20 | 2014-09-09 | Google Inc. | Providing routing information for weighted multi-path routing |
US9270601B2 (en) * | 2013-04-01 | 2016-02-23 | Broadcom Corporation | Path resolution for hierarchical load distribution |
US9571400B1 (en) * | 2014-02-25 | 2017-02-14 | Google Inc. | Weighted load balancing in a multistage network using hierarchical ECMP |
US9413668B2 (en) | 2014-04-23 | 2016-08-09 | Dell Products L.P. | Systems and methods for load-balancing in a data center |
US10033641B2 (en) | 2014-11-06 | 2018-07-24 | Juniper Networks, Inc. | Deterministic and optimized bit index explicit replication (BIER) forwarding |
US10153967B2 (en) * | 2014-11-06 | 2018-12-11 | Juniper Networks, Inc. | Deterministic and optimized bit index explicit replication (BIER) forwarding |
US10826822B2 (en) * | 2014-12-01 | 2020-11-03 | Mellanox Technologies, Ltd. | Label-based forwarding with enhanced scalability |
US9853890B2 (en) * | 2015-03-23 | 2017-12-26 | Mellanox Technologies, Ltd. | Efficient implementation of MPLS tables for multi-level and multi-path scenarios |
US10608937B1 (en) * | 2015-12-28 | 2020-03-31 | Amazon Technologies, Inc. | Determining destination resolution stages for forwarding decisions |
CN107634912B (en) * | 2016-07-19 | 2020-04-28 | 华为技术有限公司 | Load balancing method, device and device |
US10880207B2 (en) | 2017-11-28 | 2020-12-29 | Cumulus Networks Inc. | Methods and systems for flow virtualization and visibility |
US11196679B2 (en) * | 2020-03-27 | 2021-12-07 | Arista Networks, Inc. | Methods and systems for resource optimization |
US11496354B2 (en) * | 2020-06-16 | 2022-11-08 | Ciena Corporation | ECMP fast convergence on path failure using objects in a switching circuit |
US11683261B2 (en) | 2021-04-14 | 2023-06-20 | Avago Technologies International Sales Pte. Limited | Load-aware ECMP with flow tables |
CN116192732B (en) * | 2021-11-26 | 2025-02-25 | 苏州盛科通信股份有限公司 | Method and application of hierarchical equal-cost multi-path routing |
WO2023105490A1 (en) * | 2021-12-09 | 2023-06-15 | Marvell Israel (M.I.S.L) Ltd. | Hierarchical path selection in a communication network |
CN114884868B (en) * | 2022-05-10 | 2024-04-12 | 云合智网(上海)技术有限公司 | Link protection method based on ECMP group |
CN116074231B (en) * | 2022-12-28 | 2024-10-25 | 苏州盛科通信股份有限公司 | Message forwarding path determining method, device, network equipment and storage medium |
Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5437029A (en) | 1993-03-31 | 1995-07-25 | Matsushita Electric Industrial Co., Ltd. | Path name resolution method providing fixed speed of file accessing in computer network |
US20040202135A1 (en) * | 2003-04-11 | 2004-10-14 | Seung-Jae Han | User assignment strategies for hierarchical and other overlay networks |
US20060036719A1 (en) * | 2002-12-02 | 2006-02-16 | Ulf Bodin | Arrangements and method for hierarchical resource management in a layered network architecture |
US20090296579A1 (en) * | 2008-05-30 | 2009-12-03 | Cisco Technology, Inc. | Efficient convergence of grouped vpn prefixes |
US20120039161A1 (en) * | 2010-08-16 | 2012-02-16 | Allan David I | Automated traffic engineering for fat tree networks |
US20130051394A1 (en) | 2011-08-30 | 2013-02-28 | International Business Machines Corporation | Path resolve in symmetric infiniband networks |
EP2613502A1 (en) | 2006-09-05 | 2013-07-10 | Telefonaktiebolaget L M Ericsson (publ) | Locator Resolution in Communications Networks |
US20140160925A1 (en) * | 2012-12-10 | 2014-06-12 | Verizon Patent And Licensing Inc. | Virtual private network to label switched path mapping |
US8787154B1 (en) * | 2011-12-29 | 2014-07-22 | Juniper Networks, Inc. | Multi-topology resource scheduling within a computer network |
US20140244966A1 (en) * | 2013-02-28 | 2014-08-28 | Texas Instruments Incorporated | Packet processing match and action unit with stateful actions |
US8824274B1 (en) * | 2011-12-29 | 2014-09-02 | Juniper Networks, Inc. | Scheduled network layer programming within a multi-topology computer network |
US20140293786A1 (en) * | 2013-04-01 | 2014-10-02 | Broadcom Corporation | Path Resolution for Hierarchical Load Distribution |
-
2013
- 2013-09-12 US US14/025,114 patent/US9270601B2/en active Active
Patent Citations (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5437029A (en) | 1993-03-31 | 1995-07-25 | Matsushita Electric Industrial Co., Ltd. | Path name resolution method providing fixed speed of file accessing in computer network |
US20060036719A1 (en) * | 2002-12-02 | 2006-02-16 | Ulf Bodin | Arrangements and method for hierarchical resource management in a layered network architecture |
US20040202135A1 (en) * | 2003-04-11 | 2004-10-14 | Seung-Jae Han | User assignment strategies for hierarchical and other overlay networks |
EP2613502A1 (en) | 2006-09-05 | 2013-07-10 | Telefonaktiebolaget L M Ericsson (publ) | Locator Resolution in Communications Networks |
US20090296579A1 (en) * | 2008-05-30 | 2009-12-03 | Cisco Technology, Inc. | Efficient convergence of grouped vpn prefixes |
US20120039161A1 (en) * | 2010-08-16 | 2012-02-16 | Allan David I | Automated traffic engineering for fat tree networks |
US20130051394A1 (en) | 2011-08-30 | 2013-02-28 | International Business Machines Corporation | Path resolve in symmetric infiniband networks |
US8787154B1 (en) * | 2011-12-29 | 2014-07-22 | Juniper Networks, Inc. | Multi-topology resource scheduling within a computer network |
US8824274B1 (en) * | 2011-12-29 | 2014-09-02 | Juniper Networks, Inc. | Scheduled network layer programming within a multi-topology computer network |
US20140160925A1 (en) * | 2012-12-10 | 2014-06-12 | Verizon Patent And Licensing Inc. | Virtual private network to label switched path mapping |
US20140244966A1 (en) * | 2013-02-28 | 2014-08-28 | Texas Instruments Incorporated | Packet processing match and action unit with stateful actions |
US20140293786A1 (en) * | 2013-04-01 | 2014-10-02 | Broadcom Corporation | Path Resolution for Hierarchical Load Distribution |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12074760B2 (en) | 2021-09-16 | 2024-08-27 | International Business Machines Corporation | Path management |
Also Published As
Publication number | Publication date |
---|---|
US20140293786A1 (en) | 2014-10-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9270601B2 (en) | Path resolution for hierarchical load distribution | |
US12423249B2 (en) | Dragonfly routing with incomplete group connectivity | |
JP7417825B2 (en) | slice-based routing | |
US7586909B1 (en) | Striping algorithm for switching fabric | |
CN108390820B (en) | Load balancing method, equipment and system | |
US7701849B1 (en) | Flow-based queuing of network traffic | |
US10097479B1 (en) | Methods and apparatus for randomly distributing traffic in a multi-path switch fabric | |
US8699491B2 (en) | Network element with shared buffers | |
US9083655B2 (en) | Internal cut-through for distributed switches | |
US20130308647A1 (en) | Virtual Local Area Network State Processing in a Layer 2 Ethernet Switch | |
JP2006005437A (en) | Traffic distribution control device | |
US9866401B2 (en) | Dynamic protection of shared memory and packet descriptors used by output queues in a network device | |
US8144584B1 (en) | WRR scheduler configuration for optimized latency, buffer utilization | |
US10305819B2 (en) | Dynamic protection of shared memory used by output queues in a network device | |
US20120307641A1 (en) | Dynamic Flow Segregation for Optimal Load Balancing Among Ports in an Etherchannel Group | |
WO2016183155A1 (en) | Dynamic protection of shared memory used by output queues in a network device | |
US10305787B2 (en) | Dropping cells of a same packet sent among multiple paths within a packet switching device | |
US8289989B1 (en) | System and method for arbitration using availability signals | |
EP2107724A1 (en) | Improved MAC address learning | |
US12120017B1 (en) | Equal cost multipath forwarding using ingress port |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: BROADCOM CORPORATION, CALIFORNIA Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:LIN, MEG PEI;AGARWAL, PUNEET;LESHEM, LIAV;SIGNING DATES FROM 20130820 TO 20130907;REEL/FRAME:031195/0452 |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
AS | Assignment |
Owner name: BANK OF AMERICA, N.A., AS COLLATERAL AGENT, NORTH CAROLINA Free format text: PATENT SECURITY AGREEMENT;ASSIGNOR:BROADCOM CORPORATION;REEL/FRAME:037806/0001 Effective date: 20160201 Owner name: BANK OF AMERICA, N.A., AS COLLATERAL AGENT, NORTH Free format text: PATENT SECURITY AGREEMENT;ASSIGNOR:BROADCOM CORPORATION;REEL/FRAME:037806/0001 Effective date: 20160201 |
|
CC | Certificate of correction | ||
AS | Assignment |
Owner name: AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD., SINGAPORE Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:BROADCOM CORPORATION;REEL/FRAME:041706/0001 Effective date: 20170120 Owner name: AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:BROADCOM CORPORATION;REEL/FRAME:041706/0001 Effective date: 20170120 |
|
AS | Assignment |
Owner name: BROADCOM CORPORATION, CALIFORNIA Free format text: TERMINATION AND RELEASE OF SECURITY INTEREST IN PATENTS;ASSIGNOR:BANK OF AMERICA, N.A., AS COLLATERAL AGENT;REEL/FRAME:041712/0001 Effective date: 20170119 |
|
AS | Assignment |
Owner name: AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE. LIMITE Free format text: MERGER;ASSIGNOR:AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD.;REEL/FRAME:047229/0408 Effective date: 20180509 |
|
AS | Assignment |
Owner name: AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE. LIMITE Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE EFFECTIVE DATE PREVIOUSLY RECORDED ON REEL 047229 FRAME 0408. ASSIGNOR(S) HEREBY CONFIRMS THE THE EFFECTIVE DATE IS 09/05/2018;ASSIGNOR:AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD.;REEL/FRAME:047349/0001 Effective date: 20180905 |
|
AS | Assignment |
Owner name: AVAGO TECHNOLOGIES INTERNATIONAL SALES PTE. LIMITE Free format text: CORRECTIVE ASSIGNMENT TO CORRECT THE PATENT NUMBER 9,385,856 TO 9,385,756 PREVIOUSLY RECORDED AT REEL: 47349 FRAME: 001. ASSIGNOR(S) HEREBY CONFIRMS THE MERGER;ASSIGNOR:AVAGO TECHNOLOGIES GENERAL IP (SINGAPORE) PTE. LTD.;REEL/FRAME:051144/0648 Effective date: 20180905 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 4TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1551); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 4 |
|
MAFP | Maintenance fee payment |
Free format text: PAYMENT OF MAINTENANCE FEE, 8TH YEAR, LARGE ENTITY (ORIGINAL EVENT CODE: M1552); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Year of fee payment: 8 |