SlideShare a Scribd company logo
1 of 4
Download to read offline
CS176A Example Problems
Calculate the total time required to transfer a 1.5 MB file in the following cases, assuming RTT
of 80ms, a packet size of 1KB and an initial 2XRTT of “handshaking” before it is sent.
a) The b/w is 10Mbps, and the data packets can be sent continuously.
b) The b/w is 10Mbps, but after we finish sending each data packet, we must wait one RTT
before sending the next
c) The link allows infinitely fast transmits, but limits bandwidth such that only 20 packets can be
sent per RTT zero transmit time as in (c), but during the first RTT, we can send one packet
during the 2nd
RTT we can send 2 packets, during the 3rs we can send 4 = 23
-1 and so on
Solution:
We will count the transfer as completed when the last data bit arrives at its destination
a) 1.5MB = 12,582,912 bits, 2 initial RTTs (160ms) + (12,582,912)/(10,000,000) bps (transmit) +
RTT/2 (propagation) = 1.458 secs (approx)
b) To the above, we add the time for 1499 RTTs for a total of 1.46 + 119.92 = 121.38 secs
c) This is 74.5 RTTs, plus the two initial RTTS, for 6.12 secs
d) Right after the handshaking is done, we send one packet. One RTT after handshaking, we send 2
packets. At n RTTs past the handshaking, we have sent 1+2+4+... + 2n
= 2(n+1)
– 1. At n =10, we have
thus been able to send all 1500 pkts, the last batch arrives 0.5 RTT later. Total time is 2 + 10.5 RTTs or
1 sec.
Suppose a 128 kbps p2p link is set up between earth and a rover on mars. The distance from the
earth to mars (when they are the closest together) is approximately 55Gm, and data travels over
the link at the speed of light 3X108
m/s
a) Calculate the minimum RTT for the link
b) Calculate the delay X bandwidth product of the link
c) A camera on the rover takes pictures of its surroundings and sends these to the earth. How
quickly can it reach Mission Control on Earth? Assume that each image is 5Mb in size
Solution:
a) Propagation Delay of the link is 55X109
/ (3X108
) = 184 secs, Thus RTT = 368 secs
b) The delay X bandwidth product for the link is the RTT X bandwidth = 23.5Mb
c) After a picture is taken, it must be transmitted on the link and completely propagated, before Mission
Control can interpret it. Transmit delay for 5Mb of data is 29 secs
Hence, total time = transmit delay + propagation delay = 223 secs
Calculate the latency (from first bit sent to the lat bit received) for the following:
a) 1 Gbps Ethernet with a single store and forward switch in the path, and a packet size of
5000bits. Assume that each link introduces a propagation delay of 10 micro second and
that the switch begins retransmitting immediately after it has finished receiving the
packet.
b) Same as a) but with 3 switches
c) Same as b) but assume the switch implements “cut-through” switching. It is also able to
begin retransmitting the packet after the first 128 bits have been received.
Solution:
a) For each link it takes 1 Gbps/5 Kb = 5 µs to transmit the packet on the link, after which it takes an
additional 10 µs for the last bit to propagate across the link. Thus for a LAN with only with only one
switch that starts forwarding only after receiving the whole packet, the total transfer delay is the
transmit delays + two propagate delays = 30 µs.
b) For 3 switched and thus 4 links, the total delay is 4 transmit + 4 prop. Delay = 60 µs
c) For “cut-through”, a switch needs to only decode the 128 bits before it begins to forward. This
takes 128 ns. This delay replaces the switch transmit delays in the previous answer for a total delay of
one transmit delay + 3 cut through decoding delays + 4 propagation delays = 45.384 µs
For the following, assume that no data compression is done. Calculate the bandwidth necessary
for transmitting in real time.
a) HDTV high-resolution video at resolution of 1920*1080, 24 bits/pixel, 30 frames / second.
b) POTS (Plain Old Telephone Service) voice audio of 8-bits samples at 8 KHz
c) GSM mobile voice audio of 260-bit samples at 50 Hz.
d) HDCD high-definition audio of 24-bit samples at 88.2 KHz
a) 1920 * 1080 * 24 * 30 ~= 115 Gbps
b) 8 * 8000 = 61 Kbps
c) 260 * 50 = 13 Kbps
d) 24 * 882000 ~= 2.1Mbps
Consider an application that transmits data at a steady rate (for example, the sender generates
an N-bit unit of data every k time units, where k is small and fixed). Also, when such an
application starts, it will continue running for relatively longer period of time. Answer the
following questions briefly justifying your answer:
a) Would a packet switched network or a circuit switched network more appropriate for this
application? Why?
b) Suppose that a packet switched network is used and the only traffic in this network comes
from such applications described above. Further assume that the sum of the application data
rates is less than the capacities of each and every link. Is some form of congestion control
needed? Why?
a) A circuit-switched network would be well suited to the application described, because
the application involves long sessions with predictable smooth bandwidth requirements.
Since the transmission rate is known and not bursty, bandwidth can be reserved for each
application session circuit with no significant waste. In addition, we need not worry
greatly about the overhead costs of setting up and tearing down a circuit connection,
which are amortized over the lengthy duration of a typical application session.
b) Given such generous link capacities, the network needs no congestion control mechanism. In the
worst (most potentially congested) case, all the applications simultaneously transmit over one or more
particular network links. However, since each link offers sufficient bandwidth to handle the sum of all
of the applications' data rates, no congestion (very little queuing) will occur.
In modern packet switched networks, the source host segments long application layer messages
(for example an image or a music file) into smaller packets and sends the packets into the
network. The receiver then reassembles the packets back into the original message. We refer to
this process as message segmentation. Fig illustrates the end to end transport of a message with
and without segmentation. Consider a msg that is 7.5*106
bits long that is to be sent from the
source to the destination as shown in the figure. Suppose that each link in the figure is 1.5 Mbps.
Ignore propagation, queuing and processing delays.
a) consider sending the message from source to destination without message segmentation. How
long does it take to move the message from the source host to the first packet switch? Keeping in
mind that each packet switch uses a store and forward packet switching. What is the total time to
move the message from the source host to the destination host?
b) Now suppose that the message is segmented into 5,000 packets, with each packet being 1500
bits long. How long does it take to move the the first packet from the source host to the first
packet switch?
c) How long does it take to move the file from the source host to the destination host when
message segmentation is used? Compare with part A and comment.
d) Discuss the drawbacks of message segmentation.
a) Time to send message from source host to first packet switch =
7.5 × 106
sec = 5 sec . With store-and-forward switching, the total time to move
1.5 × 106
message from source host to destination host = 5 sec× 3 hops = 15 sec
b) Time to send 1st packet from source host to first packet switch = 1.5 × 103
sec = 1 m sec. Time at
which 2nd packet is received at the first switch = 1.5 × 106
time at which 1st packet is received at the
second switch = 2 × 1 m sec = 2 m sec
c) Time at which 1st packet is received at the destination host = 1 m sec× 3 hops = 3 m sec . After this,
every 1msec one packet will be received; thus time at which last (5000th) packet is received = 3 m sec+
4999 * 1m sec = 5.002 sec. It can be seen that delay in using message segmentation is significantly less
(almost 1/3rd).
d) Drawbacks:
i. packets have to be put in sequence at the destination.
ii. Message segmentation results in many smaller packets. Since header size is usually the
same for all packets regardless of their size, with message segmentation the total amount of header
bytes is more.

