EE 122: Switching and Forwarding: Kevin Lai September 23, 2002
EE 122: Switching and Forwarding: Kevin Lai September 23, 2002
Forwarding
Kevin Lai
September 23, 2002
distance
- distance increases propagation delay
- large propagation delay causes large coordination delay
- e.g., Ethernet collision detection requires 2*prop_delay
number of hosts
- More hosts increases the probability of collisions
- collisions decrease efficiency of link
bandwidth
- bandwidth of link is shared among all connected nodes
Emulates
clique
Switched Network
laik@cs.berkeley.edu
Definitions
switching consists of
- forwarding
read data from input links,
decide which output link to forward on, and
laik@cs.berkeley.edu
Properties
laik@cs.berkeley.edu
Bridge/Router Comparison
Switch
Ethernet
E-to-E
Ethernet
Ethernet E-to-IP
IP-to-E
Ethernet
802.11b
E-to-8
802.11b
802.11b
8-to-IP
IP-to-8
802.11b
ATM A-to-IP
IP-to-A
ATM
IP-to-S
SONET
ATM
SONET
E-t
o-
Eto-
ATM
SONET
SONET
O(n2) converters
n = different link types
laik@cs.berkeley.edu
S-to-IP
O(n) converters
7
Forwarding Techniques
packet switching
- aka [packet|datagram|connectionless]
[switching|forwarding]
source routing
virtual circuit switching
- aka virtual circuit forwarding
circuit switching
despite names, all ways for switch to decide
which output port to forward data
laik@cs.berkeley.edu
Packet Switching
laik@cs.berkeley.edu
Problem
Statistical
Multiplexing
10Mb/s
10Mb/s
...
H0
Resource
Reservations
H9
.
.
.
10Mb/s / 10Mb/s
...
10Mb/s
1Mb/s...
H0
.
.
1Mb/s .
1Mb/s...
H9
10Mb/s
10Mb/s
...
H0
.
.
10Mb/s .
10Mb/s
...
H9
10Mb/s / 10Mb/s
congestion,
packet loss
10Mb/s
10Mb/s / 10Mb/s
1Mb/s...
H0
.
.
0Mb/s .
1Mb/s...
H9
low utilization
1Mb/s / 10Mb/s
10
128.16.120.111
12.xxx.xxx.xxx
12.82.xxx.xxx
128.16.120.111
1
1
2
11
Expensive forwarding
- forwarding table size depends on number of different
destinations
- must lookup in forwarding table for every packet
Robust
- link and router failure may be transparent for end-hosts
No service guarantees
- Network allows hosts to send more packets than
available bandwidth congestion dropped packets
laik@cs.berkeley.edu
12
Source Routing
source
4 3 4
1
2
3
4
1
2
3
4
1
2
3
4
4 3 4
1
2
3
4
1
2
3
4
laik@cs.berkeley.edu
1
2
3
4
4 3 4
13
laik@cs.berkeley.edu
14
15
VC Forwarding: Example
in in-VCI out out-VCI
source
1
2
3
4
1
2
3
4
destination
11
1
2
3
4
1
2
3
4
11
1
2
3
4
1
2
3
4
11
laik@cs.berkeley.edu
16
VC Forwarding (contd)
laik@cs.berkeley.edu
17
Less Robust
- end host must spend 1 RTT to establish new
connection after link and router failure
18
Circuit Switching
No forwarding table
laik@cs.berkeley.edu
19
Cheap forwarding
- no table lookup
Less robust
- end host must spend 1 RTT to establish new
connection after link and router failure
laik@cs.berkeley.edu
20
Forwarding Comparison
forwarding
cost
bandwidth
utilization
pure
packet
switching
high
virtual
circuit
switching
low
circuit
switching
high
flexible
low
flexible
yes
low
low
resource
none
reservations
robustness high
laik@cs.berkeley.edu
none
21
Routing
Learning bridges
- all that is needed for single bridge
Spanning Tree
- necessary for multiple bridges
laik@cs.berkeley.edu
22
Learning Bridges
Host
Port
AC BA
1
A B
2
A B
C A
3
laik@cs.berkeley.edu
23
Host
Port
Host
Port
H1
H1
B0
2
2
H1 H0
B1
0
H1 H0
Host
Port
H1
B2
H1 H0 H1 H0
H1 H0
H0
0
0
1
Host
Port
H1
0
1
B3
H1 H0
laik@cs.berkeley.edu
24
Spanning Tree
Root
Dist
Port
B0
H1
Host
Port
Host
Port
Root
Dist
Port
H1
H1
B1
B0
0
1
2
-
B0
B1/2 is root
1
Host
Port
H1
H0
1
B1
As if. I am
H1 H0
Im root
Im root
B1/2 is root
0
B2
B1/1 is root
Root
Dist
B2
B1
0
2
Host
Port
H1
Root
Dist
B3
B1
B0
0
1
2
0
1
B3
B1/1 is root
laik@cs.berkeley.edu
25
Summary
Switching
- overcome limitations of direct link networks
Forwarding techniques
-
packet switching
source routing
virtual circuit switching
circuit switching
Routing techniques
laik@cs.berkeley.edu
26