Assignment 2. Due Monday Feb. 12, 10:00pm.

Similar documents
COSC 3213: Computer Networks I Chapter 6 Handout # 7

4 Error Control. 4.1 Issues with Reliable Protocols

! errors caused by signal attenuation, noise.!! receiver detects presence of errors:!

Using CANopen Slave Driver

Sam knows that his MP3 player has 40% of its battery life left and that the battery charges by an additional 12 percentage points every 15 minutes.

Exercise 3: Bluetooth BR/EDR

Low-Cost WLAN based. Dr. Christian Hoene. Computer Science Department, University of Tübingen, Germany

Chapter 3 MEDIA ACCESS CONTROL

LHP: An end-to-end reliable transport protocol over wireless data networks

Announcements. TCP Congestion Control. Goals of Today s Lecture. State Diagrams. TCP State Diagram

Implementing Ray Casting in Tetrahedral Meshes with Programmable Graphics Hardware (Technical Report)

EP2200 Queueing theory and teletraffic systems

An Improved Square-Root Nyquist Shaping Filter

Performance Evaluation of Implementing Calls Prioritization with Different Queuing Disciplines in Mobile Wireless Networks

Network management and QoS provisioning - QoS in Frame Relay. . packet switching with virtual circuit service (virtual circuits are bidirectional);

COMP26120: Algorithms and Imperative Programming

MOTION DETECTORS GRAPH MATCHING LAB PRE-LAB QUESTIONS

Outline. EECS Components and Design Techniques for Digital Systems. Lec 06 Using FSMs Review: Typical Controller: state

Connections, displays and operating elements. 3 aux. 5 aux.

Connections, displays and operating elements. Status LEDs (next to the keys)

USBFC (USB Function Controller)

CS422 Computer Networks

1. Function 1. Push-button interface 4g.plus. Push-button interface 4-gang plus. 2. Installation. Table of Contents

Coded Caching with Multiple File Requests

Y. Tsiatouhas. VLSI Systems and Computer Architecture Lab

Improving Explicit Congestion Notification with the Mark-Front Strategy

An efficient approach to improve throughput for TCP vegas in ad hoc network

Announcements For The Logic of Boolean Connectives Truth Tables, Tautologies & Logical Truths. Outline. Introduction Truth Functions

Lecture 18: Mix net Voting Systems

Flow graph/networks MAX FLOW APPLICATIONS. Flow constraints. Max flow problem 4/26/12

Learning in Games via Opponent Strategy Estimation and Policy Search

Delayed reservation decision in optical burst switching networks with optical buffers. Title. Li, GM; Li, VOK; Li, CY; Wai, PKA

NEWTON S SECOND LAW OF MOTION

Why not experiment with the system itself? Ways to study a system System. Application areas. Different kinds of systems

Test - Accredited Configuration Engineer (ACE) Exam - PAN-OS 6.0 Version

shared via CourseHero.com This study resource was Exam #1 for Computer Networks (CIS 6930) Fall 2003 >>> SOLUTIONS <<<

Improving the Efficiency of Dynamic Service Provisioning in Transport Networks with Scheduled Services

Nonparametric CUSUM Charts for Process Variability

Dimmer time switch AlphaLux³ D / 27

4. Minimax and planning problems

/85/ $ IEEE

Voltair Version 2.5 Release Notes (January, 2018)

A Scheme to Reduce Packet Loss during PMIPv6 Handover considering Authentication

A Matching Algorithm for Content-Based Image Retrieval

Chapter 4 Sequential Instructions

DCF/DSDMA: Enhanced DCF with SDMA Downlink Transmissions for WLANs

Delay in Packet Switched Networks

Less Pessimistic Worst-Case Delay Analysis for Packet-Switched Networks

Data Structures and Algorithms. The material for this lecture is drawn, in part, from The Practice of Programming (Kernighan & Pike) Chapter 2

Communication Networks

Video streaming over Vajda Tamás