More Related Content

What's hot

Congestion control
Congestion controlCongestion control
Congestion controlAbhay Pai
 
TCP Congestion Control By Owais Jara
TCP Congestion Control By Owais JaraTCP Congestion Control By Owais Jara
TCP Congestion Control By Owais JaraOwaîs Járå
 
Chapter 6 bandwidth utilization -multiplexing and spreading_computer_network
Chapter 6   bandwidth utilization -multiplexing and spreading_computer_networkChapter 6   bandwidth utilization -multiplexing and spreading_computer_network
Chapter 6 bandwidth utilization -multiplexing and spreading_computer_networkDhairya Joshi
 
Tcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identificationTcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identificationBala Lavanya
 
Tcp Congestion Avoidance
Tcp Congestion AvoidanceTcp Congestion Avoidance
Tcp Congestion AvoidanceRam Dutt Shukla
 
Congestion control 1
Congestion control 1Congestion control 1
Congestion control 1Aman Jaiswal
 
B2 b fc credits performance deadlocks
B2 b fc credits performance deadlocksB2 b fc credits performance deadlocks
B2 b fc credits performance deadlocksBarry Wright
 
Paxos building-reliable-system
Paxos building-reliable-systemPaxos building-reliable-system
Paxos building-reliable-systemYanpo Zhang
 
