Problems.

Slides:



Advertisements
Similar presentations
EE:450 – Computer Networks
Advertisements

PERFORMANCE One important issue in networking is the performance of the networkhow good is it? We discuss quality of service, an overall measurement.
ECE358: Computer Networks Fall 2014
1 Data Networks Summer 2007 Midterm Exam ProblemsPoints Total Name: _________________________ _________________________ Student ID: _____________________.
Assume that a file is transferred from a node A to a node B. The file has been fragmented in 5 frames. Frame 0 is corrupted, the ACK of frame 1 is corrupted,
Computer Networks Performance Metrics Computer Networks Term B10.
Fundamentals of Computer Networks ECE 478/578
Hui Zhang, Fall Computer Networking TCP Enhancements.
COMT Performance of Data Communications Protocols General Protocol Concepts.
CECS 474 Computer Network Interoperability Notes for Douglas E. Comer, Computer Networks and Internets (5 th Edition) Tracy Bradley Maples, Ph.D. Computer.
ECE 4450:427/527 - Computer Networks Spring 2015
James 1:5 If any of you lacks wisdom, he should ask God, who gives generously to all without finding fault, and it will be given to him.
Computer Networks Computer Networks Term B10 Network Delay Network Delay Performance Problems.
1 K. Salah Module 2.1: QA – Putting it all together What is the max number of users/connections/sessions a particular network can support for handling.
Transport Layer 3-1 Transport Layer r To learn about transport layer protocols in the Internet: m TCP: connection-oriented protocol m Reliability protocol.
Lecture 2 Introduction 1-1 Chapter 1: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit.
Katz, Stoica F04 EECS 122: Introduction to Computer Networks Performance Modeling Computer Science Division Department of Electrical Engineering and Computer.
Lecture Internet Overview: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit switching,
Calculating “a”. a Used as a term in analyzing many network characteristics Has a physical interpretation Represents the number of frames on a link.
Lecture Internet Overview: roadmap 1.1 What is the Internet? 1.2 Network edge  end systems, access networks, links 1.3 Network core  circuit switching,
Advanced Computer Networks 1 Sample Network Performance Problems.
Ch. 28 Q and A IS 333 Spring Q1 Q: What is network latency? 1.Changes in delay and duration of the changes 2.time required to transfer data across.
 Frequency Spectrum and Bandwidth  Other Definitions of Bandwidth  Digital Signals.
Chapter 3 part II Data and Signals
Lecture 1, 1Spring 2003, COM1337/3501Computer Communication Networks Rajmohan Rajaraman COM1337/3501 Textbook: Computer Networks: A Systems Approach, L.
Switching Techniques Student: Blidaru Catalina Elena.
Lecture 2 Performance Metrics. Bandwidth Delay Bandwidth-delay product Latency Throughput.
3.1 Figure 3.16 Two digital signals: one with two signal levels and the other with four signal levels.
1 Computer Communication & Networks Lecture 4 Circuit Switching, Packet Switching, Delays Waleed.
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 8.
Exercises. Problem 1 The link delay is 270ms. Each data frame is 1000 bits. Data rate is 1Mbps. What is the link efficiency of the Stop&Wait protocol?
Computer Networks Performance Metrics. Performance Metrics Outline Generic Performance Metrics Network performance Measures Components of Hop and End-to-End.
02 – Performance Basics 1CS Computer Networks.
COMT 4291 Performance of Data Communications Protocols General Protocol Concepts.
CSE 461: Bits and Bandwidth Next Topic  Focus: How do we send a message across a wire?  The physical / link layers: 1. Different kinds of media 2.
CS 164: Slide Set 2: Chapter 1 -- Introduction (continued).
ICOM 6115©Manuel Rodriguez-Martinez ICOM 6115 – Computer Networks and the WWW Manuel Rodriguez-Martinez, Ph.D. Lecture 7.
Networking Fundamentals. Basics Network – collection of nodes and links that cooperate for communication Nodes – computer systems –Internal (routers,
IT 210: Web-based IT Winter 2012 Measuring Speed on the Internet and WWW.
Lec 17. 4/2/14 Anthony D. Joseph CS162 ©UCB Spring 2014 CS162 S ECTION 8.
Chapter 3 Data and Signals. 3.2 Last Lecturer Summary Bit Rate Bit Length Digital Signal as a Composite Analog Signal Application Layer Distortion Noise.
What is the Speed of the Internet? Internet Computing KUT Youn-Hee Han.
ELEC6113: Wireless and Mobile Networks Session 5: Data Link Protocols. Local Area Networks – Case Study Ethernet (I).
9-Jan-164/598N: Computer Networks Overview Performance metrics - Section 1.5 Direct link networks –Hardware building blocks - Section 2.1 –Encoding - Section.
Lecture Focus: Data Communications and Networking  Transmission Impairment Lecture 14 CSCS 311.
CS168 and EE122 GSIs past and present
WAN Transmission Media
Computer Communication & Networks Lecture # 10. Bandwidth ϞBand Width means the width of the band (channel) ϞIt is the maximum capacity of a link ϞThat.
CSE 413: Computer Network Circuit Switching and Packet Switching Networks Md. Kamrul Hasan
CSCI 465 D ata Communications and Networks Lecture 10 Martin van Bommel CSCI 465 Data Communications & Networks 1.
McGraw-Hill Chapter 23 Process-to-Process Delivery: UDP, TCP Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Chapter 2 : Data Communications BENG 4522 Data Communications & Computer Networks Transmission Impairment Signals travel through the transmission.
Chapter 3 TRANSMISSION IMPAIRMENT. 3-4 TRANSMISSION IMPAIRMENT Signals travel through transmission media, which are not perfect. The imperfection causes.
1 Ram Dantu University of North Texas, Practical Networking.
CSE 331: Introduction to Networks and Security Fall 2000 Instructor: Carl A. Gunter Slide Set 2.
Lecture # 3: WAN Data Communication Network L.Rania Ahmed Tabeidi.
Computer Networking Lecture 16 – Reliable Transport.
CSEN 404 Introduction to Networks Amr El Mougy Lamia AlBadrawy.
Exercises on Data Link Layer.
Competence Based Education – Internet Protocols E XAMPLES AND P ROBLEMS.
Week-7 (Lecture-1) Internet Protocols: TCP/IP, Client Server: Protocol: Specification in networking and Communications It defines the procedures to be.
1) By using hamming code (even – parity), Show the correct binary number that transmitted by the sender if the receiver received binary number.
ECE 544 Protocol Design Project 2016
Performance Questions
CS Lecture 2 Network Performance
Net301 LECTURE 10 11/19/2015 Lect
A simple network connecting two machines
Propagation & Transmission delay
Ram Dantu University of North Texas,
Ram Dantu University of North Texas,
Presentation transcript:

Problems

For a 5 Kbytes packets sent over a 10 Mbps transmission link, what is the transmission time of the packet? (5K x 8) / 10M = 4 msec 2. A 600-byte packet is sent over a 20 Kbps point-to-point link whose propagation delay is 10 msec. After how much delay will the packet reach the destination? 10 msec + (600 x 8) / 20K = 250 msec

3. Given a 1 Gbps point to point copper wire (propagation speed 200m/μs) with a length of 2km. Ignoring the acknowledgments, a) how much is the transmission time for a 10 MB file? Transmission time= Data Length/Data Rate=L/R= (10*10^6*8) /(1*10^9)=0.08secb) how much is the propagation delay? Propagation delay=Distance/propagation=D/V =(2*10^3)/(200/10^-6)=10μsec

4 .What is the throughput when retrieving a 1MB file across a 1Gbps network with a round trip time of 100msec, again disregarding ACKs? Throughput =TransferSize/Transfer time Transfer time =RTT+(1/Bandwidth)*Transfer Size = (100*10^3)+(1/10^9)*(8*10^6)=108msec Throughput=(8*10^6)/(108*10^-3)=74.074 Mbps

5. Consider a point-to-point link 2 km in length 5. Consider a point-to-point link 2 km in length. At what bandwidth would propagation delay (at a speed of 2 × 108 m/s) equal transmit delay for 100-byte packets? What about 512-byte packets? Solution: Since transmit = size/bandwidth and propagation = distance/speedoflight = 2*103 m / (2*108 m/s)‏ = 1*10-5 s, we can conclude that bandwidth = size / (distance/speed of light). 100 byte / 1*10-5 s = 10 MB/s = 80 Mbps 512 byte / 1*10-5s = 409.6 Mbp

6. How “wide” is a bit on a 1-Gbps link 6. How “wide” is a bit on a 1-Gbps link? How long is a bit in copper wire, where the speed wide” of propagation is 2.3*108m/s? Solution: 1Gbps = 109bps, and 1 bit on a 1-Gbps link is 1/109bps= 10- 9s wide. If the speed of propagation is 2.3*108 m/s, then the length of a bit is (2.3*108 m/s) * (10-9 s) =0.23m

7. Suppose a 100-Mbps point-to-point link is being set up between Earth and a new lunar colony. The distance from the moon to Earth is 385000 km and data travels over the link at colony. the speed 3 x 108m/s. (a) Calculate the minimum RTT for the link. (b) Using the RTT as the delay, calculate the delay*bandwidth product for the link. (c) What is the significance of the delay*bandwidth product computed in (b). (d) A camera on the lunar base takes pictures of Earth and saves them in digital format to disk. Suppose Mission Control on Earth wishes to download the most current image, which is 25MB. What is the minimum amount of time that will elapse between when the request for the data goes out and the transfer is finished? Solution: (a) RTT = 2*distance/speed = 2*3.85*108m / (3*108m/s) = 2.567s (b) Delay*bandwidth = 2.567s*100Mbps = 256.7Mb = 32.09 MB (c) The delay*bandwidth product corresponds to how many bits the sender must transmit before the first bit arrives at the receiver. (d) Total transfer time = RTT + transmit time = 2.567s + size/bandwidth = 2.567s + (25*8/100) s =4.567s