source managemen, naming, proecion, and service provisions. This paper concenraes on he basic processor scheduling aspecs of resource managemen. 2 The

MIC2569. Features. General Description. Applications. Typical Application. CableCARD Power Switch

Chapter 8 LOCATION SERVICES

EECS 487: Interactive Computer Graphics

CENG 477 Introduction to Computer Graphics. Modeling Transformations

Scheduling. Scheduling. EDA421/DIT171 - Parallel and Distributed Real-Time Systems, Chalmers/GU, 2011/2012 Lecture #4 Updated March 16, 2012

MB86297A Carmine Timing Analysis of the DDR Interface

A Principled Approach to. MILP Modeling. Columbia University, August Carnegie Mellon University. Workshop on MIP. John Hooker.

1.4 Application Separable Equations and the Logistic Equation

MOBILE COMPUTING. Wi-Fi 9/20/15. CSE 40814/60814 Fall Wi-Fi:

MOBILE COMPUTING 3/18/18. Wi-Fi IEEE. CSE 40814/60814 Spring 2018

Modeling of IEEE in a Cluster of Synchronized Sensor Nodes

Computational Geometry in Wireless Networks - Routing. Presented by Heather M. Michaud

PART 1 REFERENCE INFORMATION CONTROL DATA 6400 SYSTEMS CENTRAL PROCESSOR MONITOR

Timers CT Range. CT-D Range. Electronic timers. CT-D Range. Phone: Fax: Web: -

A High Efficiency MAC Protocol for WLANs: Providing Fairness in Dense Scenarios

Wireless LANs: MAC. Wireless LAN: MAC. IEEE protocol stack. Module W.lan MAC

Restorable Dynamic Quality of Service Routing

Shortest Path Algorithms. Lecture I: Shortest Path Algorithms. Example. Graphs and Matrices. Setting: Dr Kieran T. Herley.

Time-Shifted Streaming in a Tree-Based Peer-to-Peer System Jeonghun Noh ASSIA inc., Redwood City, CA, USA

Image segmentation. Motivation. Objective. Definitions. A classification of segmentation techniques. Assumptions for thresholding

Schedule. Curves & Surfaces. Questions? Last Time: Today. Limitations of Polygonal Meshes. Acceleration Data Structures.

A Tool for Multi-Hour ATM Network Design considering Mixed Peer-to-Peer and Client-Server based Services

Location. Electrical. Loads. 2-wire mains-rated. 0.5 mm² to 1.5 mm² Max. length 300 m (with 1.5 mm² cable). Example: Belden 8471

Fuzzy LPT Algorithms for Flexible Flow Shop Problems with Unrelated Parallel Machines for a Continuous Fuzzy Domain

PHY and MAC Performance Evaluation of IEEE a WLAN over Fading Channels

Lecture 4. Programming with Message Passing: Applications and Performance

Spline Curves. Color Interpolation. Normal Interpolation. Last Time? Today. glshademodel (GL_SMOOTH); Adjacency Data Structures. Mesh Simplification

ENDA ETM442 DIGITAL TIMER

The Beer Dock: Three and a Half Implementations of the Beer Distribution Game

I. INTRODUCTION. Keywords -- Web Server, Perceived User Latency, HTTP, Local Measuring. interchangeably.

Packet Scheduling in a Low-Latency Optical Interconnect with Electronic Buffers

Quantitative macro models feature an infinite number of periods A more realistic (?) view of time

Analyzing of RESPIRE, a novel approach to automatically blocking SYN flooding attacks

Partition-based document identifier assignment (PBDIA) algorithm. (long queries)

Computer representations of piecewise

Opportunistic Flooding in Low-Duty-Cycle Wireless Sensor Networks with Unreliable Links

Optimal Crane Scheduling

Ultrasonic Sensor System for Ecology Observation and Timing Synchronization of ZigBee Network

An Empirical Study of MPI over PC Clusters

An Efficient Delivery Scheme for Coded Caching

IDEF3 Process Description Capture Method

Design Alternatives for a Thin Lens Spatial Integrator Array

