Department of Computer Science and Engineering. CSE 3214: Computer Network Protocols and Applications Instructor: N. Vlajic Date: Feb 10, 2011

Similar documents
8.2 The Internet Protocol

Mobile IP Network Layer Lesson 02 TCP/IP Suite and IP Protocol

Exam 1 Review Questions

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Network Layer IPv4. Dr. Sanjay P. Ahuja, Ph.D. Fidelity National Financial Distinguished Professor of CIS. School of Computing, UNF

Lecture 15. IP address space managed by Internet Assigned Numbers Authority (IANA)

Network Layer: Network Layer and IP Protocol

IP address format: Dotted decimal notation:

Chapter 9. IP Secure

IP Addressing. -Internetworking (with TCP/IP) -Classful addressing -Subnetting and Supernetting -Classless addressing

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

Chapter 3. TCP/IP Networks. 3.1 Internet Protocol version 4 (IPv4)

IP - The Internet Protocol

Chapter 11. User Datagram Protocol (UDP)

Lecture 8. IP Fundamentals

Network layer: Overview. Network layer functions IP Routing and forwarding

IP addressing and forwarding Network layer

Savera Tanwir. Internet Protocol

EITF25 Internet Techniques and Applications L5: Wide Area Networks (WAN) Stefan Höst

CS 457 Lecture 19 Global Internet - BGP. Fall 2011

21.4 Network Address Translation (NAT) NAT concept

Transport and Network Layer

RARP: Reverse Address Resolution Protocol

IP Addressing Introductory material.

Network layer" 1DT066! Distributed Information Systems!! Chapter 4" Network Layer!! goals: "

Future Internet Technologies

Mobile IP. Bheemarjuna Reddy Tamma IIT Hyderabad. Source: Slides of Charlie Perkins and Geert Heijenk on Mobile IP

Final for ECE374 05/06/13 Solution!!

Appendix A: Configuring Firewalls for a VPN Server Running Windows Server 2003

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

Subnetting,Supernetting, VLSM & CIDR

IP Addressing. IP Addresses. Introductory material.

Networking Test 4 Study Guide

Internet Packets. Forwarding Datagrams

SUPPORT DE COURS. Dr. Omari Mohammed Maître de Conférences Classe A Université d Adrar Courriel : omarinmt@gmail.com

IP Subnetting and Addressing

Lecture Computer Networks

CS335 Sample Questions for Exam #2

13 Virtual Private Networks 13.1 Point-to-Point Protocol (PPP) 13.2 Layer 2/3/4 VPNs 13.3 Multi-Protocol Label Switching 13.4 IPsec Transport Mode

CS 43: Computer Networks IP. Kevin Webb Swarthmore College November 5, 2013

Course Overview: Learn the essential skills needed to set up, configure, support, and troubleshoot your TCP/IP-based network.

Address Resolution Protocol (ARP), Reverse ARP, Internet Protocol (IP)

Internet Protocol: IP packet headers. vendredi 18 octobre 13

UPPER LAYER SWITCHING

ECE 358: Computer Networks. Solutions to Homework #4. Chapter 4 - The Network Layer

Internet Protocols Fall Lectures 7-8 Andreas Terzis

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Introduction to IP v6

1 Data information is sent onto the network cable using which of the following? A Communication protocol B Data packet

Answers to Sample Questions on Network Layer

Indian Institute of Technology Kharagpur. TCP/IP Part I. Prof Indranil Sengupta Computer Science and Engineering Indian Institute of Technology

Technical Support Information Belkin internal use only

Network Security TCP/IP Refresher

Protocols. Packets. What's in an IP packet

2. What is the maximum value of each octet in an IP address? A. 28 B. 255 C. 256 D. None of the above

Network Programming TDC 561

Internet Protocols. Addressing & Services. Updated:

TCP/IP Basis. OSI Model

Connecting to and Setting Up a Network

Computer Networks 1 (Mạng Máy Tính 1) Lectured by: Dr. Phạm Trần Vũ

High Performance VPN Solutions Over Satellite Networks

