4b Ethernet - Medium Access Control Sublayer
4b Ethernet - Medium Access Control Sublayer
4b : ETHERNET
IEEE standards
802.3: Ethernet 802.11: Wireless LAN 802.15: Bluetooth 802.16: Wireless MAN
Ethernet Cabling
Four Types
Type
10Base5: 10Base2: 10BaseT: 10BaseF:
Cable
Remark
Thick coax 500m Thin Coax 185 m Twisted Pair 100 m Fiber Optics 2000m
100 Original cable/ obsolate 30 No hub Needed 1024 cheapest system 1024 Best between bldgs
Ethernet Cabling
10Base5 (Thick Ethernet) 10Mbps Base: Baseband transmission For Coax medium its length is given in round number to multiples of 100m Its max segment length = 500 m Signal-regenerating repeaters Thick Coax Advantages: Low attenuation, excellent noise immunity, superior mechanical strength Disadvantages: Bulky, difficult to pull, transceiver boxes too expensive * Wiring represented a significant part of total installed cost.
Ethernet Cabling
10Base2 (Thin Ethernet)
Cheapernet
10 Mbps 185 meter segment length Signal-regenerating repeaters Transceiver was integrated onto the adapter Thin Coax (coax thinner and lighter) Advantages: Easier to install, reduced hardware cost, BNC connectors widely deployed lower installation costs. Disadvantages: Attenuation not as good, could not support as many stations due to signal reflection caused by BNC Tee Connector.
(b)
Figure 6.55
Hub Concept
Separate transmit and receive pair of wires. The repeater in the hub retransmits the signal received on any input pair onto ALL output pairs. Essentially the hub emulates a broadcast channel with collisions detected by receiving nodes.
Hub Concept
10Base T
Hub Concept
10BaseT
Switched Ethernet
switch
High-Speed Backplane or Interconnection fabric
Switched Ethernet
* Basic idea: improve on the Hub concept The switch learns destination locations by remembering the ports of the associated source address in a table. The switch may not have to broadcast to all output ports. It may be able to send the frame only to the destination port. a big performance advantage over a hub, if more than one frame transfer can go through the switch concurrently.
Switched Ethernet
The advantage comes when the switched Ethernet backplane is able to repeat more than one frame in parallel (a separate backplane bus line for each node).
The frame is relayed onto the required output port via the ports own backplane bus line.
Under this scheme collisions are still possible when two concurrently arriving frames are destined for the same station. Note each parallel transmission can take place at 10Mbps!!
Switched Ethernet
Note: Tanenbaums discussion considers a more powerful switch that reduces collisions even further!!
Server
10 Mbps links
Figure 6.57
Features of Ethernet
Features of Ethernet
Operational Description Ethernet stations sense the channel. When the channel is free the station transmits a frame. Stations monitor the ether during the transmission. If a collision is detected by any station, the transmission is terminated immediately and a jam signal is sent. Upon collision, stations backoff using a local counter and then retransmit.
B
B begins to transmit at t= tprop- B detects collision at t= tprop
A
A detects collision at t= 2 tprop-
B
It takes 2 tprop to find out if channel has been captured
Leon-Garcia & Widjaja: Communication Networks Figure 6.22
Ethernet
frame contention frame
Frame seizes the channel after 2 tprop On 1 km Ethernet, tprop is approximately 5 microseconds. Contention interval = 2 tprop Interframe gap = 9.6 microseconds Modeled as slotted scheme with slot = 2 tprop
Figure 6.23
7 Preamble Sync
1 SD Start frame
2 or 6 Destination Address
2 or 6 Source Address
4 chksum
Total size of Ethernet frame : 64 to 1518 bytes Destination address is either single address or group address (broadcast = 111...111) Group address : Multicast Addresses are defined on local or universal basis
0 1 0 1
Single address
Group address
Local address Global address
Figure 6.52
Ethernet Frame
7 Preamble Sync 1 SD Start frame 2 or 6 Destination Address 2 or 6 Source Address 2 Type Information Pad 4 chksum
64 to 1518 bytes
Figure 6.53
Convergence Sublayer
MII
100 BASE T
Instead use bit encoding schemes with sufficient transitions for receiver to maintain clock synchronization.
100 BASE T4
Can use four separate twisted pairs of Cat 3 UTP Utilize three pair in both directions (at 33 1/3 Mbps) with other pair for carrier sense/collision detection. Three-level ternary code is used 8B/6T. Prior to transmission each set of 8 bits is converted into 6 ternary symbols.
100 BASE T4
The signaling rate becomes
100 x 6/8 ------------ = 25 MHz 3 Three signal levels : +V, 0, -V Codewords are selected such that line is d.c.balanced All codewords have a combined weight of 0 or 1.
100 BASE T4
36 = 729 possible codewords. Only 256 codewords are requires, hence they are selected:
To achieve d.c. balance Assuming all codewords have at least two signal transitions within them (for receiver clock synchronization).
To solve d.c. wander, whenever a string of codewords with +1 are sent, alternate codewords (inverted before transmission) are used. To reduce latency, ternary symbols are sent staggered on the three lines.
100 BASE T4
Ethernet Interframe gap of 9.6 microseconds becomes 960 nanoseconds in Fast Ethernet. 100 m. max distance to hub; 200 meters between stations. Maximum of two Class II repeaters.
100 Base TX
Uses two pair of twisted pair, one pair for transmission and one pair for reception. Uses either STP or Cat 5 UTP. Uses MTL-3 signaling scheme that involves three voltages. Uses 4B/5B encoding. There is a guaranteed signal transition at least every two bits.
100 BASE FX
Uses two optical fibers, one for transmission and one for reception. Uses FDDI technology of converting 4B/5B to NRZI code group streams into optical signals.
Collision Domains
Uses 802.3 full-duplex Ethernet technology. Uses 802.3x flow control. All Gigabit Ethernet configurations are point-topoint!
IEEE 802.3ab
IEEE 802.3z
Source - IEEE
GMII
Medium
GMII
Allows any physical layer to be used with a given MAC. Namely, Fiber Channel physical layer can be used with CSMA/CD. Permits both full-duplex and halfduplex.
1000 BASE SX
Short wavelength
Supports duplex links up to 275 meters. 770-860 nm range; 850 nm laser wavelength (FC) Fiber Channel technology PCS (Physical Code Sublayer) includes 8B/10B encoding with 1.25 Gbps line. Only multimode fiber
8B/10B Encoder
When the encoder has a choice for codewords, it always chooses the codeword that moves in the direction of balancing the number of 0s and 1s. This keeps the DC component of the signal as low as possible.
1000 BASE LX
Long wavelength
Supports duplex links up to 550 meters. 1270-1355 nm range; 1300 nm wavelength using lasers. Fiber Channel technology PCS (Physical Code Sublayer) includes 8B/10B encoding with 1.25 Gbps line. Either single mode or multimode fiber.
1000 BASE CX
Short haul copper jumpers
Shielded twisted pair. 25 meters or less typically within wiring closet. PCS (Physical Code Sublayer) includes 8B/10B encoding with 1.25 Gbps line. Each link is composed of a separate shielded twisted pair running in each direction.
1000 BASE T
Twisted Pair
Four pairs of Category 5 UTP. IEEE 802.3ab ratified in June 1999. Category 5, 6 and 7 copper up to 100 meters. This requires extensive signal processing.
Gigabit Ethernet
Viewed as LAN solution while ATM is WAN solution. Gigabit Ethernet can be shared (hub) or switched. Shared Hub
Half duplex: CSMA/CD with MAC changes: Carrier Extension Frame Bursting
Switch
Full duplex: Buffered repeater called {Buffered Distributor}
Gigabit Ethernet
Carrier Extension
Frame RRRRRRRRRRRRR Carrier Extension
512 bytes
For 10BaseT : 2.5 km max; slot time = 64 bytes For 1000BaseT: 200 m max; slot time = 512 bytes Carrier Extension :: continue transmitting control characters [R] to fill collision interval. This permits minimum 64-byte frame to be handled. Control characters discarded at destination. For small frames net throughput is only slightly better than Fast Ethernet.
Based on Raj Jains slide
Frame Bursting
Frame Extension 512 bytes Frame burst Frame Frame Frame
Source sends out burst of frames without relinquishing control of the network. Uses Ethernet Interframe gap filled with extension bits (96 bits) Maximum frame burst is 8192 bytes Three times more throughput for small frames.
Based on Raj Jains slide
Buffered Distributor
Hub
A buffered distributor is a new type of 802.3 hub where incoming frames are buffered in FIFOs. CSMA/CD arbitration is inside the distributor to transfer frames from an incoming FIFO to all outgoing FIFOs. 802.3x frame-based flow control is used to handle congestion. All links are full-duplex.
Based on Raj Jain slide