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

Similar documents
IP Addressing and Subnetting NETWORK INFRASTRUCTURES NETKIT - LECTURE 2 MANUEL CAMPO, MARCO SPAZIANI

Chapter 7: Routing Dynamically. Routing & Switching

Chapter 06 IP Address

CN1047 INTRODUCTION TO COMPUTER NETWORKING CHAPTER 5 OSI MODEL NETWORK LAYER

Default & Static Routes and Routing Information Protocol. Presented by : Mohammed Hamad

Chapter 5. RIP Version 1 (RIPv1) CCNA2-1 Chapter 5

Configuring RIP. Information About RIP CHAPTER

ISO/OSI Model and Collision Domain NETWORK INFRASTRUCTURES NETKIT - LECTURE 1 MANUEL CAMPO, MARCO SPAZIANI

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

Network Layer/IP Protocols

Chapter 5. RIP Version 1 (RIPv1)

TSIN02 - Internetworking

CIS 632 / EEC 687 Mobile Computing

IP addressing and routing. Lorenzo Bracciale Donato Battaglino

4.2 Multicast IP supports multicast to support one-to-many (radio, news, IP multicast was originally a many-to-many (any source MC or

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

Computer Networks. Routing

Routing Overview. Information About Routing CHAPTER

IP addressing and routing. Lorenzo Bracciale Donato Battaglino

ROUTING INTRODUCTION TO IP, IP ROUTING PROTOCOLS AND PROXY ARP

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

Internet Protocol Addressing and Routing. Redes TCP/IP

COSC 6377 Mid-Term #2 Fall 2000

ECE 461 Internetworking Fall Quiz 1

Juniper JN0-647 Exam. Volume: 65 Questions. Question: 1 Which protocol is a multicast routing protocol? A. OSPF B. BGP C. PIM D. IS-IS.

Computer Networks. Routing Algorithms

IP: Addressing, ARP, Routing

What is the difference between unicast and multicast? (P# 114)

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.

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

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

CIS 83 Midterm Spring 2004 Answer Sheet Name Score Grade Question Answer Question Answer

INTERNET LABORATORY PROJECT. EIGRP Routing Protocol. Abhay Tambe Aniruddha Deshmukh Sahil Jaya

Why dynamic route? (1)

COMPUTER NETWORK. Homework #3. Due Date: May 22, 2017 in class

Homework 3 Discussion

Vorlesung Kommunikationsnetze

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

Information About Routing

CN [Network Devices]

The Internet. 9.1 Introduction. The Internet is a global network that supports a variety of interpersonal and interactive multimedia applications.

Routing with a distance vector protocol - EIGRP

Chapter 6 Addressing the Network- IPv4

Genie Routing lab. Laboration in data communications GenieLab Department of Information Technology, Uppsala University. Overview

IP Multicast Technology Overview

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

Lecture 10: Addressing

RIP version 1. Routing Protocols and Concepts Chapter 5. Version Cisco Systems, Inc. All rights reserved. Cisco Public 1

Addressing and Routing

Chapter 20 Network Layer: Internet Protocol 20.1

Network Layer (Routing)

Fairness Example: high priority for nearby stations Optimality Efficiency overhead

IPv4 IGP Troubleshooting. IPv4 Routing Workflow. IPv4 routing can be subdivided into three discrete steps

EP2120 Internetworking/Internetteknik IK2218 Internets Protokoll och Principer

Network Layer, Part 2 Routing. Terminology

Configuring EIGRP. Overview CHAPTER

FiberstoreOS IP Routing Configuration Guide

2016/01/17 04:04 1/9 Basic Routing Lab

Redesde Computadores(RCOMP)

OSPF Commands on Cisco IOS XR Software

OSPF Commands. adjacency stagger, page 7. authentication-key (OSPF), page 14

Chapter 7 Routing Protocols

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

Lecture 11: Networks & Networking

ECE 461 Internetworking Fall Quiz 1

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

Routing Basics ISP/IXP Workshops

SEMESTER 2 Chapter 3 Introduction to Dynamic Routing Protocols V 4.0

OSPF. OSPF processs can be enabled on 2 levels

Network Layer: Logical Addressing

Network Layer: Control/data plane, addressing, routers

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

Principles of Wireless Sensor Networks

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

NETWORK LAYER: IP Addressing

Final exam study Guide

Chapter 5 RIP version 1

BGP. Daniel Zappala. CS 460 Computer Networking Brigham Young University

EIGRP. About EIGRP. CLI Book 1: Cisco ASA Series General Operations CLI Configuration Guide, 9.7 1

CHAPTER 4: ROUTING DYNAMIC. Routing & Switching

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

Routing Basics ISP/IXP Workshops

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

The Routing Table: A Closer Look

Hostname and IP Address

OSPF Commands on Cisco ASR 9000 Series Router

Communication Networks

Routing Protocol. Seiya Tsubone. Apr The University of Tokyo. Seiya Tsubone (The University of Tokyo) Routing Protocol Apr. 25.

TCP/IP and the OSI Model

Computer Networks II IPv4 routing

Top-Down Network Design

Routing Basics. ISP Workshops. Last updated 10 th December 2015

Static Routing and Serial interfaces. 1 st semester

Antonio Cianfrani. Fundamentals of IP Networking

4A Alcatel-Lucent. Alcatel-Lucent Interior Routing Protocols and High Availability

Switching & ARP Week 3

Objectives. Review: Classful addresses. RIPv1 Characteristics. RIP Operation. RIP version 1

BTEC Level 3 Extended Diploma

OSI Network Layer. Chapter 5

Load Balancing White Paper

Transcription:

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

Routing Routing is the process of selecting a path for traffic in a network. This process defines the shortest or the best path from a source to a destination We have two types of routing 1. Static Routing: a router uses a manually-configured routing entry. So, each row of the routing table is manually-configured by the network administrator 2. Dynamic Routing: (also called adaptive routing) it provides optimal data routing, enables routers to select the optimal paths according to real-time logical network layout changes. In dynamic routing, the routing protocol (operating on the router) is responsible for the creation, maintenance and updating the dynamic routing table. In static routing, all these tasks are manually done by the system administrator. 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 2

Static Routing Advantages - Easy to implement in a small network. - Very secure. No advertisements are sent, unlike with dynamic routing protocols. - It is very predictable, as the route to the destination is always the same. - No routing algorithm or update mechanisms are required. Therefore, extra resources (CPU and memory) are not required. Disadvantages - Suitable only for simple topologies or for special purposes such as a default static route. - Configuration complexity increases dramatically as the network grows. Managing the static configurations in large networks can become time consuming. - If a link fails, a static route cannot reroute traffic. Therefore, manual intervention is required to re-route traffic. 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 3

Dynamic Routing Advantages - Suitable in all topologies where multiple routers are required. - Generally independent of the network size. - Automatically adapts topology to reroute traffic if possible. Disadvantages - Can be more complex to initially implement. - Less secure due to the broadcast and multicast routing updates. - Additional configuration settings such as passive interfaces and routing protocol authentication are required to increase security. - Route depends on the current topology. - Requires additional resources such as CPU, memory, and link bandwidth. 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 4

Routers Routers have an interface for each network they connect For each interface, they have a different IP address Each router, for each arriving IP packet, makes 3 steps: 1. Receive IP packet and read the destination address 2. Lookup in a Routing Table and decide which is the next hop (another router or the final node) 3. Send the packet on right interface or to the next hop 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 5

Anatomy of an IPv4 Packet 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 6

Routing Table Each router has its own routing table A Routing Table lists the routes to particular network destinations, and (in some cases) lists also the metrics (distances) associated with each route The metric is computed by a routing algorithm, and can cover information such as bandwidth, network delay, hop count, path cost, load, MTU (maximum transmission unit), reliability, and communication cost. The routing table stores only the best possible route 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 7

How To Create A Routing Table 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 8

How To Create A Routing Table The proposed methodology includes the following steps: 1. Determining the list of IP networks in the topology 2. Determining the network type: directly connected network (C = Connected) or remote network (S = Static) 3. Defining the routing tree to each IP network identified in the previous steps 4. For each network, determining the next hop (in case of remote network) or the router s interface (in case of directly connected network) in order to reach the destination network 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 9

Routing Table 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 10

Next Hop We can consider Hops as the routers along a packet's path during its travel from a source to a destination. Whenever a packet passes a router, the hop count increases by one. In a network, the next hop is the next possible destination for a packet. Next hop is an IP address (an entry in a routing table belonging to a router), which specifies the next closest/most optimal router in its routing path. Every single router maintains its routing table with a next hop address for each network destination. 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 11

Routing Table 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 12

Routing Table 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 13

Router Behaviour 1. When a packet arrives at Router A, this router consults its routing table in order to find the best path towards the packet destination 2. Router A forwards the message to the interface specified by the routing table (best metric) 3. When the packet arrives a router directly connected to the destination network, its routing table indicates that the destination network is directly connected, so the router modifies the packet with the destination host MAC address and delivers the frame to the host 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 14

Forwarding Decision When a packet arrives a router interface, its IP destination address is not a network_id, but a host_id In a routing table we have only the network_id, not the host_id of ALL HOSTS of ALL NETWORKS!!! We just need to find out what is the network_id starting by an IP address and by the netmask 3 STEPS: 1. Convert both IP Address and Netmask into the equivalent binary 2. Make the logical AND operator between the IP Address and the Netmask 3. Convert the result into decimal -> We find the Network_ID 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 15

Forwarding Decision - Example We have these networks: 133.45.0.0/20 133.45.4.0/22 133.45.12.0/22 133.45.16.0/20 133.45.16.12/30 What is the network_id of a packet having the IP destination address 133.45.16.5? 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 16

Forwarding Decision - Example We convert both the netmask and the IP address 133.45.16.5 into binary: IP address: 10000101.00101101.00010000.00000101 Netmask /20: 255.255.240.0 = 11111111.11111111.11110000.00000000 /22: 255.255.252.0 = 11111111.11111111.11111100.00000000 /30: 255.255.255.252 = 11111111.11111111.11111111.11111100 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 17

Forwarding Decision - Example AND operator between IP address and each netmask 1. /20 10000101.00101101.00010000.00000101 AND 11111111.11111111.11110000.00000000 = 10000101.00101101.00010000.00000000 = 133.45.16.0 2. /22 10000101.00101101.00010000.00000101 AND 11111111.11111111.11111100.00000000 = 10000101.00101101.00010000.00000000 = 133.45.16.0 3. /30 10000101.00101101.00010000.00000101 AND 11111111.11111111.11111111.11111100= 10000101.00101101.00010000.00000100 = 133.45.16.4 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 18

Forwarding Decision - Example Consider the network addresses 133.45.16.0 and 133.45.16.4, are they among the following rows? IP Address -> 10000101.00101101.00010000.00000101 133.45.0.0/20 -> 10000101.00101101.00000000.00000000 133.45.4.0/22 -> 10000101.00101101.00000100.00000000 133.45.12.0/22-> 10000101.00101101.00001100.00000000 133.45.16.0/20-> 10000101.00101101.00010000.00000000 133.45.16.12/30-> 10000101.00101101.00010000.00001100 If we have another row having the 133.45.16.0/24 as Network_ID, two entries will be verified!!!!! What happens??? Longest prefix match Entry with the longer netmask wins! 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 19

Forwarding Decision - Example IP address 133.45.16.5 IP Address -> 10000101.00101101.00010000.00000101 133.45.0.0/20 -> 10000101.00101101.00000000.00000000 133.45.4.0/22 -> 10000101.00101101.00000100.00000000 133.45.12.0/22-> 10000101.00101101.00001100.00000000 133.45.16.0/20-> 10000101.00101101.00010000.00000000 133.45.16.4/30-> 10000101.00101101.00010000.00000100 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 20

Exercise A router has the following routing table Net_ID PortNumber 151.64.0.0/10 Eth0 151.96.0.0/11 Eth1 151.0.0.0/8 Eth2 151.140.25.0/28 Eth3 151.100.25.0/28 Eth4 What is the interface for the destination IP address 151.96.25.63? 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 21

Exercise IP Address: 151.96.25.63 -> 10010111.01100000.00011001.00111111 Routing Table 151.64.0.0/10 -> 10010111.01000000.00000000.00000000 151.96.0.0/11 -> 10010111.01100000.00000000.00000000 151.0.0.0/8 -> 10010111.00000000.00000000.00000000 151.140.25.0/28-> 10010111.10001100.00011001.00000000 151.100.25.0/28 -> 10010111.01100100.00011001.00000000 Answer: Eth1!! 27/10/2017 NETWORK INFRASTRUCTURES A.A. 2017/2018 22