Lecture - 04 - Chapter 1 - Chapter 2 - 29 Aug 2024
Lecture - 04 - Chapter 1 - Chapter 2 - 29 Aug 2024
link capacity
pipe that can carry linkthat
pipe capacity
can carry
Rsfluid
bits/sec
at rate Rfluid
c bits/sec
at rate
serverserver,
sendswith
bits
(fluid) (Rs bits/sec) (Rc bits/sec)
fileinto
of Fpipe
bits
to send to client
Introduction: 1-3
Throughput
Rs < Rc What is average end-end throughput?
Rs bits/sec Rc bits/sec
Rs bits/sec Rc bits/sec
bottleneck link
link on end-end path that constrains end-end throughput
Introduction: 1-4
Throughput: network scenario
▪ per-connection end-
Rs end throughput:
Rs Rs min(Rc,Rs,R/10)
▪ in practice: Rc or Rs is
R often bottleneck
Rc Rc
Rc
* Check out the online interactive exercises for more
examples: http://gaia.cs.umass.edu/kurose_ross/
- The result, an amount of data measured in bits (or bytes), is equivalent to the
maximum amount of data on the network circuit at any given time
- i.e., data that has been transmitted but not yet acknowledged. (Maximum number
of bits that can be inserted into the pipe (link) in a given interval of time.)
Examples
• Moderate speed satellite network: 512 kbit/s, 900 ms round-trip time (RTT)
B x D = (512 x 103 bits/s) x (900 x 10-3 s) = 460,800 bits = 460.8 kbit = 57.6kB
Introduction: 1-7
Protocol “layers” and reference models
Networks are complex, Question: is there any
with many “pieces”: hope of organizing
▪ hosts structure of network?
▪ routers ▪and/or our discussion
▪ links of various media of networks?
▪ applications
▪ protocols
▪ hardware, software
Introduction: 1-8
Example: organization of air travel
end-to-end transfer of person plus baggage
ticket (purchase) ticket (complain)
baggage (check) baggage (claim)
gates (load) gates (unload)
runway takeoff runway landing
airplane routing airplane routing
airplane routing
Introduction: 1-11
Layered Internet protocol stack
▪ application: supporting network applications
• HTTP, IMAP, SMTP, DNS
application
application
▪ transport: process-process data transfer
• TCP, UDP transport
transport
▪ network: routing of datagrams from source to
destination network
• IP, routing protocols
link
▪ link: data transfer between neighboring
network elements physical
• Ethernet, 802.11 (WiFi), PPP
▪ physical: bits “on the wire”
Introduction: 1-12
Services, Layering and Encapsulation
M
application Application exchanges messages to implement some application
application service using services of transport layer
Ht M
transport Transport-layer protocol transfers M (e.g., reliably) from transport
one process to another, using services of network layer
network ▪ transport-layer protocol encapsulates network
application-layer message, M, with
link transport layer-layer header Ht to create a link
transport-layer segment
• Ht used by transport layer protocol to
physical implement its service physical
source destination
Introduction: 1-13
Services, Layering and Encapsulation
M
application application
Ht M
transport Transport-layer protocol transfers M (e.g., reliably) from transport
one process to another, using services of network layer
network H n Ht M network
Network-layer protocol transfers transport-layer segment
[Ht | M] from one host to another, using link layer services
link link
▪ network-layer protocol encapsulates
transport-layer segment [Ht | M] with
physical network layer-layer header Hn to create a physical
network-layer datagram
source • Hn used by network layer protocol to destination
implement its service
Introduction: 1-14
Services, Layering and Encapsulation
M
application application
Ht M
transport transport
network H n Ht M network
Network-layer protocol transfers transport-layer segment
[Ht | M] from one host to another, using link layer services
link Hl Hn Ht M link
Link-layer protocol transfers datagram [Hn| [Ht |M] from
host to neighboring host, using network-layer services
physical physical
▪ link-layer protocol encapsulates network
datagram [Hn| [Ht |M], with link-layer
source header Hl to create a link-layer frame destination
Introduction: 1-15
Encapsulation
Credit: https://dribbble.com/shots/7182188-Babushka-Boi
Introduction: 1-16
Services, Layering and Encapsulation
H l H n Ht
link frame Hl Hn Ht M M
link
physical physical
source destination
Introduction: 1-17
Logical Communication
❖ Layers interacts with peer’s corresponding layer
Application Application
Transport Transport
Network Network Network
Datalink Datalink Datalink
Physical Physical Physical
Application Application
Transport Transport
Network Network Network
Datalink Datalink Datalink
Physical Physical Physical
L3 Network IP
switch
destination Hn Ht M network
M applicatio Hl Hn Ht M link Hn Ht M
Ht M n physical
Hn Ht M transport
Hl Hn Ht M network router
link
physical Introduction: 1-21
Chapter 1: summary
We’ve covered a “ton” of material!
▪ Internet overview
▪ what’s a protocol? You now have:
▪ network edge, access network, core ▪ context, overview,
• packet-switching versus circuit- vocabulary, “feel”
switching
• Internet structure of networking
▪ performance: loss, delay, throughput ▪ more depth,
▪ layering, service models detail, and fun to
▪ security follow!
▪ history
Introduction: 1-22
Additional Chapter 1 slides
Introduction: 1-23
ISO/OSI reference model
Two layers not found in Internet
application
protocol stack!
presentation
▪ presentation: allow applications to
interpret meaning of data, e.g., encryption, session
compression, machine-specific conventions transport
▪ session: synchronization, checkpointing, network
recovery of data exchange link
▪ Internet stack “missing” these layers! physical
• these services, if needed, must be
implemented in application The seven layer OSI/ISO
reference model
• needed?
Introduction: 1-24
Services, Layering and Encapsulation
M
application M application
message
Ht M
transport Ht M transport
segment
network H n Ht M Hn Ht M network
datagram
H l H n Ht
link Hl Hn Ht M M
link
frame
physical physical
source destination
Introduction: 1-25
Wireshark
application
(www browser,
packet
email client)
analyzer
application
OS
packet Transport (TCP/UDP)
capture copy of all Network (IP)
Ethernet Link (Ethernet)
(pcap) frames
sent/received Physical
Introduction: 1-26
Chapter 2
Application Layer
A note on the use of these PowerPoint slides:
We’re making these slides freely available to all (faculty, students,
readers). They’re in PowerPoint form so you see the animations; and
can add, modify, and delete slides (including this one) and slide
content to suit your needs. They obviously represent a lot of work on
our part. In return for use, we only ask the following:
▪ If you use these slides (e.g., in a class) that you mention their
source (after all, we’d like people to use our book!)
▪ If you post any slides on a www site, that you note that they are
adapted from (or perhaps identical to) our slides, and note our
copyright of this material.
Computer Networking: A
For a revision history, see the slide note for this page.
Top-Down Approach
Thanks and enjoy! JFK/KWR 8th edition n
All material copyright 1996-2023
Jim Kurose, Keith Ross
J.F Kurose and K.W. Ross, All Rights Reserved Pearson, 2020
applications network
data link
n
transport
network
physical network
▪ applications on end systems allows data link
physical
for rapid app development, enterprise
network
propagation
Application Layer: 2-31
Client-server paradigm
server: mobile network
▪ always-on host national or global ISP
▪ permanent IP address
▪ often in data centers, for scaling
clients: local or
regional
▪ contact, communicate with server ISP
communicate
▪ peers request service from other
peers, provide service in return to
other peers local or
regional
• self scalability – new peers bring new ISP
service capacity, as well as new service home network content
demands provider
network datacenter
An end system (or host) can either request service (client) or provide service (server) or act
as both interchangeably (peer).
Server
• A server is a service provider providing access to network resources:
- A server can have multiple roles (e.g web servers, mail servers, print servers, Remote
Access Servers (RAS), Directory Servers (DNS) etc)
- Always on host
- Permanent IP address
- Most servers reside in large data centres
Client
• A client is a requestor of these services
- May be intermittently on
- may have dynamic IP address
- do not communicate directly with each other
Peer
• A Peer-to-Peer network doesn’t have dedicated servers. All hosts are equal and they both
provide and request service i.e. they have both client & server functionalities.
- Not always on server
- arbitrary end systems directly communicate
- peers are intermittently connected and change IP addresses
- complex management
- Examples are Skype, BitTorrent, Napster
Assignement # 1 (Chapter – 1)
•
(Already Announced)
- Quiz # 1 for Chapter 1 to be taken in the class on Thursday, 5th September, 2024 during the lecture time
(or in the next class in case of a public holiday.)
No Retake
Be on time