CH 11
CH 11
Communications
Tenth Edition
by William Stallings
CHAPTER 11
A B C
A B C
A B C
Central node
Application
Presentation
IEEE 802
Reference
Session Model
Transport Upper
Layer LLC Service
Protocols Access Point
(LSAP)
Network
( ) ( ) ( )
Logical Link Control
Data Link Medium Access
Control
Scope
of
Physical Physical IEEE 802
Standards
Medium Medium
Bit
transmission/reception
8
IEEE 802 Layers
➢ Logical Link Control ➢ Media Access Control
Layer (LLC) (MAC)
⚫ Provide interface to ⚫ On transmit assemble
transmission medium
9
Application data Application Layer
TCP
header TCP Layer
IP
header IP Layer
LLC
header LLC Layer
MAC MAC
header trailer MAC Layer
TCP segment
IP datagram
MAC frame
11
LLC Services
Unacknowledged connectionless service
• Datagram-style service
• Delivery of data is not guaranteed
Connection-mode service
• Logical connection is set up between two users
• Flow and error control are provided
14
MAC MAC Destination Source
Control MAC Address MAC Address LLC PDU CRC
Frame
1 octet 1 1 or 2 variable
LLC
DSAP SSAP LLC Control Information
PDU
LLC
I/G DSAP value C/R SSAP value
Address Fields
I/G = Individual/Group
C/R = Command/Response
• Synchronous
⚫ Capacity dedicated to connection, not optimal
• Asynchronous
⚫ Response to demand
17
MAC Frame Handling
➢ MAC layer receives
data from LLC layer
➢ PDU is referred to as a • MAC control
MAC frame • Destination MAC
address
➢ MAC layer detects
Fields: • Source MAC
errors and discards address
frames • LLC
➢ LLC optionally • CRC
retransmits
unsuccessful frames
18
Bridges
➢ Connects similar LANs with identical physical and link
layer protocols
➢ Minimal processing
➢ Reasons for use:
⚫ Reliability
⚫ Performance
⚫ Security
⚫ Geography
19
LAN A
Frames with
addresses 11 through
20 are accepted and
repeated on LAN B
Bridge
Frames with
addresses 1 through
10 are accepted and
repeated on LAN A
LAN B
21
User User
t1 t8
LLC LLC
t2 t7
MAC MAC MAC
t3 t4 t5 t6
Physical LAN Physical Physical LAN Physical
(a) Architecture
(b) Operation
22
Station 1 Station 2 Station 3
LAN A
Bridge Bridge
101 Bridge 102
107
LAN B LAN C
Bridge Bridge
Bridge Bridge 105 106
103 104
24
Spanning Tree
➢ Bridge automatically develops routing table
➢ Automatically updates routing table in response to
changing topology
Algorithm consists of
three mechanisms:
If port y is not blocked, transmit frame through port y onto the LAN
to which that port attaches
26
Address Learning
➢ Can preload forwarding database
➢ When frame arrives at port X, it has come from the LAN
attached to port X
➢ Use source address to update forwarding database for
port X to include that address
➢ Have a timer on each entry in database
➢ If timer expires, entry is removed
➢ Each time frame arrives, source address checked
against forwarding database
⚫ If present timer is reset and direction recorded
27
Spanning Tree Algorithm
➢ Address learning works for tree layout if there are no
alternate routes in the network
⚫ Alternate route means there is a closed loop
30
HHUB
Two cables
(twisted pair or
optical fiber)
Receive
10 Mbps
10 Mbps
10 Mbps
10 Mbps
A B C D
Total capacity
up to 10 Mbps
10 Mbps 10 Mbps
10 Mbps 10 Mbps
A B C D
Total capacity
N 10 Mbps
10 Mbps 10 Mbps
10 Mbps 10 Mbps
A B C D
33
Types of Layer 2 Switches
➢ Store-and-forward switch ➢ Cut-through switch
⚫ Accepts frame on ⚫ Use destination
throughput
⚫ Risk of propagating
bad frames
34
Layer 2 Switch vs. Bridge
➢ Differences between
switches and bridges: ➢ Layer 2 switch can be
viewed as full-duplex hub
➢ Incorporates logic to
Bridge Switch function as multiport
bridge
Performs frame ➢ New installations typically
Frame handling forwarding in
done in software hardware include layer 2 switches
with bridge functionality
Analyzes and Can handle rather than bridges
forwards one multiple frames
frame at a time at a time