Exercise 1 INTERNET. x.x.x.254. net /24. net /24. x.x.x.33. x.x.x.254. x.x.x.52. x.x.x.254. x.x.x.254. x.x.x.

Similar documents
Internet Protocol Addressing and Routing. Redes TCP/IP

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

Quiz 7 May 14, 2015 Computer Engineering 80N

Hubs. twisted pair. hub. 5: DataLink Layer 5-1

Homework 3 Discussion

TCP/IP and the OSI Model

Manual. bintec-elmeg. Proxy ARP. bintec-dm 734-I. Copyright Version bintec-elmeg

Switching & ARP Week 3

Homework 4 assignment for ECE374 Posted: 04/06/15 Due: 04/13/15

Putting it all together

Address Management in IP Networks

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

Connecting to the Network

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

Ref: A. Leon Garcia and I. Widjaja, Communication Networks, 2 nd Ed. McGraw Hill, 2006 Latest update of this lecture was on

ECE 4450:427/527 - Computer Networks Spring 2017

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

IP: Addressing, ARP, Routing

Addressing and Routing

Copyright 2011 Sakun Sharma

CSE 123: Computer Networks

Link layer: introduction

Example: Configuring DHCP Snooping and DAI to Protect the Switch from ARP Spoofing Attacks

MID II Tuesday, 1 st April 2008

Cisco CCNA Basic IP Routing Part I

Chapter 3 Part 2 Switching and Bridging. Networking CS 3470, Section 1

CS 3516: Advanced Computer Networks

LAB THREE STATIC ROUTING

IP Addressing and Subnetting

Chapter 5 Link Layer. Computer Networking: A Top Down Approach. 6 th edition Jim Kurose, Keith Ross Addison-Wesley March 2012

Lecture 20: Link Layer

CS 458 Internet Engineering Spring First Exam

Antonio Cianfrani. Routing Protocols

FINAL EXAM - SLOT 2 TCP/IP NETWORKING Duration: 90 min. With Solutions

Router Architecture Overview

Chapter 06 IP Address

TSIN02 - Internetworking

Example: Configuring DHCP Snooping, DAI, and MAC Limiting on an EX Series Switch with Access to a DHCP Server Through a Second Switch

SIMPLE ROUTER PROJECT 2

Lab 9.8.1: Address Resolution Protocol (ARP)

Lesson 9 OpenFlow. Objectives :

cs144 Midterm Review Fall 2010

Internetworking/Internetteknik, Examination 2G1305 Date: August 18 th 2004 at 9:00 13:00 SOLUTIONS

DGS-1510 Series Gigabit Ethernet SmartPro Switch Web UI Reference Guide

The Addressing of Data Link Layer

ARP, IP. Chong-Kwon Kim. Each station (or network interface) should be uniquely identified Use 6 byte long address

SE 4C03 Winter Sample Midterm Test. Instructor: Kartik Krishnan

The Link Layer and LANs: Ethernet and Swiches

Lecture 16: Router Design

SE 4C03 Winter Midterm Test Answer Key. Instructor: Kartik Krishnan

Network Layer PREPARED BY AHMED ABDEL-RAOUF

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

MID-TERM EXAM TCP/IP NETWORKING Duration: 2 hours With Solutions

Bridge Mode. Course #2222

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

CS118 Discussion 1A, Week 9. Zengwen Yuan Dodd Hall 78, Friday 10:00 11:50 a.m.

ECE 4450:427/527 - Computer Networks Spring 2017

INTERNET ARCHITECTURE & PROTOCOLS

CMPE 150/L : Introduction to Computer Networks. Chen Qian Computer Engineering UCSC Baskin Engineering Lecture 18

Inter-networking. Problem. 3&4-Internetworking.key - September 20, LAN s are great but. We want to connect them together. ...

Lecture 9 The Data Link Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

Quiz 8 May 21, 2015 Computer Engineering 80N

Chapter Motivation For Internetworking

Lecture 17 Overview. Last Lecture. Wide Area Networking (2) This Lecture. Internet Protocol (1) Source: chapters 2.2, 2.3,18.4, 19.1, 9.

LAN Emulation, IP Over ATM and MPOA

Lab - Configure a NIC to Use DHCP in Windows

CS 43: Computer Networks Switches and LANs. Kevin Webb Swarthmore College December 5, 2017

ET4254 Communications and Networking 1

1. (10 points): For each of the following, choose exactly one best answer.

Networking: Network Layer

System Interfaces and Ports

CS4450. Computer Networks: Architecture and Protocols. Lecture 20 Pu+ng ALL the Pieces Together. Spring 2018 Rachit Agarwal

