Académique Documents
Professionnel Documents
Culture Documents
(Chapter 5)
(Ethernet)
Idawaty Ahmad, PhD
(SKR3309)
Data Link Layer Ethernet (802.3), PPP Organize bits into frames; to
provide node-to-node delivery
Physical Layer Interface and cables
Provide mechanical and electrical
specification; transfer data in the
Idawaty Ahmad, PhD
6
form of bits 18 March 2017
Network Protocols
Protocols of the Data Link Layer
* Data link layer LAN, WAN protocols
LAN WAN
802.2 LLC
Data Link Dial
Frame
on SDLC HDLC PPP
(Frames) Relay
Demand
8 8 8
F
0 0 0
Physical D V.24
2 2 2
D G.703
(Bits, . . .
I
signals, 3 4 5 V.35 EIA/TIA-232
clocking) xDSL
24 bits 24 bits
00e0.fc01.2345
00e0.fc01.2345
Rom
24 bits 24 bits
Vender Code
Serial Number
example:00e0.fc39.8034
00e0.fc— the vender code that IEEE assigns to manufacturers
39.8034— serial number assigned by the manufacturer
Idawaty Ahmad, PhD
9 18 March 2017
Network Protocols
MAC Address ( Ethernet address and
Wireless LAN (Wifi) Address
LLC sub
802.2 LLC/SNAP
layer
Data Link Layer
MAC sub 802.3 (Ethernet)、802.11
layer (wireless LAN)
Ring Mesh
Bus Topology
Root Level 1
Level 2
Level 3
Idawaty Ahmad, PhD
20 18 March 2017
Network Protocols
Unicast, Broadcast, and Multicast
* Unicast
* Transmission from one point to another point, i.e., one sender
and one receiver
* Broadcast
* Transmission from one point to all other points
* Broadcast Address: FF FF FF FF FF FF
* Multicast
* Transmission from one point to some selected points, i.e., one
sender and multiple receivers
* The receivers are identified by a group address (or multicast
address)
Host A
Source
Host B
Host C
Data to A
Data to B
Host A
Source
Host B
Host C
Send to all
Host A
Source
Host B
Host C
* Collision domain:
* Refers to a set of LAN devices whose frames could
collide with one another
* This happens with hubs, repeaters, and wireless access
points as only one device can send and receive at a time
* Broadcast domain:
* Refers to a set of devices where if one device sends a
broadcast frame, all other devices will receive where a
broadcast frame sent by one device is received by all
other devices in the same broadcast domain
Idawaty Ahmad, PhD
25 18 March 2017
Network Protocols
Collision Domains and Broadcast
Domains (Cont.)
6 Collision
Domain
3 Broadcast
Domain
WLAN
AP
10M Ethernet
Ethernet
scarfskin
* Fiber
Transmission
standard Cable type
distance
EIA/TIA category 5 (UTP) Unshielded Twisted
100BaseTX 100m
Paired 2pair
18 March 2017
Gigabit Ethernet
18 March 2017
General View of 10G Ethernet Cable
Transmission
standard Cable type
distance
Multimode fiber, 62.5/125um fiber or 50/125um
10GBASE-SR/SW 2m-300m
fiber
Application Application
layer layer
Presentation Presentation
layer layer
Session Session
layer layer
Transport Transport
layer layer
Network Network
layer layer
HUB
Data Link Data Link
layer layer
Physical Physical Physical Physical
layer layer layer layer
1 2 3 4 5
OU OU OU OU
IN T T T T
0800 IP datagram
ORG
DSAP SSAP CTRL CODE TYPE DATA
1 1 1 3 2 38~1492
0800 IP datagram
A switch will flood the single frame out all of its other ports
when it cannot find the destination MAC address in the
Idawaty Ahmad, PhD
Network Protocols
switch’s lookup
59 table 18 March 2017
Forwarding and Filtering
* A switch also floods all of its other ports under two other
circumstances:-
* If a broadcast frame is received with a destination MAC address
ff ff ff ff ff ff, the switch forwards the broadcast frame out all of
the other ports. VLAN exceptions!!
* If a multicast frame is received, the switch forwards the multicast
frame
* The flooding process for broadcast is necessary for protocols
such as ARP which maps an IP address to a MAC address via
broadcasting. One significant problem with this flooding process
occurs when switches in a network are redundantly connected
into physical loops. Flooding broadcast frames can cause a
“broadcast storm” on a network, causing it to fail.
Idawaty Ahmad, PhD
62 18 March 2017
Network Protocols
Flooding
Frame Input
Destination
unicast broadcast
MAC address
Lookup Frame flooding
address table (except source port)
Not matched
matched
Forwarding frame
(except source port)
Idawaty Ahmad, PhD
64 18 March 2017
Network Protocols
Three Switch Modes
Cut-Through
* Forward as soon as it receives destination MAC address.
* Low delay
* No error check
Store-and-Forward
* Forwards only after it receiving full frame
* Delay lies on frame length
* Switch check error, the error packet will be discarded
Fragment-free
* Switch receives the first 64 bytes of the packet, then performs
a lookup up of the address table by header and forwards
* Switch check the first 64 bytes, if it finds error, the packet will
be discarded.
VLAN
attribution
Whether it is
route interface’s
MAC address
L3 forwarding L2 forwarding
Inter-VLAN Inside VLAN
Interface Interface
Idawaty Ahmad, PhD
70 18 March 2017
Network Protocols
Layer 3 Switches
Interface Interface
Interface Interface
Idawaty Ahmad, PhD
71 18 March 2017
Network Protocols
Routers vs Layer 3 Switches
1. Auto-Negotiation Technology
2. Port Aggregation
3. Port Mirroring
4. Flow Control
Port 3 auto-negotiation
Port 1 auto-negotiation
Port 4 auto-negotiation
Port 5 auto-negotiation
10Mb/s full-duplex
Logical
Link
Data traffic
18 March 2017
Limitations of Port Aggregation
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
G0/0/9 G0/0/9
Trunk
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
G0/0/9 G0/0/9
Trunk
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
S1 G/0/0/10 G0/0/10 S2
SW1 E0/1
E0/2 Mirrored
Original
E0/3 data Monitoring
device
data
SW3 SW2
PC1
PC2
E0/1
E0/2
Mirrored
data
Monitoring
device
Idawaty Ahmad, PhD
126 18 March 2017
Network Protocols
Flow-Based Mirroring
Mirrored
data
Monitoring
device
Idawaty Ahmad, PhD
127 18 March 2017
Network Protocols
Flow Based Mirroring
Flow based mirroring classifies mirrored traffic
according to classification rules, based which data will
be mirrored to the monitor port, again which is used
to analyze and monitor classified traffic.
A switch can only configure a single monitor port.
Service data of data traffic 1
Service data of data traffic 1
E0/1
E0/2
mirrored data of data
traffic 1
E0/1 E0/24
PC1 SW PC2
Configuration of SW:
[SW]observe-port 1 interface Ethernet 0/1
[SW]interface ethernet 0/24
[SW-Ethernet0/24] port-mirroring to observe-port 1
inbound
Standard Ethernet
Congestion
Fast Ethernet
Gigabit Ethernet
Half-duplex Full-duplex