CSE 123: Computer Networks

Similar documents
CSE 123: Computer Networks

PART III. Data Link Layer MGH T MGH C I 204

CS 640 Introduction to Computer Networks. Role of data link layer. Today s lecture. Lecture16

Chapter 3. The Data Link Layer. Wesam A. Hatamleh

CSE 461: Framing, Error Detection and Correction

CSE 123A Computer Networks

High Level View. EE 122: Error detection and reliable transmission. Overview. Error Detection

CS422 Computer Networks

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala Set 4. September 09 CMSC417 Set 4 1

Some portions courtesy Robin Kravets and Steve Lumetta

UNIT-II 1. Discuss the issues in the data link layer. Answer:

Data Link Layer (1) Networked Systems 3 Lecture 6

Data link layer functions. 2 Computer Networks Data Communications. Framing (1) Framing (2) Parity Checking (1) Error Detection

Chapter 3. The Data Link Layer

CS254 Network Technologies. Lecture 2: Network Models & Error Detection and Correction. Dr Nikos Antonopoulos

EE 122: Error detection and reliable transmission. Ion Stoica September 16, 2002

DATA LINK LAYER UNIT 7.

Lecture 5: Data Link Layer Basics

CSMC 417. Computer Networks Prof. Ashok K Agrawala Ashok Agrawala. Nov 1,

Error Detection Codes. Error Detection. Two Dimensional Parity. Internet Checksum Algorithm. Cyclic Redundancy Check.

Chapter 10 Error Detection and Correction 10.1

Data Link Technology. Suguru Yamaguchi Nara Institute of Science and Technology Department of Information Science

Data Link Layer. Srinidhi Varadarajan

file:///c:/users/hpguo/dropbox/website/teaching/fall 2017/CS4470/H...

Chapter 10 Error Detection and Correction. Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Department of Computer and IT Engineering University of Kurdistan. Data Communication Netwotks (Graduate level) Data Link Layer

Inst: Chris Davison

CSCI-1680 Link Layer I Rodrigo Fonseca

CSE 123: Computer Networks Fall Quarter, 2017 MIDTERM EXAM

Overview. Data Link Technology. Role of the data-link layer. Role of the data-link layer. Function of the physical layer

Advanced Computer Networks. Rab Nawaz Jadoon DCS. Assistant Professor COMSATS University, Lahore Pakistan. Department of Computer Science

The Data Link Layer Chapter 3

CSE123A discussion session

SRI RAMAKRISHNA INSTITUTE OF TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY COMPUTER NETWORKS UNIT - II DATA LINK LAYER

CPE 548 Exam #1 (50 pts) February 17, 2016

Lecture 6: Reliable Transmission. CSE 123: Computer Networks Alex Snoeren (guest lecture) Alex Sn

Where we are in the Course

2.1 CHANNEL ALLOCATION 2.2 MULTIPLE ACCESS PROTOCOLS Collision Free Protocols 2.3 FDDI 2.4 DATA LINK LAYER DESIGN ISSUES 2.5 FRAMING & STUFFING

Preview Test: HW3. Test Information Description Due:Nov. 3

Point-to-Point Links. Outline Encoding Framing Error Detection Sliding Window Algorithm. Fall 2004 CS 691 1

The data link layer has a number of specific functions it can carry out. These functions include. Figure 2-1. Relationship between packets and frames.

CSE 123: Computer Networks Alex C. Snoeren. HW 1 due Thursday!

Problem Statement. Physical and Data Link Layer Overview. Five Tasks Encoding. Make two computers talk to each other

Lecture 5. Homework 2 posted, due September 15. Reminder: Homework 1 due today. Questions? Thursday, September 8 CS 475 Networks - Lecture 5 1

CS244a: An Introduction to Computer Networks

CSE 123 Midterm Exam

Lecture 4: CRC & Reliable Transmission. Lecture 4 Overview. Checksum review. CRC toward a better EDC. Reliable Transmission

COMPUTER NETWORKS UNIT I. 1. What are the three criteria necessary for an effective and efficient networks?

Problem 7. Problem 8. Problem 9

CS/ECE 438: Communication Networks for Computers Spring 2018 Midterm Examination Online

