521262S Computer Networks 2 (fall 2007) Laboratory exercise #2: Internetworking

Similar documents
521262S Computer Networks 2 (fall 2007) Laboratory exercise #4: Multimedia, QoS and testing

Introduction to Computer Networks

Networking By: Vince

The Interconnection Structure of. The Internet. EECC694 - Shaaban

COMPUTER NETWORKING LAB EXERCISES (TP) 4

CTS2134 Introduction to Networking. Module : Troubleshooting

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

IT220 Network Standards & Protocols. Unit 8: Chapter 8 The Internet Protocol (IP)

IPv4 and Routing. based on Chapter 8 of CompTIA Network+ Exam Guide, Mike Meyers

EXAM - HP0-Y52. Applying HP FlexNetwork Fundamentals. Buy Full Product.

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

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

PRACTICAL ROUTERS and SWITCHES for ENGINEERS and TECHNICIANS

Exam E1 Copyright 2010 Thaar AL_Taiey

Networking 101 By: Stefan Jagroop

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

Troubleshooting Your Network

Routing. Basic principles. Karst Koymans. Informatics Institute University of Amsterdam. (version 16.4, 2017/02/23 10:58:58)

ETSF10 Internet Protocols Network Layer Protocols

CCNA. Course Catalog

Pass4sures. Latest Exam Guide & Learning Materials

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

exam. Number: Passing Score: 800 Time Limit: 120 min CISCO Interconnecting Cisco Networking Devices Part 1 (ICND)

Microsoft Exam

LAB THREE STATIC ROUTING

Novell TCP IP for Networking Professionals.

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

Router Architecture Overview

15-441: Computer Networks Spring 2017 Homework 3

Unit C - Network Addressing Objectives Purpose of an IP Address and Subnet Mask Purpose of an IP Address and Subnet Mask

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

Building the Routing Table. Introducing the Routing Table Directly Connected Networks Static Routing Dynamic Routing Routing Table Principles

Network+ Guide to Networks 5 th Edition. Chapter 10 In-Depth TCP/IP Networking

Internetworking. different kinds of network technologies that can be interconnected by routers and other networking devices to create an internetwork

Interconnecting Cisco Networking Devices Part 1 (ICND1) Course Overview

Networking Fundamentals

Route Leaking in MPLS/VPN Networks

Chapter 19 Network Layer: Logical Addressing

Chapter 5 Network Layer

CISCO EXAM QUESTIONS & ANSWERS

This is a sample Lab report from ECE 461 from previous years. L A B 6

Lab I: Using tcpdump and Wireshark

Chapter 3 - Implement an IP Addressing Scheme and IP Services to Meet Network Requirements for a Small Branch Office

CCRI Networking Technology I CSCO-1850 Spring 2014

CCNA 1 Final Exam Answers UPDATE 2012 eg.1

DOiT-200v6 VOLUME II I2 R2 4 N1. DOiT-200v6 Lab 16 Multi-Topic CCIE-Level Scenario. For CCIE Candidates

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

Material for the Networking lab in EITF25 & EITF45

IP Protocols. ALTTC/Oct

IP - The Internet Protocol. Based on the slides of Dr. Jorg Liebeherr, University of Virginia

IPv6 Addressing. There are three types of IPV6 Addresses. Unicast:Multicast:Anycast

Chapter 3 Review Questions

Lecture 8. Reminder: Homework 3, Programming Project 2 due on Thursday. Questions? Tuesday, September 20 CS 475 Networks - Lecture 8 1

Chapter 4: Routing Concepts. Routing & Switching

Vendor: Cisco. Exam Code: Exam Name: Cisco Interconnecting Cisco Networking Devices Part 1 (ICND1 v3.0) Version: Demo

Laboratory 2 Dynamic routing using RIP. Iptables. Part1. Dynamic Routing

EEC-684/584 Computer Networks

COMPUTER NETWORKING LAB EXERCISES (TP) 1 BASIC CONFIGURATION AND TOOLS FOR EVERYBODY:

1/18/13. Network+ Guide to Networks 5 th Edition. Objectives. Chapter 10 In-Depth TCP/IP Networking

1. Which OSI layers offers reliable, connection-oriented data communication services?

Configuring IPv4. Finding Feature Information. This chapter contains the following sections:

Transparent or Routed Firewall Mode

Network layer: Overview. Network layer functions IP Routing and forwarding NAT ARP IPv6 Routing

Introduction xvii. Assessment Test xxxiii

The Network Layer. Internet solutions. Nixu Oy PL 21. (Mäkelänkatu 91) Helsinki, Finland. tel fax.

Scope and Sequence: CCNA Exploration v4.0

Network layer: Overview. Network Layer Functions

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

Computer Networks II IPv4 routing

BTEC Level 3 Extended Diploma

Routing Overview. Information About Routing CHAPTER

Vendor: Cisco. Exam Code: Exam Name: Implementing Cisco IP Routing (ROUTE v2.0) Version: Demo

