2d Ethernet
2d Ethernet
Ethernet
Ethernet
• The dominant local are network for over 30 years
• Built in the mid-70s at Xerox PARC
• Standardized as IEEE 802.3
• Originally 10Mbps
• Later 100Mbps, 1Gbps, 10Gbps, 40Gbps, and 100Gbps
• Based on the Aloha radio network protocol
• Very common at datacenters and local networks, competes with Wi-Fi
CSMA/CD
• Carrier Sense
• Nodes can sense whether the medium is “idle” or “busy”
CSMA/CD
• Carrier Sense
• Nodes can sense whether the medium is “idle” or “busy”
• Multiple Access
• Nodes share a single medium, like a bus (originally a coax cable)
• One node transmits, all nodes receive
CSMA/CD
• Carrier Sense
• Nodes can sense whether the medium is “idle” or “busy”
• Multiple Access
• Nodes share a single medium, like a bus (originally a coax cable)
• One node transmits, all nodes receive
• Collision Detection
• Nodes detect when the messages they transmit interfere with a
message transmitted by another node
Ethernet switches
• Today Ethernet is usually deployed as point-to-point
• Ethernet switches multiplexes access to medium
• Close to no collisions, and carrier sense rarely applies
• But concepts still apply to networks with shared mediums, like Wi-Fi
• Old Ethernet hubs created a shared medium, but are no longer in use
Ethernet switches
• Today Ethernet is usually deployed as point-to-point
• Ethernet switches multiplexes access to medium
• Close to no collisions, and carrier sense rarely applies
• But concepts still apply to networks with shared mediums, like Wi-Fi
• Old Ethernet hubs created a shared medium, but are no longer in use
A B C
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
A B C
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
A B C
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
A B C
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
A B C
Interference
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
A B C
Interference
detected at C
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
• Transmissions must be long enough for concurrent transmission to
collide with it
A B C
A must keep
transmitting
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
• Transmissions must be long enough for concurrent transmission to
collide with it
A B C
A must keep
transmitting
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
• Transmissions must be long enough for concurrent transmission to
collide with it
A B C
A must keep
transmitting
Collision detection
• Adaptors detect collisions when they are transmitting
• Collision happens when a concurrent competing transmission occurs
• Transmissions must be long enough for concurrent transmission to
collide with it
A B C
A finally detects
the collision
Minimum frame size
• Transmissions must continue until concurrent competing
transmissions reach sender
• Worst case
• Two nodes at the extremes of the Ethernet cable
• Longest possible cable is 2500m and round-trip delay is 51.2us
• Node C performs carrier sense and starts transmitting right before A’s transmission
reaches it → it will take a whole round-trip delay for C’s transmission to reach A
• On 10Mbps Ethernet, we can transmit 512 bits in 51.2us
Multi-access and Ethernet performance
• Multi-access Ethernets perform badly under heavy load
• A utilization of 30% is already considered heavy load
• Lots of capacity wasted by collisions
• Early Ethernet deployments were conservative
• Few hosts and short cables to minimize collisions
• Flow and congestion control at higher layers help a ton
Gigabit Ethernet
• Now there is 100Gbps Ethernet, and 400Gbps is on the way
• Faster Ethernet standards are backwards compatible
• Can connect a 40Gbps to a 1Gbps adaptor
• Faster speeds require
• Extending the minimum packet size to detect collisions
• Avoiding collisions altogether by using switches
• Better cables
• Shorter cables
Dominance and longevity of Ethernet
• Several properties propelled Ethernet into a dominant position
• Entirely plug and play, in the ’70s
• Zero configuration required
• If cables and adaptors work, communication works
• Easy to attach new hosts and expand
• Cables and switches are cheap
• Backwards compatibility allows incremental deployment