Network Layer: Router Architecture, IP Addressing

CS 3516: Computer Networks

Chapter 7. ARP and RARP MGH T MGH C I 20

Communication Networks

Chapter 4: network layer. Network service model. Two key network-layer functions. Network layer. Input port functions. Router architecture overview

Lecture 5 The Network Layer part II. Antonio Cianfrani DIET Department Networking Group netlab.uniroma1.it

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

Homework 2: IP Due: 11:59 PM, Oct 19, 2017

ARP Inspection and the MAC Address Table for Transparent Firewall Mode

To see how ARP (Address Resolution Protocol) works. ARP is an essential glue protocol that is used to join Ethernet and IP.

FSOS VPN Command Line Reference

TSIN02 - Internetworking

Chapter 6 Connecting Device

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

EXAM TCP/IP NETWORKING Duration: 3 hours

ECE 461 Internetworking Fall Quiz 1

GAME100 Lab 5. Before beginning the lab, please download and install Cisco Packet Trace

Communication Networks ( ) / Fall 2013 The Blavatnik School of Computer Science, Tel-Aviv University. Allon Wagner

End-to-End Communication

Network Layer. The Network Layer. Contents Connection-Oriented and Connectionless Service. Recall:

Network Layer. Recall: The network layer is responsible for the routing of packets The network layer is responsible for congestion control

Virtualization of networks

Address Class (Exercise) B A

Static Routing NETWORK INFRASTRUCTURES NETKIT - LECTURE 4 MANUEL CAMPO, MARCO SPAZIANI

Using the Command Line Interface

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

Routing. Directly Connected IP Networks. Data link layer routing. ifconfig command

Chapter 4: Routing Concepts. Routing & Switching

Transcription:

Exercise 1 Given the IP network below: Assign feasible IP addresses to the interfaces and write down a feasible routing table for routers A and B guaranteeing full connectivity x.x.x.33 x.x.x.254 net 131.175.16.0/24 B x.x.x.254 Net 131.175.15.0/24 x.x.x.254 A Net 131.175.70.0/24 x.x.x.52 x.x.x.254 INTERNET net 131.175.21.0/24 Net 131.175.75.0/24 x.x.x.254

Solution 1 A Routing Table network netmask first hop 131.175.15.0 255.255.255.0 131.175.16.33 131.175.70.0 255.255.255.0 131.175.16.33 0.0.0.0 0.0.0.0 131.175.21.254 B Routing Table network netmask first hop 131.175.21.0 255.255.255.0 131.175.16.254 131.175.75.0 255.255.255.0 131.175.16.254 0.0.0.0 0.0.0.0 131.175.16.254 A Interfaces interface address netmask A 131.175.21.52 255.255.255.0 B 131.175.16.254 255.255.255.0 C 131.175.75.254 255.255.255.0 B Interfaces interface address netmask A 131.175.16.33 255.255.255.0 B 131.175.70.254 255.255.255.0 C 131.175.15.254 255.255.255.0 network netmask first hop 0.0.0.0 0.0.0.0 131.175.16.254

Routing & Forwarding

Activity 1 Given the network below: Router eth0 A D eth1 B Let IP-x and MAC-x be the IP and Ethernet Addresses of x=[a,b,c,d] respectively. C

Activity 1 Router eth0 A D eth1 B We assume empty ARP tables for A, D and the Router Host A needs to send out an IP packet destined to host D. Upon reception, host D answers with a packet destined to A. a) Plot the sequence of all messages/packets exchanged among the three entities with the correspondent addresses used (at both the IP and Ethernet level) C

Solution 1 Router A D ARP request src: MAC-A dest: broadcast layer ARP: IP-A, MAC-A, IP-B,? B C ARP reply src: MAC-B dest: MAC-A layer ARP: IP-A, MAC-A, IP-B, MAC-B

Solution 1 Router A D PACKET A-D src: MAC-A dest: MAC-B layer 3: src: IP-A dest: IP-D B C

Solution 1 Router A D B C ARP request src: MAC-C dest: broadcast layer ARP: IP-C, MAC-C, IP-D,? ARP reply src: MAC-D dest: MAC-C layer ARP: IP-C, MAC-C, IP-D, MAC-D

Solution 1 Router A D B C PACKET A-D src: MAC-C dest: MAC-D layer 3: src: IP-A dest: IP-D PACKET D-A src: MAC-B dest: MAC-A layer 3: src: IP-D dest: IP-A PACKET D-A src: MAC-D dest: MAC-C layer 3: src: IP-D dest: IP-A

Activity 2 Bridge eth0 A D eth1 B b) Solve the same exercise, assuming now the interconnecting device is a Bridge C

