Virtual Circuits, ATM, MPLS: Page #
Virtual Circuits, ATM, MPLS: Page #
Outline
Exam discussion
Layering review (bridges, routers, etc.)
» Exam section C.
Circuit switching refresher
Virtual Circuits - general
» Why virtual circuits?
» How virtual circuits? -- tag switching!
Two modern implementations
» ATM - teleco-style virtual circuits
» MPLS - IP-style virtual circuits
Page ‹#›
Exam stats
Max/avg/min: 90 / 63 / 20
A B C D
19.6 17.9 12.8 11.0
57.6% 74.8% 58.3% 68.6%
Page ‹#›
Packet Switching
Circuit Switching
Page ‹#›
Circuit Switching
Discussion
Virtual Circuits
Page ‹#›
Packet Switching and
Virtual Circuits: Similarities
“Store and forward” communication based on an
address.
» Address is either the destination address or a VC identifier
Must have buffer space to temporarily store packets.
» E.g. multiple packets for some destination arrive simultaneously
Multiplexing on a link is similar to time sharing.
» No reservations: multiplexing is statistical, i.e. packets are
interleaved without a fixed pattern
» Reservations: some flows are guaranteed to get a certain
number of “slots”
D B C B A A
Circuit switching:
» Uses short connection identifiers to forward packets
» Switches know about the connections so they can more
easily implement features such as quality of service
» Virtual circuits form basis for traffic engineering: VC
identifies long-lived stream of data that can be scheduled
Packet switching:
» Use full destination addresses for forwarding packets
» Can send data right away: no need to establish a
connection first
» Switches are stateless: easier to recover from failures
» Adding QoS is hard
» Traffic engineering is hard: too many packets!
10
Page ‹#›
Circuit Switching
Switch
Input
Output
Ports
Ports
1 3
R1 packet
A 2 R2 forwarding
1 3 4 1 3
table:
R1 R4 Dst
2 4 2 4 Dst R2
1 3
B R3
2 4
Different paths to
R1 VC table: same destination!
Page ‹#›
Virtual Circuit
1 3
A 2 R2
1 3 4 1 3
R1 R4 Dst
2 4 2 4
1 3
B R3
2 4 Challenges:
13
14
Page ‹#›
Virtual Circuit Switching:
Label (“tag”) Swapping
1 3
A 2 R2
1 3 4 1 3
R1 R4 Dst
2 4 2 4
1 3
B R3
2 4
R2: 2 9 4 2
R4: 1 2 3 5 15
16
Page ‹#›
PVC connection setup
Manual?
» Configure each switch by hand. Ugh.
Dedicated signalling protocol
» E.g., what ATM uses
Piggyback on routing protocols
» Used in MPLS. E.g., use BGP to set up
17
SETUP
SETUP
CONNECT
CONNECT
CONNECT
ACK
CONNECT
ACK
18
Page ‹#›
Virtual Circuits In Practice
19
Connection-oriented, packet-switched
» (e.g., virtual circuits).
Teleco-driven. Goals:
» Handle voice, data, multimedia
» Support both PVCs and SVCs
» Replace IP. (didn’t happen…)
Important feature: Cell switching
20
Page ‹#›
Cell Switching
Why?
» Efficiency: All packets the same
– Easier hardware parallelism, implementation
» Switching efficiency:
– Lookups are easy -- table index.
» Result: Very high cell switching rates.
» Initial ATM was 155Mbit/s. Ethernet was 10Mbit/s at the same
time. (!)
How do you pick the cell size?
21
ATM Features
22
Page ‹#›
Why 53 Bytes?
1 2 3 4 5
synchronous asynchronous
constant variable bit rate
connection-oriented connectionless
24
Page ‹#›
AAL5 Adaptation Layer
...
ATM payload
header (48 bytes)
26
Page ‹#›
IP over ATM
IP over ATM
Static VCs
28
Page ‹#›
ATM Discussion
At one point, ATM was viewed as a replacement for IP.
» Could carry both traditional telephone traffic (CBR circuits)
and other traffic (data, VBR)
» Better than IP, since it supports QoS
Complex technology.
» Switching core is fairly simple, but
» Support for different traffic classes
» Signaling software is very complex
» Technology did not match people’s experience with IP
– deploying ATM in LAN is complex (e.g. broadcast)
– supporting connection-less service model on
connection-based technology
» With IP over ATM, a lot of functionality is replicated
Currently used as a datalink layer supporting IP.
29
Page ‹#›
MPLS + IP
31
Page ‹#›
MPLS use case #1: VPNs
10.1.0.0/24
10.1.0.0/24
1 3 C
A 2 R2
1 3 4 1 3
R1 R4
2 4 2 4
1 3
B R3 D
2 4
10.1.0.0/24 10.1.0.0/24
1 3 EBGP C
A 2 R2
1 3 4 1 3
R1 MPLS Core R4
2 4 2 4
R1 uses MPLS tunnel to R4. 1
R3
3
2 4
. R4 know routes, but
R1 and
R2 and R3 don’t. 34
Page ‹#›
MPLS use case #3: Traffic
Engineering
35
MPLS Mechanisms
Page ‹#›
MPLS Discussion
Original motivation.
» Fast packet forwarding:
– Use of ATM hardware
– Avoid complex “longest prefix” route lookup
– Limitations of routing table sizes
» Quality of service
Currently mostly used for traffic engineering
and network management.
» LSPs can be thought of as “programmable links” that can
be set up under software control
» on top of a simple, static hardware infrastructure
37
38
Page ‹#›
--- Extra Slides ---
39
40
Page ‹#›
LAN Emulation
42
Page ‹#›
IP Switching
How to use ATM hardware without the software.
» ATM switches are very fast data switches
» software adds overhead, cost
The idea is to identify flows at the IP level and to create
specific VCs to support these flows.
» flows are identified on the fly by monitoring traffic
» flow classification can use addresses, protocol types, ...
» can distinguish based on destination, protocol, QoS
Once established, data belonging to the flow bypasses
level 3 routing.
» never leaves the ATM switch
Interoperates fine with “regular” IP routers.
» detects and collaborates with neighboring IP switches
43
IP Switching Example
IP IP IP
44
Page ‹#›
IP Switching Example
IP IP IP
45
IP Switching Example
IP IP IP
46
Page ‹#›
Another View
IP IP IP IP
ATM ATM
IP
IP
ATM
ATM
IP IP
ATM ATM IP
IP
ATM
ATM
IP IP
47
IP Switching
Discussion
48
Page ‹#›
An Alternative
Tag Switching
AC
A A
B B
BC
49
IP Switching
versus Tag Switching
50
Page ‹#›
Packets over SONET
Same as statically
configured ATM
pipes, but pipes are mux
SONET channels. OC-48
Properties.
– Bandwidth
management is mux
much less flexible
+ Much lower
transmission
overhead (no ATM
headers)
mux
51
Page ‹#›