University of Engineering & Technology (UET) Taxila Computer Communication Networks LAB

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 4

University of Engineering & Technology (UET)

Taxila
Computer Communication Networks LAB

EXPERIMENT # 05: Static Routing

Name of Student: …………………………………..

Roll No.: ……………………………………………

Date of Experiment: ………………………………..

Report submitted on: ………………………………..

Marks: ……………………………………

Remarks……………………………………

Signature………………………….………

Computer Communication Networks Lab Page 1


Static Routing
1. Objective:
Learn how Static routing is implemented on networks and the packet format used in
this protocol

2. Recourses Required:
 Computer
 Packet Tracer (version 5 or higher)

3. Introduction

3.1 Static Routing

Static routing is a form of routing that occurs when a router uses a manually-configured
routing entry, rather than information from a dynamic routing traffic. In many cases,
static routes are manually configured by a network administrator by adding in entries into
a routing table, though this may not always be the case. Unlike dynamic routing, static
routes are fixed and do not change if the network is changed or reconfigured. Static
routing and dynamic routing are not mutually exclusive. Both dynamic routing and static
routing are usually used on a router to maximise routing efficiency and to provide
backups in the event that dynamic routing information fails to be exchanged. Static
routing can also be used in stub networks, or to provide a gateway of last resort.

3.2 Routing Metrics and Costs

Metrics are cost values used by routers to determine the best path to a destination
network. Several factors help dynamic routing protocols decide, that is the preferred or
shortest path to a particular destination. These factors are known as metrics and
algorithms.

Metrics are the network variables used in deciding what path is preferred in terms of these
metrics. For some routing protocols these metrics are static and may not be changed. For
other routing protocols these values may be assigned by a network administrator. The
most common metric values are hop, bandwidth, delay, reliability, load, and cost.

 Hop: A hop is a metric value used to measure distance based on the number of
networks a datagram traverses. Each time a router forwards a datagram onto a
segment this counts as a single hop

 Bandwidth: Protocols that consider the capacity of a link use this) metric. Bandwidth
is measured in terms of bits per second.

Computer Communication Networks Lab Page 2


4. Procedure

Task: ICMP and setting up static routing

 Set up a network as shown. Where network A and C are connected through


router0 and router1.

 Assign Static IP addresses to the end users (PCs and Laptops) and default
gateways of their respective router interface.
 Connect the switches and routers with cross over cable.
 Assign the IP addresses to router interfaces (Serial and fast Ethernet).
 Now check the routing table of router0. You will see that the router
automatically fills the routing table for the networks it’s directly connected to.
 But router0 still does not know about the network C from its routing table. So
you need to update the routing table in static way.
 Open router0. Go to static routing and add the network address and its subnet
mask. Also add the first hop from which your router can reach the network C,
which is 11.0.0.2 as given in the figure.
 Now ping from network A to see and show the ping command result

Computer Communication Networks Lab Page 3


University of Engineering & Technology (UET),
Taxila
Computer Communication Networks Lab
LAB WORKSHEET (Lab # 5)
Q.1 What is routing?
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________

Q.2 What are routing algorithms?


________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________

Q.3 What is AD of static routing and what is its significant?


________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________

Q.4 How entries of routing table are filled?


________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________
________________________________________________________________________

Computer Communication Networks Lab Page 4

You might also like