Solution 2 Bridge A D B C ARP request src: MAC-A dest: broadcast layer ARP: IP-A, MAC-A, IP-D,? ARP reply src: MAC-D dest: MAC-A layer ARP: IP-A, MAC-A, IP-D, MAC-D

Solution 2 Bridge A D PACKET A-D src: MAC-A dest: MAC-D layer 3: src: IP-A dest: IP-D B C PACKET D-A src: MAC-D dest: MAC-A layer 3: src: IP-D dest: IP-A

Activity 3 A router has the following routing table and the following interfaces network netm ask first hop 131.175.21.0 255.255.255.0 131.17.123.254 131.175.16.0 255.255.255.0 131.17.78.254 131.56.0.0 255.255.0.0 131.17.15.254 131.155.0.0 255.255.0.0 131.17.15.254 0.0.0.0 0.0.0.0 131.17.123.254 interface eth0 IP address 131.17.123.1 netm ask 255.255.255.0 interface eth1 IP address 131.17.78.1 netm ask 255.255.255.0 interface eth2 IP address 131.17.15.12 netm ask 255.255.255.0 How does the router forward the IP packets with the following IP destination addresses? 131.17.123.88 131.56.78.4 190.78.90.2

Solution 3 network netm ask first hop 131.175.21.0 255.255.255.0 131.17.123.254 131.175.16.0 255.255.255.0 131.17.78.254 131.56.0.0 255.255.0.0 131.17.15.254 131.155.0.0 255.255.0.0 131.17.15.254 0.0.0.0 0.0.0.0 131.17.123.254 interface eth0 IP address 131.17.123.1 netm ask 255.255.255.0 interface eth1 IP address 131.17.78.1 netm ask 255.255.255.0 interface eth2 IP address 131.17.15.12 netm ask 255.255.255.0 131.17.123.88 Directly Forwarded through interface eth0 131.56.78.4 Forwarded to the next hop 131.17.15.254 190.78.90.2 Forwarded to the default gateway 131.175.123.254

Ex. 4 A router has the following routing table and interfaces configuration. eth0 192.170.123.4 255.255.255.0 eth1 192.170.124.4 255.255.255.0 Network Netmask Next Hop 191.138.112.0 255.255.240.0 192.170.123.1 191.138.96.0 255.255.224.0 192.170.124.1 191.138.0.0 255.255.0.0 192.170.123.2 191.138.160.0 255.255.224.0 192.170.124.2 0.0.0.0 0.0.0.0 192.170.123.3 The router receives packets with the following IP destination addresses: 1. 191.138.163.13 2. 191.138.113.32 3. 131.175.123.244 4. 255.255.255.255 5. 192.170.123.255 received from interface eth1 6. 0.0.0.3 received from interface eth0 Specify the behavior of the router for each packet. What kind of forwarding is implemented (direct, indirect)? Which is thenext hop Which the line of the routing table used to decide the next hop?

20/09/2006 -Ex. 4 191.138.163.13 AND 1. /20 = 191.138.160.0 2. /19 = 191.138.160.0 3. /16 = 191.138.0.0 4. /19 = 191.138.160.0 5. /0 = 0.0.0.0 OK OK OK Network Netmask Next Hop 1 191.138.112.0 255.255.240.0 192.170.123.1 2 191.138.96.0 255.255.224.0 192.170.124.1 3 191.138.0.0 255.255.0.0 192.170.123.2 4 191.138.160.0 255.255.224.0 192.170.124.2 5 0.0.0.0 0.0.0.0 192.170.123.3 Indirect Forwarding 192.170.124.2

20/09/2006 -Ex. 4 191.138.113.32 AND 1. /20 = 191.138.112.0 2. /19 = 191.138.96.0 3. /16 = 191.138.0.0 4. /19 = 191.138.112.0 5. /0 = 0.0.0.0 OK OK OK OK Network Netmask Next Hop 1 191.138.112.0 255.255.240.0 192.170.123.1 2 191.138.96.0 255.255.224.0 192.170.124.1 3 191.138.0.0 255.255.0.0 192.170.123.2 4 191.138.160.0 255.255.224.0 192.170.124.2 5 0.0.0.0 0.0.0.0 192.170.123.3 Indirect Forwarding 192.170.123.1

20/09/2006 -Ex. 4 131.175.123.244 AND 1. /20 No match 2. /19 No match 3. /16 No match 4. /19 No match 5. /0 = 0.0.0.0 OK Network Netmask Next Hop 1 191.138.112.0 255.255.240.0 192.170.123.1 2 191.138.96.0 255.255.224.0 192.170.124.1 3 191.138.0.0 255.255.0.0 192.170.123.2 4 191.138.160.0 255.255.224.0 192.170.124.2 5 0.0.0.0 0.0.0.0 192.170.123.3 Indirect Forwarding 192.170.123.3