Ethernet. Ethernet. Network Devices

CE363 Data Communications & Networking. Chapter 6 Network Layer: Logical Addressing

Network Address Translation (NAT)

Chapter 3: Review of Important Networking Concepts. Magda El Zarki Dept. of CS UC Irvine

2. IP Networks, IP Hosts and IP Ports

Internetworking. Problem: There is more than one network (heterogeneity & scale)

Network-Oriented Software Development. Course: CSc4360/CSc6360 Instructor: Dr. Beyah Sessions: M-W, 3:00 4:40pm Lecture 2

Lecture 28: Internet Protocols

The Internet. Internet Technologies and Applications

Basic Networking Concepts. 1. Introduction 2. Protocols 3. Protocol Layers 4. Network Interconnection/Internet

Chapter 4 Network Layer

- IPv4 Addressing and Subnetting -

IP Addressing and Subnetting. 2002, Cisco Systems, Inc. All rights reserved.

Transport Layer Protocols

(Refer Slide Time: 01:38 01:37)

Understanding TCP/IP. Introduction. What is an Architectural Model? APPENDIX

Dynamic Host Configuration Protocol (DHCP) 02 NAT and DHCP Tópicos Avançados de Redes

Internet Addresses (You should read Chapter 4 in Forouzan)

Computer Networks. Lecture 3: IP Protocol. Marcin Bieńkowski. Institute of Computer Science University of Wrocław

First Workshop on Open Source and Internet Technology for Scientific Environment: with case studies from Environmental Monitoring

Internetworking and IP Address

How do I get to

TCP/IP and the Internet

Chapter 19 Network Layer: Logical Addressing 19.1

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Internet Control Protocols Reading: Chapter 3

Internet Protocol Version 6 (IPv6)

OSI Reference Model. Application Layer. Presentation Layer. Session Layer. Transport Layer. Chapter 4: Application Protocols.

Overview. Securing TCP/IP. Introduction to TCP/IP (cont d) Introduction to TCP/IP

ProCurve Networking IPv6 The Next Generation of Networking

PART OF THE PICTURE: The TCP/IP Communications Architecture

Lab IP Addressing Overview

Data Communication Networks and Converged Networks

Chapter 5. IPv4 Addresses. TCP/IP Protocol Suite 1 Copyright The McGraw-Hill Companies, Inc. Permission required for reproduction or display.

Network Layer. Introduction Datagrams and Virtual Circuits Routing Traffic Control. Data delivery from source to destination.

IP Addressing A Simplified Tutorial

Module 7 Internet And Internet Protocol Suite

04 Internet Protocol (IP)

How will the Migration from IPv4 to IPv6 Impact Voice and Visual Communication?

Transcription:

Department of Computer Science and Engineering CSE 3214: Computer Network Protocols and Applications Instructor: N. Vlajic Date: Feb 10, 2011 Midterm Examination Instructions: Examination time: 75 min. Print your name and CSE student number in the space provided below. This examination is closed book and closed notes. There are 6 questions. The points for each question are given in square brackets, next to the question title. The overall maximum score is 100. Answer each question in the space provided. If you need to continue an answer onto the last page, clearly indicate that and label the continuation with the question number. FIRST NAME: LAST NAME: STUDENT #: Question Points 1 / 20 2 / 10 3 / 20 4 / 18 5 / 15 6 / 17 Total / 100 1

1. Multiple Choice [20 points] time: 15 min Circle the correct answer(s) for the following statements. For each statement, you will obtain 0 marks if the number of circled answers is more/less than appropriate. (1.1) In the message packet is sent from the source to the destination without being divided into packets. (a) circuit-switching (b) virtual circuit-switching (c) packet switching (1.2) In the TCP/IP model, encryption and decryption are functions of layer. (a) network (b) transport (c) session (d) application (1.3) control means regulating the amount of data a source can send without overwhelming the destination. (a) error (b) congestion (c) flow (1.4) If the fragment offset in an IP fragment-packet has a value of 100, it means that. (a) the packet is 100 bytes in size (b) the 1 st byte in the payload of this packet is byte 400 in the original IP packet (c) the 1 st byte in the payload of this packet is byte 800 in the original IP packet (1.5) What is the maximum number of IP addresses recorded in an IP packet, if the value of the length field in the record route option of that packet is 27? (a) 27 (b) 24 (c) 12 (d) 6 2

