Routing Protocols
RIP
RIP - cont.
RIP Packet Format
1 8 16 32
|-------------|--------------|-----------------------------|
| command | version (=1) | must be zero |
| | | |
|----------------------------|-----------------------------|
| address family (=2) | must be zero |
| | |
|----------------------------------------------------------|
| IP address, 32 bits |
| |
|----------------------------------------------------------|
| must be zero |
| |
|----------------------------------------------------------|
| must be zero |
| |
|----------------------------------------------------------|
| metric (1-16) |
| |
|----------------------------------------------------------|
| |
| up to 24 more routes, with same format, ie: |
| address family, 0, ip address, 0, 0, metric |
| ... |
| |
|----------------------------------------------------------|
RIP2 Packet Format
1 8 16 32
|-------------|--------------|-----------------------------|
| command | version (=2) | routing domain |
| | | |
|----------------------------|-----------------------------|
| address family (=2) | route tag |
| | |
|----------------------------------------------------------|
| IP address, 32 bits |
| |
|----------------------------------------------------------|
| subnet mask, 32 bits |
| |
|----------------------------------------------------------|
| next-hop IP address |
| |
|----------------------------------------------------------|
| metric (1-16) |
| |
|----------------------------------------------------------|
| |
| up to 24 more routes, with same format, ie: |
| family, tag, ip addr, subnet, nexthop, metric |
| ... |
| |
|----------------------------------------------------------|
Debugging RIP
% in.routed -t
RESPONSE from 199.45.198.253.520:
dst 0.0.0.0 metric 1
dst 199.45.197.0 metric 1
RESPONSE from 199.45.198.10.520:
dst 0.0.0.0 metric 1
dst 199.45.197.0 metric 1
RESPONSE from 199.45.198.34.520:
dst 0.0.0.0 metric 1
dst 199.45.197.0 metric 1
RESPONSE from 199.45.198.254.520:
dst 0.0.0.0 metric 1
dst 199.45.197.0 metric 1
RIP on a Cisco Router
router rip
network 192.108.21.0
IGRP/EIGRP
IGRP/EIGRP cont.
IGRP/EIGRP cont.
Weaknesses of IGRP
EIGRP - Enhanced IGRP
E/IGRP, cont.
router igrp 101
network 129.19.0.0
network 192.108.21.0
OSPF
OSPF, cont.
SPF Algorithm
OSPF’s Algorithm, cont.
OSPF on a Cisco
router ospf 235
network 199.45.100.0 0.0.0.255 area 4
network 199.45.101.0 0.0.0.255 area 0
show ip ospf
Routing Process "ospf 235" with ID 199.45.141.67
Supports only single TOS(TOS0) routes
Number of areas in this router is 1
Area 1.1.1.1
Number of interfaces in this area is 1
Area has no authentication
SPF algorithm executed 29 times
Area ranges are
Link State Update Interval is 0:30:00 and due in 0:23:15
Link State Age Interval is 0:20:00 and due in 0:03:15
OSPF Details
1 3
A ---------------- B --------------- C
| | ___/
| 3 4| 5 ___/
| | ___/
D ---------------- E ---/
6
from A, to B, link 1, distance 1
from A, to D, link 3, distance 1
from B, to A, link 1, distance 1
from B, to C, link 2, distance 1
from B, to E, link 4, distance 1
OSPF Details
from A, to B, link 1, distance infinite
from B, to A, link 1, distance infinite
from A, to B, link 1, distance infinite
OSPF Details, cont.
Strengths of Link State Protocol
BGP