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



Similar documents
Answers to Sample Questions on Network Layer

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

CS 5480/6480: Computer Networks Spring 2012 Homework 4 Solutions Due by 1:25 PM on April 11 th 2012

Section #6: Addressing

Module 10 Subnetting Class A, B and C addresses. Solutions to the Lab Exercises a, b, c and d

Exam 1 Review Questions

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

Question Question Question EdTech 552: Lab 3 Answer Sheet

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

Module 4, Assignment 3-2

Source net: Destination net: Subnet mask: Subnet mask: Router Hub

Final for ECE374 05/06/13 Solution!!

Computer Networks - CS132/EECS148 - Spring

The IP Transmission Process. V1.4: Geoff Bennett

Instructor Notes for Lab 3

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

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

Lab IP Addressing Overview

Packet Tracer - Subnetting Scenario 1 (Instructor Version)

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.

Expert Reference Series of White Papers. Basics of IP Address Subnetting

How to Create Subnets To create subnetworks, you take bits from the host portion of the IP address and reserve them to define the subnet address.

VLSM & IP ADDRESSING EXAMPLE QUESTIONS with answers;

CS 78 Computer Networks. Internet Protocol (IP) our focus. The Network Layer. Interplay between routing and forwarding

NAT & IP Masquerade. Internet NETWORK ADDRESS TRANSLATION INTRODUCTION. NAT & IP Masquerade Page 1 of 5. Internal PC

Scaling 10Gb/s Clustering at Wire-Speed

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

Lab a Basic Subnetting

CS335 Sample Questions for Exam #2

Internetworking and Internet-1. Global Addresses

Interconnection Networks. Interconnection Networks. Interconnection networks are used everywhere!

Classful IP Addressing (cont.)

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

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

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

Note! The problem set consists of two parts: Part I: The problem specifications pages Part II: The answer pages

The Network Layer Functions: Congestion Control

First Semester Examinations 2011/12 INTERNET PRINCIPLES

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

Internetworking II: VPNs, MPLS, and Traffic Engineering

Teldat Router. ARP Proxy

04 Internet Protocol (IP)

PART IV. Network Layer

SYMETRIX SOLUTIONS: TECH TIP April 2014

DG Forwarding Algorithm

Internetworking II: MPLS, Security, and Traffic Engineering

First Midterm for ECE374 02/25/15 Solution!!

Part2. Chapter 8. Advanced TCP/IP Network Design - CLASSLESS ADDRESSING AND VARIABLE- LENGTH SUBNET MASKS

Computer Networks Homework 1

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

UPPER LAYER SWITCHING

What is VLAN Routing?

(Refer Slide Time: 02:17)

Internet Packets. Forwarding Datagrams

VLAN 802.1Q. 1. VLAN Overview. 1. VLAN Overview. 2. VLAN Trunk. 3. Why use VLANs? 4. LAN to LAN communication. 5. Management port

Subnetting/Supernetting and Classless Addressing

Wide Area Networks. Learning Objectives. LAN and WAN. School of Business Eastern Illinois University. (Week 11, Thursday 3/22/2007)

Variable length subnetting

CSE 123: Computer Networks Fall Quarter, 2014 MIDTERM EXAM

IP Subnetting and Related Topics A Tutorial by Chris Uriarte <chrisjur@cju.com> Updated April 2001

CHAPTER 3 STATIC ROUTING

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

MPLS. Packet switching vs. circuit switching Virtual circuits

Subnet + CIDR. Internet Networking recitation #1. 11: , Internet Networking,

Planning for Information Network

CS 5480/6480: Computer Networks Spring 2012 Homework 3 Due by 1:25 PM MT, Monday March 5 th 2012

IP Addressing Introductory material.

Chapter 4 Network Layer

CCNA Tutorial Series SUBNETTING

How Subnets Work in Practice. Fred Marshall Coastal Computers & Networks

Router Architectures

EE4367 Telecom. Switching & Transmission. Prof. Murat Torlak

EXPLORER. TFT Filter CONFIGURATION

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

Topics. Subnetting. The Basics of Subnetting Subnet Mask Computing subnets and hosts Subnet Routing Creating a Subnet Example of Subnetting 1/37

Packet Tracer 3 Lab VLSM 2 Solution

AS/400e. TCP/IP routing and workload balancing

