Professional Documents
Culture Documents
Communication Networks
EE-357
By Dr Mir Yasir Umair
Associate Professor, MCS, NUST
Introduction
Lecture 01
Outline
• What is internet?
• How it emerged?
• Ways of Accessing Internet
• Physical Media
• Delays in Packet-Switched
Network
What is Internet?
• The Internet is a global network of billions of computers and
other electronic devices.
• With the Internet, it's possible to access almost any information,
communicate with anyone else in the world, and do much more
Introduction
“Fun” internet appliances
Web-enabled toaster +
weather forecaster
IP picture frame
http://www.ceiva.com/
Tweet-a-watt:
monitor energy use
Slingbox: watch,
control cable TV remotely
Internet
refrigerator Internet phones
Introduction
What’s the Internet: “nuts and bolts” view
mobile network
• Internet: “network of networks”
o Interconnected ISPs global ISP
• protocols control sending, receiving of
msgs home
o e.g., TCP, IP, HTTP, Skype, 802.11 network
regional ISP
• Internet standards
o RFC: Request for comments
o IETF: Internet Engineering Task Force
institutional
network
Introduction
What’s the Internet: a service view
mobile network
• Infrastructure that provides services
to applications: global ISP
o Web, VoIP, email, games, e-commerce, social
nets, (DISTRIBUTED APPS)…
home
• provides programming interface to network
apps
regional ISP
institutional
network
Introduction
What’s a protocol?
human protocols: network protocols:
• “what’s the time?” • machines rather than humans
• “I have a question” • all communication activity in
• introductions Internet governed by
protocols
… specific msgs sent
… specific actions taken when protocols define format, order of msgs
msgs received, or other sent and received among network
events
entities, and actions taken on msg
transmission, receipt
Introduction
What’s a protocol?
a human protocol and a computer network protocol:
Hi TCP connection
request
Hi TCP connection
response
Got the
time? Get http://www.awl.com/kurose-ross
2:00
<file>
time
mobile network
• Internet: thousand of inter-
connected networks
o Core Network: regional
• mesh of packet switches and links ISP
that interconnects end systems
national ISP
o Access Networks
• Physically connects an end system
Local
to the first/ edge router on a path ISP
from end system to any other
distant end system home
network
institutional
network
Internet
• End systems access the Internet through ISPs, which is itself a
network of packet switches and communication links.
Introduction
Real world communication
• Communication between managers of two companies
Logical communication
Secretary:
Secretary: reads and reports
types a letter the message
Postal truck
Post office:
Processes and routes the letter 19
Real world communication
Airline Functionality
OSI Model
• Background problem
o People wanted to share data but there was User
no standard way for computers, networks
and OS to talk to each other Application
• 1970 - International Standards Organizations Presentation
(ISO) proposed that computer networks be Session
organized around 7 layers i.e. OSI (Open Systems
Interconnection) model Transport
o OSI Model - Set of rules how data is Network
communicated over a network.
Data Link
o Solved interoperability issues
• Mnemonics to remember order of model layers Physical
“All People Seem To Need Data Processing” — a Medium
top-to-bottom reminder.
Why layering?
Layered reference model
• A layered architecture allows us to discuss a well-defined, specific part of a large and
complex system.,
• Eases maintenance, updating of system
o change of implementation of layer’s service should be transparent to rest of system*
But drawbacks ….
• One layer may duplicate lower-layer functionality. E.g., many protocol stacks provide
error recovery on both a per-link basis and an end-to-end basis.
• Functionality at one layer may need information (E.g., a timestamp value) that is
present only in another layer
OSI Model
• Application Layer
o Consists of network aware applications i.e. web browsers, emails, file
sharing services, Facebook, twitter etc.
o All require network to work properly
o domain name system (DNS).
• Presentation layer
o Allow applications to interpret meaning of data exchanged
o Services: Encryption/ decryption, compression, translation
• Session Layer
o Establishes, manages and terminates connections between
applications
OSI Model
• Transport Layer
o Provides end to end delivery of data. Also checks whether destination has
received data or not.
o TCP & UDP
• Network layer
o Determine shortest path to the destination – doesn't refer to the path with
shortest physical distance but the one taking shortest time.
• Data Link Layer
o Decides who to talk to – finds physical device on the network
• Physical Layer
o Describes physical part of network - Cables, connectors, bits, transfer
rates
OSI Vs TCP/IP Model
• OSI is not real just a guide - inventors of OSI
model did not have the Internet in mind
User
when creating it Application
• Internet is based on the Internet model also
Transport
called TCP/IP model
• TCP/ IP (Transmission Control Protocol / Network
Internet Protocol) refers to the two most
Data Link
important protocols in it.
• Each layer of the TCP/IP model has a specific Physical
job to do in order for communication to take
Medium
place over the network.
OSI Vs TCP/IP Model
OSI Model TCP/ IP Model
Application Application
Presentation
Session
Transport Transport
Network Internet
Data Link Data Link
Network Access
Physical Physical
Encapsulation & Decapsulation
source destination
Hl H n H t M link link Hl H n H t M
10101010000 physical physical 10101010000
Layer Addressing
Layers have addressing schemes to identify services
• Data Link: Physical/ MAC (Media Access Control) address
o 48 bit hexadecimal number e.g. 23-A7-89-1C-15-D4
• Internet Layer: IP (Internet Protocol) address
o 32 bit address e.g. 192.168.563.221
• Transport Layer: Port
o Used to identify services e.g. HTTP – 80 , HTTPS – 443
Layer Addressing
PDU
• Protocol Data Units (PDU) is a generic term to describe a layer's
information
o Each TCP/IP layer has a PDU associated with it
Application Data
Transport
Network/ internet
Data Link
Physical
Mapping Network Devices to TCP/IP Model
Physical Layer:
• Devices that only extend the physical network e.g. repeaters/
transceivers
Network Layer:
• Make decisions based on the IP address e.g. routers
Transport Layer
• Make decisions based on port number e.g. firewall
Application Layer:
• Make decisions based on the content of data (check for spam email, URL
blocker etc) e.g. Application level gateway
Encapsulation & Decapsulation
source
message M application
segment Ht M transport
datagram Hn Ht M network
switch
frame Hl Hn Ht M link
bits 1010101010 physical
link Hl Hn Ht M
physical
destination network Hn H t M
message M application link Hl Hn Ht M
segment Ht M transport physical
datagram Hn Ht M network
frame Hl Hn Ht M link
bits 1010101010 physical router
Routing based on Physical and Logical
Addressing
The TCP/IP Model
• Application-layer protocols are almost
always implemented in software in
the end systems; so are transport- User
layer protocols Application Software
• The network layer is often a mixed
implementation of hardware and Transport
software. Network
• Because the physical layer and data
link layers are responsible for handling Data Link
communication over a specific link, Physical Hardware
they are typically implemented in a
network interface card Medium
The TCP/IP Model
Service Protocols PDU Addressing
Application Represents data to HTTP, Telnet, Data n/a
user, controls dialogue FTP, SMTP, DNS,
RIP, SNMP
Transport Reliable process to TCP, UDP Segment/ Port #
process message Datagram
delivery
Network/ Move packets from ARP, IPV4, IPV6, Packet IP address
internet source to destination, IGMP, ICMP
based on IP
addresses, via best
possible route
Data Link Provides Node to Ethernet, Token Frame MAC
Node delivery based Ring, Frame address
on MAC address Relay, ATM
Physical Transmit/ receive bits RS-232, DSL Bits n/a