Download presentation
Presentation is loading. Please wait.
Published byVincent Simmons Modified over 9 years ago
1
1 CSE524: Lecture 2 Internet protocols in a nutshell (Protocols in practice)
2
2 Administrative Reading assignment –Chapter 1, due by Monday 10/6/2001 CSE524 e-mail list created –ogi-cse524@yahoogroups.com –E-mail TA if you have not received the introductory message or my last message about programming projects –Messages are archived at http://groups.yahoo.com
3
3 Functional decomposition of layers Physical –Link medium itself Data-link –Link access control, hardware addressing (link-local) Network (IP) –Global addressing, fragmentation Transport (TCP) –Application demux, reliability, flow/congestion control
4
4 A day in the life of an Internet host… Booting –Dynamically configure network settings DHCP, BOOTP request –UDP (unreliable datagrams) –IP and data-link broadcast DHCP, BOOTP response from listening server –IP address of host, DNS server, and default router –Netmask (i.e. 255.255.255.0) to determine network ID Or specified statically
5
5 A day in the life of an Internet host… Web request http://www.yahoo.com/index.htmlhttp://www.yahoo.com/index.html –Step #1: Locate DNS server if (netmask & IP Host == netmask & IP DNS ) DNS server on local network ARP for hardware address of IP DNS else DNS server on remote network ARP for hardware address of IP DefaultRouter ARP (Address Resolution Protocol) –IP address to hardware address mapping –Request broadcast for all hosts on network to see –Reply broadcast for all hosts to cache
6
6 A day in the life of an Internet host… Step #2: ARP request and reply
7
7 A day in the life of an Internet host… Step #2: DNS request and reply –UDP, IP, data-link header Datalink header (host) IP of host UDP Header DNS reply www.yahoo.com is 216.115.105.2
8
8 A day in the life of an Internet host… Step #3: TCP connection establishment + HTTP request and reply HTTP (application data) “GET index.html” “HTTP/1.0” TCP (session establishment, reliable byte stream) IP, data-link header Datalink header (host) IP of host TCP Header HTTP reply HTTP/1.0 200 OK Date: Mon, 24 Sep 2001 Content-Type: text/html etc…
9
9 tcpdump example http://www.cse.ogi.edu/class/cse524/trace.txt
10
10 A day in the life of an Internet host… Role of TCP and UDP? Demultiplex at end hosts. –Which process gets this request? FTP HTT P TFT P NV TC P UD P IP NE T 1 NE T 2 NE T n … TCP/UD P IP IPX Port Number Networ k Protocol Field Type Field
11
11 A day in the life of an Internet host…. What about…. –Reliability Corruption Lost packets –Flow and congestion control –Fragmentation –Out-of-order delivery The beauty of TCP, IP, and layering –All taken care of transparently
12
12 What if the Data gets Corrupted? Internet GET windex.htmlGET index.html Solution: Add a checksum Problem: Data Corruption 0,99 6,7, 8 2121 4,57 1,2, 3 6 X
13
13 What if the Data gets Lost? Internet GET index.html Problem: Lost Data Internet GET index.html Solution: Timeout and Retransmit GET index.html
14
14 What if receiver has no resources (flow control)? Internet PUT remix.mp3 Problem: Overflowing receiver buffers Internet Solution: Receiver advertised window PUT remix.mp3 16KB free
15
15 What if Network is Overloaded? Short bursts: buffer What if buffer overflows? –Packets dropped and retransmitted –Sender adjusts rate until load = resources Called “Congestion control” Short bursts: buffer What if buffer overflows? –Packets dropped and retransmitted –Sender adjusts rate until load = resources Called “Congestion control” Solution: Buffering and Congestion Control
16
16 Problem: Packet size Solution: Fragment data across packets What if the Data Doesn’t Fit? On Ethernet, max IP packet is 1.5kbytes Typical web page is 10kbytes GETindex.html GET index.html
17
17 Solution: Add Sequence Numbers Problem: Out of Order What if the Data is Out of Order? GETx.thindeml GET x.thindeml GET index.html ml4 ind e 2x.th3 GE T 1
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.