Fast Ethernet
Fast Ethernet
Chapter 13
12/6/2010
IEEE standard for LANs IEEE divided the Data link layer into two sublayer : upper layer :logical link control (LLC); flow and error control. Lower sublayer : Multiple access (MAC); media access control.
Multiple access (MAC) for resolving access to the shared media. If channel is dedicated ( point to point) we do not need the (MAC); sublayer.
CSMA/CD
Dr. Gihan NAGUIB
Token passing
4
12/6/2010
Physical layer
Physical layer is dependent on the implementation and type of the physical media used. IEEE define detailed specifications for each LAN implementation. For example, although there is only one MAC sublayer for Standard Ethernet( CSMA/CD), there is a different physical layer specifications for each Ethernet implementations.
12/6/2010
IEEE 802.3
Ethernet
IEEE 802.4
IEEE 802.5 IEEE 802.11a/b/g/n IEEE 802.15.1
Dr. Gihan NAGUIB
Token bus
Token Ring Wireless LAN Bluetooth 7
12/6/2010
ETHERNET Evolution
The original Ethernet was created in 1976 at Xeroxs Palo Alto Research Center (PARC). Since then, it has (PARC). gone through four generations. generations.
12/6/2010
for synchronizing
Start Frame Delimiter (SFD): 10101011 indicates the start of the frame. Last two bits (11) alerts that the next field is destination address.
preamble and SFD are added at the physical layer and is not formally part of the frame
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
11
DA : Destination address: SA: Source Address: Length/Type: Define the upper-layer protocol using the MAC frame. OR define the number of bytes in the data filed. Data: minumum: 46 and maximum : 1500 bytes CRC: error detection information:CRC-32
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
12
12/6/2010
Note
Frame length: Minimum: 64 bytes (512 bits) Maximum: 1518 bytes (12,144 bits)
13
Minimum frame length restriction (64 bytes) is required for the correct operation of CSMA/CD. Min data length =64 - 18 (6+-6+2+4) = 46 bytes If the upper- layer packet is less than 46 bytes, padding is added to make up the difference. Maximum length restriction; two historical reasons: Memory was very expensive when Ethernet was designed. Prevents one station from monopolizing the shared medium, blocking other stations that have data to sent. Max data length =1518- 18= 1500 bytes.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
14
12/6/2010
15
Source address is always a unicast address the frames comes from only one station. Destination address can be: unicast: defines only one recipient; one to one multicast: a group of addresses; one to many Broadcast: the recipients are all the stations on the LAN
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
16
12/6/2010
Note
The least significant bit of the first byte
defines the type of address. If the bit is 0, the address is unicast; otherwise, it is multicast. The broadcast destination address is a special case of the multicast address in which all bits are 1s.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
17
Example 1
Define the type of the following destination addresses: a. 4A:30:10:21:10:1A b. 47:20:1B:2E:08:EE c. FF:FF:FF:FF:FF:FF Solution
To find the type of the address, we need to look at the second hexadecimal digit from the left. If it is even, the address is unicast. If it is odd, the address is multicast. If all digits are Fs, the address is broadcast. Therefore, we have the following: a. This is a unicast address because A in binary is 1010. b. This is a multicast address because 7 in binary is 0111. c. This is a broadcast address because all digits are Fs.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
18
12/6/2010
Example 2
Show how the address 47:20:1B:2E:08:EE is sent out on line. Solution The address is sent left-to-right, byte by byte; for each byte, it is sent right-to-left( LSB first), bit by bit, as shown below: left-to-right :47201B2E08 EE 47 is 0100 0111 right -to-left 1110 0010
19
Slot Time
Slot time defined in bits: It is the time required for a station to send 512 bits (min frame size).
Slot Time = round trip time + time required to send the jam sequence
It depends on the data rate, for traditional 10-Mbps Ethernet it is 51.2 microseconds (512/10Mbps) The choice of 512-bit Slot Time to allow the proper function of CSMA/CD.
20
10
12/6/2010
Slot Time
If the sender sends a frame larger than the minimum size ( 512 to 1518 bits)
If the station has sent out the first 512 bits and has not
heard a collision, it is guaranteed that the collision will never occur during the transmission of the frame. The reason is that all stations sensed the existence of the signal and refrained from sending . Collisions can only occur during the first half of the slot time (slot time/2), and if it dose, it can be sensed by the sender during the slot time.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
21
Slot Time and Maximum network length Slot time = 2 x Tp ( neglecting time required to send jam signal) = 2 x Max Length/propagation speed Max.Length = propagation speed x (SlotTime/2) Let propagation speed = 2x108 m/s Max.Length = (2 x 108) x (51.2 x10-6/2) = 5120 m Consider the delay times in repeaters and interfaces, and the time required to send the jam sequence. Max.Length = 2500 m ( = 48 % of the theoretical)
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
22
11
12/6/2010
23
All standard implementations use digital signaling( baseband) at 10 Mbps. At the sender, data are converted to a digital signal using the Manchester scheme. At the receiver, the received signal is interpreted as Manchester and decoded into data.
24
12
12/6/2010
Uses coaxial cable and Bus topology With an external transceiver( transmitter/receiver) connected via a tap. Transceiver is responsible for: transmitting, receiving and detecting collisions. The length of each segment cannot exceed 500 m If cable > 500 m ,degradation in the signal, using repeaters to connect multiple segments of cable. No two stations can be separated by more than 2500m( max length of the bus) and 4 repeaters.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
25
Uses Bus topology with thinner and more flexible cables. Transceiver part of a NIC card The implementation is more cost effective than 10Base5 because: Thin coaxial cable is less expensive than the thick tee connections are cheaper than taps Installation is simpler because thin coaxial cable is very flexible. The length of each segment under 200 (cannot exceed 185 m) due to the high level of attenuation Repeaters are used to connect multiple segments
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
26
13
12/6/2010
Physical star topology Stations are connected to a hub via two pairs of twisted cable( one for sending and one for receiving|). Any collisions happens in the hub Compared to others, the hub replaces the coaxial cable as far as a collision is concerned. Max length = 100 m to minimize attenuation.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
27
Uses star topology to connect stations to a hub Stations is connected to the hub by using two pairs of fiber-optic cables.
28
14
12/6/2010
29
30
15
12/6/2010
Bridged Ethernet Have two effects on an Ethernet LAN: 1. They rise the bandwidth 2. They separate collision domains.
Without bridges, all the stations share the bandwidth of the network.
31
Bridges divide the network into two. Each network is independent. With bridges, 10 Mbps network is shared only by 6 [actually 7 as bridge acts as one station] stations.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
32
16
12/6/2010
Using bridges:
Collision domain becomes much smaller and the probability of collision is reduced Raising the B-W
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
33
Switched Ethernet
A layer 2 switch is an N-port bridge with additional sophistication that allows faster handling of the packets.
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
34
17
12/6/2010
In full duplex switch there are two links, one for sending and one for receiving, we dont need CSMA/CD here|(
35
FAST ETHERNET
Fast Ethernet was designed to compete with LAN protocols such as FDDI or Fiber Channel. IEEE Channel. created Fast Ethernet under the name 802.3u. Fast 802. Ethernet is backward-compatible with Standard backwardEthernet, but it can transmit data 10 times faster at a rate of 100 Mbps. Mbps.
36
18
12/6/2010
MAC Sublayer
Main consideration in the evolution of Ethernet from 10 to 100 Mbps was to keep the MAC sublayer untouched. Drop bus topologies and keep only the star topology.
Why??
Star topology have two choices : Half-duplex approach: The stations are connected via a hub. The access method is CSMA/CD Full-duplex approach.(Fast ) The connection is made via a switch with buffers at each port. No need for CSMA/CD
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
37
38
19
12/6/2010
Autonegotiation: Allows two devices to negotiate the mode (half duplex or full duplex) or data rate of operation. Ex: Allow incompatible devices to connect to one another. A
device with a maximum capacity of 10 Mbps can communicate with device with a 100 Mbps capacity (but can work at a lower rate)
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
39
Can be categorized as
Two wire:
Category 5 UTP (100Base-TX) Fiber-optic cable(100Base-FX)
four wire:
Category 3 or higher UTP( 100Base-T4)
Dr. Gihan NAGUIB
Behrouz A. Forouzan Data communication and Networking
40
20
12/6/2010
In Fast Ethernet , three different encoding schemes were chosen depending on the implementation: 100 Base-TX 100Base-FX 100BAse-T4
41
100Base-TX
Uses two pairs of twisted-pair cable (either category 5 UTP or STP). Provide data rate of 100 Mbps MLT-3 scheme was selected since it has good bandwidth performance. (not selfsynchronization line coding) So 4B/5B block coding is used to provide bit synchronization.
42
21
12/6/2010
100Base-FX
Uses two pairs of fiber-optic
cables. Uses NRZ-I encoding scheme ( bit synchronization problem.) To overcome this problem, 4B/5B block coding is used.
43
100Base-T4
Uses four pairs of
category 3 or higher UTP.(not cost efficient compared to Category 5) Transmit 100 Mbps. Uses 8B/6T encoding
44
22
12/6/2010
Media Number of wires Maximum length Topology Data rate Block encoding Line encoding
Fiber 2 400 m: half duplex 2000m: full duplex Star 100 Mbps 4B/5B NRZ-I
45
46
23