Data Communication and Networking: VLSM and Routing by Mr. Chishala G
Data Communication and Networking: VLSM and Routing by Mr. Chishala G
Data Communication and Networking: VLSM and Routing by Mr. Chishala G
1. The destination address of a frame from HostA would be the MAC address of
RouterA’s Fa0/0 interface.
2. The destination address of a packet is the IP address of the HTTPS server’s network
interface card (NIC).
3. The destination port number in the segment header will have a value of 443.
Did you notice that the switches weren’t used as either a default gateway or any other destination?
That’s because switches have nothing to do with routing.
It’s very important to remember that the destination MAC address will always be the router’s
interface—if your packets are destined for outside the LAN, as they were in these last two examples.
Basic IP routing using MAC and IP addresses:
IP ROUTING
IP ROUTING
Referring to Fig in the previous slide, here’s a list of all the answers to questions you need to master.
1. In order to begin communicating with the server, Host 4 sends out an ARP request. How will the
devices exhibited in the topology respond to this request? Since MAC addresses must stay on the local
network, the Lab_B router will respond with the MAC address of the Fa0/0 interface and Host 4 will send
all frames to the MAC address of the Lab_B Fa0/0 interface when sending packets to the Sales server.
2. Host 4 has received an ARP reply. Host 4 will now build a packet, then place this packet in the frame.
What information will be placed in the header of the packet that eaves Host 4 if Host 4 is going to
communicate to the Sales server? Since we’re now talking about packets, not frames, the source address
will be the IP address of Host 4 and the destination address will be the IP address of the Sales server.
3. Finally, the Lab_A router has received the packet and will send it out Fa0/0 onto the LAN toward the
server. What will the frame have in the header as the source and destination addresses? The source MAC
address will be the Lab_A router’s Fa0/0 interface, and the destination MAC address will be the Sales
server’s MAC address because all MAC addresses must be local on the LAN.
4. Host 4 is displaying two web documents from the Sales server in two different browser windows at the
same time. How did the data find its way to the correct browser windows? TCP port numbers are used to
direct the data to the correct application window.
IP ROUTING
Configuring IP Routing:
There are the three routing methods that are used in routing.
Static routing
Default routing
Dynamic routing
Static Routing
Static routing is the process that ensues when you manually add routes in each router’s routing table.
Predictably, there are pros and cons to static routing, but that’s true for all routing approaches.
Here are the pros:
There is no overhead on the router CPU, which means you could probably make do with a cheaper router than you
would need for dynamic routing.
There is no bandwidth usage between routers, saving you money on WAN links as well as minimizing overhead on
the router since you’re not using a routing protocol.
It adds security because you, the administrator, can be very exclusive and choose to allow routing access to certain
networks only.
IP ROUTING
And here are the cons:
Whoever the administrator is must have a vault-tight knowledge of the internetwork and how each
router is connected in order to configure routes correctly.
If you don’t have a good, accurate map of your internetwork, things will get very messy quickly.
If you add a network to the internetwork, you have to tediously add a route to it on all routers by
hand, which only gets increasingly insane as the network grows.
Due to the last point, it’s just not feasible to use it in most large networks because maintaining it
would be a full-time job in itself.
Starting at the beginning, here’s the command syntax you use to add a static route to a routing
table from global config:
ip route [destination_network] [mask] [next-hop_address or
exitinterface] [administrative_distance] [permanent]
•// ip route: The command used to create the static route.
IP ROUTING
•// Mask: The subnet mask being used on the network.
•//next-hop_address: This is the IP address of the next-hop router that will receive packets and
forward them to the remote network, which must signify a router interface that’s on a directly
connected network.
•//exitinterface: Used in place of the next-hop address if you want, and shows up as a directly
connected route.
•//administrative_distance: By default, static routes have an administrative distance of 1 or 0 if you
use an exit interface instead of a next-hop address.
Dynamic Routing:
Dynamic routing is when protocols are used to find networks and update routing tables on routers.
This is whole lot easier than using static or default routing, but it will cost you in terms of router
CPU processing and bandwidth on network links.
A routing protocol defines the set of rules used by a router when it communicates routing
information between neighboring routers.
IP ROUTING
Administrative Distances: The administrative distance (AD) is used to rate the trustworthiness of
routing information received on a router from a neighbor router.
An administrative distance is an integer from 0 to 255, where 0 is the most trusted and 255 means
no traffic will be passed via this route.
If a router receives two updates listing the same remote network, the first thing the router checks is
the AD.
If one of the advertised routes has a lower AD than the other, then the route with the lowest AD will
be chosen and placed in the routing table.
If both advertised routes to the same network have the same AD, then routing protocol metrics like
hop count and/or the bandwidth of the lines will be used to find the best path to the remote network.
The advertised route with the lowest metric will be placed in the routing table, but if both
advertised routes have the same AD as well as the same metrics,
then the routing protocol will load-balance to the remote network, meaning the protocol will send
data down each link.
IP ROUTING
Default administrative distances for different routing protocols are shown below: