15-441: Computer Networks Homework 1



Similar documents
DATA COMMUNICATIONS AND NETWORKING. Solved Examples

Lecture 3: Signaling and Clock Recovery. CSE 123: Computer Networks Stefan Savage

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

EECC694 - Shaaban. Transmission Channel

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

1. (Ungraded) A noiseless 2-kHz channel is sampled every 5 ms. What is the maximum data rate?

Physical Layer, Part 2 Digital Transmissions and Multiplexing

CSE 123: Computer Networks Fall Quarter, 2014 MIDTERM EXAM

Solutions to the Sample Questions on Introduction

- T-Carrier Technologies -

EXAMPLES AND PROBLEMS. Competence Based Education Internet Protocols

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

: Instructor

Stop And Wait. ACK received; transmit frame 2 CS 455 3

What s The Difference Between Bit Rate And Baud Rate?

Computer Networks Homework 1

Data Link Layer(1) Principal service: Transferring data from the network layer of the source machine to the one of the destination machine

Analog vs. Digital Transmission

THE UNIVERSITY OF AUCKLAND

GATE CS Topic wise Questions Computer Network

Operating Systems and Networks Sample Solution 1

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

10/13/2008 Vasile Dadarlat --Computer Networks 1

Exhibit n.2: The layers of a hierarchical network

Data Link Layer Overview

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

TCOM 370 NOTES 99-6 VOICE DIGITIZATION AND VOICE/DATA INTEGRATION

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

The Problem with Faxing over VoIP Channels

How To Encode Data From A Signal To A Signal (Wired) To A Bitcode (Wired Or Coaxial)

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

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

Homework Assignment #1 Solutions

TCP/IP Network Communication in Physical Access Control

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

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

Public Switched Telephone System

WAN Data Link Protocols

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

Broadband Networks. Prof. Dr. Abhay Karandikar. Electrical Engineering Department. Indian Institute of Technology, Bombay. Lecture - 29.

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

(Refer Slide Time: 2:10)

Raj Jain. The Ohio State University Columbus, OH These slides are available on-line at:

This chapter discusses Synchronous Data Link Control (SDLC) protocols that you can configure on a BANDIT device s ports. See the following sections:

Data Transmission. Data Communications Model. CSE 3461 / 5461: Computer Networking & Internet Technologies. Presentation B

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

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

Computer Networks - CS132/EECS148 - Spring

T = 1 f. Phase. Measure of relative position in time within a single period of a signal For a periodic signal f(t), phase is fractional part t p

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

Fast Ethernet and Gigabit Ethernet. Networks: Fast Ethernet 1

Vehicle data acquisition using CAN By Henning Olsson, OptimumG

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

First Semester Examinations 2011/12 INTERNET PRINCIPLES

Notes Odom, Chapter 4 Flashcards Set:

UMBC. ISA is the oldest of all these and today s computers still have a ISA bus interface. in form of an ISA slot (connection) on the main board.

Midterm Exam CMPSCI 453: Computer Networks Fall 2011 Prof. Jim Kurose

Internet Packets. Forwarding Datagrams

Notes on Computer Networks. Bob Dickerson

Candidates should attempt FOUR questions. All questions carry 25 marks.

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

What is Network Latency and Why Does It Matter?

CS263: Wireless Communications and Sensor Networks

Data Transmission. Raj Jain. Professor of CIS. The Ohio State University. Columbus, OH

EMG Ethernet Modbus Gateway User Manual

CSE331: Introduction to Networks and Security. Lecture 9 Fall 2006

Lab Exercise Objective. Requirements. Step 1: Fetch a Trace

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

Clearing the Way for VoIP

Voice Over IP Per Call Bandwidth Consumption

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

QoS issues in Voice over IP

Names & Addresses. Names & Addresses. Hop-by-Hop Packet Forwarding. Longest-Prefix-Match Forwarding. Longest-Prefix-Match Forwarding

CARLETON UNIVERSITY Department of Systems and Computer Engineering. SYSC4700 Telecommunications Engineering Winter Term Exam 13 February 2014

Requirements of Voice in an IP Internetwork

IT4405 Computer Networks (Compulsory)

Computer Networks. Data Link Layer

Direct Link Networks. Introduction. Physical Properties. Lecture - Ethernet 1. Areas for Discussion. Ethernet (Section 2.6)

TCOM 370 NOTES LOCAL AREA NETWORKS AND THE ALOHA PROTOCOL

LAN Switching Computer Networking. Switched Network Advantages. Hubs (more) Hubs. Bridges/Switches, , PPP. Interconnecting LANs

DigiPoints Volume 1. Student Workbook. Module 4 Bandwidth Management

