ITT501 Chapter 2
ITT501 Chapter 2
Chapter 2 - Overview of
Network Communication
Topic Outline
• Introduction
• OSI Layer model
• Overview of Physical and Data Link Layer
• Data Link layer access control concepts
• Internetworking and routing
• Overview of Transport Layer services
• Network standards and standardization bodies
Distributed System
(Network & Communication)
A closer look at network structure:
• network edge: mobile network
– hosts: clients and servers
– servers often in data centers global
ISP
home
❖ access networks, network
regional ISP
physical media:
wired, wireless
communication
links
❖ network core:
▪interconnected
routers institutional
▪network of network
5
IP Addresses
• All the protocols of the TCP/IP suite identify a
device on the Internet or an intranet by its IP
address.
• An IP address is 32 bits long, made up of 4
bytes separated by periods.
• Within an IP address, each of the four
numbers separated by periods is called an
octet.
• The first part of an IP address identifies the
network, and the last part identifies the host.
• 00000000.00000000.0000000.0000000
6
Classes of IP Addresses
• IP addresses that can be used by companies and
individuals are divided into three classes: Class A,
Class B, and Class C, based on the number of possible
IP addresses in each network within each class.
• The group of IP addresses assigned to an
organization are unique to all other IP addresses on
the Internet and are available for use on the Internet.
7
Private IP Addresses
• Private IP addresses are IP addresses that are
assigned by a network administrator for use
on private intranets that are isolated from the
Internet.
• The IP addresses available to the Internet are
called public IP addresses.
8
Dynamically Assigned IP Addresses
• Instead of IP addresses permanently being
assigned to computers (called static IP
addresses), an IP address is assigned for the
current session only (called a dynamic IP
address).
L bits
per packet
3 2 1
sour destinati
ce R R
on
bps bps
• takes L/R seconds to transmit one-hop numerical
(push out) L-bit packet into link at example:
R bps ▪ L = 7.5 Mbits
• store and forward: entire packet ▪ R = 1.5 Mbps
must arrive at router before it ▪ one-hop transmission
can be transmitted on next link delay = 5 sec
Introduction 1-12
Packet Switching: queueing delay, loss
R = 100 Mb/s C
A
D
R = 1.5 Mb/s
B
queue of packets E
waiting for output link
Introduction 1-14
Packet switching versus circuit switching
packet switching allows more users to use network!
example:
▪ 1 Mb/s link
N
…..
▪ each user: use
• 100 kb/s when “active” rs
1 Mbps
• active 10% of time link
• circuit-switching:
– 10 users
• packet switching:
– with 35 users, probability >
10 active at same time is less
than .0004 *
* Check out the online interactive exercisesIntroduction
for more examples 1-15
Packet switching versus circuit
switching
is packet switching a “slam dunk winner?”
• great for bursty data
– resource sharing
– simpler, no call setup
• excessive congestion possible: packet delay and loss
– protocols needed for reliable data transfer,
congestion control
• Q: How to provide circuit-like behavior?
– bandwidth guarantees needed for audio/video
apps
Introduction 1-16
How do loss and delay occur?
packets queue in router buffers
• packet arrival rate to link (temporarily) exceeds output link
capacity
• packets queue, wait for turn
packet being transmitted (delay)
B
packets queueing (delay)
free (available) buffers: arriving packets
dropped (loss) if no free buffers
Introduction 1-17
History of the OSI model
OSI stands for Open System Interconnection is a reference model that
describes how information from a software application in one computer
moves through a physical medium to the software application in another
computer.
20
Protocols at the Transport Layer
• A TCP/IP network has two protocols that work
at the Transport layer; one protocol
guarantees delivery and the other does not.
• With TCP/IP, the protocol that guarantees
delivery is TCP and the protocol that does not
is UDP (User Datagram Protocol).
• TCP is used for client and server requests and
responses.
21
Protocols at the Transport Layer
(Continued)
• Because TCP establishes a connection, it is
called a connection-oriented protocol.
• UDP is a protocol that sends data without
caring about whether the data is received.
• It does not establish a connection first; thus, it
is called a connectionless protocol.
22
Protocols at the Network Layer
• TCP and UDP communicate with the Network layer,
which is sometimes called the Internet layer.
• Some of the other supporting protocols include
– ARP (Address Resolution Protocol), responsible for locating
a host on a LAN;
– RARP (Reverse Address Resolution Protocol), responsible
for discovering the Internet address of a host on a LAN;
– ICMP (Internet Control Message Protocol), responsible for
communicating problems with transmission to devices that
need to know about these problems.
23
Protocols at the Data Link and Physical
Layers
• PPP (Point-to-Point Protocol) is used over
telephone lines, and allows a computer to
connect to a network using a modem.
• PPP is the most popular protocol for managing
network transmission from one modem to
another.
24
Link layer
terminology:
• hosts and routers: nodes
• communication channels global
ISP
that connect adjacent nodes
along communication path:
links
– wired links
– wireless links
– LANs
• layer-2 packet: frame,
encapsulates datagram
data-link layer has
responsibility of
transferring datagram from
one node Link Layer 5-25
to physically adjacent node
Link layer: context
• datagram transferred by transportation analogy:
different link protocols • trip from Princeton to
over different links: Lausanne
– limo: Princeton to JFK
– e.g., Ethernet on first
– plane: JFK to Geneva
link, frame relay on – train: Geneva to Lausanne
intermediate links,
• tourist = datagram
802.11 on last link
• transport segment =
• Each link protocol
communication link
provides different
• transportation mode =
services
link layer protocol
– e.g., may or may not
• travel agent = routing
provide rdt over link
algorithm
Link Layer 5-26
Link layer services
• framing,
– encapsulate datagram into frame,
adding header, trailer
• link access:
– channel access if shared medium
• flow control:
– pacing between adjacent sending and receiving
nodes
• error detection:
– errors caused by signal attenuation, noise.
– receiver detects presence of errors:
• signals sender for retransmission or drops
frame
• error correction:
– receiver identifies and corrects bit error(s) without
resorting to retransmission
• random access
– channel not divided, allow collisions
– “recover” from collisions
• “taking turns”
– nodes take turns, but nodes with more to send can
take longer turns
otherwis
e
2. Checksum
• detect “errors” (e.g., flipped bits) in transmitted packet (note:
used at transport layer only)
transport layer
physical
application
network transport
• network layer protocols network
data link
physical
network
data link
network
data link
routing IP protocol
• addressing conventions
protocols
• datagram format
• path selection
network • RIP, OSPF, BGP
• packet handling
layer forwarding
conventions
table
ICMP
protocol
• error reporting
• router “signaling”
link layer
physical layer
local forwarding
table
header output link forwarding table determines
value 010 3 local forwarding at this router
0 2
010 2
1 1
0111
100
1
value in arriving
packet’s header
0111 1
3 2
log nsp
❖ transport protocols run in end
tra
ica or
le t
systems
nd
-e
▪ send side: breaks app
d n
messages into segments,
passes to network layer
▪ recv side: reassembles application
transport
network
network
data link
– congestion control
log nsp
data link physical
tra
physical
ica or
network
le t
– flow control data link
nd
physical
-e
– connection setup
n
network
d
data link
physical
delivery: UDP
physical
network
data link application
physical transport
– no-frills extension of network
data link network
data link
physical
“best-effort” IP physical
close
d
Network + 57
Networking Standards Organizations
(continued)
Network + 58
Networking Standards Organizations
(continued)
Network + 59
Networking Standards Organizations
(continued)
Network + 60
Networking Standards Organizations
(continued)
Network + 61
Networking Standards Organizations
(continued)
Network + 62
Networking Standards Organizations
(continued)
Network + 63
Networking Standards Organizations
(continued)
Network + 64
Networking Standards Organizations
(continued)
• IANA and ICANN
• Every computer / host on a network must have a unique
address
Network + 65
References
• Computer Networking: A Top-Down Approach
(7th Edition)
– Chapter 1
– Chapter 3
– Chapter 4
– Chapter 5
– Chapter 6