(1.6) Using the limited broadcast address, a host can send a packet to on. (a) one specific host; the same network (b) all other hosts; the same network (c) one specific host; a remote network (d) all other hosts; a remote network (1.7) IPv6 allows packet fragmentation at. (a) every hop (b) source only (c) routers only (d) IPv6 does not allow fragmentation (1.8) When two computers using IPv6 want to communicate but the packet must pass through an IPv4 region, which transition strategy would be most advisable to use, in order to avoid loss of potentially critical information. (a) tunnelling (b) header translation (c) fragmentation (1.9) Which of the following reductions is the correct reduction of the IPv6 address 2001:0d02:0000:0000:0014:0000:0000:0095. (a) 2001:0d02::0014::0095 (b) 2001:d02:0:0:14::95 (c) 2001:d02:14:95 (1.10) Which of the following statements regarding the relationship between IPv6 Interface Identifier and the respective EUI-64 Identifier is correct? (a) IPv6 Interface Identifier is randomly generated from EUI-64 Identifier. (b) the two identifiers have 63 identical bits (c) IPv6 Interface Identifier is a compressed version of EUI-64 identifier 3

2. Optimal Packet Size [10 points] time: 10 min Suppose that a certain communications protocol involves a per-packet header of 100 bytes. We send 1 million bytes of data using this protocol. However, one data byte is corrupted and the entire packet containing this particular byte is thus lost and need to be retransmitted. Find the total number of overhead bytes, where overhead = (total header bytes + loss bytes) in the following 4 cases: a) packet size = 1,000 bytes, b) packet size = 5,000 bytes, c) packet size = 10,000 bytes, d) packet size = 20,000 bytes. Which packet size is optimal? The number of packets sent: N 6 10 = P Overhead: 6 10 O = N *100[ bytes] + ( P + 100) = *100[ bytes] + ( P + 100) P Packet size Overhead 1,000 101,100 5,000 25,100 10,000 20,100 20,000 25,100 Based on the above, the packet size of 10,000 bytes is the optimal packet size. 4

4. Subnetting [18 points] time: 10 min 4.1 [6 points] What is the total number of class B addresses available for assignment to individual hosts? Show your work. Total number of class B networks: 2 16-2 - 2. (All 0 and all 1 NetID excluded.) Total number of hosts in each class B network: 2 16-2. Total number of class B addresses: (2 14-2)*( 2 16-2) = (16384-2)*(65536-2)=1073577988 4.2 [6 points] IP address 172.16.123.213 is found to be residing on a subnetwork with the following subnet mask: 255.255.255.240. What is the actual address of this subnet? Show your work. 255.255.255.240 = 11111111 11111111 11111111 11110000. 172.16.123.213 = 10101100 00010000 01111011 11010101 Subnet address: 10101100 00010000 01111011 11010000 = 172.16.123.208 4.3 [6 points] You are given a host IP address 200.180.30.50/28. What is the broadcast IP address of the respective (sub)network? Show your work. IP address 200.128.30. 0011 0010 ------------------------- ------- Net ID HostID The broadcast address is obtained by setting the HostID part to all 1s. Hence, Broadcast Address: 200.128.30.63 7

6. IP Fragmentation [15 points] time: 10 min An IP datagram carrying 10000 bytes of data must be sent over a link (i.e. network) that has an MTU of 4468 bytes. Assume the datagram has no Options, and the Identification number is 218. How many fragments will be generated? State the values (in decimal numbers) of the following fields for each of the fragments: Identification, Total Length, D-bit, M-bit, Fragmentation Offset. The format of the IP header is shown on the subsequent page. 3 fragments. 1 st fragment : 4448 +20 bytes 2 nd fragment: 4448 +20 bytes 3 rd fragment: 1104 +20 bytes First Second Third IDENTIFICATION 218 218 218 TOTAL LENGTH 4468 4468 1124 DNF 0 0 0 MF 1 1 0 FRAGMENT OFFSET 0 556 1112 http://web2.uwindsor.ca/courses/cs/aggarwal/cs60375/papers/midterm1_1.doc 11