Connection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlConnection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlAdeel Rasheed
 
E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks shimaa Kotb Saif
 

What's hot (20)

Congestion control avoidance
Congestion control avoidanceCongestion control avoidance
Congestion control avoidance
 
Congestion control
Congestion controlCongestion control
Congestion control
 
TCP Congestion Control By Owais Jara
TCP Congestion Control By Owais JaraTCP Congestion Control By Owais Jara
TCP Congestion Control By Owais Jara
 
Chapter 6 bandwidth utilization -multiplexing and spreading_computer_network
Chapter 6   bandwidth utilization -multiplexing and spreading_computer_networkChapter 6   bandwidth utilization -multiplexing and spreading_computer_network
Chapter 6 bandwidth utilization -multiplexing and spreading_computer_network
 
Ch06
Ch06Ch06
Ch06
 
Analysis of TCP variants
Analysis of TCP variantsAnalysis of TCP variants
Analysis of TCP variants
 
Leakybucketalgorithm
LeakybucketalgorithmLeakybucketalgorithm
Leakybucketalgorithm
 
Week3.1
Week3.1Week3.1
Week3.1
 
Leaky bucket A
Leaky bucket ALeaky bucket A
Leaky bucket A
 
Tcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identificationTcp congestion avoidance algorithm identification
Tcp congestion avoidance algorithm identification
 
Tcp congestion avoidance
Tcp congestion avoidanceTcp congestion avoidance
Tcp congestion avoidance
 
Tcp Congestion Avoidance
Tcp Congestion AvoidanceTcp Congestion Avoidance
Tcp Congestion Avoidance
 
Congestion control
Congestion controlCongestion control
Congestion control
 
Congestion control 1
Congestion control 1Congestion control 1
Congestion control 1
 
B2 b fc credits performance deadlocks
B2 b fc credits performance deadlocksB2 b fc credits performance deadlocks
B2 b fc credits performance deadlocks
 
Lect9
Lect9Lect9
Lect9
 
Paxos building-reliable-system
Paxos building-reliable-systemPaxos building-reliable-system
Paxos building-reliable-system
 
Congestion control in TCP
Congestion control in TCPCongestion control in TCP
Congestion control in TCP
 
Connection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion ControlConnection Establishment & Flow and Congestion Control
Connection Establishment & Flow and Congestion Control
 
E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks E XOR opportunistic routing for multi hop networks
E XOR opportunistic routing for multi hop networks
 

Viewers also liked

La tecnología y el aprendizaje de idiomas
La tecnología y el aprendizaje de idiomasLa tecnología y el aprendizaje de idiomas
La tecnología y el aprendizaje de idiomasmichelle rodriguez
 
Overcoming Homelessness and Refugees
Overcoming Homelessness and RefugeesOvercoming Homelessness and Refugees
Overcoming Homelessness and RefugeesTauvia Blue
 
Los delitos contra la propiedad
Los delitos contra la propiedadLos delitos contra la propiedad
Los delitos contra la propiedadleonelis medina
 
