Re:Tech startups best positioned to strike engineering gold
by nanijoe on Thursday May 17, 2012 @02:36PM
(#3988401)
So for a layer 2 packet, the routing table does not get consulted..
In effect, the time to forward a layer 3 packet is = time to forward layer 2 packet + time to look up routing table (no matter how quickly). ie Layer 3 packets take longer to forward than Layer 2 packets
One part of the pipeline checks if the destination MAC matches the switch's MAC. If it does then the packet is routed and the ASIC will read the destination IP address from the packet. The dest IP is looked up in the routing table to figure out which port the next hop lives on and what it's MAC address is. If the destination MAC is for another host, then the MAC table is checked to see what port to send the mac.
Modern ASICs are designed to handle both cases very quickly.