Internet Protocols Fall Lectures 7-8 Andreas Terzis

You can probably work with decimal. binary numbers needed by the. Working with binary numbers is time- consuming & error-prone.

Latency on a Switched Ethernet Network

First Midterm for ECE374 03/09/12 Solution!!

CSE 3461 / 5461: Computer Networking & Internet Technologies

SUBNETS, CIDR, AND CLASSLESS ADDRESSING

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

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

Introduction. Internet Address Depletion and CIDR. Introduction. Introduction

CS 326e F2002 Lab 1. Basic Network Setup & Ethereal Time: 2 hrs

Internet Protocols Fall Outline

LAB THREE STATIC ROUTING

Tutorial (03) IP addresses & Sub netting

Three Key Design Considerations of IP Video Surveillance Systems

Introduction to IP v6

Cisco Configuring Basic MPLS Using OSPF

3201 Computer Networks 2014/2015 Handout: Subnetting Question

IP Subnetting and Addressing

Chapter 19 Network Layer: Logical Addressing 19.1

The OSI and TCP/IP Models. Lesson 2

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

Savera Tanwir. Internet Protocol

Network Layer: Network Layer and IP Protocol

Transcription:

ECE 358: Computer Networks Solutions to Homework #4 Chapter 4 - The Network Layer P 4. Consider the network below. a. Suppose that this network is a datagram network. Show the forwarding table in router A, such that all traffic destined to host H3 is forwarded through interface 3. b. Suppose that this network is a datagram network. Can you write down a forwarding table in router A, such that all traffic from HI destined to host H3 is forwarded through interface 3, while all traffic from H destined to host H3 is forwarded through interface 4? (Hint: this is a trick question.) c. Now suppose that this network is a virtual circuit network and that there is one ongoing call between HI and H3, and another ongoing call between H and H3. Write down a forwarding table in router A, such that all traffic from HI destined to host H3 is forwarded through interface 3, while all traffic from H destined to host H3 is forwarded through interface 4. d. Assuming the same scenario as (c), write down the forwarding tables in nodes B, C, and D. a) For Router A, data destined to host H3 is forwarded through interface 3. Distention address Link interface H3 #3 b) No, because, for datagram networks, forwarding rule is only based only on destination address (not the source address). c) One possible configuration for Router A is: 3 63 4 8 Note, that the two flows could actually have the same VC numbers. d) One possible configuration is: for Router B 4

For Router C 8 50 For Router D 4 3 70 50 3 76 P 7. Suppose two packets arrive at different input ports of a router at exactly the same time. Also suppose there are no other packets in the router. a. Suppose the two packets are to be forwarded to two different output ports. Is it possible to forward the two packets through the switch fabric at the same time when the fabric uses a shared bus? b. Suppose the two packets are to be forwarded to two different output ports. Is it possible to forward the two packets through the switch fabric at the same time when the fabric uses a crossbar? c. Suppose the two packets are to be forwarded to the same output port. Is it possible to forward the two packets through the switch fabric at the same time when the fabric uses a crossbar? a) No, you can only transmit one packet at a time over a shared bus. 3 4 b) Yes, as long as the two packets use different input busses and different output busses, they can be forwarded in parallel. 3 4 c) No, in this case the two packets would have to be sent over the same output bus at the same time, which is not possible. 3 4

P 9. Consider the switch shown below. Suppose that all datagrams have the same fixed length, that the switch operates in a slotted, synchronous manner, and that in one time slot a datagram can be transferred from an input port to an output port. The switch fabric is a crossbar so that at most one datagram can be transferred to a given output port in a time slot, but different output ports can receive datagrams from different input ports in a single time slot. What is the minimal number of time slots needed to transfer the packets shown from input ports to their output ports, assuming any input queue scheduling order you want? What is the largest number of slots needed, assuming the worst- case scheduling order you can devise, assuming that a non- empty input queue is never idle? The minimal number of time slots needed is 3. The scheduling is as follows. Slot : send X in top input queue, send Y in middle input queue. Slot : send X in middle input queue, send Y in bottom input queue Slot 3: send Z in bottom input queue. Largest number of slots is still 3. Actually, based on the assumption that a non- empty input queue is never idle, we see that the first time slot always consists of sending X in the top input queue and Y in either middle or bottom input queue, and in the second time slot, we can always send two more datagram, and the last datagram can be sent in third time slot. NOTE: Actually, if the first datagram in the bottom input queue is X, then the worst case would require 4 time slots.

