Operating Systems and Networks Sample Solution 1



Similar documents
Homework Assignment #1 Solutions

First Midterm for ECE374 02/25/15 Solution!!

Network Performance: Networks must be fast. What are the essential network performance metrics: bandwidth and latency

THE UNIVERSITY OF AUCKLAND

Computer Networks Homework 1

DATA COMMUNICATIONS AND NETWORKING. Solved Examples

EXAMPLES AND PROBLEMS. Competence Based Education Internet Protocols

Exam 1 Review Questions

Referring to the above question, the end-to-end delay (transmission delay plus propagation delay) is

R2. The word protocol is often used to describe diplomatic relations. How does Wikipedia describe diplomatic protocol?

The Impact of QoS Changes towards Network Performance

Final for ECE374 05/06/13 Solution!!

Frequently Asked Questions

CSE3214 Computer Network Protocols and Applications. Chapter 1 Examples and Homework Problems

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

Professor: Ian Foster TAs: Xuehai Zhang, Yong Zhao. Winter Quarter.

Internet Infrastructure Measurement: Challenges and Tools

Data Networks Summer 2007 Homework #3

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

Assignment #3 Routing and Network Analysis. CIS3210 Computer Networks. University of Guelph

Homework Assignment #3 Due 11/20 at 5:00pm EE122 Fall 2012

What is Network Latency and Why Does It Matter?

Application Note. Windows 2000/XP TCP Tuning for High Bandwidth Networks. mguard smart mguard PCI mguard blade

Performance of VMware vcenter (VC) Operations in a ROBO Environment TECHNICAL WHITE PAPER

Based on Computer Networking, 4 th Edition by Kurose and Ross

Improving Effective WAN Throughput for Large Data Flows By Peter Sevcik and Rebecca Wetzel November 2008

pathchar a tool to infer characteristics of Internet paths

Architecture and Performance of the Internet

First Midterm for ECE374 03/24/11 Solution!!

NETWORK LAYER/INTERNET PROTOCOLS

GATE CS Topic wise Questions Computer Network

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

Homework 2 assignment for ECE374 Posted: 02/21/14 Due: 02/28/14

Network Layer: and Multicasting Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

D1.2 Network Load Balancing

Technical Support Information Belkin internal use only

Network Troubleshooting

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

>>> SOLUTIONS <<< c) The OSI Reference Model has two additional layers. Where are these layers in the stack and what services do they provide?

Chapter 4 Connecting to the Internet through an ISP

Technical Glossary from Frontier

EECS 489 Winter 2010 Midterm Exam

CTS2134 Introduction to Networking. Module 07: Wide Area Networks

TCP/IP Protocol Suite. Marshal Miller Chris Chase

TFTP TRIVIAL FILE TRANSFER PROTOCOL OVERVIEW OF TFTP, A VERY SIMPLE FILE TRANSFER PROTOCOL FOR SIMPLE AND CONSTRAINED DEVICES

AKAMAI WHITE PAPER. Delivering Dynamic Web Content in Cloud Computing Applications: HTTP resource download performance modelling

Mobile Communications Exercise: Satellite Systems and Wireless LANs. Georg von Zengen, IBR, TU Braunschweig,

A SENSIBLE GUIDE TO LATENCY MANAGEMENT

Answer: that dprop equals dtrans. seconds. a) d prop. b) d trans

Chapter 9A. Network Definition. The Uses of a Network. Network Basics

Schedule 2e. Additional terms for Ethernet services

Frame Burst Adjusting for Transmitting Video Conference in Gigabit Ethernet

IP addressing and forwarding Network layer

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Network administrators must be aware that delay exists, and then design their network to bring end-to-end delay within acceptable limits.

CCNA Discovery Chapter Four

Question: 3 When using Application Intelligence, Server Time may be defined as.

CS640: Introduction to Computer Networks. Applications FTP: The File Transfer Protocol

Software Defined Networking (SDN) - Open Flow

Application Performance Analysis and Troubleshooting

Lecture 8 Performance Measurements and Metrics. Performance Metrics. Outline. Performance Metrics. Performance Metrics Performance Measurements

