0% found this document useful (0 votes)
50 views24 pages

2.intro Networks2

Here are two benefits of using a layered network model: 1. It allows for modular design where each layer can be implemented or improved independently without affecting other layers. 2. It provides abstraction where each layer only needs to know about the layers directly above and below it, hiding the details of its implementation from other layers.

Uploaded by

Jack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
50 views24 pages

2.intro Networks2

Here are two benefits of using a layered network model: 1. It allows for modular design where each layer can be implemented or improved independently without affecting other layers. 2. It provides abstraction where each layer only needs to know about the layers directly above and below it, hiding the details of its implementation from other layers.

Uploaded by

Jack
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 24

1.

Introduction: 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 Self study
1.6 networks under attack: security
1.7 history

1
Quiz: Circuit Switching

Consider a circuit-switched network with N=100 users where each


user is independently active with probability p=0.2 and when active,
sends data at a rate of R=1Mbps. How much capacity must the
network be provisioned with to guarantee service to all users?

A. 100 Mbps

B. 20 Mbps

C. 200 Mbps

D. 50 Mbps

E. 500 Mbps

Open a browser and type: www.pollev.com/mdmonirhossain931


2
Quiz: Statistical Multiplexing

Consider a packet-switched network with N=100 users where each


user is independently active with probability p=0.2 and when active,
sends data at a rate of R=1Mbps. What is the expected aggregate
traffic sent by all the users?

A. 100 Mbps

B. 20 Mbps

C. 200 Mbps

D. 50 Mbps

E. 500 Mbps

Open a browser and type: www.pollev.com/mdmonirhossain931


3
Quiz: Delays

Consider a network connecting hosts A and B through two routers


R1 and R2 like this: A-------R1----------R2---------B. Does whether a
packet sent by A destined to B experiences queuing at R1 depend
on the length of the link R1-R2?
Answer: B
A. Yes, it does Queuing happens because R1 cannot transmit
packets on the R1-R2 link fast enough, i.e., the
transmission rate of the R1-R2 link is low. The length
B. No, it doesn’t
of the R1-R2 link does not typically impact this.

A R1 R2 B

Open a browser and type: www.pollev.com/mdmonirhossain931


4
Three (networking) design steps
❖ Break down the problem into tasks

❖ Organize these tasks

❖ Decide who does what

5
Tasks in Networking
❖ What does it take to send packets across?

❖ Prepare data (Application)


❖ Ensure that packets get to the dst process (Transport)
❖ Deliver packets across global network (Network)
❖ Delivery packets within local network to next hop
(Datalink)
❖ Bits / Packets on wire (Physical)

This is decomposition…
Now, how do we organize these tasks?
Let us have an example
6
Inspiration…

Dear John,

Your days are numbered.

--Grace

7
The Path of the Letter
“Peers” on each side understand the same things
No one else needs to (abstraction)
Lowest level has most packaging

CEO Semantic Content CEO


Letter
Identity
EA Envelope EA

Location FedEx
FedEx
Fedex Envelope (FE)

8
The Path Through FedEx
Higher “Stack”
at Ends
Partial “Stack”
Truck During Transit Truck
FE FE FE
Sorting Sorting Sorting
Office Office Office
Crate Crate New
Crate
Crate
Airport Airport Airport
Deepest Packaging (Envelope+FE+Crate)
at the Lowest Level of Transport 9
In the context of the Internet
Applications
…built on…
Reliable (or unreliable) transport
…built on…
Best-effort global packet delivery
…built on…
Best-effort local packet delivery
…built on…
Physical transfer of bits

10
Internet protocol stack
❖ application: supporting network applications
▪ FTP, SMTP, HTTP, Skype, ..
❖ transport: process-process data transfer
▪ TCP, UDP
❖ network: routing of datagrams from source to
destination
▪ IP, routing protocols
❖ link: data transfer between neighboring network
elements
▪ Ethernet, 802.11(WiFi), PPP
❖ physical: bits “on the wire”

11
Three Observations

12
An Example: No Layering

Application ssh HTTP Skype

Transmission Ether- Fiber Wireless


Media net optic

❖ No layering: each new application has to be re-


implemented for every network technology !

13
An Example: Benefit of Layering
❖ Introducing an intermediate layer provides a common
abstraction for various network technologies

Application ssh HTTP Skype

Transport
& Network

Transmission
Media
Ethernet Fiber Wireless
optic
14
Is Layering Harmful?
❖ Layer N may duplicate lower-level functionality
▪ E.g., error recovery to retransmit lost data
❖ Information hiding may hurt performance
▪ E.g., packet loss due to corruption vs. congestion
❖ Headers start to get large
▪ E.g., typically, TCP + IP + Ethernet headers add up to 54 bytes
❖ Layer violations when the gains too great to resist
▪ E.g., Network Address Translation (NAT – to be covered in Network Layer)
❖ Layer violations when network doesn’t trust ends
▪ E.g., Firewalls (Security)

15
Distributing Layers Across Network

16
What Gets Implemented on Host?
❖ Hosts have applications that generate data/messages that are
eventually put out on wire

❖ At receiver host bits arrive on wire, must make it up to


application

❖ Therefore, all layers must exist at host!

17
What Gets Implemented on Router?

18
Internet Layered Architecture
host host

HTTP message
HTTP HTTP

TCP segment
TCP TCP

router router

IP packet IP packet IP packet


IP IP IP IP

Ethernet Ethernet SONET SONET Ethernet Ethernet


interface interface interface interface interface interface

19
Logical Communication
❖ Layers interacts with peer’s corresponding layer

Application Application
Transport Transport
Network Network Network
Datalink Datalink Datalink
Physical Physical Physical

Host A Router Host B


20
Physical Communication
❖ Communication goes down to physical network
❖ Then from network peer to peer
❖ Then up to relevant layer

Application Application
Transport Transport
Network Network Network
Datalink Datalink Datalink
Physical Physical Physical

Host A Router Host B

21
Encapsulation source
message M application
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 Ht M
Ht M transport physical
Hn Ht M network
Hl Hn Ht M link router
physical

22
Quiz: Layering

What are two benefits of using a layered network model ? (Choose two)

A. It makes it easy to introduce new protocols

B. It speeds up packet delivery

C. It allows us to have many different packet headers

D. It prevents technology in one layer from affecting other layers

E. It creates many acronyms

F. It reminds me of cake

Open a browser and type: www.pollev.com/mdmonirhossain931


23
1. Introduction: 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
Self study
1.6 networks under attack: security
1.7 history

24

You might also like