A M B Heshan- Post of Quantity Surveyor 2016 09 15
A M B Heshan- Post of Quantity Surveyor 2016 09 15A M B Heshan- Post of Quantity Surveyor 2016 09 15
A M B Heshan- Post of Quantity Surveyor 2016 09 15Brian Heshan
 
éTica y deontología
éTica y deontologíaéTica y deontología
éTica y deontologíadraco553
 
Propuesta de proyecto radial
Propuesta de proyecto radialPropuesta de proyecto radial
Propuesta de proyecto radialMarthisLu
 
Cuál es el lugar de ángel
Cuál es el lugar de ángelCuál es el lugar de ángel
Cuál es el lugar de ángelMarthisLu
 
Propuesta las inclusivas
Propuesta las inclusivasPropuesta las inclusivas
Propuesta las inclusivasMarthisLu
 
Borusan Mannesmann: Line Pipe Product Catalogue
Borusan Mannesmann: Line Pipe Product CatalogueBorusan Mannesmann: Line Pipe Product Catalogue
Borusan Mannesmann: Line Pipe Product CatalogueBorusan Mannesmann Boru
 
Media transition work (1)
Media transition work (1)Media transition work (1)
Media transition work (1)chloerickardd
 

Viewers also liked (13)

La tecnología y el aprendizaje de idiomas
La tecnología y el aprendizaje de idiomasLa tecnología y el aprendizaje de idiomas
La tecnología y el aprendizaje de idiomas
 
Overcoming Homelessness and Refugees
Overcoming Homelessness and RefugeesOvercoming Homelessness and Refugees
Overcoming Homelessness and Refugees
 
Los delitos contra la propiedad
Los delitos contra la propiedadLos delitos contra la propiedad
Los delitos contra la propiedad
 
A M B Heshan- Post of Quantity Surveyor 2016 09 15
A M B Heshan- Post of Quantity Surveyor 2016 09 15A M B Heshan- Post of Quantity Surveyor 2016 09 15
A M B Heshan- Post of Quantity Surveyor 2016 09 15
 
Borusan Mannesmann: Precision Tubes
Borusan Mannesmann: Precision TubesBorusan Mannesmann: Precision Tubes
Borusan Mannesmann: Precision Tubes
 
éTica y deontología
éTica y deontologíaéTica y deontología
éTica y deontología
 
MANISHKUAMR
MANISHKUAMRMANISHKUAMR
MANISHKUAMR
 
Borusan Mannesmann: General Catalogue
Borusan Mannesmann: General CatalogueBorusan Mannesmann: General Catalogue
Borusan Mannesmann: General Catalogue
 
Propuesta de proyecto radial
Propuesta de proyecto radialPropuesta de proyecto radial
Propuesta de proyecto radial
 
Cuál es el lugar de ángel
Cuál es el lugar de ángelCuál es el lugar de ángel
Cuál es el lugar de ángel
 
Propuesta las inclusivas
Propuesta las inclusivasPropuesta las inclusivas
Propuesta las inclusivas
 
Borusan Mannesmann: Line Pipe Product Catalogue
Borusan Mannesmann: Line Pipe Product CatalogueBorusan Mannesmann: Line Pipe Product Catalogue
Borusan Mannesmann: Line Pipe Product Catalogue
 
Media transition work (1)
Media transition work (1)Media transition work (1)
Media transition work (1)
 

Similar to Example problems

Switching Problems.pdf
Switching Problems.pdfSwitching Problems.pdf
Switching Problems.pdfSenthil Vit
 
Text book 2 computer networks_a systems approach_peterson solution manual
Text book 2 computer networks_a systems approach_peterson solution manualText book 2 computer networks_a systems approach_peterson solution manual
Text book 2 computer networks_a systems approach_peterson solution manualgopivrajan
 
Availability Computer Communication Network .pdf
Availability Computer Communication Network .pdfAvailability Computer Communication Network .pdf
Availability Computer Communication Network .pdfYashShirude1
 
Transmission
TransmissionTransmission
Transmissionmrhaken
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tlH K
 
