Presentation of Layer 2 Network
Presentation of Layer 2 Network
Arafat Nazmul
IP Transmission Network Planning
>> Software
Interact people to another
Yahoo, Google, Web browser, YouTube
OSI Model
6. Presentation Layer
5. Session Layer
4. Transport Layer
>>Sequencing
>> Error Correction
TCP UDP
Transmission Control Protocol User Datagram Protocol
Send ACK Send no ACK
Connection Oriented Connection less
Faster Very fast
OSI Model
3. Network Layer
3. Network Layer
OSI Model
1. Physical Layer
1. Physical Layer
Network Design - Review
Network Border
Core
Distribution
Access
Ethernet Functions
Receives a frame on one port and sends it out every other port, always.
Hub
Address Port
AAAAAAAAAAAA 1
BBBBBBBBBBBB 5
B
A
Switches and Broadcast
Routers
more or less do with IP packets what switches do with
Ethernet frames
A router looks at the IP packet destination and checks its routing table to
decide where to forward the packet
Some differences:
IP packets travel inside Ethernet frames
IP networks can be logically segmented into subnets
Switches do not usually know about IP, they only deal with Ethernet frames
Switch vs. Router
Router
Switch Switch
Edge ports, where end nodes are connected, are configured as members
of a VLAN
The switch behaves as several virtual switches, sending traffic only within
VLAN members Switch
VLAN X VLAN Y
Edge ports
In Ethernet, the switch has two methods of identifying the VLAN that a frame
belongs to:
Link Aggregation
Link Aggregation
Two switches connected via multiple links will send LACPDU packets,
identifying themselves and the port capabilities
They will then automatically build the logical aggregated links, and then
pass traffic.
Switches A and B are connected to each other using two sets of Fast
Ethernet ports
100 Mbps
Switch A Switch B
100 Mbps
LACPDUs
LACP Operation
The link is also fault tolerant: If one of the member links fail, LACP will
automatically take that link off the bundle, and keep sending traffic over
the remaining link
100 Mbps
Switch A Switch B
100 Mbps
Switch A Switch B
Node1 sends a
broadcast frame (e.g.
an ARP request)
Swtich C
Node 1
Switching Loop
Switch A Switch B
• Switches A, B and C
broadcast node 1’s
frame out every port
Swtich C
except received port
Switch A Switch B
STP stop the loops which occurs
when you have multiple links
between switches.
Swtich C
STP stops avoiding Broadcast
Storms, Multiple Frame Copies.
Switch A Switch B
Node 1
Switching Loop
Selecting The Root Bridge
Priority : 32768
MAC : 0000:0000:0002
Swtich C
BLK DP
DP
Swtich C RP Least cost (Speed)
The Lowest forwarding Switch ID
Lowest Physical Port Number
BLK DP
RP
Switch A Switch B
DP
Priority : 32768
Priority : 32768 MAC : 0000:0000:0001
MAC : 0000:0000:0003
Switch A Switch B
Blocking 20 sec
Listening 15 sec
Swtich C
Learning 15 sec
Forwarding
Disable
Node 1
Redundancy
ITU-T G.8032
Redundancy
G.8032 Objectives and Principles
Use of standard 802 MAC and OAM frames around the ring. Uses
standard 802.1Q (and amended Q bridges), but with xSTP disabled.
Ring nodes supports standard FDB MAC learning, forwarding, flush
behavior and port blocking/unblocking mechanisms.
Prevents loops within the ring by blocking one of the links (either a
pre-determined link or a failed link).
Monitoring of the ETH layer for discovery and identification of Signal
Failure (SF) conditions.
Protection and recovery switching within 50 ms for typical rings.
Total communication for the protection mechanism should consume
a very small percentage of total available bandwidth.
Redundancy
G.8032 Terms and Concepts
Ring Protection Link (RPL) – Link designated by mechanism that is blocked during Idle
state to prevent loop on Bridged ring
RPL Owner – Node connected to RPL that blocks traffic on RPL during Idle state and
unblocks during Protected state
Link Monitoring – Links of ring are monitored using standard ETH CC OAM messages
(CFM)
Signal Fail (SF) – Signal Fail is declared when ETH trail signal fail condition is detected
No Request (NR) – No Request is declared when there are no outstanding conditions
(e.g., SF, etc.) on the node
Ring APS (R-APS) Messages – Protocol messages defined in Y.1731 and G.8032
Redundancy
G.8032 Timers
G.8032 specifies the use of different timers to avoid race conditions and unnecessary switching operations
WTR (Wait to Restore) Timer – Used by the RPL Owner to verify that the ring has stabilized before
blocking the RPL after SF Recovery
The WTR timer can be configured by the operator. The default time interval is 5 minutes; the time
interval ranges from 1 to 12 minutes
Hold-off Timers – Used by underlying ETH layer to filter out intermittent link faults
Faults will only be reported to the ring protection mechanism if this timer expires
The default time interval is 0 seconds; the time interval ranges from 0 to 10 seconds. Faults are
reported to the ring protection Mechanism only if this timer expires.
Ring Idle State
ETH-CC ETH-CC
A. Physical topology has all nodes connected in a ring ETH-CC
RPL RPL
Owner
ETH-CC
B. ERP guarantees lack of loop by blocking the RPL (link between 6
ETH-CC
ETH-CC
& 1 in figure)
ETH-CC
ETH-CC
C. Logical topology has all nodes connected without a loop.
D. Each link is monitored by its two adjacent nodes using ETH CC ETH-CC ETH-CC
OAM messages ETH-CC ETH-CC
E. Signal Failure as defined in Y.1731, is trigger to ring protection
Loss of Continuity 2 1 6
RPL
Server layer failure (e.g. Phy Link Down)
3 4 5
Physical topology
2 1 6
3 4 5
Logical topology
Protection Switching Link Failure
RPL RPL
Owner
A. Link/node failure is detected by the nodes adjacent to the
failure.
R-APS(SF)
B. The nodes adjacent to the failure, block the failed link and R-APS(SF) R-APS(SF)
report this failure to the ring using R-APS (SF) message
C. R-APS (SF) message triggers R-APS(SF)
2 1 6 2 1 6
3 4 5 3 4 5
Logical topology
Protection Switching Failure Recovery
R-APS(NR, RB)
RPL RPL
A. When the failed link recovers, the traffic is kept blocked Owner
R-APS(NR,R-APS(NR)
on the nodes adjacent to the recovered link
B. The nodes adjacent to the recovered link transmit R-
RB)
APS(NR) message indicating they have no local request R-APS(NR) R-APS(NR)
present
C. When the RPL Owner receives R-APS(NR) message it R-APS(NR)
Starts WTR timer
2 1 6 2 1 6
D. Once WTR timer expires, RPL Owner blocks RPL and RPL RPL
transmits R-APS (NR, RB) message
3 4 5 3 4 5
E. Nodes receiving the message – perform a FDB Flush
and unblock their previously blocked ports Physical topology
3 4 5 3 4 5
Logical topology
Topology
KHJ
ER
PAN P SS
ub
R ing
-2 BAN
MIR
SHA
ICC
ERPS Sub Ring-3
NILU
DHN UTT
GUL-1
ERPS Ring-1
ERPS Sub Ring-4
Master
MOT NMC
BUET
KHL
Questions & Discussion