Chapter 5: Sample Questions, Problems and Solutions Bölüm 5: Örnek Sorular, Problemler ve Çözümleri Örnek Sorular (Sample Questions):



Similar documents
Chapter 6. The Network Layer

The Network Layer Functions: Congestion Control

Computer Networks. Main Functions

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

Introduction to LAN/WAN. Network Layer

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

Datagram-based network layer: forwarding; routing. Additional function of VCbased network layer: call setup.

ELEC3030 (EL336) Computer Networks. How Networks Differ. Differences that can occur at network layer, which makes internetworking difficult:

Introduction to LAN/WAN. Network Layer (part II)

Internetworking and Internet-1. Global Addresses

Internet Addresses (You should read Chapter 4 in Forouzan)

CS335 Sample Questions for Exam #2

College 5, Routing, Internet. Host A. Host B. The Network Layer: functions

Transport and Network Layer

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

Quality of Service in the Internet. QoS Parameters. Keeping the QoS. Traffic Shaping: Leaky Bucket Algorithm

Chapter 19 Network Layer: Logical Addressing 19.1

Savera Tanwir. Internet Protocol

10CS64: COMPUTER NETWORKS - II

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

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

IP Subnetting and Addressing

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

QoS Parameters. Quality of Service in the Internet. Traffic Shaping: Congestion Control. Keeping the QoS

IP Addressing. IP Addresses. Introductory material.

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

PART IV. Network Layer

IP Addressing Introductory material.

Internet Protocol Address

Introduction to IP v6

1. How many unique network IDs are there in class A addresses? # of unique hosts?

CS 348: Computer Networks. - IP addressing; 21 st Aug Instructor: Sridhar Iyer IIT Bombay

The IP Transmission Process. V1.4: Geoff Bennett

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

Lecture Computer Networks

Computer Networks. Introduc)on to Naming, Addressing, and Rou)ng. Week 09. College of Information Science and Engineering Ritsumeikan University

The Internet. Internet Technologies and Applications

Internet Packets. Forwarding Datagrams

Tutorial (03) IP addresses & Sub netting

Answers to Sample Questions on Network Layer

APPENDIX B. Routers route based on the network number. The router that delivers the data packet to the correct destination host uses the host ID.

Routing in packet-switching networks

Computer Network Foundation. Chun-Jen (James) Chung. Arizona State University

QUIZ: Review of Data Link layer (L2)

Congestion Control Overview

Introduction to TCP/IP

IP address format: Dotted decimal notation:

RARP: Reverse Address Resolution Protocol

Internet Protocol (IP) IP - Network Layer. IP Routing. Advantages of Connectionless. CSCE 515: Computer Network Programming IP routing

Cisco Configuring Basic MPLS Using OSPF

8.2 The Internet Protocol

Internetworking and IP Address

ICS 351: Today's plan

Variable length subnetting

Internet Protocols. Addressing & Services. Updated:

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

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

Future Internet Technologies

Lehrstuhl für Informatik 4 Kommunikation und verteilte Systeme. Auxiliary Protocols

Lecture 8. IP Fundamentals

Internet Protocol version 4 Part I

CCNA Tutorial Series SUBNETTING

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

Chapter 3: Sample Questions, Problems and Solutions Bölüm 3: Örnek Sorular, Problemler ve Çözümleri

PART-A Questions. 9. What are the two parts of message inside the envelope?

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

Internet Protocols Fall Lectures 7-8 Andreas Terzis

(Refer Slide Time: 02:17)

IP addressing. Interface: Connection between host, router and physical link. IP address: 32-bit identifier for host, router interface

How To Make A Network Address Prefix Smaller

1. The subnet must prevent additional packets from entering the congested region until those already present can be processed.

Layer 3 Routing User s Manual

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

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

IP Addressing A Simplified Tutorial

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT COMPUTER NETWORKS

Internetworking II: VPNs, MPLS, and Traffic Engineering

Computer Networks By Bahaa Q. Al-Mussawi Subnetting Basics Reduced network traffic Optimized network performance Simplified management

Motivation. QoS Guarantees. Internet service classes. Certain applications require minimum level of network performance:

Based on Computer Networking, 4 th Edition by Kurose and Ross

Guide to TCP/IP, Third Edition. Chapter 2: IP Addressing and Related Topics

UPPER LAYER SWITCHING

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

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

Distributed Systems 3. Network Quality of Service (QoS)

Network and Host Addresses , Cisco Systems, Inc. All rights reserved. INTRO v1.0a 6-4

DG Forwarding Algorithm

Module 2: Assigning IP Addresses in a Multiple Subnet Network

Chapter 10 Link-State Routing Protocols

Networking Test 4 Study Guide

Computer Networks Homework 1

Scaling the Network: Subnetting and Other Protocols. Networking CS 3470, Section 1

Announcements. Midterms. Mt #1 Tuesday March 6 Mt #2 Tuesday April 15 Final project design due April 11. Chapters 1 & 2 Chapter 5 (to 5.

Route Discovery Protocols

Routing with OSPF. Introduction

