Professional Documents
Culture Documents
LAN Protocols
Required reading:
Garcia 6.7, 6.8
0100101111
3
What is LAN?
Local Area Network – properties
(LAN) • private ownership
freedom from regulatory constraints of WANs
• low cost
single broadcast medium
relatively small number of stations ⇒ complex and
expensive switching equipment NOT necessary
• high speed
short distance ~ 1 km between computers ⇒ relatively
error free (high-speed) communication possible
complex error control unnecessary
4
What is LAN? (cont.)
Typical LAN • computers and network devices (e.g. printers) connected to
broadcast cabling system through network interface card (NIC)
Structure
• computers connected via a LAN to the Internet need all 5 layers of
the Internet model
3 upper layers (network, transport, application) are common to all LANs
physical layer can be considerably different
Ethernet
(IEEE 802.3)
6
MAC Protocols: Ethernet
Ethernet – set of protocols at the physical and data link layer (MAC sublayer)
History • developed by Robert Metcalfe, at Xerox, in 1970s
• promoted and used by Dec, IBM and Xerox in 1980s
"He chose to base the name on the word 'ether' as a way of describing an essential
feature of the system: the physical medium (i.e., a cable) carries bits to all stations,
much the same way that the old ‘luminiferous ether‘ was once thought to propagate
electromagnetic waves through space. Thus, Ethernet was born”
7
MAC Protocols: Ethernet (cont.)
• for the given min frame size, each 10x increase in bit-rate
is accompanied with 10x decrease in max distance
min frame time = 2*max segment / c = min frame size / data rate
8
9
MAC Protocols: Ethernet (cont.)
IEEE 802.3 • Preamble – 7 bytes / 56 bits of alternating 0s and 1s
(10 Mbps) alerts receiving stations of the coming frame and enables them to
synchronize – 56 bits long , to allow stations to synchronize even
MAC Frame if they miss some bits at the beginning
added at the physical layer, not (formally) part of the frame
64 to 1518 bytes
10
MAC Protocols: Ethernet (cont.)
IEEE 802.3 • Length – 2 bytes
MAC Frame indicates the number of bytes in ‘data’ (information) field
(cont.) min allowable frame size 64 bytes, with 18 bytes of overhead
⇒ min data length = 46 bytes
max allowable frame size 1518 bytes, with 18 bytes of overhead
⇒ max data length = 1500 bytes
• Padding –
ensures that the frame size is always at least 64 bytes
• CRC – 4 bytes
CCITT 32-bit CRC check that covers addresses, length and data
64 to 1518 bytes
11
MAC Protocols: Ethernet (cont.)
IEEE 802.3 • 10 Mbps Mthernet uses Manchester signaling – additional bandwidth
to achieve better synchronization, not a big issue
10 Mbps
• thick (10 mm) coaxial cable Ethernet – awkward to handle and install
Physical Layer
• thin (5 mm) coaxial cable Ethernet – cheaper and easier to handle,
but the length of each segment cannot exceed 200 m, due to high
level of attenuation in thin coaxial cable
baseband
Token Ring
(IEEE 802.5)
15
MAC Protocols: Token Ring
History – set of protocols at the physical and data link layer (MAC sublayer)
• developed by IBM in 1980s
Wiring Center
D
C
17
MAC Protocols: Token Ring (cont.)
IEEE 802.5 – two basic frame formats supported:
MAC Frame • data / control frame format: 21-byte overhead + data
• token frame format: 3-byte
• Frame Status – tells the sending device whether the destination device is on the
ring and, if it is, whether it copied the frame – primitive ACK
1 1 1 6 6 4 1 1
SD AC FC Destination Source Information FCS ED FS
Data frame format
address address
(2) Stability: Token Ring is generally more secure and more stable than Ethernet.
(3) Scalability: It is usually more difficult to add more computers on a Token Ring
LAN than it is to an Ethernet LAN. However, as additional computers
are added, performance degradation will be less pronounced on the
Token Ring LAN than it will be on the Ethernet LAN.
(4) QoS: Ethernet uses CSMA/CD media access control and Token Ring uses
token passing. This makes Ethernet better suited in a situation where
there are a large number of computers sending fewer, larger data
frames. Token Ring is better suited for small to medium size LANs
sending many, smaller data frames.
Wiring Center
D
C