Quality of Service Analysis of site to site for IPSec VPNs for realtime multimedia traffic.

Ring Local Area Network. Ring LANs

CS423: Lectures 2-4, Physical Layer. George Varghese. April 16, 2008

Chapter 3 ATM and Multimedia Traffic

Transport Layer Protocols

Strategies. Addressing and Routing

Computer Networks CS321

ADSL or Asymmetric Digital Subscriber Line. Backbone. Bandwidth. Bit. Bits Per Second or bps

LIN (Local Interconnect Network):

Architecture and Performance of the Internet

EECS 122: Introduction to Computer Networks Multiaccess Protocols. ISO OSI Reference Model for Layers

AN OVERVIEW OF QUALITY OF SERVICE COMPUTER NETWORK

Introduction, Rate and Latency

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

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

Next Generation of High Speed. Modems8

Ethernet. Ethernet Frame Structure. Ethernet Frame Structure (more) Ethernet: uses CSMA/CD

Overview of Network Hardware and Software. CS158a Chris Pollett Jan 29, 2007.

Transcription:

15-441: Computer Networks Homework 1 Assigned: January 29, 2008 Due: February 7, 2008 1. 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 approximately 385,000 km, and data travels over the link at the speed of light 3 10 8 m/s. (a) Calculate the minimum RTT for the link. (b) Suppose Mission Control on Earch wishes to download a 25MB image from a camera on the lunar base. What is the minimum amount of time that will elapse between when the request for the data goes out and the transfer is finished? (c) Using the RTT as the delay, calculate the delay*bandwidth product for the link. (d) Imagine that Mission Control requests one 25MB image and then waits until it starts receiving the file before sending another request (the size of the request is negligible). Use the delay*bandwidth product to determine what percentage of the link is utilized. (a) The time for data to travel from earth to the moon is: (385,000km 1000m/km) 3 10 8 m/s = 1.28333s So the minimum RTT is 1.2833 2 = 2.56666s (b) From (a), the request will take 1.28333s to reach the moon. The time to put the picture on the link is: 25MB 1024kB/MB 1024byte/kB 8bits/byte 100Mbps 1000kb/Mb 1000bits/kb = 209715200 100000000 = 2.097152s Then it will take another 1.28333s to return to earth. The total time is: 2 1.28333s + 2.097152s = 4.66382 (c) 2.56666s 100M bps 1000000bits/M b = 256666000bits (d) The cycle time for this is 1 RTT. From (c) we see that the link would be fully utilized if 256666000 bits were transferred during this time. The total number of bits transferred is: 25M B 1024kB/M B 1024bytes/kB 8bits/byte = 209715200bits The link utilization is 209715200/256666000 = 81.707% If you assume that the earth doesn t send a request until the entire picture has been received, then the time for a cycle is 4.66382 seconds from (b). 4.66382s 100M bps 1000000bits/M b = 466382000bits 209715200/466382000 = 44.923% 1

2. Calculate the latency (from first bit sent to last bit received) for the following: (a) A 10-Mbps link with a single store-and-forward switch in the path, and a packet size of 5,000 bits. Assume that each section of the link introduces a propogation delay of 10 microseconds, and that the switch begins retransmitting immediately after it has finished receiving the packet. (b) Same as (a) but with three switches (c) Same as (a) but assume the switch implements cut-through switching: it is able to begin retransmitting the packet after the first 200 bits have been received. (a) To put the packet on the first link it will take: 5000bits 10 Mbps 1000000bits/Mb = 0.0005s = 0.5ms Then it will take another.01 ms for the switch to finish receiving the packet for a total of.51 ms. It will take another.51 ms for the switch to send, and then for the destination to receive all of the packet. The total latency is: 2 0.51ms = 1.02ms (b) From (a) we know that each link section will take.51 ms. The total time will be: 4 0.51ms = 2.04ms 200bits 10 Mbps 1000000bits/Mb = (c) To begin we can calculate the time it will take to send the first 200 bits: 0.00002s = 0.02ms Then.01 ms later the switch can start sending the packet. It will take.5 ms (from (a)) to put the entire packet on the wire (As the switch is sending out the packet, it will continue receiving the rest of the packet). Then it will take.01 ms for the destination to finish receiving the entire packet: 0.02ms + 0.01ms + 0.5ms + 0.01ms =.54ms 3. Do Exercise 1 from Chapter 3 in the textbook (Computer Networks: A Systems Approach Edition 4). For each connection it is fine to write out only the new table entries that would be added for each router instead of rewriting the full table each time. Switch In Port In VCI Out Port Out VCI (a) 1 2 0 1 0 2 3 0 0 0 3 0 0 3 0 (b) 1 3 0 1 1 2 3 1 1 0 4 3 0 1 0 (c) 2 2 0 0 1 3 0 1 2 0 (d) 1 0 0 1 2 2 3 2 0 2 3 0 2 3 1 (e) 4 2 0 3 1 2 1 1 0 3 3 0 3 1 0 (f) 4 0 0 3 2 2 1 2 3 3 1 1 3 2 1 Page 2

