CompSci514/ECE558: Computer Networks
Lecture 1: Course Introduction Xiaowei Yang xwy@cs.duke.edu http://www.cs.duke.edu/~xwy
CompSci514/ECE558: Computer Networks Lecture 1: Course Introduction - - PowerPoint PPT Presentation
CompSci514/ECE558: Computer Networks Lecture 1: Course Introduction Xiaowei Yang xwy@cs.duke.edu http://www.cs.duke.edu/~xwy Overview History of the Internet What does the Internet look like? The historic design of the Internet
Lecture 1: Course Introduction Xiaowei Yang xwy@cs.duke.edu http://www.cs.duke.edu/~xwy
An overview lecture that covers Internet related topics, including a definition of the Internet, an overview of its history and growth, and standardization and naming.
queueing theory shows effectiveness of packet- switching
switching in military nets
Advanced Research Projects Agency
– ARPAnet demonstrated publicly – NCP (Network Control Protocol) first host-host protocol
– first e-mail program – ARPAnet has 15 nodes
https://www2.cs.duke.edu/courses/fall18/compsci514/slides/IMG_1342.MOV
network in Hawaii
proposes Ethernet
architecture for interconnecting networks (Turing award work)
architectures: DECnet, SNA, XNA
length packets (ATM precursor)
Cerf and Kahn’s internetworking principles: – minimalism, autonomy - no internal changes required to interconnect networks – best effort service model – stateless routers – decentralized control define todays Internet architecture
decommissioned
commercial use of NSFnet (decommissioned, 1995)
– hypertext [Bush 1945, Nelson 1960s] – HTML, HTTP: Berners-Lee – 1994: Mosaic, later Netscape – late 1990s: commercialization of the Web Late 1990s – 2000s:
messaging, P2P file sharing
million+ users
Gbps 2000-now:
Future: …
12
13
email WWW phone... SMTP HTTP RTP... TCP UDP… IP ethernet PPP… CSMA async sonet... copper fiber radio... Ethernet ATM Framerelay IP/SONET Ethernet Ethernet 802.X Wireless Host Host Host Host Host Host Host Host Host Host Host Host Host Host Host
Tier 1 Tier 1
Tier 2 Tier 2 Tier 2
Tier 3
BGP RIP, OSFP Distance Vector Link-State
Ethernet, CSMA/CD Bridges, Switches, Spanning Tree Bandwidth x Delay TCP Performance
Modulation Coding FDMA, TDMA
IP Blocks, CIDR, Subnets Longest Prefix Match, Fragmentation, MTU
14
15
four layers: Application, Transport, Network, and Data Link Layer
from end systems (hosts) may involve actions of all four
(Routers) only involve the bottom two layers.
Application Transport Network
Operating system User-level programs
Data Link
Data Link Media Access Control (MAC) Sublayer in Local Area Networks
16
– Service: Reliable transfer of frames over a link Media Access Control on a LAN – Functions: Framing, media access control, error checking
– Service: Move packets from source host to destination host – Functions: Routing, addressing
– Service: Delivery of data between hosts – Functions: Connection establishment/termination, error control, flow control
– Service: Application specific (delivery of email, retrieval of HTML documents, reliable transfer of file) – Functions: Application specific
17
Application Layer Application Layer
Presentation
Layer Session Layer Transport Layer Network Layer (Data) Link Layer Physical Layer Transport Layer Network Layer OSI Reference Model (Data) Link Layer TCP/IP Suite
18
Network Layer
Routing Protocols
PIM OSPF RIP Application Layer Data Link Layer IP ARP Ethernet Network Interface Transport Layer TCP UDP SNMP FTP DNS HTTP ICMP IGMP
ping application
Telnet DHCP
19
20
argon.tcpip-lab.edu ("Argon") neon.tcpip-lab.edu ("Neon") Web request Web page Web client Web server
21
HTTP client
Argon
HTTP server
Neon HTTP request HTTP response
22
GET /example.html HTTP/1.1 Accept: image/gif, */* Accept-Language: en-us Accept-Encoding: gzip, deflate User-Agent: Mozilla/4.0 Host: 192.168.123.144 Connection: Keep-Alive
23
HTTP/1.1 200 OK Date: Sat, 25 May 2002 21:10:32 GMT Server: Apache/1.3.19 (Unix) Last-Modified: Sat, 25 May 2002 20:51:33 GMT ETag: "56497-51-3ceff955" Accept-Ranges: bytes Content-Length: 81 Keep-Alive: timeout=15, max=100 Connection: Keep-Alive Content-Type: text/html <HTML> <BODY> <H1>Internet Lab</H1> Click <a href="http://www.tcpip-lab.net/index.html">here</a> for the Internet Lab webpage. </BODY> </HTML>
24
HTTP client
TCP client Argon
HTTP server
TCP server Neon HTTP request / HTTP response TCP connection
25
26
– gethostbyname(host)
HTTP client DNS Server argon.tcpip-lab.edu 128.143.136.15 neon.tcpip-lab.edu 128.143.71.21
27
28
a connection to port 80 of the machine with address 128.141.71.21
HTTP client
TCP client argon.tcpip-lab.edu Establish a TCP connection to port 80 of 128.143.71.21
connect(s, (struct sockaddr*)&sin, sizeof(sin))
29
TCP client argon.tcpip-lab.edu IP Send an IP datagram to 128.143.71.21
30
31
32
33
34
argon.tcpip-lab.edu IP module Ethernet Send an Ethernet frame to 00:e0:f9:23:a8:20
35
36
1. recovers the IP datagram 2. determines that the IP datagram should be forwarded to the interface with name 128.143.71.1
37
ARP message: What is the MAC address of 128.143.71.21? ARP message: IP address 128.143.71.21 belongs to MAC address 00:20:af:03:98:28
neon.tcpip-lab.edu 128.143.71.21 00:20:af:03:98:28 router71.tcpip-lab.edu 128.143.71.1
38
router71.tcpip-lab.edu IP module Ethernet Send a frame to 00:20:af:03:98:28
39
40
HTTP server neon.tcpip-lab.edu TCP server IP module Ethernet
46
layer-specific control information.
HTTP TCP IP Ethernet
User data User data HTTP Header TCP Header TCP Header IP Header TCP Header IP Header Ethernet Header Ethernet Trailer
IP datagram TCP segment Ethernet frame
User data HTTP Header User data HTTP Header User data HTTP Header
– A protocol for packet network intercommunication by Cerf and Karn, 1974 – An excellent case study – Turing award winners
– ARPANET, packet satellite networks, ground-based packet radio networks, and
– Hosts, packet switches, processes – A protocol for communication