Midterm ¡review ¡
CSCI ¡466: ¡Networks ¡• ¡ ¡Keith ¡Vertanen ¡
Midterm review CSCI 466: Networks Keith Vertanen - - PowerPoint PPT Presentation
Midterm review CSCI 466: Networks Keith Vertanen Network architecture 2 Encapsula8on High-level messages encapsulated in low-level messages
CSCI ¡466: ¡Networks ¡• ¡ ¡Keith ¡Vertanen ¡
2 ¡
3 ¡
4 ¡
5 ¡
6 ¡
7 ¡
8 ¡
9 ¡
10 ¡
Queuing ¡delays ¡ inside ¡the ¡ network ¡ More ¡important ¡for ¡ short ¡messages ¡ More ¡important ¡ for ¡long ¡messages ¡
11 ¡
¡
¡
12 ¡
13 ¡
15 ¡
– Adjust ¡clock ¡on ¡transi8on ¡from ¡high-‑to-‑low ¡or ¡low-‑to-‑high ¡ ¡
16 ¡
17 ¡
18 ¡
19 ¡
20 ¡
21 ¡
22 ¡
23 ¡
24 ¡
25 ¡
data ¡ even ¡parity ¡
0010 ¡101 ¡ 0010 ¡1011 ¡ 0010 ¡1010 ¡ 1100 ¡110 ¡ 1100 ¡1100 ¡ 1100 ¡1101 ¡ 0000 ¡000 ¡ 0000 ¡0000 ¡ 0000 ¡0001 ¡
26 ¡
27 ¡
Name ¡ Used ¡in ¡ C(x) ¡ Generator ¡ CRC-‑8 ¡ ATM ¡ x8 ¡+ ¡x2 ¡+ ¡x1 ¡+ ¡1 ¡ ¡ 1 ¡0000 ¡0111 ¡ CRC-‑10 ¡ ATM ¡ x10 ¡+ ¡x9 ¡+ ¡x5 ¡+ ¡x4 ¡+ ¡x1 ¡+ ¡1 ¡ ¡ 110 ¡0011 ¡0011 ¡ CRC-‑12 ¡ Telecom ¡systems ¡ x12 ¡+ ¡x11 ¡+ ¡x3 ¡+ ¡x2 ¡+ ¡x1 ¡+ ¡1 ¡ ¡ 1 ¡1000 ¡0000 ¡1111 ¡ CRC-‑16 ¡ USB, ¡Bisync ¡ x16 ¡+ ¡x15 ¡+ ¡x2 ¡+ ¡1 ¡ ¡ 1 ¡1000 ¡0000 ¡0000 ¡0011 ¡ CRC-‑CCITT ¡ Bluetooth, ¡X.25, ¡SD, ¡HDLC ¡ x16 ¡+ ¡x12 ¡+ ¡x5 ¡+ ¡1 ¡ ¡
1 ¡0001 ¡0000 ¡0010 ¡0001 ¡
CRC-‑32 ¡ Ethernet, ¡SATA, ¡MPEG-‑2, ¡ Gzip, ¡PKZIP, ¡PNG, ¡ATM ¡ x32 ¡+ ¡x26 ¡+ ¡x23 ¡+ ¡x22 ¡+ ¡x16 ¡+ ¡x12 ¡+ ¡x11 ¡+ ¡ x10 ¡+ ¡x8 ¡+ ¡x7 ¡+ ¡x5 ¡+ ¡x4 ¡+ ¡x2 ¡+ ¡x1 ¡+ ¡1 ¡
¡
1 ¡0000 ¡0100 ¡1100 ¡0001 ¡ 0001 ¡1101 ¡1011 ¡0111 ¡
– All ¡single-‑bit ¡errors, ¡if ¡xk ¡and ¡x0 ¡are ¡nonzero ¡ – All ¡double-‑bit ¡errors, ¡if ¡C(x) ¡has ¡a ¡factor ¡with ¡3 ¡or ¡more ¡terms ¡ – Any ¡odd ¡number ¡of ¡errors, ¡if ¡C(x) ¡contains ¡the ¡factor ¡(x+1) ¡ – Any ¡burst ¡error, ¡if ¡burst ¡is ¡less ¡than ¡k ¡bits ¡
– Selec8ve ¡acknowledgement, ¡specifies ¡received ¡frame ¡ – Cumula8ve ¡acknowledgement, ¡received ¡this ¡frame ¡and ¡all ¡ previous ¡ – Nega8ve ¡acknowledgement ¡(NACK), ¡frame ¡was ¡corrupt ¡or ¡out ¡
28 ¡
29 ¡
30 ¡
Problem ¡1: ¡ Receiver ¡thinks ¡the ¡ retransmission ¡is ¡a ¡ new ¡frame, ¡ corrup8ng ¡data ¡ passed ¡up ¡to ¡ network ¡layer. ¡
a) ¡ACK ¡received ¡before ¡8meout ¡ b) ¡original ¡frame ¡is ¡lost ¡ c) ¡ACK ¡is ¡lost ¡ d) ¡8meout ¡triggered ¡too ¡soon ¡
31 ¡
Solu6on ¡1: ¡ Use ¡1-‑bit ¡sequence ¡
¡
Receiver ¡can ¡now ¡ determine ¡if ¡received ¡ frame ¡is ¡a ¡duplicate. ¡
hUp://www.net-‑seal.net/anima8ons.php?aid=37 ¡
1 ¡ 0 ¡ 0 ¡ 0 ¡ 0 ¡ 0 ¡
32 ¡
33 ¡
hUp://www.eecis.udel.edu/~amer/450/TransportApplets/GBN/GBNindex.html ¡ hUp://www.net-‑seal.net/anima8ons.php?aid=38 ¡
34 ¡
hUp://www.eecis.udel.edu/~amer/450/TransportApplets/SR/SRindex.html ¡ hUp://www.net-‑seal.net/anima8ons.php?aid=39 ¡
35 ¡
36 ¡
37 ¡
Ethernet ¡ 802.3 ¡ AlternaIng ¡0's ¡ and ¡1's ¡(except ¡ SoF ¡of ¡11) ¡ 48-‑bit ¡MAC ¡ addresses ¡
38 ¡
39 ¡
40 ¡
41 ¡
42 ¡
43 ¡
44 ¡
45 ¡
One ¡Laptop ¡per ¡Child, ¡uses ¡ 802.11s ¡mesh ¡dra] ¡standard. ¡
46 ¡
A ¡and ¡C ¡both ¡want ¡to ¡send ¡to ¡B. ¡ ¡ ¡ ¡ A ¡and ¡C ¡can’t ¡hear ¡each ¡other ¡ so ¡can’t ¡detect ¡their ¡ transmissions ¡collided. ¡
47 ¡
C ¡wants ¡to ¡send ¡to ¡D. ¡ ¡ But ¡C ¡can ¡hear ¡B ¡transmiwng ¡to ¡A. ¡ But ¡D ¡cannot ¡hear ¡B, ¡ and ¡A ¡cannot ¡hear ¡C. ¡ ¡ So ¡C ¡could ¡safely ¡transmit ¡to ¡D. ¡
48 ¡
– Addr1 ¡– ¡ul8mate ¡des8na8on ¡ – Addr2 ¡– ¡immediate ¡sender, ¡AP ¡that ¡forwarded ¡to ¡ul8mate ¡ des8na8on ¡ – Addr3 ¡– ¡intermediate ¡des8na8on, ¡AP ¡that ¡accepted ¡frame ¡ from ¡sender ¡ – Addr4 ¡– ¡original ¡sender ¡ ¡
49 ¡
50 ¡
51 ¡
52 ¡
Analog ¡devices, ¡clean ¡up ¡signal, ¡amplify, ¡put ¡out ¡
Operates ¡on ¡frames, ¡looks ¡at ¡MAC ¡addresses ¡ Operates ¡on ¡packets, ¡uses ¡IP ¡addresses ¡ Connect ¡different ¡connec8on-‑oriented ¡ protocols, ¡e.g. ¡TCP/IP ¡to ¡SCTP ¡ Understands ¡format ¡and ¡contents ¡of ¡data, ¡e.g. ¡ translate ¡Internet ¡message ¡to ¡SMS ¡message ¡
53 ¡
Des8na8on ¡Port ¡
A ¡ ¡ ¡3 ¡ B ¡ ¡ ¡0 ¡ C ¡ ¡ ¡3 ¡ D ¡ ¡ ¡3 ¡ E ¡ ¡ ¡2 ¡ F ¡ ¡ ¡1 ¡ G ¡ ¡ ¡0 ¡ H ¡ ¡ ¡0 ¡ Forwarding ¡Table ¡for ¡Switch ¡2 ¡
54 ¡
A ¡wants ¡to ¡send ¡data ¡to ¡B. ¡ ¡ Establish ¡a ¡connec8on ¡state ¡ (VC ¡table) ¡in ¡each ¡switch ¡ between ¡A ¡and ¡B. ¡ ¡ VC ¡table ¡entry ¡has ¡a ¡virtual ¡ circuit ¡iden8fier ¡(VCI) ¡that ¡ will ¡be ¡in ¡frames ¡belonging ¡to ¡ this ¡connec8on. ¡ ¡ ¡
55 ¡
56 ¡
hUp://www.cisco.com/ image/gif/paws/10607/ lan-‑switch-‑transparent.swf ¡ ¡
57 ¡
58 ¡
1) B1 ¡has ¡the ¡lowest ¡ID, ¡news ¡spreads, ¡all ¡bridges ¡agree ¡B1 ¡is ¡root. ¡ 2) B2 ¡and ¡B3 ¡are ¡directly ¡connect ¡to ¡root, ¡added ¡to ¡tree ¡ 3) B4 ¡can ¡reach ¡B1 ¡in ¡two ¡hops ¡via ¡B3 ¡or ¡B2, ¡B2 ¡wins ¡(lower ¡ID) ¡ 4) B5 ¡can ¡reach ¡B1 ¡in ¡two ¡hops ¡via ¡B3 ¡(other ¡paths ¡are ¡three ¡hops) ¡ 5) Links ¡from ¡B3 ¡to ¡B4 ¡and ¡from ¡B4 ¡to ¡B5 ¡turned ¡off ¡
59 ¡
60 ¡
61 ¡
62 ¡
63 ¡
– "4" ¡IPv4 ¡
– # ¡of ¡32-‑bit ¡words ¡in ¡header ¡ – "5" ¡for ¡typical ¡20-‑byte ¡IPv4 ¡header ¡
– Type ¡of ¡service ¡ – Allows ¡for ¡quality ¡of ¡service ¡ ¡
– Total ¡length, ¡max ¡size ¡65535 ¡bytes ¡ – Links ¡may ¡have ¡small ¡limits ¡
– Used ¡when ¡packets ¡are ¡split ¡up ¡
64 ¡
– Time=to-‑live ¡ – Iden8fy ¡packets ¡stuck ¡in ¡loop ¡
– Used ¡to ¡demux ¡higher-‑level ¡ protocol ¡ – e.g. ¡"6" ¡Transmission ¡Control ¡ Protocol ¡(TCP), ¡"17" ¡User ¡Datagram ¡ Protocol ¡(UDP) ¡
– One's ¡complement ¡IP ¡checksum ¡ algorithm ¡ – Not ¡strong ¡protec8on, ¡but ¡cheap ¡to ¡ calculate ¡
65 ¡
– Probe ¡message ¡to ¡determine ¡max ¡packet ¡size ¡
66 ¡
67 ¡
68 ¡
69 ¡
hUp://xkcd.com/742/ ¡
70 ¡
71 ¡
72 ¡
73 ¡
74 ¡
75 ¡
76 ¡
Table for A Dst Cst Hop A A B 4 B C ∞ – D ∞ – E 2 E F 6 F Table for B Dst Cst Hop A 4 A B B C ∞ – D 3 D E ∞ – F 1 F Table for C Dst Cst Hop A ∞ – B ∞ – C C D 1 D E ∞ – F 1 F Table for D Dst Cst Hop A ∞ – B 3 B C 1 C D D E ∞ – F ∞ – Table for E Dst Cst Hop A 2 A B ∞ – C ∞ – D ∞ – E E F 3 F Table for F Dst Cst Hop A 6 A B 1 B C 1 C D ∞ – E 3 E F F
Op6mum ¡1-‑hop ¡paths ¡
77 ¡
Table for A Dst Cst Hop A A B 4 B C 7 F D 7 B E 2 E F 5 E Table for B Dst Cst Hop A 4 A B B C 2 F D 3 D E 4 F F 1 F Table for C Dst Cst Hop A 7 F B 2 F C C D 1 D E 4 F F 1 F Table for D Dst Cst Hop A 7 B B 3 B C 1 C D D E ∞ – F 2 C Table for E Dst Cst Hop A 2 A B 4 F C 4 F D ∞ – E E F 3 F Table for F Dst Cst Hop A 5 B B 1 B C 1 C D 2 C E 3 E F F
Op6mum ¡2-‑hop ¡paths ¡
78 ¡
Table for A Dst Cst Hop A A B 4 B C 6 E D 7 B E 2 E F 5 E Table for B Dst Cst Hop A 4 A B B C 2 F D 3 D E 4 F F 1 F Table for C Dst Cst Hop A 6 F B 2 F C C D 1 D E 4 F F 1 F Table for D Dst Cst Hop A 7 B B 3 B C 1 C D D E 5 C F 2 C Table for E Dst Cst Hop A 2 A B 4 F C 4 F D 5 F E E F 3 F Table for F Dst Cst Hop A 5 B B 1 B C 1 C D 2 C E 3 E F F
Op6mum ¡3-‑hop ¡paths ¡
79 ¡
80 ¡
"hello" ¡ "good ¡day ¡fine ¡sir" ¡
– 1-‑Gbps ¡cost ¡1 ¡ – 100-‑Mbps ¡cost ¡10 ¡
81 ¡
hUp://xkcd.com/85/ ¡
82 ¡
83 ¡
a) LSP ¡arrives ¡at ¡node ¡X ¡ b) X ¡floods ¡LSP ¡to ¡A ¡and ¡C ¡ c) A ¡and ¡C ¡flood ¡LSP ¡to ¡B ¡ (but ¡not ¡X) ¡ d) flooding ¡complete ¡
84 ¡
Building ¡rou8ng ¡table ¡for ¡node ¡D. ¡
– Routers ¡only ¡send ¡informa8on ¡within ¡their ¡area ¡ – Detailed ¡topology ¡for ¡only ¡their ¡area ¡ – Traffic ¡going ¡outside ¡of ¡area, ¡send ¡to ¡backbone ¡
– Some ¡routers ¡in ¡both ¡backbone ¡and ¡other ¡area(s) ¡ – Area ¡Border ¡Router ¡(ABR) ¡
85 ¡
86 ¡
R1, ¡R2, ¡and ¡R3 ¡are ¡in ¡the ¡ backbone ¡area. ¡ ¡ R1 ¡is ¡an ¡ABR ¡for ¡area ¡1 ¡and ¡2. ¡ R2 ¡is ¡an ¡ABR ¡for ¡area ¡2. ¡ R3 ¡is ¡an ¡ABR ¡for ¡area ¡3. ¡
87 ¡
88 ¡
“d: path (2,1)” “d: path (1)” data traffic data traffic
89 ¡
– Single ¡connec8on ¡to ¡another ¡AS ¡ – AS ¡only ¡carries ¡local ¡traffic ¡ – e.g. ¡Small ¡corpora8on, ¡university ¡
90 ¡
– Connected ¡to ¡mul8ple ¡ASes ¡ – Refuses ¡to ¡carry ¡transit ¡traffic ¡ – Improves ¡reliability ¡ ¡
91 ¡
– Connected ¡to ¡mul8ple ¡ASes ¡ – Designed ¡to ¡carry ¡transit ¡and ¡local ¡ traffic ¡ ¡
92 ¡
– Allows ¡ASes ¡to ¡connect ¡directly, ¡ bypassing ¡a ¡transit ¡AS. ¡
93 ¡
94 ¡
95 ¡
96 ¡
97 ¡
98 ¡
99 ¡
100 ¡
101 ¡
102 ¡
Bob ¡ Alice ¡ Skype ¡server ¡ 3.3.3.3 ¡ 1.1.1.1 ¡ 1234 ¡ 2.2.2.2 ¡ 5678 ¡
Bob ¡ Alice ¡ Skype ¡server ¡ 3.3.3.3 ¡ 1.1.1.1 ¡ 1234 ¡ 2.2.2.2 ¡ 5678 ¡
response ¡to ¡his ¡blocked ¡ini8al ¡packet. ¡
103 ¡
Full ¡address ¡ 8000:0000:0000:0000:0123:4567:89AB:CDEF ¡ Abbreviated ¡ 8000::0123:4567:89AB:CDEF ¡ IPv4 ¡mapped ¡to ¡IPv6 ¡ ::FFFF:192.31.20.46 ¡ 00...0 ¡(128 ¡bits) ¡ Unspecified ¡ 00…1 ¡(128 ¡bits) ¡ Loopback ¡ 1111 ¡1111… ¡ Mul8cast ¡address ¡ 1111 ¡1110 ¡10… ¡ Link-‑local ¡unicast ¡ Everything ¡else ¡ Global ¡unicast ¡addresses, ¡99% ¡of ¡the ¡space ¡
104 ¡
IPv6 ¡fixed ¡40-‑byte ¡header. ¡
105 ¡
192.168.1.3 ¡ 8000:0000:0000:0000:0123:4567:89AB:CDEF ¡
¡
106 ¡
Unicast ¡ Broadcast ¡ Mul8cast ¡ Anycast ¡
107 ¡
108 ¡
109 ¡
110 ¡
111 ¡