Computer Networks
Computer Networks
Computer Networks
• Recommended:
• ``Computer Networks: A Systems Approach,'' by Larry L. Peterson
and Bruce S. Davie.
• ``Computer Networks,'' by Andrew S. Tanenbaum.
• ``Computer Networks and Internets,'' by Douglas E. Comer.
Overview
• Computer Networks
• Data Communication
• Computer Networks
• Transmission Media
• Digital & Analog Transmission
• Routing & Network Topologies
• Network Types
• LAN, WAN, MAN
• Introduction to Network Components
• ISO/OSI Model
• Introduction to Wireless Network
• Internet & Applications like E-Mail, FTP, Telnet, WWW, etc
Your Best Strategy
• Come to every lecture.
• Make suggestions!
programming interface to
apps
• hooks that allow sending
and receiving app programs
to “connect” to Internet
institutional
network
The Network Diagram
Router
Switch
Wireless Network
The Computer Network
The successful
transmission of data • Characteristics of the
depends on two transmission medium
factors:
Transmission Terminology
Data transmission occurs between transmitter and receiver
over some transmission medium.
Unguided media
Guided media
(wireless)
twisted pair,
air, vacuum,
coaxial cable,
seawater
optical fiber
Copper Cable
• Speed: 10-100Mbps
• Cost: Inexpensive
• Media and connector size: Medium
• Maximum cable length: 500m
Shielded Twisted Pair(STP)
• Speed: 10-100Mbps
• Cost: Moderate
• Media and connector size: Medium to large
• Maximum cable length: 100m
Unshielded Twisted Pair
UTP is a four-pair wire Speed: 10-100-1000 Mbps*
medium used in a variety of Cost: Least Expensive
networks. Media and connector size: Small
Each of the eight copper Maximum cable length: 100m * (Depending
wires in the UTP cable is on the quality/category of cable)
covered by insulating material
Fiber Optic Cable
Glass fiber carrying light pulses, each
pulse a bit.
Based on the Total Internal Reflection
of Light.
High-speed point-to-point transmission
10-100 Gbps
Low error rate:
repeaters spaced far apart
immune to electromagnetic noise
Physical media: Radio
• Signal carried in Radio link types:
electromagnetic spectrum Terrestrial microwave
e.g. up to 45 Mbps channels
• No physical “wire” LAN (e.g., WiFi)
• Bidirectional 11Mbps, 54 Mbps
Wide-area (e.g., cellular)
• Propagation environment 3G cellular: ~ few Mbps
effects: 4G LTE: 10s to 100s Mbps
• Reflection Satellite
Kbps to 45Mbps channel (or
• Obstruction by objects multiple smaller channels)
• Interference 270 msec end-end delay
geosynchronous versus low
altitude
Transmission Terminology
• Simplex
• Signals transmitted in one direction
• eg. Television
• Half duplex
• Both stations transmit, but only one at a time
• eg. police radio
• Full duplex
• Simultaneous transmissions
• eg. telephone
Frequency, Spectrum and
Bandwidth
Time Domain Concepts
Analog signal
• signal intensity varies smoothly with no breaks
Digital signal
• signal intensity maintains a constant level and then
abruptly changes to another level
Periodic signal
• signal pattern repeats over time
Aperiodic signal
• pattern not repeated over time
Analog and Digital Signals
Periodic
Signals
Sine Wave(periodic continuous signal)
c is sum of f & 3f
Frequency
Domain
Representations
Spectrum & Bandwidth
Spectrum
• range of frequencies contained in signal
Absolute bandwidth
• width of spectrum
Effective bandwidth
• often just bandwidth
• narrow band of frequencies containing most energy
DC Component
• component of zero frequency
Data Rate and Bandwidth
any transmission this limits the data rate
system has a that can be carried on
limited band of the transmission
frequencies medium
Strength can be
increased using
amplifiers or
repeaters.
ATTENUATION
signal strength falls off with distance over any transmission medium
varies with frequency
Introduction
Our goal:
• Get “feel” and terminology.
• More depth, detl later in course.
• Apch:
• Use Internet as example.
Hi
TCP connection
request
Hi
TCP connection
response
Got the
time? Get http://www.awl.com/kurose-ross
2:00
<file>
time
home
• Access Nw, Physical network
regional ISP
media: wired, wireless
communication links
• Nw Core:
Interconnected routers
Network of Networks
institutional
network
Access Nw and Physical media
DSL splitter
modem DSLAM
ISP
voice, data transmitted
at different frequencies over DSL access
dedicated line to central office multiplexer
cable splitter
modem
C
O
V V V V V V N
I I I I I I D D T
D D D D D D A A R
E E E E E E T T O
O O O O O O A A L
1 2 3 4 5 6 7 8 9
Channels
frequency
time
TDM
frequency
time
Access Net: Home Nw
wireless
devices
to/from headend or
central office
often combined
in single box
institutional link to
ISP (Internet)
institutional router
1. NIC Card
http://en.wikipedia.org/wiki/Router_(computing)
2. Repeater
http://en.wikipedia.org/wiki/Network_switch
3. Hub
4. Switch
5. Bridge
6. Router
7. Gateway http://en.wikipedia.org/wiki/Wireless_router
8. Firewall
1. Network Interface Card
A gateway is a piece of
networking hardware used in
telecommunications for
telecommunications networks that
allows data to flow from one discrete
network to another.
Gateways are distinct from routers or
switches in that they communicate
using more than one protocol to
connect a bunch of networks
8. Firewall
to Internet
to Internet
Host: sends packets of data
Host sending function:
• Takes appl msg
• Breaks into smaller chunks, two packets,
L bits each
known as packets, of length L
bits
• Transmits packet into access
Nw at transmission rate R 2 1
Introduction 1-93
The network core
• mesh of interconnected
routers
• packet-switching: hosts
break application-layer
messages into packets
• forward packets from one
router to the next, across
links on path from source
to destination
• each packet transmitted at
full link capacity
Introduction 1-94
Packet Switching: queueing delay, loss
C
A R = 100 Mb/s
D
R = 1.5 Mb/s
B
queue of packets E
waiting for output link
Introduction 1-95
Two key network-core functions
routing: determines source-destination forwarding: move packets
route taken by packets
routing algorithms from router’s input to
appropriate router output
routing algorithm
Introduction 1-97
Internet structure: network of networks
End systems connect to Internet via access ISPs (Internet Service Providers)
Residential, company and university ISPs
Access ISPs in turn must be interconnected.
So that any two hosts can send packets to each other
Resulting network of networks is very complex
Evolution was driven by economics and national policies
Let’s take a stepwise approach to describe current Internet structure
Internet structure: network of networks
Question: given millions of access ISPs, how to connect them
together?
access
… access
net
access
net …
net
access
access net
net
access
access net
net
…
…
access access
net net
access
net
access
net
access
net
access
… net
access
net access
access
net
…
net
Internet structure: network of networks
Option: connect each access ISP to every other access ISP?
access
… access
net
access
net …
net
access
net
access
net … …
access
access net
net
…
…
…
access access
…
net net
access
net
access
net
access
net
access
…
… net
access
net access
access
net
…
net
Internet structure: network of networks
Option: connect each access ISP to a global transit ISP? Customer and provider ISPs
have economic agreement.
access
… access
net
access
net …
net
access
access net
net
access
access net
net
…
…
global
access
ISP access
net net
access
net
access
net
access
net
access
… net
access
net access
access
net
…
net
Internet structure: network of networks
But if one global ISP is viable business, there will be competitors ….
access
… access
net
access
net …
net
access
access net
net
access
access net
net
ISP A
…
…
access access
net ISP B net
access
ISP C
net
access
net
access
net
access
… net
access
net access
access
net
…
net
Internet structure: network of networks
But if one global ISP is viable business, there will be competitors …. which must be
interconnected
Internet exchange point
access
… access
net
access
net …
net
access
access net
net
access
IXP access
net
net
ISP A
…
…
access
ISP C
net
access
net
access
peering link
net
access
… net
access
net access
access
net
…
net
Internet structure: network of networks
… and regional networks may arise to connect access nets to ISPS
access
… access
net
access
net …
net
access
access net
net
access
IXP access
net
net
ISP A
…
…
access
ISP C
net
access
net
access
net regional net
access
… net
access
net access
access
net
…
net
Internet structure: network of networks
… and content provider networks (e.g., Google, Microsoft, Akamai ) may run their
own network, to bring services, content close to end users
access
… access
net
access
net …
net
access
access net
net
access
IXP access
net
net
ISP A
Content provider network
…
…
access
ISP B
net
access
net
access
net regional net
access
… net
access
net access
access
net
…
net
Internet structure: network of networks
to/from backbone
peering
… … …
…
to/from customers
Introduction 1-107
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
end systems, access networks, links
1.3 network core
packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-108
“Real” Internet delays and routes
• what do “real” Internet delay & loss look like?
• traceroute program: provides delay
measurement from source to router along end-end
Internet path towards destination. For all i:
• sends three packets that will reach router i on path
towards destination
• router i will return packets to sender
• sender times interval between transmission and reply.
3 probes 3 probes
3 probes
Introduction 1-109
“Real” Internet delays, routes
traceroute: gaia.cs.umass.edu to www.eurecom.fr
buffer
A (waiting area) packet being transmitted
B
packet arriving to
full buffer is lost
* Check out the Java applet for an interactive animation on queuing and loss
Introduction 1-111
Throughput
• throughput: rate (bits/time unit) at which bits
transferred between sender/receiver
• instantaneous: rate at given point in time
• average: rate over longer period of time
server,
server withbits
sends linkpipe
capacity
that can carry linkpipe
capacity
that can carry
file of into
(fluid) F bits
pipe fluid at rate
Rs bits/sec fluid at rate
R bits/sec
to send to client c
Rs bits/sec) Rc bits/sec)
Introduction 1-112
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
end systems, access networks, links
1.3 network core
packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-113
Protocol “layers”
Networks are complex,
with many “pieces”:
• hosts Question:
• routers is there any hope of organizing
• links of various structure of network?
media
• applications …. or at least our discussion of
• protocols networks?
• hardware,
software
Introduction 1-114
Organization of air travel
• a series of steps
Introduction 1-115
Layering of airline functionality
airplane routing airplane routing airplane routing airplane routing airplane routing
Introduction 1-116
Why layering?
dealing with complex systems:
• explicit structure allows identification, relationship
of complex system’s pieces
• layered reference model for discussion
• modularization eases maintenance, updating of
system
• change of implementation of layer’s service transparent
to rest of system
• e.g., change in gate procedure doesn’t affect rest of
system
• layering considered harmful?
Introduction 1-117
Internet protocol stack
• application: supporting network
applications
• FTP, SMTP, HTTP application
• transport: process-process data transport
transfer
• TCP, UDP network
• network: routing of datagrams from link
source to destination
• IP, routing protocols physical
• link: data transfer between
neighboring network elements
• Ethernet, 802.11 (WiFi), PPP
• physical: bits “on the wire”
Introduction 1-118
message M
source
application
Encapsulation
segment Ht M transport
datagram Hn Ht M network
frame Hl Hn Ht M link
physical
link
physical
switch
destination Hn Ht M network
M application
Hl Hn Ht M link Hn H t M
Ht M transport physical
Hn Ht M network
Hl Hn Ht M link router
physical
Introduction 1-119
Chapter 1: roadmap
1.1 what is the Internet?
1.2 network edge
end systems, access networks, links
1.3 network core
packet switching, circuit switching, network structure
1.4 delay, loss, throughput in networks
1.5 protocol layers, service models
1.6 networks under attack: security
1.7 history
Introduction 1-120
Network security
• field of network security:
• how bad guys can attack computer networks
• how we can defend networks against attacks
• how to design architectures that are immune to attacks
• Internet not originally designed with (much)
security in mind
• original vision: “a group of mutually trusting users
attached to a transparent network”
• Internet protocol designers playing “catch-up”
• security considerations in all layers!
Introduction 1-121
Bad guys: put malware into hosts via Internet
• malware can get in host from:
• virus: self-replicating infection by receiving/executing
object (e.g., e-mail attachment)
• worm: self-replicating infection by passively receiving
object that gets itself executed
• spyware malware can record keystrokes, web sites
visited, upload info to collection site
• infected host can be enrolled in botnet, used for
spam. DDoS attacks
Introduction 1-122
Bad guys: attack server, network infrastructure
Denial of Service (DoS): attackers make resources (server,
bandwidth) unavailable to legitimate traffic by
overwhelming resource with bogus traffic
1. select target
Introduction 1-123
Bad guys can sniff packets
packet “sniffing”:
• broadcast media (shared ethernet, wireless)
• promiscuous network interface reads/records all packets (e.g.,
including passwords!) passing by
A C
Introduction 1-124
Bad guys can use fake addresses
Introduction 1-126
Internet history
1961-1972: Early packet-switching principles
• 1961: Kleinrock - • 1972:
queueing theory shows • ARPAnet public demo
effectiveness of packet- • NCP (Network Control
switching Protocol) first host-host
• 1964: Baran - packet- protocol
switching in military nets • first e-mail program
• 1967: ARPAnet conceived • ARPAnet has 15 nodes
by Advanced Research
Projects Agency
• 1969: first ARPAnet node
operational
Introduction 1-127
Internet history
1972-1980: Internetworking, new and proprietary nets
Introduction 1-129
Internet history
1990, 2000’s: commercialization, the Web, new apps
• early 1990’s: ARPAnet late 1990’s – 2000’s:
decommissioned • more killer apps: instant
• 1991: NSF lifts restrictions on messaging, P2P file sharing
commercial use of NSFnet • network security to
(decommissioned, 1995)
forefront
• early 1990s: Web • est. 50 million host, 100
• hypertext [Bush 1945, Nelson million+ users
1960’s]
• backbone links running at
• HTML, HTTP: Berners-Lee
Gbps
• 1994: Mosaic, later Netscape
• late 1990’s: commercialization
of the Web
Introduction 1-130
Internet history
2005-present
• ~750 million hosts
• Smartphones and tablets
• Aggressive deployment of broadband access
• Increasing ubiquity of high-speed wireless access
• Emergence of online social networks:
• Facebook: soon one billion users
• Service providers (Google, Microsoft) create their own networks
• Bypass Internet, providing “instantaneous” access to search,
email, etc.
• E-commerce, universities, enterprises running their services in
“cloud” (eg, Amazon EC2)
Introduction 1-131
Introduction: summary
covered a “ton” of material! you now have:
• Internet overview • context, overview, “feel”
• what’s a protocol? of networking
• network edge, core, access • more depth, detail to
network follow!
• packet-switching versus
circuit-switching
• Internet structure
• performance: loss, delay,
throughput
• layering, service models
• security
• history
Introduction 1-132