8. Calculate the latency (from first bit sent to last bit received) for the following: (a) A 10-Mbps Ethernet with a single store-and-forward switch in the path, and a packet size of 5000 bits. Assume that each link introduces a propagation delay of 10 μs, 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 (a) but assume the switch implements “cut-through” switching: it is able to begin cut-through” retransmitting the packet after the first 200 bits have been received. Solution: (a) Each line has a transmit delay = size / bandwidth = 5000 bits / 10 Mbps = 5*10-4 s. There are 2 links, each produces 2*10*10-6 s = 2*10-5s. So the latency is 2*transmit delay + propagation delay = 1.02*10-3 s. (b) 3 switches have 4 lines. The latency is 4*transmit delay + 4*propagation delay = 2.04*10-3 s. (c) With “cut-through” switching, the transmit delay of the first line is 200 bits / 10 Mbps = 2*10-5s. So the latency = 2*propagation delay + first transmit delay + second transmit delay = 2*10-5s +2*10-5 s + 5*10-4 s = 5.4*10-4 s.

9. Suppose that a certain communications protocol involves a per-packet overhead of 100 bytes for headers and framing. We send 1 million bytes of data using this protocol; however, one data type is corrupted and the entire packet containing it is thus lost. Give the total lost. number of overhead + loss bytes for packet data sizes of 1000, 5000, 10000, and 20000 bytes. Which size is optimal? Solution: Packet number = 1*106 / Data Size. Total overhead = 100 bytes * Packet number = 100*(1*106 / Data Size) Lose = data size Total size = total overhead + lose = 100*(1*106 / Data Size) + data size 1000 bytes: 1*108 / 1000 + 1000 =1.01*105 5000 bytes: 1*108 / 5000 + 5000 = 2.5*104 10000 bytes: 1*108 / 10000 + 10000 =2*104 20000 bytes: 1*108 / 20000 + 20000 =2.5*104 The 10000 bytes is optimal.

10. Assume you wish to transfer an n-byte file along a path composed of the source, destination, seven point-to-point links, and five switches. Suppose each link has a propagation delay of 2 ms, bandwidth of 4 Mbps, and that the switches support both circuit and packet switching. Thus you can either break the file up into 1-KB packets, or set up a circuit through the switches and send the file as one contiguous bit stream. Suppose that packets have 24 bytes of packet header information and 1000 bytes of payload, that store-and-forward packet processing at each switch incurs a 1-ms delay after the packet has been completely received, that packets may be sent continuously without waiting for acknowledgments, and that circuit setup requires a 1-KB message to make one round-trip on the path incurring a 1-ms delay at each switch after the message has been completely received. Assume switches introduce no delay to data traversing a circuit. You may also assume that file size is a multiple of 1000 bytes. (a) For what file size n bytes is the total number of bytes sent across the network less for circuits than for packets? (b) For what file size n bytes is the total latency incurred before the entire file arrives at the destination less for circuits than for packets?

Solution: A) Packet switching: packets pay an ongoing per packet cost of 24 Bytes for a total count of 1024 x (number of packets) = 1024 * n / 1000 bytes Circuit switching: circuits pay an up-front penalty of 1KB being sent across the network twice for a total data count of 2000 + n bytes So the question really asks how many packet headers does it take to exceed 2000 bytes, which is ~ 83.34. Thus, for files longer than ~ 83,340 bytes, using packets results in more total data sent.

B Packet switching: Total transfer latency = (transmit delay for all pkts at the source)+ (per-pkt transmit delay introduced by each switch)+ (per-pkt processing delay introduced by each switch)+ (propagation delay for all links)‏ = (c*t) + (x*t) + (x*0.001) + ((x+1) * 0.001)‏ = 2.731*10-6n + 0.01992 c: number of packets = n/1000 t: transmission time of a packet = 1024*8bit/3Mbps x: number of switches = 4 b: bandwidth = 3Mbps

Circuit switching: Total transfer latency = (transmit delay for the whole file at source)+(propagation delay for all links)+ (setup time for the circuit)‏ = 8n/b + ((x+1)*0.001)+ 2*(1000*8/b + (x*1000*8/b) + (x*0.001) + ((x+1)*0.001))‏ = 2.667*10-6n + 0.04967seconds 2.731*10-6n + 0.01992 > 2.667*10-6n + 0.04967 Solving => n > 465KB (rounding to the next 1000 bytes)‏

11. Consider a point-to-point link 2km in length 11. Consider a point-to-point link 2km in length. At what bandwidth would propagation delay (at a speed of 2 x 108m/s) equal transmit time for 100-byte packets? What about 512-byte packets?-Propagation delay=D/V= (2*10^3)/(2*10^8)=10^-5 sec- Transmission time for 100 bytespackets=L/R=(100*8)/R=10^-5, so R= 80Mbps Transmission time for 512 bytespackets=L/R=(512*8)/R=10^-5, R= 409.6Mbps