CSC458 Lecture 6. Homework #1 Grades. Inter-domain Routing IP Addressing. Administrivia. Midterm will Cover Following Topics

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

Based on Computer Networking, 4 th Edition by Kurose and Ross

Transcription:

Chapter 5: Sample Questions, Problems and Solutions Bölüm 5: Örnek Sorular, Problemler ve Çözümleri Örnek Sorular (Sample Questions): What is Store-and-Forward packet switching? What is a connectionless service? Which is a connection-oriented service? What are the nonadaptive routing algorithms? What are the adaptive routing algorithms? What is the optimality principle? What is a sink tree? What is the shortest path routing algorithm? What is a distance vector routing algorithm? What is a link state routing algorithm? What is a hierarchical routing algorithm? What is a broadcast routing algorithm? What is a reverse path forwarding routing algorithm? What is a multicast routing algorithm? What is a routing algorithm for mobile hosts? What is a routing algorithm in Ad Hoc networks? What is congestion? List the policies that affect congestion in Transport, Network and Data Link layers. Describe the congestion control in Virtual-Circuit Subnet. Describe the congestion control in Datagram Subnet. What are hop-by-hop choke packets? What is Jitter control? What is flow? What is quality of service? What is buffering technique for achieving good quality of service? What is the leaky bucket algorithm for achieving good quality of service? What is the token bucket algorithm for achieving good quality of service? What is an admission control for achieving good quality of service? What is packet scheduling for achieving good quality of service? What is RSVP-the Resource reservation Protocol for achieving good quality of service? What is an expedited forwarding for achieving good quality of service? What is an assured forwarding for achieving good quality of service? How networks differ? How networks can be connected? What is a multiprotocol router? What are concatenated Virtual Circuits? What is connectionless internetworking? What is tunneling? What is internetwork routing? What is fragmentation? What is the IP protocol? Draw the header for the IPv4. What are IP addresses? What is subnet? What is CIDR Classless InterDomain Routing?

What is subnet mask? What is network address translation? What is FTP-file transfer protocol? What is the internet control message protocol? What is the ART-address resolution protocol? What is RARP reverse address resolution protocol? What is DHCP-dynamic host configuration protocol? What is OSPF-the interior gateway routing protocol? What is BGP-the exterior gateway routing protocol? What is internet multicasting? What is mobile IP? What is IPv6?

Örnek Problemler ve Çözümleri (Sample Problems and Solutions): (Chapter 5, Problem 7-1) Consider the following network. Suppose that it uses flooding as the routing algorithm. If a packet sent by A to D has a maximum hop count of 3, list all the routes it will take. Also tell how many hops worth of bandwidth it consumes. It will follow all of the following routes: ABCD, ABCF, ABEF, ABEG, AGHD, AGHF, and AGEB The number of hops used is 24. (Chapter 5, Problem 7-2) Consider the following network. Suppose that it uses flooding as the routing algorithm. If a packet sent by A to G has a maximum hop count of 3, list all the routes it will take. Also tell how many hops worth of bandwidth it consumes. It will follow all of the following routes: AEHK, AEHI, AFIH, AFIN, AFIJ, AFDC, AFDG The number of hops used is 21 (Chapter 5, Problem 9-1) Consider the following subnet. Distance vector routing is used, and the following vectors have just come in to router C: from B: (5, 0, 8, 12, 6, 2); from D: (16, 12, 6, 0, 9, 10); and from E: (7, 6, 3, 9, 0, 4). The measured delays to B, D, and E, are 6, 3, and 5, respectively. What is C s new routing table? Give both the outgoing line to use and the expected delay.

Going via B gives (11, 6, 14, 18, 12, 8). Going via D gives (19, 15, 9, 3, 9, 10). Going via E gives (12, 11, 8, 14, 5, 9). Taking the minimum for each destination except C gives (11, 6, 0, 3, 5, 8). The outgoing lines are (B, B, -, D, E, B). (Chapter 5, Problem 9-2) Consider the following subnet. Distance vector routing is used, and the following vectors have just come in to router F: from B: (5, 0, 8, 12, 6, 2); from D: (16, 12, 6, 0, 9, 10); and from E: (7, 6, 3, 9, 0, 4). The measured delays to B, D, and E, are 9, 6, and 3, respectively. What is F s new routing table? Give both the outgoing line to use and the expected delay. New vectors to F New delays F s new routing table from F to from B from D from E Via B Via D Via E neighbors A 5 16 7 B 9 A 14 22 10 B 0 12 6 B 9 18 9 C 8 6 3 D 6 C 17 12 6 D 12 0 9 D 21 6 12 E 6 9 0 E 3 E 15 15 3 F 2 10 4 F 11 16 7 Going via B gives (14, 9, 17, 21, 15, 11) Going via D gives (22, 18, 12, 6, 15, 16) Going via E gives (10, 9, 6, 12, 3, 7) Taking the minimum for each destination except F gives (10, 9, 6, 6, 3, -) The outgoing lines are (E, B, E, D, E, -) (Chapter 5, Problem 10) If delays are recorded as 8-bit numbers in a 50-router network, and delay vectors are exchanged twice a second, how much bandwidth per (full-duplex) line is chewed up by the distributed routing algorithm? Assume that each router has three lines to other routers. The routing table is 400 bits. Twice a second this table is written onto each line, so 800 bps are needed on each line in each direction.

