




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































1.1 Identify Cisco Express Forwarding concepts
● The CEF is used to improve the speed of packet switching by deducing the overhead and delays that other routing protocols introduce. It optimizes the scalability of networks and offers the capability to switch packets via devices in an efficient way while keeping the load on a router’s processor as low as possible. ● If a static route points directly to a multi-access interface, CEF ARPs requests are being sent everywhere, in which case, this causes a CEF routing loop. ● Made up of the FIB and Adjacency table. ● Supports Ethernet, ATM, FDDI, Frame relay, HDLC, PPP, SRP, Token ring and Tunnels. ● show ip cef to display FIB table
● For adjacency show adjacency. ● center# show ip cef 45.0.0. 45.0.0.0/8, version 184, 0 packets, 0 bytes via 1.1.1.1, Tunnel0, 0 dependencies next hop 1.1.1.1, Tunnel valid punt adjacency <- this shows that CEF can’t do anything here and passes it to the next best switching method.
CEF Packets passed on to next switching layer Slot No_adj No_encap Unsupported Redirect Receive Bad_ttl Options RP 0 0 0 0 5700 0 0 2 0 0 0 0 0 0 0
The different Load balancing algorithms for CEF that can be picked using the ‘ ip cef load-sharing algorithm’ are: Tunnel, Include-ports, and universal.
The adjacency table contains a number of different types of adjacency:
● Host route adjacency: A host route adjacency entry is used to specify that a specific host is within one layer two hop. ● Null adjacency: This is used for packets which are destined for the Null0 interface. Null adjacency can be used as an effective form of access filtering. ● Glean adjacency: A glean adjacency is used when a device is connected to multiple hosts off the same interface. In this case, the entry contains a prefix for the subnet not just for a specific host entry. ● Punt adjacency: This is used for those packets that utilize features not currently supported by CEF and which must be forwarding to the next switching level (often to be process switched). ● Discard adjacency: A discard adjacency entry is used for those packets that are to be automatically dropped. ● Drop adjacency: A drop adjacency entry is used for those packets which dropped but only after the prefix is checked. ● Process switching requires the CPU to be personally involved with every forwarding decision, which makes it slow. ● Fast switching still uses the CPU, but after a packet has been forwarded, information about how to reach the destination is stored in a fast-switching cache. This way, when another packet going to the same destination is seen, the next hop information can be re-used from the cache, so the processor doesn’t have to look up and assemble all the information again. If the information is not cached, (for example a first packet for a given destination network) the CPU will have a similar workload, for that packet, as if fast switching was not in use. ● Cisco Express Forwarding (CEF), is the evolution of optimizing the router to make it be able to forward more packets faster. CEF cheats a little, by building a Forwarding Information Base (FIB), and an adjacency table. The FIB is accessed very quickly based on how they built it (it is Cisco proprietary), and contains pre-computed reverse lookups, next hop information for routes in. 1.1.a FIB ● Maintains L3 forwarding info(destination reachability and next hop details), where the Adjacency table maintains L2 info for next hops listed in the FIB. Any changes made in the network are reflected here. Knows all routes and eliminates the need for route cache maintenance due to the 1:1 mapping. ● If there is no FIB entry, the router will drop the packet.
● If an IPv6 router ACL is configured to deny a packet, the packet is dropped. A copy of the packet is sent to the Internet Control Message Protocol (ICMP) queue to generate an ICMP unreachable message for the frame. ● ICMP rate limiting can be used to reduce the number of type 3 messages coming from a router. ● A host can have info on how to get a network, but if the network conditions change and a different original next hop router is used, the original can let the host know which path to take by sending a type 5 message. ● Redirects are sent by the gateways. They are also sent when the router knows a better way for the packet to get to the destination. ● Sent when the packet’s interface it came in and left on is the same, also when the subnet of the source IP address is on the same subnet as the next hop IP address of the routed packet. 1.3.b IPv4 and IPv6 fragmentation ● Breaks the datagram into a number of pieces that will be reassembled. ● Fragging IPv4 can cause a lot of problems - increased Router CPU load, impacts app performance b/c TCP has to resend the whole packet on a single fragment loss. Attackers can bypass firewalls using fragmentation. ● Fragmentation occurs when you have MTU mismatches on the path btwn 2 endpoints, as they only know their local settings. ● Can be prevented with MSS (TCP only). Signals the other end about the local supported MTU size and they select the min MSS supported on both sides. ● Difference with IPv6 is its Don’t Fragment flag bit is always on. Ipv6 router can’t frag an ipv6 packet. ● PMTUD allows endpoints to dynamically discover the min MTU across the path, which uses special Don’t fragment flag in the IP header. When dropping the packet, the router signals the host with a special ICMP unreachable message, due to the large size and suggesting a new MTU value. ● NDP in ipv6 is replaced by ARP and ICMP in ipv4. ● DOCSIS is the international standard for transmitting data over a cable system. ● In order to obtain a global unicast address when a router is present and when an interface has ‘ipv6 address autoconfig’ on an interface with a link- local address, a router-advertisement message is needed.
● IPv6 Header vs ipv4 header
1.3.c TTL ● A field that decrements by 1 each time it passes a router. If it reaches 0, it is discarded, and helps prevent router loops and sends ICMP dest unreachable. Cisco value of 255. ● When a router gets a packet with a TTL of 0, it sends an ICMP time exceeded message to the host that sent the packet. ● RFC recommended default for IP is 64. 1.4 Explain TCP operations ❖ starvation can occur on TFTP and SNMP because they are both UDP protocols. ❖ Enhancements that can be used with selective acks are: ➢ Explicit congestion notification ➢ Keep alive ➢ Time stamps
segment’s bandwidth (in bits/sec) by the latency packets experience as they cross the segment (in sec). For example, a network segment with a bandwidth of 768 kbps and an end-to-end latency of 100 ms would have a bandwidth-delay product of 76,800 bits (that is 768,000 * 0.1 = 76,800). ● Example: 64 kbps and RTT of 3 seconds = 64,000 bits per seconds/8bits ( byte) = 8000 bytes * 3 = 24kBps ● o optimize higher bandwidth, use the ‘auto-cost reference-bandwidth amount ’ command. T 1.4.f Global synchronization
1.5 Describe UDP operations ➔ carries voice and video on links lower than 768 kbps b/c of fragmentation. ➔ No overhead for opening connections - just burst traffic. 1.5.a Starvation ● When there is congestion on the network, UCP tends to win over TCP, due to the mechanisms TCP has. Avoid putting TCP and UDP in the same queue because UDP has no flow control and WRED doesn't affect it. 1.5.b Latency
● Problems that can be caused by latency is that the device that receives the stream is forced to hold data in the buffer for a longer period of time aka congestion. ● Jitter(variance in latency) can be smoothed by buffering. ● Can be reduced with UDP due to smaller and simpler header size.
1.6 Recognize proposed changes to the network 1.6.a Changes to routing protocol parameters ● Changes on one router need to be reflected on the others no matter the protocol. IE - EIGRP K values have to match. ● Other changes can STP migrations and Easy Virtual Network. ● STP -best to run is Rapid PVST+ (faster convergence, backwards compatibility) ● Migrate from IS-IS to another routing protocol such as EIGRP and OSPF - in the same family. 1.6.b Migrate parts of the network to IPv ● Check equipment for compatibility, run v4 and v6 concurrently (dual stack) , check ISP v6 support, configure Nat64(maps v4 to v6 addresses) and use Natv6(from 1 ipv6 network to another). ● 3 mechanisms overall are: NAT, Dual Stack and Tunneling. ● The 3 tunneling mechanisms are 6to4, Teredo and ISATAP tunneling. Supports manual and GRE tunneling as well. ● Send traffic over ipv6overipv4 tunnel as it doesn't enable users of the new protocol to speak with users of the old protocol without using dual-stack hosts. ● Each site gets a 2002:/48 prefix format and is reserved on 2002::/16 prefix within routers for ipv4 as v4 is 32 bits of traffic. Traffic going here will be encapsulated in an ipv4 packet using ipv4 protocol type 41. ● Prepending 0x2002 with the IPv4 address creates an IPv6 address that is used in 6to4 tunneling. ● To config 6to4 tunneling, tunnel mode, ipv4 tunnel source and 6to4 ipv addresses within 2002::/16 are necessary. ● An automatic 6to4 tunnel allows multiple IPv4 destinations. Manually, it would be point to point and both would require dual stack routers at the tunnel endpoints. ● Using both IPv4 and v6 simultaneously means that: ○ Hosts can be configured to get both addresses via dhcp. ○ Ipv6 allows a host to create its own ipv6 address that will allow it to talk to other devices on a network configured via DHCP. IPv doesn't allow this for hosts. ● Can use dual stack to work together. ● Address types that associate with ipv6 are Unicast, Multicast and Anycast. ● All Multicast addresses begin with FF::/8, but: ○ FF02::/16 prefix is for link local multicast, so routers won’t forward these packets outside the local subnet. ○ FF08::/16 for an organization local multicast - typically users throughout an enterprise, and doesn't go out to the Internet, only the organization. ○ FF0E::/16 is for global multicast.
1.6.c Routing protocol migration ● 2 approaches are to use : ○ Administrative distance - config both protocols on all routers, then make sure the new protocol has a higher AD than the old one, so it learns all the route and has the next hops it needs. ○ Default AD’s are: ■ Static = 1
■ EIGRP Summary Route = 5
■ eBGP = 20
■ EIGRP = 90
■ OSPF = 110
■ RIP = 120
■ External EIGRP = 170
■ iBGP = 200
○ The 2nd is using route redistribution so one section of the network is cut over time; this helps with a managed pace and testing. ●
2.1 Configure and verify PPP 2.1.a Authentication (PAP, CHAP) ● HDLC doesn't offer error detection and authentication options while PPP does. CHAP is more aggressive with than PAP. ● PAP is passive authentication and not secure as it is sent in clear text. It can query a TACACS+ server to verify credentials. ● CHAP is an active challenge to make sure the router is who they say they are and the password isn’t sent across. Uses a 3 way handshake to establish a PPP link. Every challenge has its own unique auth string and challenges authentication frequently. ● Cisco uses its own hostname as the default username for CHAP auth. ● MSCHAP V2 has the ability to change an expired password and mutual auth between peers. ● An individual PVC can support 1 PPPoE Client. ● CHAP Steps: ○ LCP phases completes and CHAP is negotiated on both sides, auth sends a challenge to the peer. ○ Peer responds with a value calculated through a one way hash (MD5) ○ Auth checks this against its own value; if matches, successful; otherwise, terminated
● Both methods can be uni or bi directional. Unidirectional adds calling to ppp auth chap/pap calling ● PAP Config :
● Have to change encapsulation on both routers. If there is a mismatch, line protocol will be down but the physical line will be up. Show int serial 0/1/0 will show this. Look for LCP Open and Open: CDPCP. ● CHAP config starts with creating a username/password database for both routers. Each router will have a 1 line database containing the other’s name and password. ● Configure CHAP :
● Verify with debug ppp authentication & debug ppp negotiation 2.1.b PPPoE (client side only) ● Config on client side: ○ interface Dialer 2 <- uses a dialer to establish a session ○ encapsulation ppp ○ ip address negotiated ○ ppp chap hostname TUT ○ ppp chap password MyPPPoE ○ ip mtu 1492 ○ dialer pool 1 ○ Interface E0/ ○ No ip address ○ Pppoe enable ○ Pppoe-client dial-pool-number- ● For the calling router to support the PPPoE client , 2 commands needed are: ○ Mtu & pppoe-client dial-pool-number ● PPPoE allows up to 10 clients per customer premise equipment (CPE) ● Clients can connect to multiple hosts over DMVPN ● Not supported on Frame relay. ● The session can only be started by the client. ● To maintain a connection to an ISP, even if no interesting traffic exists, use dialer-persistent ● PPPoe consists of the Active discovery phase and PPP session phase. The active discovery phase looks for a PPPoE server, which a session ID is assigned and the layer is set up. In the Session phase, PPP options are negotiated and auth is done. Once link setup is done, PPPoE functions as a L2 encap method, so data can be sent over the PPP link. ● Enable the vpdn enable command prior to enabling PPPoE in a VPDN.
● Config 0 int serial 1/0.1 multipoint -> ip address x.x.x.x y.y.y.y -> frame-relay map ip x.x.x.x dlci n broadcast ● Point to multipoint require the frame-relay mapping command to be set and require inverse ARP.
3.1 Identify, configure, and verify IPv4 addressing and subnetting 3.1.a Address types (Unicast, broadcast, multicast, and VLSM) ● Unicast - assigned to a single interface on a device and used for 1: communication. ● Broadcast - assigned to all interfaces on a subnet, and sent from one host to everyone. ● Multicast - assigned to a group of devices on various subnets - 1 to many communications. ● VSLM - allows for divisions of IP addr’s beyond the class system - introduced with CIDR to slow Ipv4 depletion. ● ip prefix-list name permit 10.8.0.0/16 ge 24 le 24 means: ○ Check the first 16 bits of the prefix (10.8) ○ Subnet mask must be greater or equal to 24 and less than or equal to 24 3.1.b ARP
● Used to discover the L2 addr of a device from the L3 address. ARP uses mappings to keep track of addr’s. ● If a mapping doesn't exist, the source device will broadcast to all devices in a segment and one will reply with a matching ip address with packets including its MAC, which the source device will add to its ARP cache. 3.1.c DHCP relay and server ● Using both IPv4 and v6 simultaneously means that: ○ Hosts can be configured to get both addresses via dhcp.
○ Ipv6 allows a host to create its own ipv6 address that will allow it to talk to other devices on a network configured via DHCP. IPv doesn't allow this for hosts. ● A DHCP relay agent is any host that forwards DHCP packets between clients and servers. Relay agents are used to forward requests and replies between clients and servers when they are not on the same physical subnet. ● The relay agent sets the gateway IP address (giaddr field of the DHCP packet) and, if configured, adds the relay agent information option ( option82 ) in the packet and forwards it to the DHCP server. The reply from the server is forwarded back to the client after removing option 82. ● The DHCP relay agent supports the use of unnumbered interfaces. An unnumbered interface can “borrow” the IP address of another interface already configured on the device, which conserves network and address space. For DHCP clients connected though the unnumbered interfaces, the DHCP relay agent automatically adds a static host route once the DHCP client obtains an address, specifying the unnumbered interface as the outbound interface. The route is automatically removed once the lease time expires or when the client releases the address. ● DHCP relay info: ○ Ip dhcp relay info option - automatically adds the circuit identifier suboption and the remote ID suboption ○ Ip dhcp relay info check - check that the relay agent info option in forwarded BOOTREPLY msgs is valid ○ ip dhcp relay information policy: Configures the reforwarding policy for a DHCP relay agent ○ ip dhcp relay information subscriber-id: enable an ISP to add a unique identifier ○ ip dhcp relay information: configured in global configuration mode applies to all interfaces ○ ip dhcp relay information trusted-sources: configures interfaces on a router as trusted sources ● DHCP Relay config: ○ R1(config)# interface gi0/ ○ R1(config-if)# ip helper-address 172.16.1.1 <- used to configure a router to relay DHCP messages that isn’t on the same subnet and allows all well known UDP ports to be forwarded. The ip address is the dhcp server’s ip addr and only can be set in interface mode. ● DHCP Server Config: ○ R2(config)# ip dhcp pool MYLAN ○ R2(dhcp-config)# network 10.0.20. 255.255.255. ○ R2(dhcp-config)# default-router 10.0.20. ○ R2(dhcp-config)# lease 2 <- 2 days ○ R2(dhcp-config)# exit
3.2 Identify IPv6 addressing and subnetting
No broadcast - only multicast, anycast and unicast. ‘Ipv6 flowset’ allows a device to track destinations to which the device has sent packets that are 1280 bytes or larger. For service providers to be prepared for ipv6, they have to use 6RD and DS-Lite. 3.2.a Unicast ● Global unicast is similar a public ipv4 address, which are unique and routable. ● Config with ipv6 unicast-routing. ● Most routing protocols like RIPng use the link local address for a next hop. ● Written like fe80:aa11:bb22:cc33:dd44:ee55:ff66:0001 - there are 2 rules to shorten: ○ Omit leading zeros: can be done on any hextet and turns ‘0001’ into ‘1’.
○ Represent 1 hextet with a colon and consecutive ones with :: - only be done once per address. ○ Example: fe80:0000:0000:0001:0000:0000:0000:0020 -> fe80:0:0:0:1:: 3.2.b EUI- ● EUI-64 is obtained through the 48 bit MAC addr, which is split into 2 24 bits, one being the OUI and the other being NIC specific. IEEE chose FFFE as a reserved value that can only appear in EUI-64 generated from an EUI-48 MAC addr. This can be seen with ‘show ipv6 int brief’.
● For example: Mac addr: C601.420F.0007 is split into 2 24 bits parts “C60142” and “0F007”. FFFE is then inserted in the middle to make C601:42FF:FE0F007. ● A link local addr is used to build the EUI-64 format. ● DHCPv6 is better than EUI-64 for 2 reasons: ○ Allows for tighter control over the v6 addresses that are sent to clients. ○ Allows for additional parameters to be sent to the client, like domain name and the dns server. 3.2.c ND, RS/RA ● Neighbor discovery (ND) - is like ARP for mapping a L2 MAC addr to a L v6 addr. Used for automatic address allocation, resolution and duplicate addr detection, which includes 5 messages: ○ Router Solicitation (RS) is when a request is made by a node for the IP of a local router. ○ Router Advertisements (RA) are sent in response to router solicitation messages. ○ Routers on the IPv6 segment will respond with an advertisement that provides an external path from the local subnet, as well as certain data, such as prefix discovery, as well as if it needs a stateless or stateful DHCPv6 server. ○ Neighbor Solicitation (NS) - sent by a device to the solicited node addr when it knows the addr but not the MAC addr - similar to ARP. ○ Neighbor Advertisement (NA)- sent in response to a NS message and sent as unicast and tells the MAC addr that is linked to the v addr.
■ host1/Admin(config-if)# ipv6 dhcp relay enable ■ host1/Admin(config-if)# ipv6 dhcp relay server 2001:DB8:1::1/ ● To configure DHCPv6 relay, use ‘ Router(config-if)# ipv6 dhcp relay destination <ipv6-address>’. ● A DHCP server whereby the router/switch services DHCP requests directly. ● The 3 config parameters a DHCPv6 pool can contain: ○ A domain search list ○ Prefix delegation ○ DNS servers ● DHCP Server - can autoconfig IPv6 addresses and enable IPv6. ● The client interface - can have the ipv6 address and also enable the DHCP relay destination. ● 2 types of DHCPv6: default gateway info is learned using neighbor discovery. ○ Stateful dhcp - host learns prefix and host address from DHCP server and the server retains info on the clients. ■ Config: ■ Router(config)# ipv6 dhcp pool <pool-name> ■ Router(config-dhcpv6)# address prefix <prefix/length> ■ Router(config-dhcpv6)# dns-server <ipv6-address> ■ Router(config-dhcpv6)# domain-name
○ Step 3. The client responds to one of the DHCP servers (if there are multiple) with a REQUEST message, confirming its configuration parameters. ○ Step 4. The DHCP server responds with a REPLY message. ● Clients can use their stateless autoconfig to obtain the network prefix and use that prefix plus their MAC addr to create an ipv6 addr. DHCP can be used instead of or in addition to stateless autoconfig. ● Big difference between DHCPv4 and 6 - v6 doesn't give out IP’s, but network prefixes only. 3.3 Configure and verify static routing ● Manually configured route and will have an AD of 1. ● Supports VRF. ● To avoid a recursive route lookup, use ‘ip route’ command to specify the next hop ip addr and the connected interface. ○ Example: ip route 0.0.0.0 0.0.0.0 Serial 3/3 192.168.20.1. This enables the static route installation to become more deterministic. ● A recursive static route is a route whose next hop and the destination network are covered by another learned route in the Routing Information Base (RIB). Such static routes cannot be installed in the RIB because they are considered redundant routes. ● Good use case is the hub and spoke design. A drawback is when a topology changes occurs on the network, new static routes have to be added manually. ● If no dynamic routing protocol is used on a link connecting two routers, a static route must be configured on the routers on both sides of the link; otherwise, the remote router will not know how to return the packet to its originator located on the other network— there will be only one-way communication. ● While configuring a static route, you must specify either a next-hop IP address or an exit interface to notify the router which direction to send traffic. ● With CEF now being the default on IOS, however, it is recommended that the next-hop IP address is used. ● Config: ○ Router(config)# ip route