PROCESS AUTOMATION MANUAL TIMER RELAY KF**-DU-EX1.D ISO9001

Coded Caching in a Multi-Server System with Random Topology

A time-space consistency solution for hardware-in-the-loop simulation system

An Adaptive Spatial Depth Filter for 3D Rendering IP

Motor Control. 5. Control. Motor Control. Motor Control

Attack-Resilient Time Synchronization for Wireless Sensor Networks

Transcription:

Faculy of rs and Science Universiy of Torono CSC 358 - Inroducion o Compuer Neworks, Winer 218, LEC11 ssignmen 2 Due Monday Feb. 12, 1:pm. 1

Quesion 1 (2 Poins): Go-ack n RQ In his quesion, we review how Go-ack n RQ can be used o ensure a reliable daa ransfer. Use n = 3 for Quesion (a)-(c). Use he convenion ha when has o reransmi packes i sars wih he SN a he beginning of he window and reransmis packes in order of heir sequence number. (a) (Error in Transmission from o ) Fill in he values for SN and, indicae he window size, as well as he packes delivered o he nex higher layer. SN (b) (Error in Transmission from o ): Repea (a). SN 2

(c) Repea (a). SN 3

Quesion 2 (2 Poins): Selecive Repea RQ In his quesion, we review how Selecive Repea RQ can be used o ensure a reliable daa ransfer. Use n = 5 for Quesion (a)-(c). Use he convenion ha always acknowledges he las error-free packe from, and when has o reransmi packes i sars wih he SN a he beginning of he window and reransmis packes ha have no ye been acknowledge by in order of heir sequence number. (a) (Error in Transmission from o ) Fill in he values for SN and, indicae he window size a and, as well as he packes delivered o he nex higher layer. CK s in uffer SN Packes in uffer (b) (Error in Transmission from o ): Repea (a). CK s in uffer SN Packes in uffer 4

(c) Repea (a). CK s in uffer SN 5 Packes in uffer

Quesion 3 (2 Poins): Sop-and-Wai RQ This quesion regards Sop-and-Wai RQ. In he following, we give several varians of Sop-and-Wai RQ proocols, and we consider hem in a few differen communicaion channel models. For each combinaion of proocol and channel pairs (see proocol and channel descripions below), answer wheher he proocol works correcly for ha channel model; if no, give a couner-example. Use he following assumpions for his quesion, Packes (daa packes and CK-packes) may be corruped during ransmission; ll packes wih error are deeced; Packes ha arrive are in he same order as ransmied. lgorihm : Sender: 1. ccep a packe from he nex higher layer; if no packe is available, wai unil i is; 2. Transmi he packe; 3. If an CK is received from he receiver, go o Sep 1; if a NK is received from he receiver, go o Sep 2. Receiver: 1. Whenever an error-free packe is received, release he packe o he higher layer and send an CK o he sender; 2. Whenever a packe is received wih an error, send a NK o he sender. Noe: for his algorihm only, assume CK s and NK s are always received error-free. 6

lgorihm : Sender: 1. Se he ineger variable SN o ; 2. ccep a packe from he nex higher layer; if no packe is available, wai unil i is; assign number SN o he new packe; 3. Transmi he packe wih SN in he sequence number field; 4. If an CK is received from he receiver, incremen SN and go o Sep 2; if no acknowledgmen is received wihin T ou, go o Sep 3, where T ou is a finie amoun of ime, which is larger han he maximum round-rip ime if he maximum delay is known. Receiver: 1. Whenever an error-free packe is received, use a local variable o rack he sequence number of he received packes. If i is he firs ime ha an error-free packe wih his paricular sequence number has been received, release he packe o he higher layer, and send an CK o he sender; 2. Whenever a packe is received wih an error, simply ignore i. Communicaion Channels: We consider he following communicaion channels beween he Sender and he Receiver. Channel I The maximum delay is known, and packes and CK s never ge los during ransmissions; Channel II The maximum delay is known, and packes and CK s may be los during ransmissions; Channel III Packes can have an arbirary and variable delay, and packes and CK s never ge los during ransmissions; 7