The Internet and Its Uses

Outline. CSc 466/566. Computer Security. 18 : Network Security Introduction. Network Topology. Network Topology. Christian Collberg

Mike Canney Principal Network Analyst getpackets.com

Tier3 Network Issues. Richard Carlson May 19, 2009

Computer Networks CS321

EECC694 - Shaaban. Transmission Channel

How do I get to

Application Level Congestion Control Enhancements in High BDP Networks. Anupama Sundaresan

ECE 358: Computer Networks. Homework #3. Chapter 5 and 6 Review Questions 1

Clearing the Way for VoIP

Life of a Packet CS 640,

Introduction. Abusayeed Saifullah. CS 5600 Computer Networks. These slides are adapted from Kurose and Ross

Lab 2. CS-335a. Fall 2012 Computer Science Department. Manolis Surligas

Guideline for setting up a functional VPN

Wide Area Network Latencies for a DIS/HLA Exercise

Schedule 2t. Additional terms for Fast Trade - Online Ordering

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Overview of Computer Networks

Ring Local Area Network. Ring LANs

Prefix AggregaNon. Company X and Company Y connect to the same ISP, and they are assigned the prefixes:

CHAPTER 1 PRINCIPLES OF NETWORK MONITORING

RTT 60.5 msec receiver window size: 32 KB

Homework 2 assignment for ECE374 Posted: 02/20/15 Due: 02/27/15

Attenuation (amplitude of the wave loses strength thereby the signal power) Refraction Reflection Shadowing Scattering Diffraction

Applications. Network Application Performance Analysis. Laboratory. Objective. Overview

Host Fingerprinting and Firewalking With hping

Troubleshooting Tools

ITL Lab 5 - Performance Measurements and SNMP Monitoring 1. Purpose

Exercises TCP/IP Networking. Solution. With Solutions

Solutions to the Sample Questions on Introduction

Deploying in a Distributed Environment

Using Linux Traffic Control on Virtual Circuits J. Zurawski Internet2 February 25 nd 2013

Network Performance Evaluation of Latest Windows Operating Systems

Performance Analysis of IPv4 v/s IPv6 in Virtual Environment Using UBUNTU


Transcription:

Spring Term 2014 Operating Systems and Networks Sample Solution 1 1 byte = 8 bits 1 kilobyte = 1024 bytes 10 3 bytes 1 Network Performance 1.1 Delays Given a 1Gbps point to point copper wire (propagation speed 200m/µs) with a length of 3km. a) What is the transmission time for a 16 MB file? t transmission = L R = 16MB 1Gbps = 16 106 byte 10 9 bit s 1 = 1.6 107 8bit 10 9 bit s 1 = 0.128s b) What is the propagation delay? t propagation = d s = 3km 200m/µs = 3000m 200m/10 6 s = 15µs 1.2 Throughput What is the throughput when retrieving a file across a 1Gbps network with a round trip time of 150msec, again ignoring ACKs? Assuming that the file transfer has to be initiated by a request: R = 150msec + 1Gbps = 150msec + 32msec = 4 8Mbit = 175.82M bps 0.182s Otherwise: R = 75msec + 1Gbps = 75msec + 32msec = 4 8Mbit = 299.07M bps 0.107s 1.3 Total Time Calculate the total time required to transfer a 1 000 KB file in the following cases, assuming an RTT of 100 ms, a of 1-KB data, and an initial 2 x RTT of handshaking before data is sent. The following solutions assume that the sender does not wait for a reply from the receiver after the last packet(s) have been sent, thus requiring only a wait time of 1 2RT T instead of a full RT T. However, the exercise could also be interpreted differently. In that case, the total transfer time would be increased by 1 2 RT T.

