Lecture 5: Network Configuration and Defense
CS 598: Network Security Matthew Caesar February 26, 2013
1
CS 598: Network Security Matthew Caesar February 26, 2013 1 Part - - PowerPoint PPT Presentation
Lecture 5: Network Configuration and Defense CS 598: Network Security Matthew Caesar February 26, 2013 1 Part 1: How the Internet works 2 How can two hosts communicate? 0.7 Volts -0.7 Volts Encode information on modulated Carrier
1
2
0.7 Volts
23.2.0.0/24 81.2.0.0/24 10.1.0.0/16 4.0.0.0/8 Prefix Hops IF Routing Table at B D 1 4.0.0.0/8 Prefix Hops IF Routing Table at C D 1 4.0.0.0/8 Prefix Hops IF Routing Table at A B 2
10.1.0.1 10.1.8.7 23.2.0.1 81.2.0.1 4.5.16.2 4.18.5.1 4.9.0.1
IP address
4.0.0.0/8
Prefix
Dest NextHop Dist F F 1 D’s forwarding table Dest NextHop Dist F D 2 B’s forwarding table
IP packet
hierarchy #1 hierarchy #2 hierarchy #3
peer link
hierarchy #1 hierarchy #2 hierarchy #3
peer link
hierarchy #1 hierarchy #2 hierarchy #3
peer link
Prefer customer
Do not export provider routes to peers Source Destination
Prefix P
(link price: $100 per 1Gbps) (link price: $5000 per 1Gbps)
Prefix P
Prefix P
Prefix P
Withdraw(H) Updates received by A: 0 1 2 3 4 5 6 7
32
33
36
37
38
39
40
41
– Use traceroute, ping
42
source destination TTL=1 Time exceeded TTL=2
43
source destination TTL=1 Time exceeded TTL=2
44
45
46
Soule et al., “Avoiding Traceroute Anomalies with Paris Traceroute”, IMC 2006
47
48
49
50
51
delay n propagatio : d delay
transmissi : / c L noise delay queueing + : ε
size packet capacity link TTL value initial : : : L c i
52
53
54
~/code/caesar/utils/routing: > bunzip2 -cf rib.20030402.1152.bz2 | rba | head -n 30 TIME: 04/02/03 11:52:00 TYPE: TABLE_DUMP/INET VIEW: 0 SEQUENCE: 1 PREFIX: 3.0.0.0/8 FROM: 217.75.96.60 AS16150 ORIGINATED: 04/02/03 11:27:17 ORIGIN: IGP ASPATH: 16150 8434 3257 1239 7018 80 NEXT_HOP: 217.75.96.60 COMMUNITY: 3257:3000 3257:3030 3257:3032 3257:5031 16150:65305 16150:65317 16150:65321 STATUS: 0x1 55 TIME: 04/02/03 11:52:00 TYPE: TABLE_DUMP/INET VIEW: 0 SEQUENCE: 2 PREFIX: 3.0.0.0/8 FROM: 147.28.255.2 AS3130 ORIGINATED: 04/01/03 14:34:03 ORIGIN: IGP ASPATH: 3130 2914 7018 80 NEXT_HOP: 147.28.255.2 MULTI_EXIT_DISC: 20 COMMUNITY: 2914:420 2914:2000 2914:3000 3130:200 3130:300 STATUS: 0x1 ~/code/caesar/utils/routing: >
56
57
58
59
60
61
62
63
64
Source: endace.com
65
66
67
68
69
70
1. Create and update flows in NetFlow Cache
Heade r
Export Packet
Payload (flows)
2. Expiration 3. Aggregation?
Protocol Pkts SrcPort DstPort Bytes/Pkt 11 11000 00A2 00A2 1528 SrcIf SrcIPadd DstIf DstIPadd Protocol TOS Flgs Pkts SrcPort SrcMsk SrcAS DstPort DstMsk DstAS NextHop Bytes/Pkt Active Idle Fa1/0 173.100.21.2 Fa0/0 10.0.227.12 11 80 10 11000 00A2 /24 5 00A2 /24 15 10.0.23.2 1528 1800 4
e.g. Protocol-Port Aggregation Scheme becomes
4. Export Version
SrcIf SrcIPadd DstIf DstIPadd Protocol TOS Flgs Pkts SrcPort SrcMsk SrcAS DstPort DstMsk DstAS NextHop Bytes/Pkt Active Idle Fa1/0 173.100.21.2 Fa0/0 10.0.227.12 11 80 10 11000 00A2 /24 5 00A2 /24 15 10.0.23.2 1528 1745 4 Fa1/0 173.100.3.2 Fa0/0 10.0.227.12 6 40 2491 15 /26 196 15 /24 15 10.0.23.2 740 41.5 1 Fa1/0 173.100.20.2 Fa0/0 10.0.227.12 11 80 10 10000 00A1 /24 180 00A1 /24 15 10.0.23.2 1428 1145.5 3 Fa1/0 173.100.6.2 Fa0/0 10.0.227.12 6 40 2210 19 /30 180 19 /24 15 10.0.23.2 1040 24.5 14
Aggregated Flows – export Version 8 or 9 Non-Aggregated Flows – export Version 5 or 9
5. Transport Protocol
71
72
73
74
77
78
79
80
81
82
83
84