P 0. Consider a datagram network using 3- bit host addresses. Suppose a router has four links, numbered 0 through 3, and packets are to be forwarded to the link interfaces as follows: Destination Address Range Link Interface 00000 00000000 00000000 00000000 through 0 00000 00 00000 0000000 00000000 00000000 through 00000 0000000 00000 000000 00000000 00000000 through 0000 0 otherwise 3 a. Provide a forwarding table that has four entries, uses longest prefix matching, and forwards packets to the correct link interfaces. b. Describe how your forwarding table determines the appropriate link interface for datagrams with destination addresses: 00000 00000 00000 0000 0000 0000000 0000 0000 0000 0000000 000000 00 Solition: a) Prefix Match Link Interface 00000 00 0 00000 0000000 0000 0000 3 otherwise 3 b) Prefix match for first address is 5 th entry: link interface 3 Prefix match for second address is 3 nd entry: link interface Prefix match for third address is 4 th entry: link interface 3

P 3. Consider a router that interconnects three subnets: Subnet, Subnet, and Subnet 3. Suppose all of the interfaces in each of these three subnets are required to have the prefix 3..7/4. Also suppose that Subnet is required to support up to 60 interfaces, Subnet is to support up to 90 interfaces, and Subnet 3 is to support up to interfaces. Provide three network addresses (of the form a.b.c.d/x) that satisfy these constraints. The parent network address is 3..7/4. 4 bits are prefix for the network. 8 bits can be used for subnet portions & host portions. Start with the largest required subnet (Subnet ) Subnet # (90 interfaces) Subnet Host portion portion 8 64 3 6 8 4 With 7 bits, we can get 8 addresses (6 usable host addresses + subnet address + subnet broadcast address), which is > 90. bit is left for the subnet portion (we can have subnets, each with 8 addresses) 3..7.0/5 (range 3..7.0 to 3..7. 7) 3..7.8/5 (range 3..7.8 to 3..7. 55) We assign one of those subnets to our Subnet # and further subnet the other range for out Subnet # & Subnet #3. Subnet # 3..7.8/5, Mask 55.55.55.8 Subnet ID 3..7.8, Subnet broadcast address 3..7.55 Hosts 3..7.9 to 3..7.54 Subnet # (60 interfaces) The parent network 3..7.0/5 (3-5= 7 bits can be used for subnet portions & and host portions) Prefix to 0 Subnet portion Host portion 8 64 3 6 8 4 We can have subnets, each with 64 addresses: 3..7.0/6 (range 3..7.0 to 3..7. 63) 3..7.64/6 (range 3..7.64 to 3..7. 7)

Subnet # 3..7.0/6, Mask 55.55.55.0 Subnet ID 3..7.0, Subnet broadcast address 3..7.63 Hosts 3..7. to 3..7.6 Subnet #3 ( interfaces) The parent network is 3..7.64/6 Prefix to 0 Prefix to Subnet portion Host portion 8 64 3 6 8 4 We can have 4 subnets, each with 6 addresses: 3..7.64/8 (range 3..7.64 to 3..7. 79) 3..7.80/8 (range 3..7.80 to 3..7. 95) 3..7.96/8 (range 3..7.96 to 3..7. ) 3..7./8 (range 3..7. to 3..7. 7) We assign one of these to our Subnet #3 Subnet #3 3..7.96/8, Mask 55.55.55.96 Subnet ID 3..7.96, Subnet broadcast address 3..7. Hosts 3..7.97 to 3..7.0

P 6. Consider a subnet with prefix 8.9.40.8/6. Give an example of one IP address (of form xxx.xxx.xxx.xxx) that can be assigned to this network. Suppose an ISP owns the block of addresses of the form 8.9.40.64/6. Suppose it wants to create four subnets from this block, with each block having the same number of IP addresses. What are the prefixes (of form a.b.c.d/x) for the four subnets? Any IP address in range 8.9.40.8 to 8.9.40.9 can be an example. Four equal size subnets: 8.9.40.64/8, 8.9.40.80/8, 8.9.40.96/8, 8.9.40./8