Professional Documents
Culture Documents
1
Chapter – 1
Networking Fundamentals
2
Networking fundamentals
Outline
Protocol layers, service models
what’s the Internet?
TCP Vs UDP Communication
network edge; hosts, access net
network core: packet/circuit switching
Mobile and ubiquitous computing
Trends in Computing Technology
Computing: Trend, evolution
3
Introduction
Internet and WWW have emerged as global
ubiquitous media for communication and are
changing the way we conduct science, engineering,
and commerce
They are also changing the way we learn, live, enjoy,
communicate, interact, engage, etc.
It appears like the modern life activities are getting
completely centered around the Internet
4
Internet Applications Serving Local and Remote
Users
PC client
Internet
Server
Local Area Network
PDA
5
Protocol “Layers”
Networks are complex!
Question:
Is there any way of organizing
many “pieces”:
structure of network?
hosts
Network architectures consist
routers
of layers.
links of various
A protocol is defined
media
between two entities of the
applications same layer.
protocols The ISO Reference Model has
hardware, software seven layers.
The Internet (TCP/IP) has
five layers.
6
ISO/OSI reference model
presentation: allow applications to
interpret meaning of data, e.g., application
encryption, compression, machine-
presentation
specific conventions
session
session: synchronization,
checkpointing, recovery of data transport
exchange network
Internet stack “missing” these layers! link
these services, if needed, must be physical
implemented in application
7
Internet Protocol Stack
Application: supporting network
applications and end-user services Application
FTP, SMTP, HTTP, DNS
Transport: end to end data transfer Transport
TCP, UDP
8
Layers and data units
Hosts, routers, link-layer switches
9
What’s the Internet?
PC millions of connected Mobile network
server computing devices: Global ISP
wireless hosts = end systems
laptop
running network
cellular
handheld apps Home network
Regional ISP
communication links
access fiber, copper,
points
wired
radio, satellite Institutional network
links
transmission rate
= bandwidth
routers: forward
router
packets (chunks of
data)
10
What’s the Internet?...
11
What’s the Internet: a service view
communication infrastructure
enables distributed
applications:
Web, VoIP, email, games,
e-commerce, file sharing
communication services
provided to apps:
reliable data delivery from
source to destination
“best effort” (unreliable)
data delivery
12
A closer look at network structure:
network edge:
applications and hosts
access networks,
physical media:
wired, wireless
communication links
network core:
interconnected
routers
network of networks
13
The network edge
end systems (hosts):
run application programs
e.g. Web, email
at “edge of network” peer-peer
client/server model
client host requests, receives
service from always-on server client/server
e.g. Web browser-client;
Web server
peer-peer model:
minimal (or no) use of
dedicated servers
e.g. Skype, BitTorrent
14
Client-Server Architecture Types
(Tier arch compliments layer architecture)
• Two-tier model (classic)
client server
Client
Key:
Process: Computer:
• Example:
• Querying a web server, which could then query a mysql or oracle database
before returning the content of a page
• Web server is a client of the database server
– Browser search engine -> crawlers other web servers.
16
A service provided by multiple servers
Service
Server
Client
Server
Client
Server
18
Proxy servers (replication transparency) and
caches: Web proxy server
Client Web
server
Proxy
server
Client Web
server
19
Web caches (proxy server)
Goal: satisfy client request without involving origin server
21
Caching scenario
Assumptions origin
• average object size = 1Mb servers
• average request rate from public
institution’s browsers to origin Internet
servers = 15/sec
• delay from the router on the
Internet side of the access link to 1.5 Mbps
any origin server and back is = 2 access link
sec (Internet delay) institutional
network
Consequences 100 Mbps LAN
22
Caching scenario…
origin
servers
possible solution (expensive) public
Internet
• increase bandwidth of access link
to, say, 10 Mbps
Consequence 10 Mbps
• Total delay = Internet delay + access access link
delay + LAN delay institutional
network
= 2 sec + 2 sec + msecs 100 Mbps LAN
23
Caching scenario…
origin
possible solution: install cache servers
consequence
• 50% requests satisfied almost 1.5 Mbps
immediately access link
Client Web
Applet code server
Web
Client Applet server
• Example technology:
– Java Agent Development Framework (JADE)
27
Thin clients and compute servers
Compute server
Network computer or PC
29
Peer Processes: A distributed application based
on peer processes
Peer 2
Peer 1
Application
Application
Sharable Peer 3
objects
Application
Peer 4
Application
Peers 5 .... N
31
Network edge: connectionless service
32
Access networks
Q: How to connect end
systems to edge router?
residential access nets
institutional access
networks (school,
company)
mobile access networks
Issues
bandwidth (bits per
second) of access
network?
shared or dedicated?
33
Residential access: point to point access
Dialup via modem
up to 56Kbps direct access to
router
Can’t surf data and voice at
same time: can’t be “always
on”
DSL: digital subscriber line modem (High speed network)
deployment: telephone company (typically)
up to 1 Mbps upstream
up to 20 Mbps downstream
dedicated physical line to ISP
simultaneously pass voice and data over a single telephone
line.
34
Company access: local area networks
company/univ local area
network (LAN) connects end
system to edge router
Ethernet:
10 Mbs, 100Mbps, 1Gbps,
10Gbps Ethernet
modern configuration:
end systems connect into
Ethernet switch
35
Wireless access networks
shared wireless access network
connects end system to router
via base station “access point” router
37
Physical Media
Twisted Pair (TP)
Bit: propagates between two insulated copper
transmitter/rcvr pairs wires
physical link: what lies Category 3: traditional
between transmitter & phone wires, 10 Mbps
receiver Ethernet
Category 5 TP: 100Mbps
guided media:
Ethernet
signals propagate in solid
media: copper, fiber, coax
unguided media:
signals propagate freely, e.g.,
radio, micro wave…
38
Physical Media: coax, fiber
Coaxial cable: Fiber optic cable:
glass fiber carrying light
two concentric copper
pulses, each pulse a bit
conductors
high-speed operation:
bidirectional
high-speed point-to-point
baseband: transmission (e.g., 5 Gbps)
single channel on cable low error rate: repeaters
legacy Ethernet spaced far apart ; resistant
broadband: to electromagnetic noise
multiple channel on cable
HFC
39
Physical media: radio
signal carried in Radio link types:
electromagnetic spectrum terrestrial microwave
no physical “wire” e.g. up to 45 Mbps channels
40
Network Core: Circuit Switching
A ''dedicated'' circuit is
set up for each
connection.
The communicating
parties use this fixed
circuit during the
conversation.
Once the
communication finish,
the circuit can be
released for other uses.
42
Network Core: Circuit Switching…
network resources (e.g., bandwidth)
divided into “pieces”
pieces allocated to calls
resource piece idle if not used by owning call (no
sharing)
43
Circuit Switching: FDM and TDM
Example:
FDM
4 users
frequency
time
TDM
frequency
time
44
Network Core: Circuit Switching…
Advantage
Fixed bandwidth, Other users can't use the
guaranteed capacity (no circuit even if it is free of traffic
congestion) • statistics show that during a
Low variants in end-to- typical phone conversation:-
end delay (delay is - 64-73% of the time one
almost constant) speaker talking
Disadvantages: - 3-7% of the time both
spearkers talking,
Connection set-up and
termination introduces
- 20-33% of the time both
extra overhead (thus
speakers silent.
initial delay)
Example: Ordinary voice phone
User pay for circuit, even service
when not sending data 45
Network Core: Packet Switching
each end-end data stream resource contention:
divided into packets aggregate resource
user A, B packets share demand can exceed
network resources amount available
each packet uses full link congestion: packets
bandwidth queue, wait for link use
resources used as needed store and forward:
packets move one hop
at a time
Bandwidth division into “pieces” Node receives complete
Dedicated allocation packet before forwarding
Resource reservation
46
Packet Switching: Statistical Multiplexing
100 Mb/s
A Ethernet statistical multiplexing C
1.5 Mb/s
B
queue of packets
waiting for output
link
D E
48
Packet switching
Advantage
Packet Switching is more efficient and robust for data
that can withstand delays in transmission.
example:- e-mail messages and Web pages.
great for bursty data
resource sharing
simpler, no call setup
Disadvantage
excessive congestion: packet delay and loss
protocols needed for reliable data transfer,
congestion control
49
Mobile and Ubiquitous Computing
Mobile Computing
• People traveling with their computers while
staying connected to other computers or the
Internet.
Ubiquitous Computing
• Weiser’s idea of one person, many
computers as opposed to the mainframe
technology.
•(also known as “pervasive computing”)
50
The Trends in Computing Technology
● Mainframe computing (60’s-70’s)
– massive computers to execute big
data processing applications
– very few computers in the world
Size
Number
One Computer for Many One Computer for Many Computers for
People One Person One Person
(Mainframe Computing) (PC Computing) (Ubiquitous/Pervasive
Computing)
Computing: Evolution
Mobile
Centralized
Computing Distributed
Computing
Computing Ubiquitious
Computing
Research Problems
53
Computing: Evolution
New Forms of Computing
Wireless Computing
Mobile Computing
• Distributed
Ubiquitous Computing
Computing
Pervasive Computing
(Client/Server)
Invisible Computing
54
Why Mobile Computing ?
55
What is Ubiquitous Computing
(ubicomp)?
Ubicomp is a post-desktop model of human computer
interaction in which information processing has been
thoroughly integrated into everyday objects and activities.
56
Mobile Computing vs. Ubiquitous Computing
● Mobile computing:
– Abe owns Mobile phone with web access, voice and short
messaging.
- Remains connected while he drives from Piasa to Bole.
● Ubiquitous computing:
– Abe is leaving home to go and meet his friends.
- While passing the fridge, the fridge sends a message to his
shoe that milk is almost finished.