Communication and Networks. Problems

Similar documents
CIS-331 Final Exam Fall 2015 Total of 120 Points. Version 1

CIS-331 Final Exam Spring 2016 Total of 120 Points. Version 1

CIS-331 Fall 2014 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Spring 2016 Exam 1 Name: Total of 109 Points Version 1

CIS-331 Final Exam Spring 2015 Total of 115 Points. Version 1

CIS-331 Final Exam Spring 2018 Total of 120 Points. Version 1

CIS-331 Exam 2 Spring 2016 Total of 110 Points Version 1

CIS-331 Exam 2 Fall 2014 Total of 105 Points. Version 1

CIS-331 Exam 2 Fall 2015 Total of 105 Points Version 1

CIS-331 Fall 2013 Exam 1 Name: Total of 120 Points Version 1

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Network Layer/IP Protocols

CSCI Networking Name:

The Internet Protocol. IP Addresses Address Resolution Protocol: IP datagram format and forwarding: IP fragmentation and reassembly

Network Layer PREPARED BY AHMED ABDEL-RAOUF

McGraw-Hill The McGraw-Hill Companies, Inc., 2000

IP Address Assignment

Network Layer: Control/data plane, addressing, routers

IP Addresses McGraw-Hill The McGraw-Hill Companies, Inc., 2000

RMIT University. Data Communication and Net-Centric Computing COSC 1111/2061. Lecture 2. Internetworking IPv4, IPv6

Data Communication & Computer Networks Week # 13

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Computer Networking: A Top Down Approach Featuring the. Computer Networks with Internet Technology, William

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

ECE4110 Internetwork Programming. Introduction and Overview

Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

ETSF15: Lecture 5 - Routing - Network protocols - IPv4/IPv6 - ARP/NDP. Jens A Andersson

The Interconnection Structure of. The Internet. EECC694 - Shaaban

ECE 461 Internetworking Fall Quiz 1

Linux System Administration

EITF25 Internet Techniques and Applications L7: Internet. Stefan Höst

ECE 4450:427/527 - Computer Networks Spring 2017

ECE 461 Internetworking Fall Quiz 1

TCP /IP Fundamentals Mr. Cantu

cs144 Midterm Review Fall 2010

Communication and Networks. Problems

Solution of Exercise Sheet 4. Exercise 1 (Routers, Layer-3-Switches, Gateways)

CS 43: Computer Networks. 21: The Network Layer & IP November 7, 2018

Date: June 4 th a t 1 4:00 1 7:00

II. Principles of Computer Communications Network and Transport Layer

ECPE / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

Lecture 4 The Network Layer. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

CSC 401 Data and Computer Communications Networks

Chapter 06 IP Address

Networks. an overview. dr. C. P. J. Koymans. Informatics Institute University of Amsterdam. February 4, 2008

Data Communication Prof. A. Pal Department of Computer Science & Engineering Indian Institute of Technology, Kharagpur Lecture 34 TCP/ IP I

Internet Protocol (IP)

Chapter Motivation For Internetworking

TSIN02 - Internetworking

Computer Networks CS 552

Computer Network Fundamentals Spring Week 4 Network Layer Andreas Terzis

Chapter 6 Addressing the Network- IPv4

CPSC 826 Internetworking. The Network Layer: Routing & Addressing Outline. The Network Layer

Network Layer: Logical Addressing

TSIN02 - Internetworking

Network Basic v0.1. Network Basic v0.1. Chapter 3 Internet Protocol. Chapter 3. Internet Protocol

Guide to Networking Essentials, 6 th Edition. Chapter 5: Network Protocols

EC441 Fall 2018 Introduction to Computer Networking Chapter4: Network Layer Data Plane

PART X. Internetworking Part 1. (Concept, IP Addressing, IP Routing, IP Datagrams, Address Resolution)

Chapter 19 Network Layer: Logical Addressing

Outline. Addressing on the network layer ICMP IPv6 Addressing on the link layer Virtual circuits

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

Addressing and Routing

ECE 158A: Lecture 7. Fall 2015

Chapter 18 and 22. IPv4 Address. Data Communications and Networking

CSCI Computer Networks Fall 2016

INTRODUCTION OF IPV6. Ravikumar Naik 21/11/2011

Quiz. Segment structure and fields Flow control (rwnd) Timeout interval. Phases transition ssthresh setting Cwnd setting

End-to-End Communication

The identifier used in the IP layer of the TCP/IP protocol suite to identify each device connected to the Internet is called the Internet address or

Network Security Fundamentals. Network Security Fundamentals. Roadmap. Security Training Course. Module 2 Network Fundamentals

TCP/IP and the OSI Model

Networking Basics. EC512 Spring /15/2015 EC512 - Prof. Thomas Skinner 1

