Provides reliable, connection-oriented service. Uses sequence numbers, acknowledgements, and windowing for flow control.
Three-way handshake:
Common TCP ports: FTP (20/21), Telnet (23), SMTP (25), HTTP (80)
Provides connectionless, best-effort delivery. Suitable for small data bursts or latency-sensitive applications.
Common UDP ports: DNS (53), TFTP (69), SNMP (161), RIP (520)
Administrative Distance:
Connected: 0 Static: 1 EIGRP summary: 5 eBGP: 20 EIGRP internal: 90 IGRP: 100 OSPF: 110 IS-IS: 115 RIP: 120 EIGRP external: 170 BGP internal: 200 Unknown: 255
IOS Modes: Native (IOS only), Hybrid (CatOS + IOS).
CEF (Cisco Express Forwarding): Proprietary scalable switching with central/distributed modes.
Summarization happens only at area boundaries. OSPF supports AS and areas to control routing information sharing. In hierarchical networks, changes affect only within an area. OSPF has two-layer hierarchy:
OSPF uses Cost = 108 / bandwidth as a metric; the lower the cost, the better the path. Supports up to six equal-cost paths. Each router has a unique Router ID (highest loopback IP or active interface IP).
224.0.0.6224.0.0.5Used in LANs to reduce flooding. DR maintains the topology database and floods LSAs every 30 minutes. Highest priority or Router ID decides DR; default priority = 1 (0–255 range).
Process ID is locally significant (not related to AS). Cost is inverse of bandwidth: Cost = 10^8 / bandwidth. Can be changed with auto-cost reference-bandwidth.
show ip ospf neighbor – View neighbor, DR/BDR info.show ip route ospf – Display OSPF routes.show ip ospf interface – View Router ID, Area ID, adjacency info.Guideline: The main goal of BGP (Border Gateway Protocol) is to provide interdomain routing that guarantees loop-free exchange of routing information between autonomous systems. BGP is a Path Vector Protocol, supporting incremental and triggered updates.
It is designed to scale large internetworks (i.e., the Internet) and is a policy-based routing protocol allowing administrators to control traffic flow using multiple attributes.
BGP exchanges network reachability information (path vectors/attributes) including a list of full paths. BGP-4 supports VLSM and CIDR, using TCP as its transport protocol (reliable delivery). Other protocols differ: OSPF/EIGRP/IGRP operate at IP layer, IS-IS at network layer, RIP uses UDP. BGP sends Keepalive messages similar to Hello messages.
Use BGP when:
Do not use BGP when:
Multihoming: When one AS connects to multiple ISPs for redundancy and path optimization.
Types of Multihoming:
Message Types:
BGP States:
Types:
Route Reflectors: Allow internal BGP routers to reflect learned routes, solving full-mesh requirement. Used for redundancy; forwarding is unaffected.
Route Dampening: Reduces instability from route flaps (frequent up/down).
Route Collector: Displays reachability information within the network.
Sample Configuration:
Router(config)# router bgp 7633
Router(config-router)# neighbor 202.41.226.248 remote-as 4755
Router(config-router)# neighbor 202.41.226.248 description ### Internet Link ###
Router(config-router)# neighbor 202.41.226.248 ebgp-multihop 255
Router(config-router)# neighbor 202.41.226.248 update-source loopback0
Router(config-router)# neighbor 202.41.226.248 route-map VSNL out
Router(config-router)# neighbor 202.41.226.248 filter-list 10 in
Router(config-router)# no neighbor 202.41.226.248 shutdown
MPLS (Multiprotocol Label Switching) is a packet-forwarding technology that uses labels to make data forwarding decisions. MPLS performs Layer 3 header analysis once when the packet enters the MPLS domain, and thereafter, forwarding is done based on the label.
MPLS reduces forwarding overhead on core routers and can work with any Layer 3 protocol.
A Label is a short, 4-byte, fixed-length identifier used to identify a Forwarding Equivalence Class (FEC) — a group of packets forwarded the same way.
Reserved Labels (0–15):
ip cef
mpls label protocol ldp
interface serial1/0
mpls ip
mpls mtu 1504
show ip cef
show mpls forwarding-table
show mpls ldp binding
Transparently transfers Layer 2 user data over MPLS. Frameworks include:
PE-based L3VPN technology that uses BGP for VPN route advertisement and MPLS for packet forwarding.
Used when OSPF prefers non-MPLS routes over MPLS routes to ensure MPLS path preference.
VPN (Virtual Private Network) carries private traffic over a public network using encryption and tunneling to ensure data confidentiality, integrity, and authentication.
crypto isakmp policy 1
encr 3des
authentication pre-share
crypto isakmp key cisco address 172.1.1.71
crypto isakmp keepalive 30 10
crypto map WAN1 ipsec-isakmp
set peer 172.1.1.71
set security-association lifetime 43200
set transform-set BOI
match address cryptofordc
ip access-list extended crypto-for-DC
permit ip 172.11.47.0 0.0.0.255 host 172.1.2.71
permit ip 172.11.47.0 0.0.0.255 host 172.1.2.69
permit ip 172.11.47.0 0.0.0.255 host 172.1.2.39
permit ip 172.11.47.0 0.0.0.255 host 172.1.2.69
QoS (Quality of Service) is the ability of a network to provide better service to selected traffic across technologies like Frame Relay, ATM, Ethernet, SONET, and IP networks. It ensures predictable performance by controlling bandwidth, delay, and packet loss.
Occurs when traffic exceeds interface capacity, leading to delay and jitter (variation in delay).
Up to 256 classes per policy (if reused). If using CBWFQ, maximum of 64 classes supported.
Used to provide modularity by nesting a child policy within a parent policy for structured traffic handling.
Classifies traffic before encryption or tunneling to ensure accurate QoS treatment.
Stores packets temporarily to prevent drops; assigns priorities and thresholds per queue.
Best handled using policing + priority queuing for guaranteed bandwidth and low delay.
Command: qos map dscp 46 to cos 5
This maps DSCP value 46 (EF) to CoS 5 — aligning Layer 3 and Layer 2 QoS markings.
Router(config)# class-map match-any VOICE
Router(config-cmap)# match ip dscp ef
Router(config)# policy-map QOS-POLICY
Router(config-pmap)# class VOICE
Router(config-pmap-c)# priority 1000
Router(config-pmap)# class DATA
Router(config-pmap-c)# bandwidth 2000
Router(config)# interface GigabitEthernet0/0
Router(config-if)# service-policy output QOS-POLICY
class-map.policy-map.service-policy.Symptoms: Slow Telnet, console lag, routing update failure, no ping response.
Initial Checks:
undebug allshow process cpu, show loggingCommand Example:
router#show processes cpu
CPU utilization for five seconds: 8%; one minute: 6%; five minutes: 5%
PID Runtime(uS) Invoked uSecs 5Sec 1Min 5Min TTY Process
1 384 32789 11 0.00% 0.00% 0.00% 0 Load Meter
scheduler interval 500
scheduler allocate 3000 1000
Causes: Router runs out of memory or memory is fragmented.
Router>show processes memory
Total: 3149760, Used: 2334300, Free: 815460
PID TTY Allocated Freed Holding Getbufs Retbufs Process
0 0 10750692 3442000 5812 2813524 0 *Dead*
Note: *Dead* process shows memory held by a terminated process. Each block tracks its creator — if the process no longer exists, memory is marked dead.
Copyright © 2025 | All rights reserved. Design By Creative Mind
WhatsApp us