Top-Down Network Design, Ch. 7: Selecting Switching and Routing Protocols. Top-Down Network Design. Selecting Switching and Routing Protocols

PUCPR. Internet Protocol. Edgard Jamhour E N G L I S H S E M E S T E R

Cisco CCNA Basic IP Routing Part I

CompTIA Exam JK0-023 CompTIA Network+ certification Version: 5.0 [ Total Questions: 1112 ]

Network+ Guide to Networks 6 th Edition. Chapter 9 In-Depth TCP/IP Networking

Actual4Test. Actual4test - actual test exam dumps-pass for IT exams

Static and source based routing

Lab Using Wireshark to Examine Ethernet Frames

Lecture 8. Basic Internetworking (IP) Outline. Basic Internetworking (IP) Basic Internetworking (IP) Service Model

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

Written examination in Computer Networks

CS475 Networks Lecture 8 Chapter 3 Internetworking. Ethernet or Wi-Fi).

CCNA MCQS with Answers Set-1

Computer Networking Introduction

Information About Routing

Topics for This Week

CCNA-A Scope and Sequence (March 2007-Draft)

Lab - Configure a NIC to Use DHCP in Windows

Cisco CCNA (ICND1, ICND2) Bootcamp

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

MiPDF.COM. 1. Convert the decimal number 231 into its binary equivalent. Select the correct answer from the list below.

CSC 4900 Computer Networks: Network Layer

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

Using DNS Service for Amplification Attack

Implementing Cisco IP Routing

Hands-On TCP/IP Networking

Lab Using Wireshark to Examine Ethernet Frames

Department Of Computer Science

Transcription:

521262S Computer Networks 2 (fall 2007) Laboratory exercise #2: Internetworking Name Student ID Signature In this exercise we will connect our LANs made in first exercise with routers and build an internet. We will take a closer look at network layer (layer 3), especially IP addressing, subnetting and routing. This exercise will be done in the groups of one, two or three persons, so that we get a maximum of ten groups. Each student shall mark their name, student ID and signature in this paper which will be left for the assistants when you leave. There are few questions at the end of this document in which you should find answers during the exercise. Please fill in the answers to the questions before leaving the paper. All kind of feedback is also very welcome. Hardware Every group has five LinksysWRT54gl wireless routers which all have OpenWRT linux installed so that they can be used to various different functions. Groups also have 8-16 port hub to play with. Each Linksys device has a sticker in front panel to indicate its function and IP-address. All Linksys devices have a build-in 5-port switch. Internet port of the Linksys devices should not be used until told so. Groups also have color-coded cables to connect the devices. Name IP Function AP 10.x.y.z Connection from Internet to LAN DHCP 10..x.y.2 DHCP-server Switch 10.x.y.3 5-port switch Client dhcp client for testing Gateway 10.x.y.1 gateway to other LANs, also a router We also have two Cisco 2600 series routers, HP Procurve VLAN capable switch and NexGate NSA1086 with OpenBSD OS inside. With these devices we should be able to create fully functional internet. All these devices are installed in a small rack. Network topology

Command glossary Command ssh ping Purpose Take secure remote connection from host to another use ICMP echo request to find out if the other device answers

ifconfig tcpdump control+c arp dig traceroute typical unix-command to show information about network interfaces capture traffic flowing through network interface usually stops running program (for example tcpdump) find out information about mac-addresses resolved by host DNS lookup utility trace a route to host Building up an internet 1. task Connect your devices to make a working LAN. Test LAN with ICMP echo requests. 2. Task Write down the IP addresses of the devices in you LAN: 3. task Connect your gateway to the HP Procurve switch in port dedicated for your group. Group number is same as the third number in your IP addresses in Linksys devices. For example if your gateways address is 10.1.1.1, you should connect to port 1 on a HP switch. Groups 1, 2, 3, 4, 5 are connected to one Cisco router and groups 6, 7, 8, 9, 10 to another Cisco router. When told to connect to neighbor group s host, use the one connected to same router as you are. Use gateways Internet/Wan port when connecting to HP. 4. task What is the IP address in your gateway that is visible to next router? 5. task Try to ping from your gateway your neighbor group s gateway. Does that work? Does ping from your DHCP to neighbor group s gateway work? Explain why it does or does not work. RIP routing protocol From the Wikipedia: Cisco routers and gateways use RIP routing protocol. RIP is a distance-vector routing protocol, which employs the hop count as a routing metric. The maximum number of hops allowed with RIP is 15, and the hold down time is 180 seconds. Originally each RIP router transmits full updates