Agenda L2 versus L3 Switching IP Protocol, IP Addressing IP Forwarding ARP and ICMP IP Routing First Hop Redundancy

The Network Layer Forwarding Tables and Switching Fabric

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

Information Network Systems The network layer. Stephan Sigg

This talk will cover the basics of IP addressing and subnetting. Topics covered will include:

Chapter 5 TCP/IP SUITE

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CS 3516: Advanced Computer Networks

Data and Computer Communications. Chapter 2 Protocol Architecture, TCP/IP, and Internet-Based Applications

IP - The Internet Protocol

UNIVERSITY OF TORONTO FACULTY OF APPLIED SCIENCE AND ENGINEERING

ELEC / COMP 177 Fall Some slides from Kurose and Ross, Computer Networking, 5 th Edition

CIS 551 / TCOM 401 Computer and Network Security

3. Provide the routing table of host H located in LAN E, assuming that the host s network interface is called i1. ARes/ComNet

Examination 2D1392 Protocols and Principles of the Internet 2G1305 Internetworking 2G1507 Kommunikationssystem, fk SOLUTIONS

Hands-On Network Security: Practical Tools & Methods

Chapter 18. Introduction to Network Layer

ECE 435 Network Engineering Lecture 12

Telecom Systems Chae Y. Lee. Contents. Overview. Issues. Addressing ARP. Adapting Datagram Size Notes

Vorlesung Kommunikationsnetze

Module 7 Internet And Internet Protocol Suite

Networking: Network Layer

Presentation On Routing Protocol

CS610 Computer Network Final Term Papers Solved MCQs with reference by Virtualians Social Network

IP: Addressing, ARP, Routing

Communication Systems DHCP

Transcription:

Electrical and Information Technology Communication and Networks Problems Network Layer (IP) 2016 Problems 1. The table below describes the next hop for each destination in the network for all nodes in the network. From this information draw the net graph. Least hop path is assumed. dn = destination node, nn = next node. A B C D E F dn nn dn nn dn nn dn nn dn nn dn nn B B A A A B A A A A A E C B C C B B B A B A B B D D D A D F C E C F C C E E E A E F E E D D D E F B F F F F F E F F E E 2. Consider the network: 1

(a) (b) (c) (d) Calculate the cumulative cost A-C-E. Assume cost is equal for all links/edges. Use least hop path and construct a routing table for node B. Assume costs as in the figure. Use least cost path and construct a routing table for node B including the cumulative cost to use a path. Now assume that the link A-C is broken. Construct the new routing table for node B. 3. Given the network in the figure. Assume flooding is used when a packet is sent from A to E An upper limit for the hop count (TTL) is set to reduce the number of packet copies. (a) What is the smallest hop count that guarantees that at least one copy shall reach E? 2

(b) How many packet copies in total will be transmitted? 4. Determine the 8 bit checksum for the following bit sequences. (a) 10010011 10010011 (b) 00011001 01010011 (c) 11000111 00001101 5. Suppose a receiver receives the following bit sequences. 8 bit checksum is used. Have the streams been received correctly? (a) 10010011 10011011 11011001 (b) 00110011 10110111 00010101 (c) 01110000 00111000 01010111 6. Below is a printout of an Ethernet frame taken from a sniffing tool. The preamble, SFD and CRC is not included in the trace. 0000 ff ff ff ff ff ff 08 60 6e 7a a6 a4 08 00 45 00 0010 00 44 0d 79 00 00 80 11 91 11 82 eb c9 48 82 eb 0020 cb ff c5 aa 07 9b 00 30 8e 01 50 5a 38 70 61 6d 0030 48 38 7a 65 5a 74 74 4f 6f 7a 58 65 36 4e 42 52 0040 6b 44 4c 49 73 65 49 52 75 77 4c 64 6b 36 73 75 0050 38 41 (a) (b) (c) (d) We have learned from a previous problem that this frame contains an IPv4 datagram. How can we see this from looking into the payload of the Ethernet frame? How can we determine where the payload field of the IP datagram is found? What is the content of the IP datagram s payload? What is the IP address of the sender and of the receiver of this IP datagram? 3

(e) (f) (g) Knowing that the net mask for network 130.235.200.0 is 255.255.252.0, what type of address is the destination address? Write the destinations network id as a prefix! Has the header been correctly received? 7. Calculate efficiency on the IP and Ethernet level for some IPv4 datagram scenarios. No options are added the IPv4 header. Include all control fields as well as preamble and SFD in your calculations. (a) (b) The smallest IP datagram encapsulated in an Ethernet II frame. The biggest IP datagram encapsulated in an Ethernet II frame. 8. Show the following IPv4 addresses in binary notation. (a) 114.34.2.8 (b) 129.14.6.8 (c) 208.34.54.12 (d) 238.34.2.1 9. Show the following IPv4 addresses in dot decimal notation. (a) 01111111 11110000 01100111 01111101 (b) 10101111 11000000 11110000 00011101 (c) 11011111 10110000 00011111 01011101 (d) 11101111 11110111 11000111 00011101 10. What class do these IPv4 addresses belong to? (a) 208.34.54.12 4