2.4 Error Detection Bit errors in a frame will occur. How do we detect (and then. (or both) frames contains an error. This is inefficient (and not

EITF25 Internet Techniques and Applications L3: Data Link layer. Stefan Höst

FINAL May 21, minutes

Chapter Six. Errors, Error Detection, and Error Control. Data Communications and Computer Networks: A Business User s Approach Seventh Edition

Data Link Networks. Hardware Building Blocks. Nodes & Links. CS565 Data Link Networks 1

(Refer Slide Time: 2:20)

The Data Link Layer Chapter 3

Telematics. 5rd Tutorial - LLC vs. MAC, HDLC, Flow Control, E2E-Arguments

Islamic University of Gaza Faculty of Engineering Department of Computer Engineering ECOM 4021: Networks Discussion. Chapter 2.

Data Link Control Layer, Error Detection, Error Correction, and Framing

MIDTERM EXAMINATION #2 OPERATING SYSTEM CONCEPTS U N I V E R S I T Y O F W I N D S O R S C H O O L O F C O M P U T E R S C I E N C E

Packet/Frame, Error Detection How to send data efficiently & reliably?

CS144: Intro to Computer Networks Homework 1 Scan and submit your solution online. Due Friday January 30, 4pm

Computer Network. Direct Link Networks Reliable Transmission. rev /2/2004 1

CMSC 2833 Lecture 18. Parity Add a bit to make the number of ones (1s) transmitted odd.

Comparison of ISO-OSI and TCP/IP Suit. Functions of Data Link Layer:

EITF25 Internet- - Techniques and Applica8ons Stefan Höst. L4 Data link (part 1)

CS 4453 Computer Networks Winter

Jaringan Komputer. Data Link Layer. The Data Link Layer. Study the design principles

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

COMPUTER NETWORKS UNIT-3

Direct Link Communication I: Basic Techniques. Data Transmission. ignore carrier frequency, coding etc.

Computer Networks. Shyam Gollakota

I. INTRODUCTION. each station (i.e., computer, telephone, etc.) directly connected to all other stations

5th Slide Set Computer Networks

UNIVERSITY OF OSLO. Faculty of mathematics and natural sciences. INF3190/INF4190 Data Communications. All printed and written material, calculator

CSCI-1680 Link Layer Reliability Rodrigo Fonseca

Computer Networks. Homework #4: No Grading

CIS 551 / TCOM 401 Computer and Network Security. Spring 2007 Lecture 7

Telecom Systems Chae Y. Lee. Contents. Flow Control Error Detection/Correction Link Control (Error Control) Link Performance (Utility)

Computer Networking. Lecture 4 - Coding and Error Control

Chapter 3 Review Questions

Introduction to Computer Networks. 03 Data Link Layer Introduction

COMPUTER NETWORK. Homework #2. Due Date: April 12, 2017 in class

CSE123A discussion session

Outline. EEC-484/584 Computer Networks. Data Link Layer Design Issues. Framing. Lecture 6. Wenbing Zhao Review.

Your Name: Your student ID number:

TYPES OF ERRORS. Data can be corrupted during transmission. Some applications require that errors be detected and corrected.

CSCI-1680 Link Layer Reliability John Jannotti

Chapter 3 The Data Link Layer

CPE 448/548 Exam #1 (100 pts) February 14, Name Class: 448

4. Error correction and link control. Contents

The Data Link Layer. Data Link Layer Design Issues

CSE 461 MIDTERM REVIEW

Networking Link Layer

Name: Student ID: Due Wednesday 4/29 at the beginning of class (Please TYPE your answers this will allow our TAs to be much more efficient)

Chapter 3. The Data Link Layer

Protocol Principles. Framing, FCS and ARQ 2005/03/11. (C) Herbert Haas

Ch. 7 Error Detection and Correction

Problem Set Name the 7 OSI layers and give the corresponding functionalities for each layer.

Transcription:

Student Name: PID: UCSD email: CSE 123: Computer Networks Homework 1 Solution (Due 10/12 in class) Total Points: 30 Instructions: Turn in a physical copy at the beginning of the class on 10/10. Problems: 1. True or False (6 Points) One point each Circle or for the following statements. No explanations are required. a. The payload of an IP packet could contain a TCP or UDP header. b. Compared with Checksums, Cyclic Remainder Check (CRC) is a better error detection algorithm for detecting burst errors in frames. c. If an encoding scheme has a Hamming Distance of 5, it can detect up to 4 bit flips. d. If {000, 0001, 0010, 1000} is the entire set of codewords in an encoding over 4- bit strings, the resulting code is efficient. e. Round Trip Time (RTT) is an important indicator of network bandwidth. f. One bit is enough to encode the sequence number of a data frame in a Stopand-Wait ARQ protocol.

2. Two-Dimensional Parity (7 Points) A network device receives the following 64-bit two-dimensional parity data. Bits 1111 0000 in Row a represent the first 8-bit received data, and Row h is the parity byte (last byte of the data). Assume the sender correctly computes the two-dimensional parity data, and odd parity is followed. Row \ Column A B C D E F G H a (first byte) 1 1 1 1 0 0 0 0 b 1 0 1 0 1 1 1 0 c 0 0 0 1 0 0 0 0 d 1 1 0 0 1 1 1 0 e 1 0 1 0 1 1 0 1 f 0 0 1 0 0 0 1 1 g 1 1 1 1 1 1 1 0 h (last byte) 0 0 0 1 1 1 1 1 a. Assume the above data has ONE BIT flipped due to communication error. (i) Which row(s) (from a to h) has incorrect parity, if applicable? (1 Point) Row a (ii) Which column(s) (from A to H) has incorrect parity, if applicable? (1 Point) Column D (iii) Can the flipped bit be corrected? If yes, circle that bit from the table above. If no, please give explanations. (1 Point) Yes. The flipped bit is at Row a, Column D. b. Could the above data results from TWO BIT FLIP of the original data, due to communication errors? Circle One: YES NO (1 Point) Please explain why. (1 Point) There are three scenarios of two-bit flip. (1) Two flipped bits are in the same row. In this case, the row that has two bit flipped still has the correct parity, other rows are unaffected. However, two columns should have incorrect parity, since one bit is flipped in each one of them. (2) Two flipped bits are in the same column. In this case, the column that has two bit flipped still has the correct parity, other columns are unaffected. However, two rows should have incorrect parity, since one bit is flipped in each one of them.

(3) Two flipped bits are from neither the same row, nor the same column. In this case, there should be two rows and two columns that have incorrect parity data. None of the above three cases will produce the data in part a, which has incorrect parity in one column and one row. c. Could the above data results from THREE BIT FLIP of the original data due to communication errors? Circle One: YES NO (1 Point) Please explain why. (1 Point) Many combinations of three-bit flip can produce incorrect parity in Row a and Column D. One possible solution is bit flip at: Row a, Column A Row h, Column A Row h, Column D 3. The HDLC protocol (6 Points) Given our understanding of the HDLC protocol, assume that the following bit stream arrives at the receiver at a particular instant of time: 0111 1110 1110 1100 0111 1111 0000 1100 0011 1110 0111 0111 1100 0001 0111 1101 1011 1001 0111 0000 1011 1111 0110 0000 1100 1111 1100 0010 0111 1100 0000 0011 1110 0111 0101 0111 0111 1110 0011 0001 0110 1001 Calculate the total number of: a. Frame delimiters (2 Points) 4 b. Stuffed 0 s (2 Points) 5 c. Received errors (2 Points) 1

4. Error Checking using CRC (7 Points) a. Suppose a sender uses the CRC polynomial X 8 + X 2 + X + 1 to send a bit stream D. The actual data received by a receiver is 10 0010 1101 1110 1001. (1) How many bits does the original bit stream D have? (1 Point) 10 (2) Does the received data get corrupted? Circle One: YES NO (1 Point) Please show your work. Generator g is. (1 Point) 100010110111101001 100011111 110000100 0 Since the reminder is 0 (1 Point), the received data is NOT corrupted. b. Suppose a sender wants to send binary data 1010 1010 using the CRC polynomial X 5 + X 3 + X + 1. What are the actual bits that get transmitted? Please show your work. Generator g is. (1 Point) 1010101000000 110000 110110 111010 10001 Therefore, r = 10001 (1 Point), and the actual data transmitted is: 1 0101 0101 0001 (1 Point)

5. The Automatic Repeat Request (ARQ) Protocol (4 Points) A client and a server are transmitting data frames using the stop-and-wait ARQ protocol. Assume Round Trip Time (RTT) is 6 ms; The client timeout is 8 ms; The server drops every fourth transmission received from the client (server will not send acknowledgement for that data frame); Sequence number is correctly encoded in every data and acknowledgement frame; The client transmits the first frame at time 0. a. How many frames has the client already transmitted when it receives an acknowledgement of the 10th frame from the server? (2 Points) 13 frames. The 4 th, 7 th and 10 th frame are transmitted twice. b. Compute the time (in ms) when the client receives an acknowledgement of the 10th frame from the server. (2 Points) Total Time = RTT * Acknowledged Frames + Timeout * Retransmitted Frames = 6 * 10 + 8 * 3 = 84 ms