Computer Networks Homework 1



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

Solutions to the Sample Questions on Introduction

CH.1. Lecture # 2. Computer Networks and the Internet. Eng. Wafaa Audah. Islamic University of Gaza. Faculty of Engineering

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

Computer Networks - CS132/EECS148 - Spring

Chapter1: Exercises. Silvia Giordano ICA, EPFL. Project e-1

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

COMP 361 Computer Communications Networks. Fall Semester Midterm Examination

Final for ECE374 05/06/13 Solution!!

ECE/CS 372 introduction to computer networks. Lecture 2. Midterm scheduled for Tuesday, May 7 th

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

Architecture and Performance of the Internet

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

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

Transport Layer Protocols

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

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

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

Computer Networks and the Internet

DATA COMMUNICATIONS AND NETWORKING. Solved Examples

Operating Systems and Networks Sample Solution 1

Chapter 1 Computer Networks and the Internet

: Instructor

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

Clearing the Way for VoIP

Performance Evaluation of AODV, OLSR Routing Protocol in VOIP Over Ad Hoc

WAN Technology. Heng Sovannarith

WAN Data Link Protocols

Internet structure: network of networks

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

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

An Introduction to VoIP Protocols

Homework Assignment #1 Solutions

1 Introduction to mobile telecommunications

What s a protocol? What s a protocol? A closer look at network structure: What s the Internet? What s the Internet? What s the Internet?

Computer Networks CS321

VOICE OVER IP AND NETWORK CONVERGENCE

First Midterm for ECE374 03/09/12 Solution!!

Requirements of Voice in an IP Internetwork

Transport and Network Layer

5. DEPLOYMENT ISSUES Having described the fundamentals of VoIP and underlying IP infrastructure, let s address deployment issues.

The Impact of QoS Changes towards Network Performance

CSCI Topics: Internet Programming Fall 2008

ANALYSIS OF LONG DISTANCE 3-WAY CONFERENCE CALLING WITH VOIP

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Delay, loss, layered architectures. packets queue in router buffers. packets queueing (delay)

Protocols. Packets. What's in an IP packet

Network Edge and Network Core

Voice over Internet Protocol (VoIP) systems can be built up in numerous forms and these systems include mobile units, conferencing units and

Module 2 Overview of Computer Networks

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

Combining Voice over IP with Policy-Based Quality of Service

PART-A Questions. 9. What are the two parts of message inside the envelope?

Analog vs. Digital Transmission

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

IT Internet Architecture and Protocols. Lecture 02 Overview of Internet Architecture

Introduction cont. Some Structure in the Chaos. Packet switching versus circuit switching. Access networks and physical media

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Three Network Technologies

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

What is Network Latency and Why Does It Matter?

EINDHOVEN UNIVERSITY OF TECHNOLOGY Department of Mathematics and Computer Science

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

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

CS 5480/6480: Computer Networks Spring 2012 Homework 1 Solutions Due by 9:00 AM MT on January 31 st 2012

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

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

Network Simulation Traffic, Paths and Impairment

Computer Networks & Security 2014/2015

15-441: Computer Networks Homework 2 Solution

THE UNIVERSITY OF AUCKLAND

ECE 358: Computer Networks. Solutions to Homework #4. Chapter 4 - The Network Layer

Mixer/Translator VOIP/SIP. Translator. Mixer

GATE CS Topic wise Questions Computer Network

Data Networks Summer 2007 Homework #3

CS 78 Computer Networks. Internet Protocol (IP) our focus. The Network Layer. Interplay between routing and forwarding

File Transfer Protocol (FTP) Throughput Testing by Rachel Weiss

Introduction to Metropolitan Area Networks and Wide Area Networks

The Internet. Charging for Internet. What does 1000M and 200M mean? Dr. Hayden Kwok-Hay So

TCP/IP Protocol Suite. Marshal Miller Chris Chase

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

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

Exam 1 Review Questions

Chapter 3 ATM and Multimedia Traffic

Chapter 3: Sample Questions, Problems and Solutions Bölüm 3: Örnek Sorular, Problemler ve Çözümleri

QoS issues in Voice over IP

Routing in packet-switching networks

Performance Evaluation of VoIP Services using Different CODECs over a UMTS Network

Sources: Chapter 6 from. Computer Networking: A Top-Down Approach Featuring the Internet, by Kurose and Ross

Computer Network. Interconnected collection of autonomous computers that are able to exchange information

Network Technologies

Basic Multiplexing models. Computer Networks - Vassilis Tsaoussidis

How To Understand The Internet From A Telephone To A Computer (For A Computer)

Voice over IP: RTP/RTCP The transport layer

VOICE over IP H.323 Advanced Computer Network SS2005 Presenter : Vu Thi Anh Nguyet

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

Latency on a Switched Ethernet Network

Operating System Concepts. Operating System 資 訊 工 程 學 系 袁 賢 銘 老 師

Packetized Telephony Networks

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

Transcription:

