CPSC 441 COMPUTER NETWORKS MIDTERM EXAM

Similar documents
CPSC 441 COMPUTER COMMUNICATIONS MIDTERM EXAM

CPSC 441 COMPUTER COMMUNICATIONS MIDTERM EXAM SOLUTION

CPSC 441 COMPUTER COMMUNICATIONS MIDTERM EXAM SOLUTION

PLEASE READ CAREFULLY BEFORE YOU START

PLEASE READ CAREFULLY BEFORE YOU START

Position of IP and other network-layer protocols in TCP/IP protocol suite

Computer Communication Networks Midterm Review

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

PLEASE READ CAREFULLY BEFORE YOU START

CCNA 1 Chapter 7 v5.0 Exam Answers 2013

PLEASE READ CAREFULLY BEFORE YOU START

CSE 3214: Computer Network Protocols and Applications. Midterm Examination

PLEASE READ CAREFULLY BEFORE YOU START

PLEASE READ CAREFULLY BEFORE YOU START

Just enough TCP/IP. Protocol Overview. Connection Types in TCP/IP. Control Mechanisms. Borrowed from my ITS475/575 class the ITL

TSIN02 - Internetworking

User Datagram Protocol

Transport Layer. Gursharan Singh Tatla. Upendra Sharma. 1

Introduction to Protocols

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

Guide To TCP/IP, Second Edition UDP Header Source Port Number (16 bits) IP HEADER Protocol Field = 17 Destination Port Number (16 bit) 15 16

precise rules that govern communication between two parties TCP/IP: the basic Internet protocols IP: Internet protocol (bottom level)

Midterm I of Computer Communication , Winter 2004 Electrical and Computer Engineering Department, University of Windsor

TSIN02 - Internetworking

APPENDIX F THE TCP/IP PROTOCOL ARCHITECTURE

Internet Applications and the Application Layer Material from Kurose and Ross, Chapter 2: The Application Layer

School of Engineering Department of Computer and Communication Engineering Semester: Fall Course: CENG415 Communication Networks

Problem 7. Problem 8. Problem 9

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

Chapter 2 - Part 1. The TCP/IP Protocol: The Language of the Internet

Introduction to TCP/IP networking

CS 5520/ECE 5590NA: Network Architecture I Spring Lecture 13: UDP and TCP

CMPE150 Midterm Solutions

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

CSCI 466 Midterm Networks Fall 2013

Midterm Exam CSCE 232: Computer Networks Fall Instructions:

Lesson 5 TCP/IP suite, TCP and UDP Protocols. Chapter-4 L05: "Internet of Things ", Raj Kamal, Publs.: McGraw-Hill Education

Sirindhorn International Institute of Technology Thammasat University

ECS 152A Computer Networks Instructor: Liu. Name: Student ID #: Final Exam: March 17, 2005

EE 610 Part 2: Encapsulation and network utilities

Network Management & Monitoring

Answers to Sample Questions on Transport Layer

6.1 Internet Transport Layer Architecture 6.2 UDP (User Datagram Protocol) 6.3 TCP (Transmission Control Protocol) 6. Transport Layer 6-1

TCP/IP Overview. Basic Networking Concepts. 09/14/11 Basic TCP/IP Networking 1

Lab 1: Packet Sniffing and Wireshark

ETSF10 Internet Protocols Transport Layer Protocols

CS 428/528 Computer Networks Lecture 01. Yan Wang

TCP/IP Performance ITL

Chapter 5 End-to-End Protocols

Unix Network Programming

TRANSMISSION CONTROL PROTOCOL. ETI 2506 TELECOMMUNICATION SYSTEMS Monday, 7 November 2016

Introduction to computer networking

ECE 650 Systems Programming & Engineering. Spring 2018

System Programming. Introduction to computer networks

The Transmission Control Protocol (TCP)

TCP/IP THE TCP/IP ARCHITECTURE

Concept Questions Demonstrate your knowledge of these concepts by answering the following questions in the space that is provided.

Chapter 6. What happens at the Transport Layer? Services provided Transport protocols UDP TCP Flow control Congestion control

THE UNIVERSITY OF NEW SOUTH WALES

TSIN02 - Internetworking

ECE697AA Lecture 3. Today s lecture

CPSC 457 OPERATING SYSTEMS MIDTERM EXAM