every 30 seconds by default. Originally, routing tables were small enough that the traffic was not significant. RIP prevents routing loops from continuing indefinitely by implementing a limit on the number of hops allowed in a path from the source to a destination. This hop limit, however, limits the size of networks that RIP can support. RIP is sometimes said to stand for Rest in Pieces in reference to the reputation that RIP has for breaking unexpectedly, rendering a network unable to function. 6. task Wait for assistants to enable RIP in routers. 7. task Try to ping your neighbor group s gateway. Does that work now? Explain why it does or does not work. Does ping to neighbor group s dhcp work? 8. task Check routing tables in your gateway. Use netstat rn command. Try to ping other groups gateways. See what happens to routing tables. You can also try command telnet 127.0.0.1 2601; enable; show ip route to check RIP tables. 9. task Check routing tables in router that you are connected in (east-gw.cn2.local. or westgw.cn2.local.). Use telnet to connect to router, then enable then ip show route. 10. task Use tcpdump to capture traffic in your gateway. Write down a short example of a RIP router message: BGP routing From the Wikipedia: The Border Gateway Protocol (BGP) is the core routing protocol of the Internet. It works by maintaining a table of IP networks or 'prefixes' which designate network reachability among autonomous systems (AS). It is described as a path vector protocol. BGP does not use traditional IGP metrics, but makes routing decisions based on path, network policies and/or rulesets. 11. task

Connect to NSA and use netstat rn to find out in which interface does your LAN belong to and write it down: 12. task Connect to the NSA and use tcpdump to capture traffic in correct network interface. Write down an example of BGP router message: 13. task Use netstat rn command to see the routing details in NSA. Write down routers default route: 14. task Use traceroute command from dhcp to NSA. How many hops there are? Network Address Translation All the routers are connected together and they are using the BGP routing protocol. The NSA is also connected to the Internet. Connection to Internet goes through NAT (Network Address Translation) which translates IP addresses to a one address visible to outside. NAT is mostly used to translate private IP addresses (such as 10.0.0.0/8) to one public address so that many hosts can connect to the Internet with single public IP address. For example: Host 1 in a LAN has a IP of 10.0.0.2. Host 2 has a IP of 10.0.0.3. Both are connected to the gateway/nat which has two NICs. Other NIC has a IP 10.0.0.1 in which other hosts are connected. Other NIC has a public IP address. When host 1 connects to Internet, traffic goes through NAT and outgoing packets get a public IP address. From the Internet, only the public IP address (gateway) can be seen or connected. NAT is mostly used because of shortage in IPv4 addresses. 15. Task Try to ping www.panoulu.net from a host in your LAN. Does it succeed? 16. Task Try telnet connection to www.panoulu.net port 80 (telnet www.panoulu.net 80). Leave telnet connection open. On another terminal ssh to NSA. Use pfctl s state command to show the NAT states. Write down a line showing your telnet connection and NAT:

17. Task Would it be possible to connect from the Internet to your DHCP? How? Unicast/multicast/broadcast Packets send in an IP networks are divided in unicasts, multicasts and broadcasts. Unicast packet is send over a network straight to receiving hosts which is stored in packet header field. So communication involves only sending host, receiving host and a network between them. Multicast packet is send from the sending host to multiple receivers that have joined same group. Broadcast packets are sent to all devices in same network. 18. Task Your LAN is a network of 10.1.x.0/24 or 10.2.x.0/24. What is the broadcast address of your network? Try sending ICMP echo requests to broadcast address from one host and tcpdump ICMP packets in other devices. Domain name service Domain name service or DNS is used to translate numerical IP addresses to more human-readable names. DNS works by exchanging name/ip information between DNS servers so that if one server doesn t know the name/ip, it asks from another server and so on. We have configured a DNS server for our internet. Every device should now have a DNS name like dhcpn.east.cn2.local. with IP address of 10.2.N.2. 19. Task Try using DNS names in your network. Use ping, ssh, arp, dig. What is IP address of westgw.cn2.local.? IP of east-gw.cn2.local.?

Questions 1. List the main functions of the network layer: 2. Briefly explain the difference between IPv4 and IPv6 IP addressing: 3. What is a purpose of ICMP? 4. What is the difference between router and switch? 5. Network has an IP address space of 10.1.1.0/24. What is a first IP allowed in network? And the last IP? What is the subnet mask? 6. How many hosts can be in a network with a subnet of 255.255.255.240? 7. What is a difference between unicast/multicast/broadcast? 8. Describe briefly differences between RIP and BGP routing protocols: 9. Gateway has an interface eth0 with IP address of 10.1.1.1 and another interface eth1 with IP address of 192.168.1.1. Gateway uses NAT on eth1 to translate 10.1.1.0/24 addresses to 192.168.1.1 address. Host A has an IP of 10.1.1.22 and Host B has an IP of 192.168.1.35. Host A is connected to interface eth0 in gateway and host B to eth1. If host A tries to ICMP echo request host B does it succeed? What is the IP that host B sees if ping succeeds? Can host A answer to host B s ICMP echo request? 10. Find out what is the IP address of www.panoulu.net: 11. Why would anyone want to use DNS?

12. LAN 1 has 2 hosts, DHCP and gateway, LAN 2 has gateway with DHCP and NAT and one client. LANs are connected together with router. Draw a picture of a network and assign private IP addresses to devices in LANs. 13. Any feedback: