Professional Documents
Culture Documents
Chapter 1: Foundations
Networking is a very broad topic
How does a wireless card talk to a base station?
How does a message get from ColoState to Amazon?
How does an application (web browser, IM, P2P) work?
What about reliability, resource constraints, security?
A Sample Application
Use web browser to lookup www.cnn.com
My Laptop Running web
browser
Web Server
www.cnn.com
Internet
Internet
My laptop and the web server are both End Systems = Hosts
End systems can also include PDAs, sensors, cell phones, and
generally any device using the network to communicate
End systems are located at the network edge and connected to the
network using communication links
Web Server
www.cnn.com
Internet
Internet
Networks
Point-to-Point
Multiple Access
Wireless
Switched Networks
A network can be defined recursively as...
Two or more nodes
connected by a link,
or
Two or more
networks connected
by two or more
nodes
the wire
the router
(Aunt Mable)
demux
a a a a a a a a a a a
Packet Switching
Interleave packets from different sources
Efficient: resources used on demand
Statistical multiplexing
Multiple applications, bursty traffic
What is a Packet?
Self-contained set of bits
Includes a header and (in most cases)
user data (payload)
Header: needed by the network contains control information needed to
deliver the packet to the destination
User data: can be anything network
does not care
Example: IP Packet
4-bit
8-bit Type of
4-bit
Header
Version Length Service (TOS)
16-bit Identification
3-bit
13-bit Fragment Offset
Flags
8-bit Time to
Live (TTL)
8-bit Protocol
Payload
20-byte
header
Packet Switching
(Internet is just ONE network to use it)
differences:
packets as low-level component
multiple kinds of traffic
smart edges, dumb network
but:
QoS is much harder
end-points are more expensive
host
HTTP message
HTTP
TCP segment
TCP
router
IP
Ethernet
interface
HTTP
IP packet
Ethernet
interface
IP
TCP
router
IP packet
SONET
interface
SONET
interface
IP
IP packet
Ethernet
interface
IP
Ethernet
interface
Characteristics of Packet
Switching
Store and forward
Packets are self contained units
Can use alternate paths - reordering
Contention
Congestion
Delay
Host Configuration
Host configuration needs:
a physical network cable (Ethernet, etc.)
an IP address (often automatic with DHCP)
a network mask
a gateway
a DNS server (and other servers)
An ISP
ISP needs:
Campus LANs,
Business
Computer 2
Internet
Computer 1
Whats the IP address for www.colostate.edu?
It is 128.82.103.106
Broadcast: I do, it is
08-00-2c-19-dc-45
Ethernet
R
R
H
H
H: Hosts
R: Routers