Ch3 3 Data communication and networking
Ch3 3  Data communication and networking Ch3 3  Data communication and networking
Ch3 3 Data communication and networking Neha Kurale
 
Data Communication And Networking
Data Communication And NetworkingData Communication And Networking
Data Communication And NetworkingAvijeet Negel
 
Chapter 1 - Computer Networks and the Internet 2
Chapter 1 - Computer Networks and the Internet 2Chapter 1 - Computer Networks and the Internet 2
Chapter 1 - Computer Networks and the Internet 2Andy Juan Sarango Veliz
 
Multiplexing
MultiplexingMultiplexing
Multiplexingnimay1
 
Computer network (13)
Computer network (13)Computer network (13)
Computer network (13)NYversity
 
Ejercicios Seleccionados de Andres Tanenb.pdf
Ejercicios Seleccionados de Andres Tanenb.pdfEjercicios Seleccionados de Andres Tanenb.pdf
Ejercicios Seleccionados de Andres Tanenb.pdfURIELALATAMAYHUIRE
 
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...ijcseit
 
A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...ijcseit
 
Ch6 1 Data communication and networking by neha g. kurale
Ch6 1 Data communication and networking by neha g. kuraleCh6 1 Data communication and networking by neha g. kurale
Ch6 1 Data communication and networking by neha g. kuraleNeha Kurale
 

Similar to Example problems (20)

Switching Problems.pdf
Switching Problems.pdfSwitching Problems.pdf
Switching Problems.pdf
 
Text book 2 computer networks_a systems approach_peterson solution manual
Text book 2 computer networks_a systems approach_peterson solution manualText book 2 computer networks_a systems approach_peterson solution manual
Text book 2 computer networks_a systems approach_peterson solution manual
 
Availability Computer Communication Network .pdf
Availability Computer Communication Network .pdfAvailability Computer Communication Network .pdf
Availability Computer Communication Network .pdf
 
Unit_I - 3
Unit_I - 3Unit_I - 3
Unit_I - 3
 
Transmission
TransmissionTransmission
Transmission
 
Networks quiz #1
Networks quiz #1 Networks quiz #1
Networks quiz #1
 
Assignment cn tl
Assignment cn tlAssignment cn tl
Assignment cn tl
 
Bandwidth.ppt
Bandwidth.pptBandwidth.ppt
Bandwidth.ppt
 
Ch3 3 Data communication and networking
Ch3 3  Data communication and networking Ch3 3  Data communication and networking
Ch3 3 Data communication and networking
 
Data Communication And Networking
Data Communication And NetworkingData Communication And Networking
Data Communication And Networking
 
Ch3 5 v1
Ch3 5 v1Ch3 5 v1
Ch3 5 v1
 
Chapter 1 - Computer Networks and the Internet 2
Chapter 1 - Computer Networks and the Internet 2Chapter 1 - Computer Networks and the Internet 2
Chapter 1 - Computer Networks and the Internet 2
 
Computer Networking Assignment Help
Computer Networking Assignment HelpComputer Networking Assignment Help
Computer Networking Assignment Help
 
Multiplexing
MultiplexingMultiplexing
Multiplexing
 
8 Packet Switching
8 Packet Switching8 Packet Switching
8 Packet Switching
 
Computer network (13)
Computer network (13)Computer network (13)
Computer network (13)
 
Ejercicios Seleccionados de Andres Tanenb.pdf
Ejercicios Seleccionados de Andres Tanenb.pdfEjercicios Seleccionados de Andres Tanenb.pdf
Ejercicios Seleccionados de Andres Tanenb.pdf
 
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
A Packet Drop Guesser Module for Congestion Control Protocols for High speed ...
 
A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...A packet drop guesser module for congestion Control protocols for high speed ...
A packet drop guesser module for congestion Control protocols for high speed ...
 
Ch6 1 Data communication and networking by neha g. kurale
Ch6 1 Data communication and networking by neha g. kuraleCh6 1 Data communication and networking by neha g. kurale
Ch6 1 Data communication and networking by neha g. kurale
 

