ETSN01 Exam. August 22nd am 1pm. Clearly label each page you hand in with your name and the page number in the bottom right hand corner.

Similar documents
ETSN01 Exam. March 16th am 1pm

ETSN01 Exam Solutions

CHAPTER 7 MAC LAYER PROTOCOLS. Dr. Bhargavi Goswami Associate Professor & Head Department of Computer Science Garden City College

Aloha and slotted aloha

Multiple Access Links and Protocols

CS 43: Computer Networks Media Access. Kevin Webb Swarthmore College November 30, 2017

ETSN01 Advanced Telecommunication Course Outline 2016

ICE 1332/0715 Mobile Computing (Summer, 2008)

CS 43: Computer Networks. 27: Media Access Contd. December 3, 2018

Computer Networks (Fall 2011) Homework 2

Tutorial 8 : Congestion Control

ECE 4450:427/527 - Computer Networks Spring 2017

Chapter 1 Basic concepts of wireless data networks (cont d)

Chapter 12 Multiple Access 12.1

Power Laws in ALOHA Systems

Link Layer: Retransmissions

Topics. Link Layer Services (more) Link Layer Services LECTURE 5 MULTIPLE ACCESS AND LOCAL AREA NETWORKS. flow control: error detection:

King Fahd University of Petroleum and Minerals College of Computer Sciences and Engineering Department of Computer Engineering

Multiple Access (1) Required reading: Garcia 6.1, 6.2.1, CSE 3213, Fall 2010 Instructor: N. Vlajic

Link Layer and LANs 안상현서울시립대학교컴퓨터 통계학과.

Chapter 6 Medium Access Control Protocols and Local Area Networks

Department of Electrical Engineering and Computer Science MASSACHUSETTS INSTITUTE OF TECHNOLOGY Spring Quiz III

Wireless Communications

Student ID: CS457: Computer Networking Date: 5/8/2007 Name:

Outline. Introduction to Networked Embedded Systems - Embedded systems Networked embedded systems Embedded Internet - Network properties

Data Link Layer: Collisions

Random Access. 1. Aloha. 2. Slotted Aloha 3. CSMA 4. CSMA/CD

Medium Access Control. MAC protocols: design goals, challenges, contention-based and contention-free protocols

Physical Layer. Medium Access Links and Protocols. Point-to-Point protocols. Modems: Signaling. Modems Signaling. Srinidhi Varadarajan

ECSE-4670: Computer Communication Networks (CCN) Informal Quiz 3

CS 455/555 Intro to Networks and Communications. Link Layer

The Link Layer and LANs. Chapter 6: Link layer and LANs

Mobile Communications Chapter 3 : Media Access

ECEN 5032 Data Networks Medium Access Control Sublayer

Student ID: CS457: Computer Networking Date: 5/8/2007 Name:

Multiple Access in Cellular and Systems

Lecture 4: Wireless MAC Overview. Hung-Yu Wei National Taiwan University

Packet multiple access and the Aloha protocol

Unit 7 Media Access Control (MAC)

Congestion Control in Communication Networks

Random Assignment Protocols

EP2210 FEP3210 Performance analysis of Communication networks. Topic 2 Medium access control (or multiple access protocols)

Lecture 6. Data Link Layer (cont d) Data Link Layer 1-1

Data Link Layer: Multi Access Protocols

Redes de Computadores. Medium Access Control

MAC LAYER. Murat Demirbas SUNY Buffalo

Link layer, LANs: outline. Chapter 5-1 Link Layer. Link layer: introduction. Link layer services

Mobile and Sensor Systems

Medium Access Control Sublayer

MULTIPLE ACCESS PROTOCOLS 2. 1

Intelligent Transportation Systems. Medium Access Control. Prof. Dr. Thomas Strang

Chapter 5 Link Layer and LANs

An Efficient Scheduling Scheme for High Speed IEEE WLANs

Chapter 3 MEDIA ACCESS CONTROL

COMP/ELEC 429/556 Introduction to Computer Networks

CSC 4900 Computer Networks: The Link Layer

Strengthening Unlicensed Band Wireless Backhaul

Links. CS125 - mylinks 1 1/22/14

Lecture 19. Principles behind data link layer services Framing Multiple access protocols

Wireless Medium Access Control Protocols

College of Computer and Information Sciences Department of Computer Engineering CEN444 Computer Networks Midterm 2 Exam Second Semester 1434/1435

Data Link Layer: Overview, operations

CS 716: Introduction to communication networks. - 9 th class; 19 th Aug Instructor: Sridhar Iyer IIT Bombay

Final Exam for ECE374 05/03/12 Solution!!