5.2) [4 points] Consider the network below consisting of four routers. Every link has capacity of 1 Mbps, and every flow sends data at 1 Mbps. Assume that all flows are UDP and use the same packet size. a) What is the throughput of each flow (i.e. actual rate at which packets of this flow arrive at its respective destination), if all routers implement FIFO scheduling. FIFO scheduling implies that in the case of congestion, each packet is dropped with the same probability. Flow 1: 1/4Mbps, Flow 2: 1/2Mbps, Flow 3: 2/3Mbps, Flow 4: 3/4Mbps. Because each link is congested (the sum of the arrival rates of the flows at each link is greater than 1Mbps), ach flow gets a throughput proportional to its arrival rate. On link AB, the arrival rates of both Flow 1and Flow 2 is 1Mbps, so each flow gets 0.5Mbps. On link AB, the arrival rate of Flow 1 is 0.5Mbps while the arrival rate of Flow 3 is 1Mbps, so Flow 3 will get 2/3Mbps, while Flow 1 will get 1/3Mbps. Finally, on link CD, the arrival rate of Flow 1 is 1/3Mbps, while the arrival rate of Flow 4 is 1Mbps, so Flow 4 will get 3/4Mbps, while Flow 1 will get 1/4Mbps. b) What is the throughput of each flow if all routers implement Weighted Fair Queueing, and each Flow i has weight i? Flow 1: 1/5Mbps, Flow 2: 2/3Mbps, Flow 3: 3/4Mbps, Flow 4: 4/5Mbps. On link AB, Flow 1 gets 1/3Mbps while Flow 2 gets 2/3Mbps; on link BC Flow 2 gets 1/4Mbps, while Flow 3 gets 3/4Mbps; on link CD Flow 1 gets 1/5Mbps, and Flow 4 gets 4/5Mbps. 11

3. NAT and IPv6 [12 points] 3.1) [3 points] Assume an IP packet carrying an HTTP request is going from a local (i.e. home) area network onto the wider Internet through a NAT router. Name all header fields that the NAT router needs to change in the given packet? Explain your answer. (Hint: encapsulation as well as the syntax/semantics of all involved protocols must be taken into consideration.) SOLUTION: It is very much clear from 3.1) that one IP and TCP header field need to be changed: 1) the source IP address, 2) TCP source port number. The change in the value of these two parameters implies that the following two fields also need to be changed: 3) IP checksum 4) TCP checksum 3.2) [3 points] The diagram below shows a packet traveling through a NAT router. Packet 1 is sent from the internal host (S) to the NAT router, packet 2 is sent from the NAT router to the external web server (D), packet 3 is received from the web server by the NAT router, and packet 4 is sent by the NAT router to the original host. Fill in the missing source and destination IP addresses and port numbers in packets 2-4. 5

SOLUTION: P2: S=138.76.29.7, 5001 D=128.110.40.186, 80 P3: S=128.110.40.186, 80 D=138.76.29.7, 5001 P4: S=128.110.40.186, 80 D=10.0.0.1, 3345 3.3) [3 points] The diagram below shows an IPv6 packet tunnelled over IPv4. Fill in the missing source and destination addresses at places/packets marked 1, 2, and 3. 1 2 3 SOLUTION: 1: S=B D=E 2: S=B D=E 3: S=A D=F 3.4) [3 points] Name two modifications of IPv6, from the IPv4, that allow a router to process a packet quicker. SOLUTION: 1: fixed header length / better header format 2: no packet fragmentation at routers 3: no checksum 6

IP PACKET FORMAT: ARP PACKET FORMAT: 12