(Chapter 5, Problem 14) Looking at the following subnet, how many packets are generated by a broadcast from B, using a) reverse path forwarding and b) the sink tree? Sketch diagrams. a) The reverse path forwarding algorithm takes five rounds to finish. The packet recipients on these rounds are AC, DFIJ, DEGHHIIJKN, EFHLLMOO, GMLH, respectively. A total of 28 packets are generated. b) The sink tree needs four rounds and 14 packets. (Chapter 5, Problem 38) Convert the IP address whose hexadecimal representation is A44FF1BC to dotted decimal notation. (A) 16 =(1010) 2 (4) 16 =(0100) 2 (F) 16 =(1111) 2 (1) 16 =(0001) 2 (B) 16 =(1011) 2 (C) 16 =(1100) 2 (A44FF1BC) 16 =(10100100.01001111.11110001.10111100) 2 (10100100)=2 7 +2 5 +2 2 =128+32+4=(164) 10 (01001111)=2 6 +2 3 +2 2 +2 1 +2 0 =64+8+4+2+1=(79) 10 (11110001)=2 7 +2 6 +2 5 +2 4 +2 0 =128+64+32+16+1=(241) 10 (10111100)= 2 7 +2 5 +2 4 +2 3 +2 2 =128+32+16+8+4=(188) 10 (A44FF1BC) 16 =164.79.241.188 (Chapter 5, Problem 39-1) A network on the Internet has a subnet mask of 255.255.240.0. What is the maximum number of hosts it can handle? The mask is 20 bits long, so the network part is 20 bits. The remaining 12 bits are for the host, so 4096 host addresses exist. (Chapter 5, Problem 39-2) A network on the Internet has a subnet mask of 255.255.224.0. What is the maximum number of hosts it can handle?

The mask is 19 bits long, so the network part is 19 bits. The remaining 13 bits are for the host, so 8192 host addresses exist. (Chapter 5, Problem 40-1) A large number of consecutive IP address are available starting at 198.16.0.0. Suppose that four organizations, A, B, C, and D, request 4000, 2000, 4000, and 8000 addresses, respectively, and in that order. For each of these, give the first IP address assigned, the last IP address assigned, and the mask in the w.x.y.z/s notation. To start with, all the requests are rounded up to a power of two. The starting address, ending address, and mask are as follows: A: 198.16.0.0 198.16.15.255 written as 198.16.0.0/20 B: A: 198.16.16.0 198.23.15.255 written as 198.16.16.0/21 C: A: 198.16.32.0 198.47.15.255 written as 198.16.32.0/20 D: A: 198.16.64.0 198.95.15.255 written as 198.16.64.0/19 (Chapter 5, Problem 40-2) A large number of consecutive IP address are available starting at 198.16.0.0. Suppose that four organizations, A, B, C, and D, request 2000, 4000, 6000, and 8000 addresses, respectively, and in that order. For each of these, give the first IP address assigned, the last IP address assigned, and the mask in the w.x.y.z/s notation. Starting address Ending address Mask A: 198.16.0.0 198.16.7.255 198.16.0.0/21 B: 198.16.16.0 198.16.31.255 198.16.16.0/20 C: 198.16.32.0 198.16.63.255 198.16.32.0/19 D: 198.16.64.0 198.16.95.255 198.16.064.0/19 An ATM network uses a token bucket scheme for traffic shaping. Anew token is put into the bucket every 5 msec. Each token is good for one cell which contains 48 bytes of data. What is the maximum sustainable data rate? With a token every 5 msec, 200,000 cells/sec can be sent. Each cell holds 48 data bytes or 384 bits. The net data rate is then 76.8 Mbps. Is fragmentation needed in concatenated virtual-circuit internets or only in datagram systems?

Fragmentation is needed in both. Even in a concatenated virtual-circuit network, some networks along the path might accept 1024 byte packets, and others might only accept 48-byte packets. Fragmentation is still needed. Suppose that instead of using 16 bits for the network part of a class B address originally, 20 bits had been used. How many class B networks would there have been? With a 2 bit prefix, there would have been 18 bits left over to indicate the network. Consequently, the number of networks would have been 2 power of 18 or 262,144. However, all 0s and all 1s are special, so only 262,142 are available. Give the comparison table of datagram and virtual-circuit subnets (p.349) Issue Datagram subnet Virtual-circuit subnet Circuit setup Not needed Required Addressing Each packet contains the full source and destination address Each packet contains a short VC (Virtual-Circuit) number. State information Routing Effect of router failures Routers do not hold state information about connections Each packet is routed independently None, except for packets lost during the crash. Each VC requires router table space per connection Route chosen when VC is set up; all packets follow it All VCs that passed through the failed router are terminated Congestion control Difficult Easy if enough resources can be allocated in advance for each VC Quality of service Difficult Easy if enough resources can be allocated in advance for each VC Draw the header for the IPv4. Define each of fields.

Fill in the comparison table of the quality-of-service requirements