Multiple-access protocols

Access Technologies! Fabio Martignon

Written exam for EE2T21 (Part B) Data Communications Networking

ECE453 Introduction to Computer Networks. Broadcast vs. PPP. Delay. Lecture 7 Multiple Access Control (I)

Question Score 1 / 19 2 / 19 3 / 16 4 / 29 5 / 17 Total / 100

ENGI 4557 Digital Communications Practice Problems 2017 (Part 2)

COMPUTER NETWORKS - Local area networks

Local area networks. Copyright

Link Layer. (continued)

Introduction to Queuing Systems

Computer Network Fundamentals Spring Week 3 MAC Layer Andreas Terzis

Computer Communication III

CMPE 257: Wireless and Mobile Networking

EECS 563 Fall Review Test 2. Review Test 2

CMPE150 Midterm Solutions

>>> SOLUTIONS <<< Answer the following questions regarding the basics principles and concepts of networks.

NMA Radio Networks Network Level: Medium Access Control Roberto Verdone

Lecture 8 The Data Link Layer part I. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Lecture 9 November 12, Wireless Access. Graduate course in Communications Engineering. University of Rome La Sapienza. Rome, Italy

Computer Networks. Today. Principles of datalink layer services Multiple access links Adresavimas, ARP LANs Wireless LANs VU MIF CS 1/48 2/48

EL Wireless and Mobile Networking Spring 2002 Mid-Term Exam Solution - March 6, 2002

CMPE 257: Wireless and Mobile Networking

Final Exam: Mobile Networking (Part II of the course Réseaux et mobilité )

Network Management & Monitoring

Department of EECS - University of California at Berkeley EECS122 - Introduction to Communication Networks - Spring 2005 Final: 5/20/2005

Chapter 4. The Medium Access Control Sublayer. Points and Questions to Consider. Multiple Access Protocols. The Channel Allocation Problem.

Links Reading: Chapter 2. Goals of Todayʼs Lecture. Message, Segment, Packet, and Frame

ECE 653: Computer Networks Mid Term Exam all

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 16

ECE/CSC 570 Section 001. Final test. December 11, 2006

CS244a: An Introduction to Computer Networks

Performance of UMTS Radio Link Control

LANs Local Area Networks LANs provide an efficient network solution : To support a large number of stations Over moderately high speed

LANs. Local Area Networks. via the Media Access Control (MAC) SubLayer. Networks: Local Area Networks

COMMUNICATION NETWORKS NETW 501

Chapter 5: Link layer

Transcription:

ETSN01 Exam August 22nd 2015 8am 1pm Instructions Clearly label each page you hand in with your name and the page number in the bottom right hand corner. Materials allowed: calculator, writing material. No other material or notes are allowed in the examination hall. If your calculator is programmable, the memory must be erased prior to the exam. Your answers must be given in clear, legible handwriting. If an answer is not able to be read, it will not be marked. All questions should be answered in the booklets provided. The exam contains 9 questions and is 9 pages long. It is out of a total of 100 marks. 1

Question 1 (10 marks) (a) (5 marks) Consider a wireless network which is used for tracking moose in a forest. Each node spends most of its time in sleep mode to save energy, but when a moose is detected nearby, the node wakes up and sends data about the animal and its movements to the base station. The amount of data sent is fairly large as it includes images of the moose as well as its movement recorded at short intervals. On average, three nodes are within sensing range of each moose, and the number of moose typically seen at a time is small only one or two in the entire network area. In total there are around 200 nodes in the network. Which kind of medium access protocol would you choose for this network, random access (e.g. ALOHA, CSMA) or resource reservation (e.g. polling, FDMA, TDMA)? Justify your choice. (b) (5 marks) Now consider a wireless network where the nodes (aside from the base station) are monitoring a factory floor. Every 500ms, each node sends a data packet to the base station reporting the status of the piece of machinery it is attached to. The amount of data sent each time is small a few numeric values and an 8-bit status code which means the time taken to transmit the packet is only a few milliseconds. The network needs to have high reliability and low latency for receiving the status packets. The total number of nodes is relatively small, about 50. Which kind of medium access protocol would you choose for this network, random access (e.g. ALOHA, CSMA) or resource reservation (e.g. polling, FDMA, TDMA)? Justify your choice. Question 2 (8 marks) (a) (3 marks) In GSM, what is the reason for the HO MARGIN (handover margin) when performing handover between cells? Why does handover not occur as soon as the base station in the new cell has a higher signal strength? (b) (3 marks) In GSM, why is the there a time shift (of 3 time slots) between the base station s TX and RX frames? (c) (2 marks) What is the main difference between the core network architectures in LTE and UMTS? Question 3 (14 marks) (a) (3 marks) Explain what is meant by a collision in a random-access wireless network. What happens to the packets involved in the collision? (b) (3 marks) Why do collisions occur in random-access wireless networks, but not in typical (modern) wired networks? (c) (8 marks) Briefly describe each of the following types of medium access protocols and explain how each one addresses the problem of collisions. Resource reservation protocols (e.g. TDMA, FDMA, CDMA) Pure random access (e.g. ALOHA) CSMA (e.g. 802.11 (WiFi), p-persistent CSMA) CSMA/CA (e.g. 802.11 with RTS/CTS) Question 4 (19 marks) Consider the Markov chain of a queueing system shown in Figure 1, where λ = 8.0 packets/second and µ = 10.0 packets/second. (a) (3 marks) What type of queueing system is this, in Kendall notation? What do each of the parts of the notation signify? (b) (4 marks) Find the blocking probability for the system (c) (4 marks) Find the average queue length for the system (d) (4 marks) Find the average waiting time for non-blocked packets (e) (4 marks) If we instead wanted a blocking probability of no more than 0.05, how many packets does the queue need to be able to hold? Page 2

