Professional Documents
Culture Documents
Ethernet: EECE 542 Brad Guenther
Ethernet: EECE 542 Brad Guenther
EECE 542
Brad Guenther
History
• Originally developed at Xerox PARC (Palo Alto
Research Center) in 1973
• First 10 Mbps standard published in 1980 by
DEC, Intel, and Xerox (DIX). Used thick coax
cable.
• This led to “IEEE 802.3 Carrier Sense Multiple
Access with Collision Detection (CSMA/CD)
Access Method and Physical Layer
Specifications” in 1985.
10Base5 10BaseT 10baseFL 100BaseTX 100BaseFX
Media Thick coax TIA/EIA 62.2/125 TIA/EIA 62.2/125
RG-8, UTP Cat Multi- UTP Cat 5 Multi-mode
RG-11 3,4,5,5e,6 mode and up (2 Fiber
(2 pair) pair)
Fiber Or Single
mode fiber
7 1 6 6 2 1500 max 4
Destination Source Data FCS
Preamble SD Length Pad
Address Address
• CRC-32 FCS
Frame Encapsulation
• Different Encapsulation types exist for
Ethernet
• Two machines communicating using a
given layer three protocol must be using the
same Ethernet encapsulation type
• Different encapsulation types can be used
for different layer 3 protocols.
Frame Encapsulation Types
• 802.3 (“Raw” Ethernet)
• Ethernet II
• 802.2 (802.3 w/ addition of 802.2 headers)
• SNAP (802.3 + 802.2 + SNAP headers)
Ethernet II
• Standard introduced by DIX.
• Used almost universally by networks using
TCP/IP
• Uses type field that denotes the layer 3
protocol that is encapsulated within
• Ex: 0x0800 = IPv4, 0806 = ARP
802.3 MAC Frame
7 1 6 6 2 46-1500 4
Destination Source
Preamble SD Length Information Pad FCS
Address Address
Synch Start 64 to 1518 bytes
frame
Ethernet II Frame
7 1 6 6 2 4
Destination Source Information Pad FCS
Preamble SD Type
Address Address
Synch Start 64 to 1518 bytes
frame
802.2 -- LLC
• Logical Link Control
• Added more layer 2 header information that
act as pointers to memory buffers.
• Provides information to layer 3.
• Allows multiplexing of upper layer
protocols on the same network
• Service Access Points “SAP”
• Maybe either connection-oriented or
connectionless
Connectionless Services
• Type 1 LLC (“unreliable”)
I/G C/R
1 7 bits 1 7 bits
Figure 6.14
Type 1 Commands
• Unnumbered Information Frame (UI) (no
reply expected)
• Exchange Identification Request (XID) –
exchange supported LLC services and
receive window size.
• XID reply
• Test Frame Request
• Test Frame Reply
Type 2 Commands
• Information Frame (I-Frame) (blocks of
sequentially number data – also contains
number of next expected block)
• Receiver Ready (RR) (used to ack received
data when no data to send)
• Receiver Not Ready (RNR) (hold on a
second)
• Reject (Rej) (Could you send that again?)
Type 2 Commands (cont.)
• SABME (Sa-bim-ee) Set Async. Balanced Mode
Extended – used to establish link between two
stations
• Disconnect (DISC) Used to terminate a connection
• Unnumbered Ack (UA)
• Disconnect Mode (DM) response to DISC
• Frame Reject (FRMR) catastrophic failure (can’t
be fixed by retrans.
SNAP
• Sub-Network Access Protocol
• Adds 5 bytes of headers
• First 3 bytes are similar to an OUI – often
the same information. If not used, it is set
to zero.
• Remaining two bytes contain information
about the encapsulated protocol (similar to
Ethernet II)
ORG Type
3 2
LLC
PDU AA AA 03
1 1 1
• 568-a: 4 Blue
5 White/Blue
6 Orange
7 White/Brown
8 Brown
1 White/Orange
2 Orange
3 White/Green
4 Blue
• 568-b 5 White/Blue
6 Green
7 White/Brown
8 Brown
Other cabling issues
• MDF, IDF
• Where do you locate them
• POP (not meaning email here…)
• How many?
• Max 2 Hubs & 2 100m Segments (plus
patch cables up to 10m)
• 7 switches between devices (14 hops)
100 Mbps
• 100BaseTX: 802.3, >= cat 5 UTP, 100 meters, 2 pairs (4
wires) EIA/TIA 568/569
• 100BaseT4: 100BaseT4 uses four pairs of wiring: one
for transmission, one for reception, and two that can do
either one. It basically has three pairs of wiring to either
transmit or receive data. It divides the 100Mbit/sec data
signal between the three pairs of wiring, thus reducing
the average frequency of signals on the cable. This lets
you work with cat 3 and up UTP and cat 1 STP.
• 100BaseFX: 62.5/125 fiber, 400 meters
• 100VG….
100BaseTX
• Cat 5 UTP, Uses 2 pairs (1 for RX & 1 TX)
• Uses MLT-3 Line Coding
• Uses 8B10B Block coding
• One hub per collision domain as a general rule
(10BaseT allowed them to be cascaded 4 deep)
• 100BaseTX switches will generally operate at
either 10 or 100 Mbps and can be used to connect
10 and 100 Mbps segments
Ethernet
Server Switch
Ethernet
Switch
10 Mbps links
MLT-3
Auto-negotiation
• Uses a series of link pulses to transmit a 16
bit word (Fast Link Pulse Burst)
• 17-33 pulses similar to Normal Link Pulses
used by 10baseT to test link
• Burst lasts about 2ms
• Interleaves clock pulses with data pulses.
No pulse within time frame after clock
pulse indicates a 0.
Auto-negotiation
• 5 Selector bits (0001=802.3)
• 8 Tech. Ability Bits
• Priority: 1000Base-T FD, 1000Base-T HD,
100Base-TX FD, 100Base-T4 (HD), 100Base-TX
HD, 10Base-T FD, 10Base-T
• Hubs have to be half duplex same speed – why?
• Causes problems if improper cables used.
• Other “black magic”
802.3 Full Duplex Operation
• Only done by switches hubs claiming to be
full duplex capable are actually switches?
• Why? What do switches and hubs “look”
like logically?
• What impact does this have over the
maximum (unrepeated segment length)?
Maximum overall segment length? Why?
• Impact on frame size? (min or max)?
100BaseT4
• Designed to run over older voice grade cat
3 UTP
• Uses 4 pair (8 wires) with each wire
running at 25 Mbaud (33.3 Mbps).
• One pair is dedicated TX, One pair is
dedicated RX, and Two pair are
bidirectional
100BaseT4
• Uses 8B6T encoding
• 00(hex)=+-00+-
• 01(hex)=0+-+-0
• Maps 2^8 (256) 3^6 (729) values
• Combination of line coding and block
coding
• 3 wire pairs x 25 M symbols/sec x 8 bits/6
symbols = 100 Mbps
Gigabit
• 1000BASE-LX 1000-Mbps gigabit Ethernet
specification using two strands of multimode or
single mode fiber-optic cable per link. To
guarantee proper signal recovery, a 1000BASE-
LX link cannot exceed 550 meters over multimode
fiber or 10 km over single mode fiber.
• 1000BASE-SX: 1000-Mbps gigabit Ethernet
specification using two strands of multimode
fiber-optic cable per link. 1000BASE-SX links
cannot exceed 550 meters.
Gigabit (cont)
• 1000BASE-X: General Term for gigabit
over fiber.
• Use 8B10B block coding and NRZ Line
coding
• 1000BASE-T: Gigabit over copper, IEEE
802.3ab, Cat 5 UTP, 4 pair, 100 meters
Gigabit Over Copper
• 802.3ab
• Full Duplex only
• 8B1Q4 converts 8 bits to 4 quinary symbols
• 4D-PAM5 encoding
• 8 bits are mapped to 4 symbols, each symbol has a
value of +2,+1,0,-1, or –2
• Maps 2^8 (256) bits into 5^4 (625) symbols
• 125 Mbaud per pair x 4 pair x 8 bits / 4 symbols =
1 Gbps
Gigabit over Cu (Cont)
• Sends code groups of {2,0-2} when idle
• Start of Stream delimiter sent when new
frame arrives
• “Use of hybrids and cancellers enables full
duplex transmission by allowing symbols to
be transmitted and received on the same
wire pair at the the same time” – IEEE
802.3ab supplement to 802.3 std.
10 Gigabit Networks
• IEEE 802.3ae
• Frame length: 40 bytes to 16,380 bytes
• No autonegotiation
• Full Duplex Only
• What impact does this have on frame
encapsulation? I.e. length field? What
does it to to the minimum length?
10gae
• Somewhat being defined by an organization
of manufacturers
• Why has Ethernet not been a WAN standard
• Why might 10gae be WAN capable? How?
• SONET – a layer 2 WAN technology can be
used to carry Ethernet Frames.
• Use features of both technologies to
overcome problems
10G Ethernet
• Both parallel and serial standards exist
• 10GBase-(S,L, or E)(R,W, or X)
• S = short wavelength (850nm), L= long
wavelength (1300nm), and E= ext.
wavelength (1550 nm)
• R uses 64B/66B, W uses 64B/66B encap. In
STS-192 for SONET, and X uses 8B/10B
Parallel LAN 10G Ethernet
• WWDM LAN PHY uses 4 parallel channels
of 8B/10B coded data.
• Each channel is called a lane and sends at
2.5G symbols/sec = 3.125 Gbs
• 10Base-LX4
• Added IPG (not the same as the padding –
done at a lower layer)
Serial 10G Ethernet
• LAN PHY’s: 10GBase-SR (2-300m),
10GBase-LR (2-10km), 10GBase-ER (2-
40km)
• WAN PHY’s: 10GBase-SW (2-300m),
10GBase-LW (2-10km), 10GBase-EW (2-
40km)
Block & Line Coding Review
Block Line
10BaseT N/A Manchester
10BaseF N/A NRZI
100BaseTX 4B/5B Manchester
100BaseT4 8B6T N/A
100BaseF 4B/5B NRZI
1000BaseT 4D-PAM5 N/A
1000BaseF 8B/10B NRZI
10gae 8B/10B or NRZI
64B/66B
Additional Special Frames
• VLAN Frames (802.1Q)
• Pause Frames
VLAN’s
• Break switches up into multiple virtual
switches
• Can be either tagged or untagged
• Untagged VLAN’s use normal ethernet
frames
• Tagged VLAN’s add additional header
information
802.1Q VLAN Frame Tags
802.1Q Tag Ctrl
Dst Src Tag Info
L/T Data Pad FCS
Addr Addr (in L/T
field)
2 - bytes 2-bytes
n k
b( x ) x i( x) r( x)
r(x) is the remainder of the polynomial
division of the shifted form of i(x)/g(x)
g(x) has dimension (n-k)
Gives n codeword bits
First part shows k info bits shifted n-k
bits to the left
Second part is the (n-k) bit remainder
polynomial
(n codeword bits, k info bits, and n-k
check bits)
CRC Codes
CRC Encoding Steps
• Multiply i(x) by x^(n-k) to shift i(x) n-k bits
to the left, inserting 0’s on the right
• Divide x^(n-k)*i(x) by g(x) to get q(x) +
r(x). (polynomial division uses modulo-2
addition – i.e. x^j+x^j=(1+1)x^j=0
Division Example
• k=4, n=6
• i(x)=x^3+x^2+1
• g(x)=x^2+1
• How many check bits will there be?
• Find q(x) and r(x)
• How long would b(x) be? What is the value
of b(x)?
Binary Example
• i(x) = x^2+x = 110
• g(x) = x^3+x+1=1011
• k=3, n=6, how many check bits?
• What is q(x), r(x)
• What would b(x) be in a.) binary form & b.)
poly form
CRC and Ethernet
• Ethernet uses CRC-32 which uses
G(x)=x^32+x^26+x^23+x^22+x^16+x^12+x^11+x^10+x^
8+x^7+x^5+x^4+x^2+x+1 (degree 32 polynomial)
• How could the receiver use this? (What two
ways could it calculate to see if the FCS
was correct?)
• A bit more to it…