Recently uploaded

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxDenish Jangid
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxAreebaZafar22
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdfssuserdda66b
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfSherif Taha
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxEsquimalt MFRC
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseAnaAcapella
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxVishalSingh1417
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the ClassroomPooky Knightsmith
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsKarakKing
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentationcamerronhm
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin ClassesCeline George
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.christianmathematics
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 

Recently uploaded (20)

Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Spellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please PractiseSpellings Wk 3 English CAPS CARES Please Practise
Spellings Wk 3 English CAPS CARES Please Practise
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Salient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functionsSalient Features of India constitution especially power and functions
Salient Features of India constitution especially power and functions
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 

Example problems

  • 1. CS176A Example Problems Calculate the total time required to transfer a 1.5 MB file in the following cases, assuming RTT of 80ms, a packet size of 1KB and an initial 2XRTT of “handshaking” before it is sent. a) The b/w is 10Mbps, and the data packets can be sent continuously. b) The b/w is 10Mbps, but after we finish sending each data packet, we must wait one RTT before sending the next c) The link allows infinitely fast transmits, but limits bandwidth such that only 20 packets can be sent per RTT zero transmit time as in (c), but during the first RTT, we can send one packet during the 2nd RTT we can send 2 packets, during the 3rs we can send 4 = 23 -1 and so on Solution: We will count the transfer as completed when the last data bit arrives at its destination a) 1.5MB = 12,582,912 bits, 2 initial RTTs (160ms) + (12,582,912)/(10,000,000) bps (transmit) + RTT/2 (propagation) = 1.458 secs (approx) b) To the above, we add the time for 1499 RTTs for a total of 1.46 + 119.92 = 121.38 secs c) This is 74.5 RTTs, plus the two initial RTTS, for 6.12 secs d) Right after the handshaking is done, we send one packet. One RTT after handshaking, we send 2 packets. At n RTTs past the handshaking, we have sent 1+2+4+... + 2n = 2(n+1) – 1. At n =10, we have thus been able to send all 1500 pkts, the last batch arrives 0.5 RTT later. Total time is 2 + 10.5 RTTs or 1 sec. Suppose a 128 kbps p2p link is set up between earth and a rover on mars. The distance from the earth to mars (when they are the closest together) is approximately 55Gm, and data travels over the link at the speed of light 3X108 m/s a) Calculate the minimum RTT for the link b) Calculate the delay X bandwidth product of the link c) A camera on the rover takes pictures of its surroundings and sends these to the earth. How quickly can it reach Mission Control on Earth? Assume that each image is 5Mb in size Solution: a) Propagation Delay of the link is 55X109 / (3X108 ) = 184 secs, Thus RTT = 368 secs b) The delay X bandwidth product for the link is the RTT X bandwidth = 23.5Mb c) After a picture is taken, it must be transmitted on the link and completely propagated, before Mission Control can interpret it. Transmit delay for 5Mb of data is 29 secs Hence, total time = transmit delay + propagation delay = 223 secs Calculate the latency (from first bit sent to the lat bit received) for the following: a) 1 Gbps Ethernet with a single store and forward switch in the path, and a packet size of
  • 2. 5000bits. Assume that each link introduces a propagation delay of 10 micro second and that the switch begins retransmitting immediately after it has finished receiving the packet. b) Same as a) but with 3 switches c) Same as b) but assume the switch implements “cut-through” switching. It is also able to begin retransmitting the packet after the first 128 bits have been received. Solution: a) For each link it takes 1 Gbps/5 Kb = 5 µs to transmit the packet on the link, after which it takes an additional 10 µs for the last bit to propagate across the link. Thus for a LAN with only with only one switch that starts forwarding only after receiving the whole packet, the total transfer delay is the transmit delays + two propagate delays = 30 µs. b) For 3 switched and thus 4 links, the total delay is 4 transmit + 4 prop. Delay = 60 µs c) For “cut-through”, a switch needs to only decode the 128 bits before it begins to forward. This takes 128 ns. This delay replaces the switch transmit delays in the previous answer for a total delay of one transmit delay + 3 cut through decoding delays + 4 propagation delays = 45.384 µs For the following, assume that no data compression is done. Calculate the bandwidth necessary for transmitting in real time. a) HDTV high-resolution video at resolution of 1920*1080, 24 bits/pixel, 30 frames / second. b) POTS (Plain Old Telephone Service) voice audio of 8-bits samples at 8 KHz c) GSM mobile voice audio of 260-bit samples at 50 Hz. d) HDCD high-definition audio of 24-bit samples at 88.2 KHz a) 1920 * 1080 * 24 * 30 ~= 115 Gbps b) 8 * 8000 = 61 Kbps c) 260 * 50 = 13 Kbps d) 24 * 882000 ~= 2.1Mbps Consider an application that transmits data at a steady rate (for example, the sender generates an N-bit unit of data every k time units, where k is small and fixed). Also, when such an application starts, it will continue running for relatively longer period of time. Answer the following questions briefly justifying your answer: a) Would a packet switched network or a circuit switched network more appropriate for this application? Why? b) Suppose that a packet switched network is used and the only traffic in this network comes from such applications described above. Further assume that the sum of the application data rates is less than the capacities of each and every link. Is some form of congestion control needed? Why? a) A circuit-switched network would be well suited to the application described, because the application involves long sessions with predictable smooth bandwidth requirements. Since the transmission rate is known and not bursty, bandwidth can be reserved for each application session circuit with no significant waste. In addition, we need not worry greatly about the overhead costs of setting up and tearing down a circuit connection,
  • 3. which are amortized over the lengthy duration of a typical application session. b) Given such generous link capacities, the network needs no congestion control mechanism. In the worst (most potentially congested) case, all the applications simultaneously transmit over one or more particular network links. However, since each link offers sufficient bandwidth to handle the sum of all of the applications' data rates, no congestion (very little queuing) will occur. In modern packet switched networks, the source host segments long application layer messages (for example an image or a music file) into smaller packets and sends the packets into the network. The receiver then reassembles the packets back into the original message. We refer to this process as message segmentation. Fig illustrates the end to end transport of a message with and without segmentation. Consider a msg that is 7.5*106 bits long that is to be sent from the source to the destination as shown in the figure. Suppose that each link in the figure is 1.5 Mbps. Ignore propagation, queuing and processing delays. a) consider sending the message from source to destination without message segmentation. How long does it take to move the message from the source host to the first packet switch? Keeping in mind that each packet switch uses a store and forward packet switching. What is the total time to move the message from the source host to the destination host? b) Now suppose that the message is segmented into 5,000 packets, with each packet being 1500 bits long. How long does it take to move the the first packet from the source host to the first packet switch? c) How long does it take to move the file from the source host to the destination host when message segmentation is used? Compare with part A and comment. d) Discuss the drawbacks of message segmentation. a) Time to send message from source host to first packet switch = 7.5 × 106 sec = 5 sec . With store-and-forward switching, the total time to move 1.5 × 106 message from source host to destination host = 5 sec× 3 hops = 15 sec b) Time to send 1st packet from source host to first packet switch = 1.5 × 103 sec = 1 m sec. Time at which 2nd packet is received at the first switch = 1.5 × 106 time at which 1st packet is received at the second switch = 2 × 1 m sec = 2 m sec
  • 4. c) Time at which 1st packet is received at the destination host = 1 m sec× 3 hops = 3 m sec . After this, every 1msec one packet will be received; thus time at which last (5000th) packet is received = 3 m sec+ 4999 * 1m sec = 5.002 sec. It can be seen that delay in using message segmentation is significantly less (almost 1/3rd). d) Drawbacks: i. packets have to be put in sequence at the destination. ii. Message segmentation results in many smaller packets. Since header size is usually the same for all packets regardless of their size, with message segmentation the total amount of header bytes is more.