last lecture: network layer - university at buffalohungngo/classes/2010/589... · sms: pros and...

33
Last Lecture: Network Layer 1. Design goals and issues 2. Basic Routing Algorithms & Protocols 3. Addressing, Fragmentation and reassembly 4. Internet Routing Protocols and Inter-networking 5. Router design 1. Short History + Router architectures 2. Switching fabrics 3. Address lookup problem 6. Congestion Control, Quality of Service 7. More on the Internet’s Network Layer SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 1

Upload: others

Post on 17-Apr-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Last Lecture: Network Layer 1.  Design goals and issues 2.  Basic Routing Algorithms & Protocols 3.  Addressing, Fragmentation and reassembly 4.  Internet Routing Protocols and Inter-networking 5.  Router design

1.  Short History + Router architectures ✔ 2.  Switching fabrics 3.  Address lookup problem

6.  Congestion Control, Quality of Service 7.  More on the Internet’s Network Layer

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 1

Page 2: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

This Lecture: Network Layer 1.  Design goals and issues 2.  Basic Routing Algorithms & Protocols 3.  Addressing, Fragmentation and reassembly 4.  Internet Routing Protocols and Inter-networking 5.  Router design

1.  Short History + Router Archiectures 2.  Switching fabrics ✔ 3.  Address lookup problem

6.  Congestion Control, Quality of Service 7.  More on the Internet’s Network Layer

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 2

Page 3: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Five Common Switch Fabric Designs

  Shared Memory

  Shared Medium

  Disjoint Paths

  Crossbar, Knockout Switch

  Multi-state Interconnection Network

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 3

Page 4: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Shared Memory Switch

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 4

Page 5: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

SMS: Pros and Cons   Pros

  Functionally an OQ switch, optimal throughput & delay   Can reduce total amount of memory needed   Broadcast/multicast ready

  Cons   Under “hot-spot” traffic, might be unfair

  Can fix with separate memory segments per output   But then doesn’t save as much memory

  Need a controller & memory speedup of 2N   Single point of failure

  Commercial routers:   Juniper Networks’ E-series/ERX edge router   M-series/M20, M40, M160 core routers

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 5

Page 6: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Shared Medium Switch

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 6

Page 7: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

SMedS: Pros and Cons   Pros

  Functionally an OQ switch, optimal throughput & delay   TDM bus technology is well-understood & advanced   Broadcast/multicast ready

  Cons   Need speedup of (N+1) for output memory, N for filter   Can also be unfair under “hot-spot” traffic, need

sophisticated scheduling/balancing algorithm   Single point of failure

  Commercial routers:   Cisco 7500 series

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 7

Page 8: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Disjoint Paths Switch

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 8

Page 9: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

DPS: Pros and Cons   Pros

  Functionally an OQ switch, optimal throughput & delay   No contention of any kind (neither input nor output)   No “mechanical” speedup needed   Broadcast/multicast ready   Suited for both bursty & uniform traffics   Fault tolerant, Straightforward implementation

  Cons   Complexity scales as O(N2), can’t make large switches   (Too much memory)

  Commercial routers:   Cisco 7500 series

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 9

Page 10: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Crossbar/Crosspoint Switch

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 10

Page 11: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Crosspint Switch

A crosspoint switch supports all permutations So it is “non-blocking” But it needs N2 crosspoints

1

Permutation

1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 1 0

"1

1 1

1 1 1 1

1 1

Crosspoint switch 1

1 1

1 1

1 1

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 11

Page 12: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Crossbar: Pros and Cons   Pros

  Simple control, internally non-blocking   Can perform well, depending on how buffers are managed   Can be used to build larger switches

  Cons   Complexity scale as O(N2), can’t make large switches   Can multicast, but require sophisticated scheduling

  Commercial routers   IQ-crossbar: Cisco 12416   CIOQ-crossbar: Lucent’s PacketStar 6400 IP Switch   Lucent GRF 400 Multi-gigabit Router   Foundry Network’s Big Iron

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 12

Page 13: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Knockout Switch Basic idea: use a concentrator to reduce buffer size

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 13

Page 14: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Concentrator: Select a Few from Many

D

1 2 3 4 Outputs

Inputs

D

D

D

D D

D

D

D D

D

D

D

D

D = delay elements to ensure all packets exit at same time

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 14

Page 15: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Shifter: Balance Output Buffers

(c)

Shifter

Buffers

(b)

Shifter

Buffers

(a)

Shifter

Buffers

Physically, the shifter can be implemented with an L×L Banyan network

L is the number of outputs of the concentrator

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 15

Page 16: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Multi-state Interconnection Networks

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 16

