Re:Tech startups best positioned to strike engineering gold
by nanijoe on Thursday May 17, 2012 @12:50PM
(#3987856)
A little off topic..I had never heard of Arista Networks until just now. I did go and check out the product line, and one of those products promises low latency switching at the same speeds for both layer 2 and layer 3!!
How is it possible to process routed and no-routed traffic at the same speed?
I'm genuinely interested...Designing networks is part of what I do for a living.
[ Parent
| on HN ]
Re:Tech startups best positioned to strike engineering gold
by aaronbee on Thursday May 17, 2012 @01:25PM
(#3988037)
Every packet goes through special switching hardware or ASIC. This ASIC has a pipeline for processing packets like a CPU has a pipeline for processing instructions. The ASIC also contains very fast tables optimized for storing and looking up MAC and IP addresses.
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.
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