Quesion 4 (1 Poins): Modulus m For Go-ack n RQ and Selecive Repea RQ we have o be careful how we apply a modulus m o he sequence number. In his quesion, we illusrae his issue. (a) Give an example where Go-ack n wih modulus m fails if m = n. Use n = 4 for your example. (b) Give an example where Selecive Repea wih modulus m fails if m = 2n 1. Use n = 4 for your example. 8

Quesion 5 (1 Poins): Sop-and-Wai RQ In class, we discussed ha we can employ he RQ proocol a any layer - for example, we could implemen RQ a he ranspor layer (end-o-end RQ) or a he link layer (hopby-hop RQ). In his quesion, we sudy how he decision where we use RQ impacs he nework performance (in erms of average packe delay). Consider a Sop-and-Wai proocol beween wo peer processes X (sender) and Y (receiver) where Y sends immediaely an CK (wih he corresponding number) o X whenever i receives an error-free a packe from X. ssumeahoswansosendpackesoa(disan)hos. Inorderocommunicaewih hos, hos has o send is packes firs o a swich C, where packes ge forwarded o hos. llpackeshavehesamesizeofn bis. SwichC mushavereceivedhecomplee packe before i can be forwarded o (why?). During he ransmission of a packe from hos o swich C, bis are corruped independenly wih a bi error probabiliy P bi, < P bi < 1. Similar, during he ransmission of a packe from swich C o hos, bis are corruped independenly wih he same bi error probabiliy P bi. The ransmission rae of he link beween hos and swich C is R bis per second - he ransmission rae of he link beween swich C and hos is also R bis per second. For he quesions below, provide all relevan derivaions. (a) Wha is he probabiliy P packe ha a packe from hos arrives error-free a swich C? (b) ssume ha hos and swich C implemen he above Sop-and-Wai RQ. In addiion, make he following assumpion regarding he channel beween and C: CK s from swich C always arrive error-free a and no packes or CK s are dropped. ssuming ha hos never exceeds he ime-ou (when waiing for an CK), wha is he probabiliy P k, k = 1,2,..., ha has o ransmi a packe k imes o ge i acceped a swich C? (c) (Hop-by-Hop RQ) ssume ha swich C and hos also implemen he above Sop-and-Wai RQ o send packes from C o, and ha he same assumpion ha we made in (b) for he channel beween and C also hold for he channel beween C and. Wha is he average delay of a packe, i.e. he average lengh of he inerval beween he ime ha hos sars sending a packe for he firs ime and he ime ha hos passes he packe o he nex higher layer? Ignore queueing and processing delays, as well as ransmission delays of CK s (bu no of packes), and assume ha hos and swich C never exceed he ime-ou (waiing for a CK). (d) (End-o End RQ) Suppose ha swich C does no check packes for errors, bu forwards each packe from immediaely o hos (wihou sending an CK o hos ). However, hos and hos use he above Sop-and-Wai RQ o ensure a reliable daa ransfer. ssume ha CK s from hos always arrive error-free a hos and ha no CK s are dropped. For his case, wha is he average delay of a packe? gain, ignore queueing and processing delays, as well as ransmission delays of CK s, and assume ha hos never exceeds he imes-ou (waiing for a CK). (e) Evaluae he answers for (c) and (d) for P packe =.99,.1,.1. 9

(f) Using he resul of (e), in wha siuaion would you use Hop-by-Hop RQ (End-o- End RQ)? 1

Faculy of rs and Science Universiy of Torono CSC 358 - Inroducion o Compuer Neworks, Winer 218, LEC11 Cover shee for ssignmen 2 Complee his page and aach i o he fron of your assignmen. Name: (Underline your las name) Suden number: I declare ha his assignmen is solely my own work, and is in accordance wih he Universiy of Torono Code of ehavior on cademic Maers. Signaure: 11