λ λ λ λ 0 1 2 3 4 µ µ µ µ Figure 1: Figure for Question 4 Question 5 (5 marks) Two TCP entities communicate across a reliable network. Let the normalized time to transmit a fixedlength segment equal 1. Assume that the end-to-end propagation delay is 4, and that it takes a time 1 to deliver data from a received segment to the transport user. The sender initially grants a credit of 5 segments. The receiver uses a conservative flow control policy and updates its credit allocation at every opportunity. What is the maximum achievable throughput? Question 6 (6 marks) A computer is calculating the round-trip time for a TCP connection, using the smoothed round-trip time method. (a) (3 marks) Choose α = 0.75 and SRTT(0) = 2.0 seconds, and assume all measured RTT values = 0.5 seconds and no packet loss. What is SRTT(4)? (b) (3 marks) Now let SRTT(0) = 0.5 second and assume all measured RTT values are 2.0 seconds and no packet loss, α = 0.75. What is SRTT(4)? Question 7 (8 marks) (a) (3 marks) Explain what is meant by starvation in strict priority queueing. (b) (5 marks) A router employing weighted fair queuing has three flows. Flow 2 receives 2 times the bandwidth of Flow 1 and Flow 3 receives 4 times the bandwidth of Flow 1. Assume the following packets arrive at the router at about the same time and with the same output link. In what order will the packets be sent? Packet Size (bits) Flow 1 100 1 2 50 1 3 200 1 4 100 2 5 120 2 6 90 2 7 160 3 8 100 3 9 240 3 10 40 3 Question 8 (15 marks) Consider a wireless network that uses the following medium access protocol. Time is divided into slots and each packet takes exactly one slot time to transmit. Each node transmits at random (as soon as a packet arrives). If a collision occurs, each node chooses a number uniformly at random from 0 9 inclusive, and waits that many number of slots before retransmitting its packet. For example, if a node has a collision in slot 1, then chooses the number 3, it will wait 3 slots, and then retransmit its packet in slot 5 (see Figure 2). Page 3

Figure 2: Backoff protocol for Question 8 This process repeats until all nodes in the collision have successfully retransmitted their packets: there is an unlimited number of retransmissions allowed. Nodes not involved in the collision do not transmit any new packets until backoff has been completely resolved, i.e. all collided packets have been successfully retransmitted without collision. Assume a collision has occurred. (a) (3 marks) If there are two nodes (and thus two packets) in the collision, what is the probability of a second collision occurring after backoff? (b) (3 marks) If there are five nodes (and thus five packets) in the collision, what is the probability of a second collision occurring after backoff? (c) (3 marks) What is the expected time that the first round of backoff will end, if there are two nodes in the initial collision? (d) (3 marks) If there are two nodes in the initial collision, what is the expected number of rounds of backoff until both packets are successfully retransmitted? (e) (3 marks) What is the expected total time spent in backoff (in all rounds), if there are two nodes in the initial collision? Question 9 (15 marks) Transmission from a node A to a node B occurs over two links, with a router in between (see Figure 3). The first link, from node A to the router, is a wireless link, with a capacity of C w bits per second and an end-to-end (propagation) delay of d w seconds. The second link, from the router to node B, is a fixed (wired) link, with a capacity of C f bits per second and an end-to-end delay of d f seconds. Figure 3: Network for Question 9 On the wireless link, it is possible for transmission of a packet to fail either due to collision, with probability p c, or due to noise, with probability p n (but not both at the same time). In both cases, the packet is retransmitted after a fixed delay: d c seconds after a collision, and d n seconds after failure due to noise. Assume retransmissions are always successful. The offered load node A attempts to transmit is λ packets per second, with an average packet length of L payload bits. Each packet also has an overhead of H bits for the header, checksum, etc. The router has a single queue for packets from A to B, and there is no other traffic on the fixed link from the router to B. Assume the packet arrivals and service time at the router are both Markovian, and that the router has enough memory that its queue length is effectively unbounded. Page 4