TSIN02 - Internetworking

Network Layer (1) Networked Systems 3 Lecture 8

CS 4390 Computer Networks. Transport Services and Protocols

Your Name: Your student ID number:

Student ID: CS457: Computer Networking Date: 3/20/2007 Name:

Question 1 (6 points) Compare circuit-switching and packet-switching networks based on the following criteria:

Internet Layers. Physical Layer. Application. Application. Transport. Transport. Network. Network. Network. Network. Link. Link. Link.

Chapter 24. Transport-Layer Protocols

Lecture 20 Overview. Last Lecture. This Lecture. Next Lecture. Transport Control Protocol (1) Transport Control Protocol (2) Source: chapters 23, 24

The Transport Layer. Part 1

ECE 333: Introduction to Communication Networks Fall 2002

Reliable Transport I: Concepts and TCP Protocol

===================================================================== Exercises =====================================================================

OSI Network Layer. Network Fundamentals Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

CSCI-GA Operating Systems. Networking. Hubertus Franke

App. App. Master Informatique 1 st year 1 st term. ARes/ComNet Applications (7 points) Anonymous ID: stick number HERE

COMP750. Distributed Systems. Network Overview

Computer Network 2015 Mid-Term Exam.

CCNA R&S: Introduction to Networks. Chapter 7: The Transport Layer

UNIT IV -- TRANSPORT LAYER

Transport Layer. Application / Transport Interface. Transport Layer Services. Transport Layer Connections

5105: BHARATHIDASAN ENGINEERING COLLEGE NATTARMPALLI UNIT I FUNDAMENTALS AND LINK LAYER PART A

TDTS06: Computer Networks

Computer Networks - Midterm

FINAL May 21, minutes

FINAL Tuesday, 20 th May 2008

CS 421: COMPUTER NETWORKS SPRING FINAL May 24, minutes. Name: Student No: TOT

CSE 473 Introduction to Computer Networks. Midterm Exam Review

Introduction to Open System Interconnection Reference Model

TCP/IP protocol suite

UDP and TCP. Introduction. So far we have studied some data link layer protocols such as PPP which are responsible for getting data

Question Points Score total 100

MODULE: NETWORKS MODULE CODE: CAN1102C. Duration: 2 Hours 15 Mins. Instructions to Candidates:

First Exam for ECE671 Spring /22/18

Review of Important Networking Concepts

The Transport Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

OSI Transport Layer. objectives

3.2 COMMUNICATION AND INTERNET TECHNOLOGIES

Transcription:

CPSC 441 COMPUTER NETWORKS MIDTERM EXAM Department of Computer Science University of Calgary Professor: Carey Williamson March 7, 2018 This is a CLOSED BOOK exam. Textbooks, notes, laptops, personal digital assistants, tablets, and cellular phones are NOT allowed. However, calculators are permitted. It is a 50 minute exam, with a total of 50 marks. There are 12 questions, and 7 pages (including this cover page). Please read each question carefully, and write your answers legibly in the space provided. You may do the questions in any order you wish, but please USE YOUR TIME WISELY. When you are finished, please hand in your exam paper and sign out. Good luck! Student Name: Score: / 50 = % Optional Privacy Fold Here - Student ID: 1

Multiple Choice Choose the best answer for each of the following 8 questions, for a total of 8 marks. 1 1. Historically, the big three applications in the early days of the Internet were: (a) remote login, World Wide Web, and illegal file sharing (b) remote login, file transfer, and gopher (c) secure shell, video streaming, and electronic mail (d) file transfer, remote login, and electronic mail (e) file transfer, Twitter, and Facebook 1 2. The Domain Name Service (DNS) is an example of a: (a) transaction-oriented application-layer protocol (b) session-oriented application-layer protocol (c) transaction-oriented transport-layer protocol (d) session-oriented transport-layer protocol (e) all of the above 1 3. The Simple Mail Transfer Protocol (SMTP) is an example of a: (a) transaction-oriented application-layer protocol (b) session-oriented application-layer protocol (c) transaction-oriented transport-layer protocol (d) session-oriented transport-layer protocol (e) all of the above 1 4. The primary advantage of a persistent HTTP connection is: (a) a larger version number (1.1) than non-persistent HTTP (1.0) (b) additional RTT s when obtaining multiple Web objects from the same Web server (c) re-using an existing TCP connection for a Web transfer when it is possible to do so (d) eliminating the need for state information at the application layer (e) extra funding support from Google 2