Computer Networks Homework 1 Reference Solution 1. (15%) Suppose users share a 1 Mbps link. Also suppose each user requires 100 kbps when transmitting, but each user transmits only 10 percent of the time. (a) When circuit switching is used, how many users can be supported? (b) For the remainder of this problem, suppose packet switching is used. Find the probability that a given user is transmitting. (c) Suppose there are 50 users. Find the probability that at any given time, exactly 10 users are transmitting simultaneously. (Hint: Use the binomial distribution). a) 10 users can be supported because each user requires one tenth of the bandwidth. b) p 0. 1. 50 1 10 p p 10 c) 40 2. (10%) In this problem we consider sending real-time voice from Host A to Host B over a packet-switched network (VoIP). Host A converts analog voice to a digital 64 kbps bit stream on the fly. Host A then groups the bits into 64-byte packets. There is one link between Host A and B; its transmission rate is 1 Mbps and its propagation delay is 5 msec. As soon as Host A gathers a packet, it sends it to Host B. As soon as Host B receives an entire packet, it converts the packet's bits to an analog signal. How much time elapses from the time a bit is created (from the original analog signal at Host A) until the bit is decoded (as part of the analog signal at Host B)? Before transmit this bit, it has to wait other bits in this group. t1 =64 8/(64 1000) = 8ms d trans = 64 8bits/1Mbps = 0.512ms d prop = 5ms T = t1 + d trans + d prop = 13.512ms

3. (15%) Suppose there is a 10 Mbps microwave link between a geostationary satellite and its base station on Earth. Every minute the satellite takes a digital photo and sends it to the base station. Assume a propagation speed of 2.4 10 8 meters/sec. The distance between earth and geostationary satellite approach to 3.6 10 7 m a. What is the propagation delay of the link? b. What is the bandwidth-delay product, R dprop? c. Let x denote the size of the photo. What is the minimum value of x for the microwave link to be continuously transmitting? (a)dprop = 3.6 10 7 / (2.4 10 8 ) = 0.15 s (b) R dprop = 10 7 0.15 = 1.5 10 6 bits (c)x = 10 7 60 = 6 10 8 bits 4. (15%) Consider two hosts, A and B, connected by a single link of rate R bps. Suppose that the two hosts are separated by m meters, and suppose the propagation speed along the link is s meters/sec. Host A is to send a packet of size L bits to Host B. The transmission time of the packet is d trans. The propagation delay is d prop. a) Suppose Host A begins to transmit the packet at time t = 0. At time t = d trans, where is the last bit of the packet? b) Suppose d prop is greater than d trans. At time t=d trans, where is the first bit of the packet? c)suppose d prop is less than d trans. At time t = d trans, where is the first bit of the packet? a) the bit is just leaving node A b)the first bit is in the link (it has not reached B yet) c) the first bit has reached B 5. (15%) Consider sending a packet of F bits over a path of Q links. Each link transmits at R bps. The network is lightly loaded so that there are no queueing delays. Propagation delay and processing delay are negligible. a) Suppose the network is a packet switched virtual circuit network. Denote the VC setup

time by t s seconds. Suppose the sending layers add a total of h bits of header to the packet. How long does it take to send the file from source to destination? b) Suppose the network is a packet switched datagram network and a connectionless service is used. Now suppose each packet has 2h bits of header. How long does it take to send the packet? c) Finally, suppose that the network is a circuit-switched network. Further suppose that the transmission rate of the circuit between source and destination is R bps. Assuming t s setup time and and h bits of header appended to the packet, how long does it take to send the packet. (a) total time = ts + Q * (F + h)/r (b) total time = Q * (F + 2h)/R (c) total time = ts + (F + h)/r 6. (10%)Suppose within your web browser you click on a link to obtain a web page. The IP address for the associated URL is not cached in your local host, so a DNS look-up is necessary to obtain the IP address. Suppose that n DNS servers are visited before your host receives the IP address from DNS; the successive visits incur an RTT (Round Trip Time) of RTT1,... RTTn. Further suppose that the web page associated with the link contains exactly one object, consisting of a small amount of HTTP text. Let RTT0 denote the RTT between the local host and the remote server containing the object. Assuming zero transmission time of the object, how much time elapses from when the client clicks on the link until the client receives the object? Time to visit DNS servers and get IP address = RTT1 + RTT2 +... + RTTn Time to establish TCP connection (SYN and SYNACK) = RTT0 Time to send HTTP request and receive reply = RTT0 Total time = 2 * RTT0 + (RTT1 + RTT2 +... + RTTn) 7.(10%). 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 a relatively long period of time. Answer the following questions, briefly justifying your answer: (a)would a packet-switched network or a circuit-switched network be 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 as described above. Furthermore, 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. 8.(10%) 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.5x10 6 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?

Sol a) Time to send message from source host to first packet switch = 7.5 10 6 / 1.5 10 6 sec = 5 sec. With store-and-forward switching, the total time to move 7.5 10 6 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 10 3 / 1.5 10 6 sec = 1 msec. Time at which 2nd packet is received at the first switch = 2* (1.5 10 3 / 1.5 10 6 ) = 2 m sec. Time at which 1st packet is received at the second switch = 2 1 m sec = 2 m sec.