(a) (3 marks) What is the average delay per packet on the wireless link from node A to the router? (b) (3 marks) What is the maximum throughput, in packets per second, achievable on the wireless link, i.e. what is the maximum value of λ A can use? (Hint: What is the average time needed to transmit each packet given that some will experience collisions or noise?) (c) (3 marks) What is the minimum capacity required on the fixed link from the router to B, if A transmits at the maximum throughput derived in part (b)? (d) (3 marks) What is the average queueing delay, including service time, at the router? (e) (3 marks) What is the average total delay (i.e. including both links and time spent in the router) for all packets sent from A to B? Page 5

This page intentionally left blank. Page 6

ETSN01 Formula sheet Queuing Theory M/M/1/n: General: Little s Formula: r = λtr w = λtw E{R} = nx i=0 ip i = 1 1 n+1 nx i i i=0 Tr = Tw + Ts Single Server: ρ=λts, Ts = 1/µ r = w + ρ M/M/n/n Offered traffic A = λh Erlangs Multiserver: ρ = λts/n M/M/1: r = 1 w = T r = 2 1 T s 1 Carried Traffic: Ac = A(1-PB) Lost Traffic = A - Ac M/G/1 E{Q} = + 2 h 2 2(1 ) = + 2 + 2 2 2(1 ) T w = T s 1 Pr[R = N] =(1 ) n nx Pr[R apple N] = (1 ) i i=0 Pr[T R apple t] =1 e (1 )t/t S Probability Pr{Ω} = 1 0 Pr{A} 1 Pr{A B} = Pr{A} + Pr{B} - Pr{A B} Page 7

ETSN01 Formula sheet If A and B independent Pr{A B}=Pr{A}Pr{B} Probability Functions ARQ Performance S = Normalised Throughput W = Window Size P = Probability of error in a single frame a = Propagation time/transmission time Stop and Wait: 1 P S = 1+ 2a Go-Back-N: Negative Exp. p(x) =µe µx Pr{X apple x} =1 e µx Gaussian N(μ,σ) $ 1 P W 2a + 1 1+ 2aP S = # W ( 1 P) W < 2a + 1 ( " 2a + 1)( 1 P +WP) Selective Reject: $ 1 P S = # W " 2a + 1 ( 1 P) W 2a + 1 W < 2a + 1 Poisson P ( )= e x ; x =0, 1, 2, 3... x Mean = variance = λ Random Variables E[aX + b] = ae[x] + b Var[aX + b] = a 2 Var[X] E[X + Y] = E[X] + E[Y] Var[X] = E[X 2 ] - E[X] 2 For independent variables X,Y E[XY] = E[X]E[Y] Var[X + Y] = Var[X] + Var[Y] Page 8 Geometric series nx 1 ax k = a 1 xn 1 x ; x 6= 1 k=0 1X ax k = a ;( 1 <x<1) 1 x k=0 1X kx k x = ;( 1 <x<1) (1 x) 2 k=1 Inverse method# F(x) = Pr{X x} X = F -1 (Y) Confidence Intervals 0.9 for α 1.65 0.95 for α 1.96 0.99 for α 2.58

TCP Congestion Control S = { 1 W 2RD W 2RD W < 2RD ART T (K + 1) = 1 K+1 RT T (i) K + 1 i=1 SRT T (K + 1) = αsrt T (K) + (1 α)rt T (K + 1) DRT T (K + 1) = (1 α)drt T (K) + α(srt T ERT T ) RT O = ERT T + 4 DRT T Acronyms CDMA: Code division multiple access CSMA: Carrier-sense multiple access CSMA/CA: Carrier-sense multiple access with collision avoidance CTS: Clear to send FDMA: Frequency division multiple access GSM: Global system for mobile communications HO: Handover LTE: Long-term evolution RTS: Request to send RTT: Round trip time RX: Reception/receive SRTT: Smoothed round trip time TCP: Transmission control protocol TDMA: Time division multiple access TX: Transmission/transmit UMTS: Universal mobile telecommunications system Page 9