20/09/2006 -Ex. 4 eth0 192.170.123.4 255.255.255.0 eth1 192.170.124.4 255.255.255.0 Network Netmask Next Hop 1 191.138.112.0 255.255.240.0 192.170.123.1 2 191.138.96.0 255.255.224.0 192.170.124.1 3 191.138.0.0 255.255.0.0 192.170.123.2 4 191.138.160.0 255.255.224.0 192.170.124.2 5 0.0.0.0 0.0.0.0 192.170.123.3 255.255.255.255 Limited broadcast, router drops the packet 192.170.123.255 from eth1 Direct broadcast to subnet 192.170.123.0, router forwards the packet through eth0 0.0.0.3 from eth0 It is never a valid destination address, the router drops the packet

Activity 4 A router has the following routing table and the following interfaces. The router receives 8 packets whose destination IP addresses and incoming interfaces are reported below. Indicate what is the behavior of the router for each packet indicating: If the packet is forwarded or not In the case the packet is forwarded, the next hop (IP address) whether the forwarding is direct or indirect eth0 Interface IP Address Netmask Eth0 131.175.123.235 255.255.255.0 R eth2 Eth1 Eth2 131.175.123.129 131.175.122.1 255.255.255.128 255.255.255.0 eth1 Network 130.170.0.0 130.171.0.0 130.171.4.0 130.170.10.0 0.0.0.0 Netmask 255.255.0.0 255.255.0.0 255.255.252.0 255.255.254.0 0.0.0.0 Next Hop 131.175.123.1 131.175.123.132 131.175.122.2 131.175.122.3 131.175.123.3 RECEIVED PACKETS A. 131.175.123.64 from eth2 B. 131.175.123.255 from eth0 C. 131.175.123.132 from eth2 D. 130.170.132.240 from eth1 E. 130.170.11.64 from eth1 F. 130.171.5.125 from eth1 G. 156.198.34.14 from eth0 H. 0.0.0.132 from eth1

Solution 4 eth0 Interface IP Address Netmask Eth0 131.175.123.235 255.255.255.0 R eth2 Eth1 Eth2 131.175.123.129 131.175.122.1 255.255.255.128 255.255.255.0 eth1 Network 130.170.0.0 130.171.0.0 130.171.4.0 130.170.10.0 0.0.0.0 Netmask 255.255.0.0 255.255.0.0 255.255.252.0 255.255.254.0 0.0.0.0 Next Hop 131.175.123.1 131.175.123.132 131.175.122.2 131.175.122.3 131.175.123.3 A. 131.175.123.64 from eth2 direct forwarding through eth0 B. 131.175.123.255 direct broadcast address: not forwarded C. 131.175.123.132 direct forwarding through eth1

R Solution 4 eth0 eth1 Interface Eth1 131.175.123.129 255.255.255.128 eth2 Eth2 131.175.122.1 255.255.255.0 D. 130.170.132.240 from eth1 Indirect forwarding, 1st line routing table, NH: 131.175.123.1 E. 130.170.11.64 from eth1 Indirect forwarding, 4th line routing table, NH: 131.175.122.3 F. 130.171.5.125 from eth1 Indirect forwarding, 3rd line routing table, NH: 131.175.122.2 Eth0 Network 130.170.0.0 130.171.0.0 130.171.4.0 130.170.10.0 0.0.0.0 IP Address 131.175.123.235 Netmask 255.255.0.0 255.255.0.0 255.255.252.0 255.255.254.0 0.0.0.0 Netmask 255.255.255.0 Next Hop 131.175.123.1 131.175.123.132 131.175.122.2 131.175.122.3 131.175.123.3

Solution 4 R eth0 eth1 Interface Eth1 131.175.123.129 255.255.255.128 eth2 Eth2 131.175.122.0 255.255.255.0 Eth0 Network 130.170.0.0 130.171.0.0 130.171.4.0 130.170.10.0 0.0.0.0 IP Address 131.175.123.235 Netmask 255.255.0.0 255.255.0.0 255.255.252.0 255.255.254.0 0.0.0.0 Netmask 255.255.255.0 Next Hop 131.175.123.1 131.175.123.132 131.175.122.2 131.175.122.3 131.175.123.3 G. 156.198.34.14 from eth0 Indirect forwarding, last line routing table, NH: 131.175.123.3 H. 0.0.0.132 from eth1 special address, only source, not processed