1 5. The transmission time for a 1200-byte packet on a classic 10 Mbps (Megabits per second) Ethernet LAN would be approximately: (a) 1 millisecond (b) 2 milliseconds (c) 10 milliseconds (d) 20 milliseconds (e) 50 milliseconds 1 6. The one-way propagation delay for a single bit of information traveling at the speed of light (3 x 10 8 meters per second) over a fiber-optic cable from Vancouver to Halifax (6000 kilometers) would be approximately: (a) 1 millisecond (b) 2 milliseconds (c) 10 milliseconds (d) 20 milliseconds (e) 50 milliseconds 1 7. The underlying control principle in TCP s congestion avoidance algorithm is: (a) Additive Increase, Multiplicative Decrease (b) Exponential Increase, Multiplicative Decrease (c) Additive Increase, Exponential Increase (d) Additive Decrease, Multiplicative Increase (e) Additive Increase, Additive Decrease 1 8. In general, the throughput achieved by TCP for a file transfer is: (a) inversely proportional to the average window size used during the transfer (b) inversely proportional to the round trip time of the network path (c) inversely proportional to the TCP segment size used for the transfer (d) inversely proportional to the file size (e) all of the above 3

Internet Protocol Stack 10 9. Use your knowledge of the Internet s TCP/IP protocol stack to complete the following fill-in-the-blank sentences and paragraphs. (20 blanks to fill in, each worth 0.5 marks) The Internet Protocol Stack has layers. The top-most layer is called the layer. The logical units of data exchanged at this layer are called. Two examples of protocols at this layer are and. The next lower layer is called the layer. The logical units of data exchanged here are called. Two services provided at this layer are and. On the Internet, the two protocols to choose from at this layer are and. Layer 3 of the Internet Protocol Stack is called the Network Layer. It deals with logical data units called. The most prominent protocol at this layer on the Internet is. Immediately beneath the Network Layer is the layer. It deals with logical data units called, which are exchanged on a hop-by-hop basis over network links. One example of a widely-used protocol at this layer is. The lowest layer of the Internet Protocol Stack is the layer. The most basic unit of data exchange at this layer is called a. Two examples of transmission media commonly used at this layer include and. 4

Networking Concepts and Definitions 12 10. For each of the following pairs of technical terms, define each term, and clarify the key difference(s) between the two terms. Be clear and concise. (a) (3 marks) connection-oriented and connectionless (b) (3 marks) encapsulation and decapsulation (c) (3 marks) iterative DNS query and recursive DNS query (d) (3 marks) go-back-n and selective repeat 5

Reliable Data Transfer 10 11. In class, we discussed several versions of Reliable Data Transfer (RDT) protocols, and the mechanisms used to detect and recover from different types of errors that could occur in an unreliable network layer. (a) (3 marks) One type of error is a corrupted data segment. What mechanism or mechanisms are needed in an RDT protocol to detect and recover from this type of error? How do they work? (b) (3 marks) A second type of error is a duplicate data segment. What mechanism or mechanisms are needed in an RDT protocol to detect this type of error? In particular, what state variables are needed, and where do they reside? (c) (4 marks) A third type of error is a lost data segment. What mechanism or mechanisms are needed in an RDT protocol to detect and recover from this type of error? What additional state information is needed, and where does it reside? 6

Transmission Control Protocol (TCP) 10 12. The diagram below illustrates the generic segment structure used by the Transmission Control Protocol (TCP). Use your knowledge of TCP to answer the following questions. Source Port Destination Port Sequence Number Acknowledgement Number Length Flags Window Checksum Urgent Pointer Options (optional) DATA (optional) (a) (1 mark) What is the default size (in bytes) for a TCP segment header? (b) (2 marks) What is a Transport Level Endpoint (TLE)? Which field or fields are used to help convey this information? (c) (3 marks) Which field or fields are used in TCP s 3-way handshake to open a new connection? What information is conveyed during the handshake, and how? (d) (2 marks) What is the purpose of the Window field? How is it used? (e) (1 mark) What Flags field bit is used to abort a TCP connection that has encountered an unrecoverable error? (f) (1 mark) Which header fields (if any) are used by TCP s congestion control algorithms? *** THE END *** 7