(b) 238.34.2.1 (c) 114.34.2.8 (d) 129.14.6.8 (e) 241.34.2.8 11. State net id and host id for the following classfull IPv4 addresses. (a) 114.34.2.8 (b) 171.34.14.8 (c) 192.8.56.2 12. State net id and host id for the following classless IPv4 addresses. (a) IP address 130.235.185.49, mask 255.255.0.0. (b) IP address 130.235.188.247, mask 255.255.192.0. (c) IP address 120.14.22.16, mask 255.255.128.0 (d) IP address 141.181.14.16, mask 255.255.224.0 13. Show these IPv6 addresses in their shortest form. (a) 2340:1ABC:119A:A000:0000:0000:0000:0001 (b) 0000:00AA:0000:0000:0000:0000:119A:A231 (c) 2340:0000:0000:0000:0000:119A:A001:0000 (d) 0000:0000:8000:2340:0000:0000:0000:0000 14. Show these IPv6 addresses in their original, complete form. (a) 0::0 5

(b) 0:AA::0 (c) 0:1234::3 (d) 123::1:2 6

Solutions 1. See the figure: 2. (a) 3 (b) (c) (d) dn A C D E nn (B,A) (B,C) (B,A) or (B,C) or (B,E) (B,E) dn nn, cost A (B,A), 1 C (B,A,C), 2 D (B,A,C,D), 3 or (B,E,D), 3 E (B,E), 1 dn nn, cost A (B,A), 1 C (B,C), 3 or (B,E,C), 3 D (B,E,D), 3 E (B,E), 1 3. (a) 3 7

(b) 14 4. (a) 11011000 (b) 10010011 (c) 00101011 5. (a) No (b) Yes (c) Yes 6. (a) The first byte following the Ethernet header contains 45. The first nibble (=half a byte) contains 4 16 which indicates IP version 4. (b) (c) (d) (e) The header size in number of 32 bit words is found in the second nibble of the first byte of the IP datagram. This field is 5 16, thus the header is 20 bytes long. The type field contains 11 16 = 17 10 which indicates UDP. The source field contains 82 eb c9 48 thus 130.235.201.72. The destination field contains 82 eb cb ff thus 130.235.203.255. Applying the net mask on the destination address gives a hos id of all ones which is the networks broadcast address. (f) 130.235.200/22 or 130.235.200.0/22 (g) No. Doing header checksum calculation gives a non zero result. 7. (a) The smallest IP datagram payload consists of one byte. The IPv4 header is 20 bytes; thus 1/20 = 5%. The minimum Ethernet II frame size is 72 bytes; thus 1/72 = 1.38%. (b) The largest IP datagram payload is 65515 bytes; thus 65515/(20 + 65515) = 99.9%. The largest Ethernet II frame payload is 1500 bytes. An IPv4 datagram payload must not be greater that 1480 bytes. This gives the IPv4 efficiency 1480/1500 = 98.7% and the Ethernet II efficiency 1480/1526 = 97.0%. 8

8. (a) 01111010 00100010 00000010 00001000 (b) 10000001 00001110 00000110 00001000 (c) 11001000 00100010 00110110 00001100 (d) 11101110 00100010 00000010 00000001 9. (a) 127.240.103.125 (b) 175.192.240.29 (c) 223.176.31.93 (d) 239.247.199.29 10. (a) Class C (b) Class D (c) Class A (d) Class B (e) Class E 11. (a) Net id: 114.0.0.0; host id: 0.34.2.8 (b) Net id: 171.34.0.0; host id: 0.0.14.8 (c) Net id: 192.8.56.0; host id: 0.0.0.2 12. (a) Net id: 130.235.0.0; host id: 0.0.185.49 (b) Net id: 130.235.128.0; host id: 0.0.60.247 (c) Net id: 120.14.0.0; host id: 0.0.22.16 (d) Net id: 141.181.0.0; host id: 0.0.14.16 13. (a) 2340:1ABC:119A:A000::1 (b) 0:AA::119A:A231 9

(c) 2340::119A:A001:0 (d) 0:0:8:2340::0 14. (a) 0000:0000:0000:0000:0000:0000:0000:0000 (b) 0000:00AA:0000:0000:0000:0000:0000:0000 (c) 0000:1234:0000:0000:0000:0000:0000:0003 (d) 0123:0000:0000:0000:0000:0000:0001:0002 10