CompSci514/ECE558: Computer Networks
Lecture 22: Review Xiaowei Yang xwy@cs.duke.edu http://www.cs.duke.edu/~xwy
CompSci514/ECE558: Computer Networks Lecture 22: Review Xiaowei - - PowerPoint PPT Presentation
CompSci514/ECE558: Computer Networks Lecture 22: Review Xiaowei Yang xwy@cs.duke.edu http://www.cs.duke.edu/~xwy Roadmap Summarize what we have learned in this semester Design principles of computer networks Congestion control
Lecture 22: Review Xiaowei Yang xwy@cs.duke.edu http://www.cs.duke.edu/~xwy
4
7
8
OS Appl. OS Appl. Host A Host B
Network
9
OS Appl. OS Appl. Host A Host B OK
Network
10
OS Appl. OS Appl. Host A Host B OK
Network
11
system operate around the knee to
throughput
system operate left to the cliff to avoid congestion collapse
value
cwnd = 1 cwnd = 2 cwnd = 4 cwnd = 8 cwnd = 9 cwnd = 10
2 4 6 8 10 12 14 t=0 t=2 t=4 t=6
Roundtrip times Cwnd (in segments) ssthresh
21
RTT Cwnd
22
23
– Efficiency: the closeness of the total load on the resource ot its knee – Fairness:
– Distributedness
system
– Convergence
24
25
26
x1 x2
27
RTT Cwnd
28
– S = w + (w+1) + … (w+w) = 3/2 w2
– 1/S = p – w =
1 1.5p
29
X CE=1 ECE=1 CWR=1
– Allocate user with small demand what it wants, evenly divide unused resources to big users
–
–
allocation
have equal shares
– Remove the minimal user and reduce the total resource accordingly, 2 recursively holds
– Give C/n to X1; if this is more than X1 wants, divide excess (C/n - X1) to other sources: each gets C/n + (C/n - X1)/(n-1) – If this is larger than what X2 wants, repeat process
– Bandwidth: Which packets get transmitted – Promptness: When do packets get transmitted – Buffer: Which packets are discarded – Examples: FIFO
– Max-min fair – Work conserving: links not idle if there is work to do – Isolate misbehaving sources – Has some control over promptness
bandwidth
– On Average does not depend discontinuously on a packet’s time of arrival – Not blocked if no packet arrives
39
– Fluid fairness – Bitwise round robin among all queues
– Emulate this reference system in a packetized system – Challenges: bits are bundled into packets. Simple round robin scheduling does not emulate bit- by-bit round robin
α
α
α be the round number when the packet starts
α be the finish round number
α = Si α + Pi α
α = Max (Fi-1 α, R(ti α))
w=2 w=1
End-hosts Routers
Duke Comcast Abilene AT&T Cogent Autonomous Systems (ASes) BGP IGPs (OSPF, etc)
Duke Comcast Abilene AT&T Cogent BGP All ASes are not equal
Tier 1 ISP Tier 2 Regional Tier 2 Tier 1 ISP Tier 2 Tier 3 (local) Tier 2: Regional/National Tier 3: Local $$ $$ $$
Default free, Has information on every prefix Default: provider
Duke NC RegNet UNC 152.3/16 152.3/16
152.3.137.179 152.2.3.4
Route Advertisement Autonomous Systems (ASes) Session (over TCP) Traffic BGP peers
– Dest Next-hop AS Path … other attributes … – 128.2.0.0/16 196.7.106.245 2905 701 1239 5050 9
– External peers typically directly connected
among the routers within an AS
– Internal peers are not – Require IGP to find routes eBGP iBGP
Route Advertisement Autonomous Systems (ASes) Session (over TCP) Traffic A B
64
AS5 AS1 AS2 AS3 AS4 peer-to-peer sibling-to- sibling edge edge AS6 AS7 provider-to
65
Figure 12: Components of a Saturn fabric. A 24x10G Pluto
ToR Switch and a 12-linecard 288x10G Saturn chassis (in- cluding logical topology) built from the same switch chip. Four Saturn chassis housed in two racks cabled with fiber (right).