4. Look in the book at section 2.3.2 to learn about HDLC (a) Assuming that we are using the HDLC protocol for bit stuffing, show the bit sequence transmitted over the link when the frame contains the following bit sequence: 1101000110111111001101001111100110000001111111000100011 Mark the stuffed bits (b) Supposed the following sequence of bits arrives over a link: 1101100010111110100100000110111110000101101111110010 Show the resulting frame after any stuffed bits have been removed. Indicate any errors that might have been introduced into the frame. (c) Given an original data size of 64 bits, what is the largest number of bits that may need to be transmitted (using HDLC)? What is the smallest number of bits? Remember to include both begin and end HDLC frame markers. (a) 01111110 110100011011111*0*10011010011111*0*001100000011111*0*11000100011*01111110* (b) 110110001011111100100000110111110001011 * 01111110010 There may be an error in the last few bits of the message because there is a sequence of 6 1 s, or it may just be an end of frame marker. The receiver will treat it as an end of frame marker either way. (c) 8 bits for start frame + 8 bits for end frame. If every bit is a 1, we will need to stuff every 5 bits. This adds another 64/5 = 12 bits for a maximum of 12 bits + 16 bits + 64 bits = 92 bits. If there are no sequences of 5 1 s, we don t have to stuff at all so the minimum number of bits is 16 (+32 bits)+ 64 = 80 bits (96 bits). If you included the header and CRC sections then there are a total of 96 bits that might need to be stuffed. Then the minimum is 8 + 8 + 96 = 112 and the maximum is 8 + 8 + 96 + 96/5 = 131 5. Show the NRZ, Manchester, and NRZI encodings for the bit pattern shown in the figure below. Assume that the NRZI signal starts out low (Exercise 1, Chapter 2, Peterson and Davie) BITS 1 0 0 1 1 1 1 1 0 0 0 1 0 0 0 1 CLOCK NRZ NRZI Manchester Page 3

Charles, an ex-441 student, is given the task of building a new network link technology. Unfortunately, many of his beta-testers complain that their packets get corrupted when using his technology! He tracks the problem down to time synchronization problems between the sender and receiver on the link. Perhaps you can help Charles solve his problems by telling him a little about different encoding methods. Identify the problem and give a 1-2 sentence explanation about why this occurs. For each of these sub-parts, identify whether the encoding can have problems with: A. Long strings of 0s B. Long strings of 1s C. Both long strings of 1s or long strings of 0s D. None of the above (a) Manchester encoding (b) NRZ (c) NRZI BITS 1 0 0 1 1 1 1 1 0 0 0 1 0 0 0 1 CLOCK NRZ NRZI Manchester (a) Manchester encoding: (D) Non-of the above. Manchester encoding will provide a signal change on every bit of data transferred, but has the down-side of making the data-rate only have the baud rate (i.e., rate at which the signal can change on the wire). (b) NRZ: (C) For non-return to zero, the signal only changes when the data on the wire changes. Thus, it can lose clock synchronization with a sequence of either 1 s or 0 s. (c) NRZI: (A) Non-return to zero inverted signals a 1 by making a transition, but signals a 0 by staying at the same signal. Thus, it has problems with long sequences of zeros. Common errors: Most people got this right Page 4

6. You are working for a company that delivers digital pictures to users over different types of networks. You are developing a new product that will use a network link that has a bandwidth of 1MHz. Your boss asks two of your colleagues, Bob and Jane, to estimate how long it will take to transfer 1 MByte images over the channel. (a) Jane took a networking course and vaguely remembers something about Nyquist. She uses the Nyquist limit - what answer does she get? (b) Bob took the same course but was more impressed by the slide on Shannon. He applies the Shannon formula. He assumes that the signal-to-noise-ratio is 30 db (that is after all, what was on the slide in class). What answer does he get? (c) Your boss is unhappy. He did not expect to get two different answers and he calls you in to explain the difference. What do you say? (a) 2 * 1MHz = 2Mbps (b) 30 db = 10 * log(s/n) ; S/N = 1000. C = 1 MHz * log 2 (1 + 1000) = 9.967 Mbps (c) The Nyquist limit assumes a binary amplitude encoding. Shannon s theorem allows for more aggresive encodings. This explains why that formula results in a higher bandwidth. Shannon s theorem also takes noise into consideration. Page 5