Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Dr. Ramana
I.I.T Rajasthan
1 / 27
Introduction
LAN Topologies
Frame Transmissions on Various Topologies
2 / 27
Introduction
Introduction
LAN consists of a shared transmission medium and a set of
hardware and software devices for interfacing devices to the
medium.
A medium access mechanism is needed to allow an orderly
access to the shared medium.
Size is restricted to few kilometers.
Owned by a single organization.
Used mainly for carrying data traffic.
Data rates are higher and ranges from 100 Mbps to 10 Gbps.
Key elements:
Topology - bus,ring,tree,star,
Transmission medium - coax,twistedpair,optical fiber, wireless,
Medium access control - round-robin, reservation, contention
Dr. Ramana ( I.I.T Rajasthan )
3 / 27
Introduction
Layer 3
switch
1
Gbps
WAN
Router
1
Gbps
Layer 3
switch
1
Gbps
Layer 2
switch
1
Gbps
Layer 2
switch
Layer 2
switch
10/100
Mbps
10/100
Mbps
11
Mbps
Laptop with
wireless connection
4 / 27
Tap
Flow of data
Introduction
LAN Topologies
Terminating
resistance
Repeater
(a) Bus
(c) Ring
Central Hub, Switch,
or Repeater
Headend
(b) Tree
(d) Star
LAN Topologies
5 / 27
Introduction
6 / 27
Introduction
C
A
C
B
C
B
C
B
(d) C absorbs
returning frame
7 / 27
Medium
IEEE 802
Reference
Model
Upper
Layer
Protocols
LLC Service
Access Point
(LSAP)
( )
( )
( )
Logical Link Control
Medium Access
Control
Physical
Scope
of
IEEE 802
Standards
Medium
8 / 27
Application Layer
Application data
TCP
header
TCP Layer
IP
header
IP Layer
LLC
header
LLC Layer
MAC
header
MAC
trailer
MAC Layer
TCP segment
IP datagram
LLC protocol data unit
MAC frame
9 / 27
10 / 27
MAC - Overview
Governs access to the shared medium
Inaddtion, interface to physical layer, Sending/receiving frames,
Frame synchronization, and Error detection
Medium access mechanisms could be
either centralized or distributed
and synchronous or asynchronous
Synchronous: FDM, synchronous TDM, but not well used
Asynchronous: Round Robin, Reservation, Contention
Disadvantages
Less reliable
May become bottleneck and reduce efficiency
Overheads may be higher if propagation delay is high
Dr. Ramana ( I.I.T Rajasthan )
11 / 27
(Cont.)
Access Control Mechanisms
Round-Robin
Each node, in turn, is given opportunity to transmit. Either a central
controller polls a node to permit to go, or nodes can coordinate
among themselves. Token is passed. Simple but overhead may
be high if traffic is high
Reservation
Partition channel so each node gets a slice of the bandwidth
Node wishing to transmit makes reservations for time slots in
advance. Central or distributed.
12 / 27
13 / 27
Variants of CSMA
Nonpersistent:
Transmit if idle
If busy, wait random time
and repeat process
If collision, back off
Channel Busy
time
Ready
1-Persistent:
Transmit as soon as
channel goes idle
If collision, back off
P-Persistent:
Transmit as soon as channel
goes idle with probability P
Otherwise, delay one time slot
and repeat process
If collision, back off
14 / 27
CSMA/CD
A
TIME t0
A's transmission
C's transmission
Signal on bus
TIME t1
A's transmission
C's transmission
Signal on bus
TIME t2
A's transmission
C's transmission
Signal on bus
TIME t3
A's transmission
C's transmission
Signal on bus
CSMA/CD Operation
15 / 27
Packet?
Sense
Carrier
No
Send
Detect
Collision
Yes
Discard
Packet
attempts < 16
Jam channel
b=CalcBackoff();
wait(b);
attempts++;
attempts == 16
16 / 27
Else
1
17 / 27
On Slot Time
Slotlength = 51.2s, which is minimum frame duration or
transmission time. It is equal to the transmission time of 64-byte
frame at date rate 10Mbps.
It is a function of datarate (10 Mbps), number of LAN segments
(5), length of each segment (500 meters), delay introduced by
each repeater (3 s)
LAN Length (L) = 500 x 5 = 2500 meters
Round Trip Distance = 5000 meters
5000
Total propagation time (tprop ) = 210
8 = 25s
Delay added by each repeater (trep ) = 3s x 2 (Bi-Direction) x 4
Repeaters = 24s
Round Trip Time (RTT) = tprop + trep = 25 + 24 = 49s.
The nearest frame size (in power of 2) which corresponds to this
minimum frame transmission time is 64 bytes. So the slottime @
10 Mbps data rate is 51.2s.
Dr. Ramana ( I.I.T Rajasthan )
18 / 27
1
S
Preamble
6
Destination
Address
6
Source
Address
46 1500
Length
FCS
46 1500
Type
Data
FCS
Destination
Source
Address
Address
Preamble: Alternating pattern of ones and zeros tells receiving stations that a frame is coming (Ethernet or IEEE 802.3).
Ethernet frame includes an additional byte that is the equivalent of the Start-of-Frame field specified in the IEEE 802.3 frame.
Start-of-Frame (SOF): The IEEE 802.3 delimiter byte ends with two consecutive 1 bits, which serve to synchronize the frame
reception portions of all stations on the LAN. SOF is explicitly specified in Ethernet.
Destination and Source Addresses: (MAC or Hardware address) Source address is always a unicast (single-node) address
and destination address can be unicast, multicast (group), or broadcast (all nodes).
Type (Ethernet): The type specifies the upper-layer protocol to receive the data after Ethernet processing is completed.
Length (IEEE 802.3): The length indicates the number of bytes of data that follows this field. Ex. IP 0x0800, ARP - 0x0806
Data (Ethernet): After physical-layer and link-layer processing is complete, the data contained in the frame is sent to an
upper-layer protocol, which is identified in the Type field. Although Ethernet-II does not specify any padding (in contrast to
IEEE 802.3), Ethernet expects at least 46 bytes of data. While in IEEE 802.3 padding bytes are inserted to ensure at least a
64-byte frame.
19 / 27
MAC
Frame
LLC
PDU
MAC
Control
Destination
MAC Address
Source
MAC Address
LLC PDU
1 octet
1 or 2
variable
DSAP
SSAP
LLC Control
Information
I/G
DSAP value
C/R
SSAP value
CRC
LLC
Address Fields
I/G = Individual/Group
C/R = Command/Response
20 / 27
21 / 27
LAN Devices
LAN A
Frames with
addresses 11 through
20 are accepted and
repeated on LAN B
Bridge
Station 1
Station 2
Station 10
Frames with
addresses 1 through
10 are accepted and
repeated on LAN A
LAN B
Station 11
Station 12
Station 20
Bridge Operation
Dr. Ramana ( I.I.T Rajasthan )
22 / 27
LAN Devices
(Cont.)
User
LLC
MAC
Physical
t1
t8
t2
t3
t7
LAN
t4
MAC
Physical
Physical
t5
LAN
t6
User
LLC
MAC
Physical
(a) Architecture
t1, t8
User Data
t2, t7
LLC-H
User Data
MAC-H LLC-H
User Data
MAC-T
(b) Operation
Connection of
23 / 27
Station 2
Station 3
LAN A
Bridge
101
Bridge
107
LAN B
Bridge
102
LAN C
Bridge
103
LAN D
Bridge
104
LAN E
Station 4
Bridge
105
LAN F
Station 5
Station 6
Bridge
106
LAN G
Station 7
24 / 27
Impact of Loops
Station B
LAN Y
t2
t1
Bridge
a
LAN X
Bridge
b
t0
t0
Station A
Loop of Bridges
Dr. Ramana ( I.I.T Rajasthan )
25 / 27
HUB
HHUB
Two cables
(twisted pair or
optical fiber)
IHUB
IHUB
Station
Transmit
Receive
Station
Station
Station
Station
26 / 27
Hubs vs Switches
10 Mbps
10 Mbps
10 Mbps
10 Mbps
Total capacity
up to 10 Mbps
10 Mbps
10 Mbps
10 Mbps
10 Mbps
Total capacity
N 10 Mbps
10 Mbps
10 Mbps
10 Mbps
10 Mbps
27 / 27