

































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


































Backbone ISP
n TCP/IP for routing and messaging n BGP for routing announcements
n Find IP address from symbolic name (www.cs.stanford.edu)
Application Transport (TCP, UDP) Network (IP) Link Layer Application message - data TCP data TCP data TCP data TCP Header IP TCP data IP Header ETH IP TCP data ETF Link (Ethernet) Header Link (Ethernet) Trailer segment packet frame message
Version Header Length Type of Service Total Length Identification Flags Time to Live Protocol Header Checksum Source Address of Originating Host Destination Address of Target Host Options Padding IP Data Fragment Offset
n IP host knows location of router (gateway) n IP gateway must know route to other networks
n If max-packet-size less than the user-data-size
n ICMP packet to source if packet is dropped
n Packet dropped if TTL=0. Prevents infinite loops.
Source Port Dest port SEQ Number ACK Number Other stuff
TCP Header
SNC⟵randC ANC⟵ 0 SNS⟵randS ANS⟵SNC SN⟵SNC+ AN⟵SNS Received packets with SN too far out of window are dropped
Why random initial sequence numbers?
n Attacker can create TCP session on behalf of forged source IP
w Random seq. num. do not prevent attack, but make it harder Victim Server
dstIP=victim SN=server SNS
srcIP=victim AN=predicted SNS command server thinks command is from victim IP addr attacker
srcIP=victim
32
w … but, many systems allow for a large window of acceptable seq. #‘s. Much higher success probability.
connected group of one or more Internet Protocol prefixes under a single routing policy (aka domain)
earthlink.net Stanford.edu (AS#4355) (AS#32)
n Node A can confuse gateway into sending it traffic for Node B n By proxying traffic, node A can read/inject packets into B’s session (e.g. WiFi networks)
n Anyone can cause entire Internet to send traffic for a victim IP to attacker’s address w Example: Youtube-Pakistan mishap (see DDoS lecture) n Anyone can hijack route to victim (next slides)
n Anyone can inject advertisements for arbitrary routes n Advertisement will propagate everywhere n Used for DoS, spam, and eavesdropping (details in DDoS lecture) n Often a result of human error
route in effect for several hours