a) The total transfer time is the sum of the propagation delay: 1 2 RT T the transmission time: 1000 bandwidth total transfer time = 0.2s + 0.05s + 1000 8 10 3 bit 1.5 10 6 bit s b) The total transfer time is the sum of the transfer time for 999 packets: 999 (RT T + 5.583s bandwidth ) 1 the transfer time for the last packet: 2RT T + bandwidth To put it another way, the total transfer time is the sum of the propagation delay and the time we have to wait due to the protocol: 999 1 2 RT T ( ) total transfer time = 0.2s + 999 1 2 0.1s + 1000 8 10 3 bit c) The total transfer time is the sum of 1.5 10 6 bit s bandwidth ) 105.483s the propagation delay and the time we have to wait due to the protocol: 49.5 RT T bandwidth ) = 0 total transfer time = 0.2s + 4.95s + 0s = 5.15s d) We need 10 RTTs to transmit the 1000 packets. The total transfer time is the sum of the propagation delay and the time we have to wait due to the protocol: 9.5 RT T bandwidth ) = 0 total transfer time = 0.2s + 9.5 0.1s + 0s = 1.15s 1.4 Transmission Time How long does it take to transmit x KB over a y Mb/s link? Give your answer as a ratio of x and y. t = 8192x 1 000 000y or with the rule of thumb t = 8 1 000x 1 000 000y = x 125 y 2 Network Characteristics 2.1 Width of a Bit Determine the width of a bit on a 10 Gbps link. propagation is 2.3 10 8 m/s. 2.3 10 8 m s 1 10 10 9 bit s 1 = 0.023m/bit A single bit has a width of 2,3 cm on the wire. Assume a copper wire, where the speed of 2

2.2 Transport media You have the task to deliver a large data set from Zurich to Chicago (Distance: 6500km) and a choice of different transport media. The first option is a fiber-optical transatlantic link with a bandwidth of 100 Gbps. The signal propagation in the optical fiber is 200 000 km/s. The second option is a Boeing 747 plane with a capacity for delivering 120 tonnes of hard disks with a speed of 800 km/h from Zurich to Chicago. The weight of a hard disk is 600 grams and the capacity is 2TB. a) If your task was to broadcast a soccer match from Zurich to Chicago in real time, which of the properties of the two transport links would be dominating? Which transport would be your choice? Explain your arguments with numbers. We assume that the bandwidth is sufficient for the live broadcast in either of the two options. Hence, a minimal transmission delay is the determining factor. For the optical fiber V O or the air plane V P : V O = d s = 6500km 200000km s = 32.5ms V 1 P = d s = 6500km 800 km h = 8.125h(= 29250s) As one could assume, the optical fiber has the lower transmission delay than the air plane. Furthermore, the plane would have to wait until the end of the match before it could take off to transmit the data. b) If your task was to transfer a full backup of all ETH server disks (total capacity 2 PB) to Chicago, which parameters would then be most important and what is the numerical size? Where is the crossover point so that choosing the Boeing plane is preferable over the transatlantic link? Here, the bandwidth is the dominating criteria. For the optical fiber, it is R O = 100Gbps. For the air plane, the bandwidth R P is: #discs = 120t 600g = 200000 capacity plane = 200000 2T B = 400 000T B transmission delay = V P = 29250s capacity plane R P = = 109.40T bps transmission delay The Boeing can transmit 400 000 TB of data in 8.12 h. In the same time, the optical fiber can transmit: 100Gbps 29250s 8 = 365.63T B If the amount of data is larger than 292.5 TB, then the plane is faster. c) Consider a third location on a ship 2000 km away from Zurich. The link to the computer on the ship is through a geostationary satellite half way between the ship and Zurich and in an altitude above ground of 36 000 km. Let the signal propagation be the speed of light ( 300 000 km/s). If you try to send a ping to the computer in Chicago connected through the fiber-optical link and to the computer on the ship at the same time, which one will be the first to respond? Which of the parameter has the main impact? Here, the dominating parameter is the round-trip-time. For the optical fibre, we know that the transmission delay is V O = 32.5ms. As a simplification, we take the RTT as twice the transmission delay, so RT T O = 65ms. If the satellite is in the optimal position, we can 36000km 300000 km s 1 approximate the distance with the altitude above ground. V S = 2 = 240ms This is again the delay. The time until we receive the reply is therefore RT T S = 480ms. The Chicago-based computer with 65ms via optical fibre will respond before the geographically closer computer on the ship connected through the satellite link with 480ms. 3 Network tools 3.1 ping a) ping and RTT 3