Can we build functionally crossbar-equivalent switch using significantly fewer than N2 2x2 switching elements (or crosspoints?) •  Yes! Theoretically we can even achieve O(N log N) •  Practically: a little worse – O(N log2 N) – with, e.g., Clos and Banyan types of topologies

Page 17: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

3-Stage Clos Network – C(n,m,r)

n x m

r x r

m x n 1

N

N = n x r m >= n

1

2

r

1

2

m

1

2

r

1

N

n n

This is a class of networks, as we can vary n, m, k

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 17

m = # middle crossbars r = # input/output crossbars

Page 18: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Rearrangeably Nonblocking Condition   A switch is rearrangeably nonblocking if it can route

any (sub)-permutation of inputs to outputs simultaneously Theorem: C(n,m,r) is rearrangeably nonblocking if

and only if m ≥ n; In particular, C(n,n,r) is!

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 18

Page 19: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Proof of Theorem

Routing matches is equivalent to edge-coloring in a bipartite multigraph. Colors correspond to middle-stage switches.

(1,1), (2,4), (3,3), (4,2)

Each vertex corresponds to an n x k or k x n

switch.

No two edges at a vertex may be colored the same.

Konig 1931: a D-degree bipartite graph can be colored in D colors. Therefore, if k = n, a 3-stage Clos network is rearrangeably non-blocking (and can therefore perform any permutation).

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 19

Page 20: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Is C(n,n,r) better than a crossbar?   Given N inputs, how to choose n and r?   Total # of crosspoints is

  Can be achieved if we choose

  So the answer is YES

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 20

Page 21: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

The Price: Rearrangement Running Time

o  Method 1: Find a maximum size bipartite matching for each of D colors in turn:

o  Method 2: Partition graph into Euler sets [Cole et al. ‘00]

o  Both are slow and complex

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 21

Page 22: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Benes Network   Can we do better than O(N3/2) for rearrangeability?   Yes: use Clos recursively

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 22

Page 23: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Benes Network – Recursive Construction

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 23

Page 24: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Benes Network – Recursive Construction

16 port, 7 stage Clos network = Benes topology

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 24

Page 25: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Benes Network Complexity   Symmetric

  Size:   F(N) = 2(N/2) + 2F(N/2) = O(N log N)

  It is rearrangable   Clos network with m=n=2

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 25

Page 26: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Rearrangeable Clos: Pros & Cons Pros   A rearrangeably non-blocking switch can perform

any permutation   A cell switch is time-slotted, so all connections are

rearranged every time slot anyway Cons   Rearrangement algorithms are complex (in addition

to the scheduler)

Can we eliminate the need to rearrange?

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 26

Page 27: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Strictly Non-blocking Clos Network   A switch is strictly non-blocking if a new request

from a free input to a free output can be accommodated without disturbing existing connections Theorem: C(n,m,r) is strictly nonblocking if and

only if m ≥ 2n-1

n x m!

m x n!

n-1!

n-1!

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 27

Page 28: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Strictly Non-blocking Clos: Complexity   Given N inputs, how to choose n and r?   Total # of crosspoints is (set m = 2n for simplicity)

  Can be achieved if we choose

  Seem a little high. Can we do better?

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 28

Page 29: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Cantor Network – Strictly nonblocking

Log N copies of Benes, complexity O(N log2 N) SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 29

Page 30: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Proof Sketch

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

7

6

5

4

3

2

1

0

15

14

13

12

11

10

9

8

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 30

Page 31: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Proof Sketch

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 31

Page 32: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Proof Sketch   Benes network:

  2 log N -1 layers,   N/2 nodes in layer.   Middle layer= layer log N -1

  Consider the middle layer of the Benes Networks.   There are Nm/2 nodes in in all of them combined.   Bound (from below) the number of nodes reachable from an

input and output.   If the sum is more than Nm/2:

  There is an intersection   there has to be a route.

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 32

Page 33: Last Lecture: Network Layer - University at Buffalohungngo/classes/2010/589... · SMS: Pros and Cons Pros Functionally an OQ switch, optimal throughput & delay Can reduce total amount

Proof Sketch

  Let A(k) = number of nodes reachable at level k.   A(0)=m   A(1)= 2A(0)-1   A(2)=2A(1)-2   A(k)=2A(k-1) - 2k-1 = 2k A(0) - k 2k-1   A(log N -1) = Nm/2 - (log N -1) N/4   Need that: 2A(log N -1) > Nm/2.

  2[Nm/2 - (log N -1) N/4] > Nm/2.   Hold for m> log N-1.

SUNY at Buffalo; CSE 489/589 – Modern Networking Concepts; Fall 2010; Instructor: Hung Q. Ngo 33