Professional Documents
Culture Documents
Lecture 2
kashaw@cs.stanford.edu
Ethernet
Network
mar@cs.washington.edu
Token-
ring
MSN Messenger
Local Area Network (LAN)
High speed, data LAN 1
network over small
region
Few thousand meters Ethernet
Network technologies:
Ethernet
FDDI
Token-
Token ring ring
Filters/forwards/floods based
on MAC Bridge
Link layer - frames
Switch Ethernet Ethernet
T3
CIS COSY ST EM S
packet-switched network
CISCO SYSTEMS
STS-N
packet encapsulated in
Token-
ring
domain-specific packet
Internet Society
Governing body for Internet since 1992
http://www.isoc.org
Domain names and addresses assigned
Upper level: Internet Assigned Numbers Authority
Regional:
Latin America / Caribbean
Asia Pacific
America
Europe
How Does Everyone Work
Together?
Networks
MCI Worldcom, Sprint, Earthlink, …
Exchange points provide connections between networks
Network Access Points – open access policies
Network Service Provider
Build national or global networks
Lease space at NAPs
Sell bandwidth to regional NSPs
Regional NSP sell bandwidth to ISP
Internet Service Provider sells bandwidth to end users
How Does Everyone Work
Together?
OSI Reference Model
for Network Design
Application (Layer 7)
Presentation
Session
Transport
Network
Data Link
Physical (Layer 1)
OSI vs. TCP/IP Stack
Layering: FTP Example
Application
FTP Application
Presentation ASCII/Binary
Session
TCP Transport
Transport
Network IP Network
Link
Ethernet Link
Physical
Protocol Stack
App
Link
IP Datagram
Header
10101011101010101010010101010100101010100
11010010101010010101111111010000011101111
10100001011101010100110101011110100000101
00100000000010101000011010000111111010101
......... 1011011001010100011001001010110
Data
IP Addresses
4 8-bit numbers (Hierarchical)
18.26.0.1
To: cenic.net
dcl-rtr 171.64.1.132 171.64.74.0/24
171.64.1.132/30
171.64.1.133
0 232-1
Classless Interdomain Routing
(CIDR)
128.9.0.0
142.12/19
65/8
128.9/16
0 232 -1
216
128.9.16.14
Classless Interdomain Routing
(CIDR)
128.9.19/24
128.9.25/24
128.9.16/20 128.9.176/20
128.9/16
0 232 -1
128.9.16.14
Classless Interdomain Routing
(CIDR)
128.9.19/24
128.9.25/24
128.9.16/20 128.9.176/20
128.9/16
0 232 -1
128.9.16.14
Five Minute Break
Network Programs
host
ping
traceroute
nslookup
Summary of IP
Connectionless/Datagram
Unreliable/Best Effort
Transmission Control Protocol
Protocol Stack
App
Link
Characteristics
Connection-Oriented
Reliable
Byte-Stream
Flow Control
(aka Congestion Control)
Three Phases
Establish Connection
Data Transfer
Terminate Connection
Establishing the Connection
(Active) (Passive)
Client Server
Syn
Syn + Ack
Ack
Connection Setup
3-way handshake
Data Transfer
Byte 80
Byte 3
Byte 2
Byte 1
Byte 0
Byte 80
Byte 3
Byte 2
Byte 1
Host A Byte 0
Host B
Data Transfer
Byte 80
TCP Data
Byte 3
Byte 2
Byte 1
Byte 0
Byte 80
TCP Data
Byte 3
Byte 2
Byte 1
Host A Byte 0
Host B
Maintaining the “Connection”
IP Data
TCP Data TCP Hdr IP Hdr
0 15 31
Src port Dst port
Sequence #
Src /dst port numbers
Ack Sequence #
and IP addresses
Flags
Window Size uniquely identify socket
HLEN RSVD
SYN
URG
PSH
RST
ACK
FIN
4 6
(TCP Options)
TCP Data
Terminating the Connection
(Active) (Passive)
Client Server
Fin
(Data +) Ack
Fin
Ack
Connection Close/Teardown
2 x 2-way handshake
Connection-Oriented
Reliable
Byte-Stream
Flow Control
(aka Congestion Control)
Reliability & Flow Control
Sequence numbers & Acknowledgements
(ACKs)
Receiver detects Corrupt, Lost, Duplicated, Out-
of-order
Tell sender which packets it has received correctly
Leland.Stanford.edu Arachne.Berkeley.edu
Application Layer
Ron Leslie
Transport Layer
D H D H D H
D H Link Layer
Connection-Oriented
Reliable
Byte-Stream
Flow Control
(aka Congestion Control)
UDP
Protocol Stack
App
Link
User Datagram Protocol (UDP)
Like TCP, in the Transport Layer
Characteristics
Connectionless, Datagram, Unreliable