(a) (b) The RTT can be determined by measuring the time where the request packet has been sent and the time when the response has been received. This measurement uses the same clock since it happens on the same machine. (c) The latency, in contrast, requires a measurement on two different machines that connect each other with the same path. Otherwise, it would require the two independent clocks in these machines to be perfectly time-synchronized. In practice, this is hard to achieve. b) Calculate the bandwidth using ping (a) Considering a connection between hosts A and B, we measure the RTT using ping. We assume that this RTT Z of a connection having bandwidth R for a given package size L consists of a transmission delay ) L R and a further delay V. Thereby, we ignore any processing delays on the machine B. ( ) L Z = 2 R + V The factor 2 comes from the fact that the ping response package has the same size as the request package. This formula is unable to determine the bandwidth having only L and Z since V is unknown. However, taking two measurements for different package sizes L 1 and Z 1 respectively L 2 and Z 2, assuming: L 1 > L 2 und Z 1 > Z 2, one gets two versions of the equation and is able to solve both equations for V. For L 1 and Z 1, this is: V = Z 1 2 L 1 (2) R Under the assumption that the further delays V do not change much for different package sizes, one can identify the two equations for V. Now solving the resulting equation for R, the formula for the bandwidth is: R = 2 L 1 L 2 Z 1 Z 2 (3) The exercise can also be solved by empirically measuring the RTT for different package sizes, drawing a diagram, and approximating the measurements through a line. Then, the bandwidth corresponds to two times the gradient of the line. (b) The ping package size can be changed on Linux using the -s switch (e.g., ping -s 100 www.sbb.ch, for sending 100 Bytes of data). On UNIX machines, the -s uses a slightly different format (ping -s www.sbb.ch 100). On Windows machines, the option to use is -l (ping -l 100 www.sbb.ch). (c) We calculate the mean value of the RTTs of the measurements for different package sizes. With the formula determined before, we calculate R. The value can vary significantly due to variations in network utilization and the relatively small package sizes. The package sizes, however, should not exceed the size limitations of and Ethernet frame (1518 Bytes, 1500 payload plus IP and ICMP headers); larger packages get fragmented which affects the measurement. A typical value for R is in the Mbps range. (1) 3.2 traceroute a) Hosts in Switzerland typically have domain names ending with.ch. Our path to www.joke.com.au contains these hosts: 1 rou-cx-1-service-inf-isg-cx-server-1.ethz.ch (129.132.216.1) 2 rou-ref-hci-service-inf.ethz.ch (10.1.18.38) 3 rou-fw-hci-service-inf-isg.ethz.ch (10.1.18.34) 4 rou-fw-rz-fw-cla.ethz.ch (192.33.92.185) 5 rou-rz-gw-fwrz-gwrz-core.ethz.ch (192.33.92.170) 6 swiez2.ethz.ch (192.33.92.11) 7 swiix2-10ge-3-1.switch.ch (130.59.36.250) 4

b) One can try to find a machine in a geographically remote location or in a country with a low level of industrialization. For instance, the webserver of the University of Tokio (www.u-tokyo.ac.jp) is 30 hops away from ETHZ. c) The -t option (resp. -i for Windows) changes the time to live (TTL) of the packets that ping generates and the value of TTL corresponds to the maximum number of hops taken. Using this option, one can iteratively determine the maximum number of hops that a packet can traverse. d) We make use of the following observation: if the TTL expires for a ping request, then the hop on which the TTL has expired will respond and tell us. This way, we can get a response from each machine on the path to the target machine when beginning with a TTL of 1 and iteratively increment the TTL until we reach the target host. 3.3 curl a) discussed in the recitation session b) http://google.com/ sends you a 301 Moved Permanently and tells you that the new URL is http://www.google.com/. This page, in turn is very likely sending you a 302 Found with a rederict to the swiss google homepage http://www.google.ch/. 3.4 Wireshark a) discussed in the recitation session b) We can use Wireshark to capture the traffic and inverstigate the packet payload. 5