With fast switching, the first packet is process switched. The router adds an entry to the fast-switching cache (route cache). The cache has the destination IP address, next-hop information, and data link header information. Future packets with the same destination IP match the cache entry. The cache entries are timed out quickly.
CEF optimizes the route lookup using the Forwarding Information Base (FIB) and adjacency table. FIB contains information about know routes in the RIB and points to entries in the adjancency table. The adjacency table list the outgoing interface and the data link information. This information is precomputed and stored in Ternary Content Addressable Memory (TCAM).
Frame Relay Inverse ARP
With InARP, routers know the DLCI and need to learn the IP address.
A Frame Relay multipoint subinterface uses received InARP information.
Router1(config)#interface s0/0Router1(config-if)#encapsulation frame-relayRouter1(config)#interface s0/0.1 multipointRouter1(config-if)#ip address 192.168.0.1 255.255.255.0Router1(config-if)#frame-relay interface-dlci 200Router1(config-if)#frame-relay interface-dlci 300Router1#show frame-relay map
A Frame Relay point-to-point subinterface ignores InARP information because any other IP hosts can be reached only by the single DLCI.
Router2(config)#interface s0/0Router2(config-if)#encapsulation frame-relayRouter2(config)#interface Serial0/0.2 point-to-pointRouter2(config-if)#192.168.0.2 255.255.255.0Router2(config-if)#frame-relay interface-dlci 100
A Frame Relay point-to-point interface does not receive InARP information because they only flow across a VC. The solution is to add the
frame-relay map command to reach the not directly connected router.Router3(config)#interface s0/0Router3(config-if)#encapsulation frame-relayRouter3(config-if)#192.168.0.3 255.255.255.0Router3(config-if)#frame-relay interface-dlci 100Router3(config-if)#frame-relay map ip 192.168.0.2 100 broadcast
Disabling InARP
InARP can be disabled on multipoint interfaces and physical interfaces using
no frame-relay inverse-arp.The router stops sending InARP messages and ignores received InARP messages too.
Classless and Classful Routing
Classless routing: when a default route exists and no specific match is made, the default route is used.
Classful routing: when a default route exists and the class A, B or C network does not exist in the routing table, the default route is used. If a class A, B or C network exists, but the packet does not match any of the existing subnets of that classful network, the default route is not used and the packet is discarded.
Policy Routing
set ip next-hop 10.1.1.1 10.1.1.2: Forwards to the first addres in the list for which the associated interface is up.set ip default next-hop 10.1.1.1 10.1.1.2: Same logic, except policy routing first attempts to route based on the routing table.set interface s0/0 s1/0: Forwards packets using the first interface in the list that is up.set default interface s0/0 s1/0: Same logic, except policy routing first attempts to route based on the routing table.ToS (8b) = [7-5b] IP precedence + [4b] Delay + [3b] Throughput + [2b] Reliability + [1b] Monetary cost + [0] Must be 0.
set ip precedence number|name: Sets bits 7,6,5 of the ToSset ip tos number: Sets all 8 bits of the ToSRouter(config)#access-list 100 permit tcp any any eq 22Router(config)#route-map MYROUTEMAP permit 10Router(config-route-map)#match ip address 100Router(config-route-map)#set ip next-hop 10.1.1.1Router(config)#route-map MYROUTEMAP permit 20Router(config-route-map)#set ip next-hop 10.1.1.2
Optimized Edge Routing and Performance Routing
OER came first, and Cisco has extended its functionality and renamed it PfR or PIRO (Protocol-Independent Routing Optimization).
OER was created to more optimally route traffic than routing protocols and takes into account:
- Packet loss
- Response time
- Path availability
- Traffic load distribution
PfR leans about network performance using IP SLA (active monitoring) and/or Netflow (passive monitoring).
Stages:
- Learn
- Measure
- Apply Policy
- Enforce
- Verify
Requeriments:
- CEF enabled
- IGP/BGP working
- Does not support MPLS and iBGP
- Uses redistribution of static routes with a tag
Device Roles in PfR
- Master Controller (MC)
Configured using the
oer master command.Learns specified information from the BRs and makes configuration decisions.
- Border Router (BR)
Configured using the
oer border command.A single router can act as both MC and BR.
MC High Availability and Failure Considerations
BR and MC maintain communication using keepalives. If keepalives from the MC stop, the BR removes any PfR information.
For high availability configure more than one MC.
PfR configuration
MC(config)#key-chain key1MC(config-keychain)#key1MC(config-keychain-key)#key-string pfrMC(config)#oer masterMC(config-oer-mc)#loggingMC(config-oer-mc)#mode route controlMC(config-oer-mc)#max prefix total 1000MC(config-oer-mc)#backoff 90 3000 300MC(config-oer-mc)#learnMC(config-oer-mc-learn)#delayMC(config-oer-mc-learn)#monitor period 5MC(config-oer-mc-learn)#periodic interval 15MC(config-oer-mc)#border 10.1.0.1 key-chain key1MC(config-oer-mc-br)#interface fa0/0 internalMC(config-oer-mc-br)#interface se0/0 externalMC(config-oer-mc-br-if)#max-xmit-utilization absolute 1500MC(config-oer-mc-br-if)#cost-minimization fixed fee 1000MC(config-oer-mc)#border 10.2.0.1 key-chain key1MC(config-oer-mc-br)#interface fa0/0 internalMC(config-oer-mc-br)#interface se0/0 externalMC(config-oer-mc-br-if)#max-xmit-utilization absolute 1000MC(config-oer-mc-br-if)#cost-minimization fixed fee 800
BR1(config)#key-chain key1BR1(config-keychain)#key1BR1(config-keychain-key)#key-string pfrBR1(config)#oer borderBR1(config-oer-br)#master 10.0.0.1 key-chain key1BR1(config-oer-br)#local fa0/0BR1(config-oer-br)#active-probe address source interface fa0/0
BR2(config)#key-chain key1BR2(config-keychain)#key1BR2(config-keychain-key)#key-string pfrBR2(config)#oer borderBR2(config-oer-br)#master 10.0.0.1 key-chain key1BR2(config-oer-br)#local fa0/0BR2(config-oer-br)#active-probe address source interface fa0/0
GRE Tunnels
Passenger protocol is encapsulated into the transport protocol.
Multicast is a good example of traffic tunneled from one router to another using unicast packets.
R1(config)#int tu0R1(config-if)#ip address 10.1.3.1 255.255.255.0R1(config-if)#tunnel source FastEthernet0/0R1(config-if)#tunnel destination 192.168.23.3R1(config-if)#tunnel mode greR1(config)#int fa0R1(config-if)#ip address 192.168.12.1 255.255.255.0R1(config)#ip route 0.0.0.0 0.0.0.0 192.168.12.2
R3(config)#int tu0R3(config-if)#ip address 10.1.3.3 255.255.255.0R3(config-if)#tunnel source FastEthernet0/0R3(config-if)#tunnel destination 192.168.12.1R3(config-if)#tunnel mode greR3(config)#int fa0R3(config-if)#ip address 192.168.23.3 255.255.255.0R3(config)#ip route 0.0.0.0 0.0.0.0 192.168.23.2
No comments:
Post a Comment