CCNA Semester 1: Layer 3 Protocols
CCNA Semester 1: Layer 3 Protocols
CCNA Semester 1: Layer 3 Protocols
Chapter 10
LAYER 3 PROTOCOLS
Internetworking
Path determination
Path determination is the process that the router uses to choose the next hop in the path for the packet to travel to its destination based on the link bandwidth, hop, delay ...
4
Router
A router is a type of internetworking device that passes data packets between networks, based on Layer 3 addresses. A router has the ability to make intelligent decisions regarding the best path for delivery of data on the network.
IP addresses
IP addresses are implemented in software, and refer to the network on which a device is located. IP addressing scheme, according to their geographical location, department, or floor within a building. Because they are implemented in software, IP addresses are fairly easy to change.
6
Router connections
Routers connect two or more networks, each of which must have a unique network number in order for routing to be successful. The unique network number is incorporated into the IP address that is assigned to each device attached to that network.
Router Interface
Router function
Strips off the data link header, Strips off the data link header, carried by the frame. carried by the frame. (The data link header contains the (The data link header contains the MAC addresses of the source and MAC addresses of the source and destination.) destination.)
1
Examines the network layer Examines the network layer address to determine the address to determine the destination network. destination network.
1
Consults its routing tables to Consults its routing tables to determine which of its interfaces it determine which of its interfaces it will use to send the data, in order will use to send the data, in order for it to reach its destination for it to reach its destination network. network.
1
Send the data out interface B1, the Send the data out interface B1, the router would encapsulate the data router would encapsulate the data in the appropriate data link frame. in the appropriate data link frame.
1
Interface is a routers attachment to a network, it may also be referred to as a port. In IP routing. Each interface must have a separate, unique network address.
1
IP address assignment
Static addressing
You must go to each individual device and configure it with an IP address. You should keep very meticulous records, because problems can occur on the network if you use duplicate IP addresses.
Dynamic addressing
There are a few different methods that you can use to assign IP addresses dynamically:
RARP: Reverse Address Resolution Protocol. BOOTP: BOOTstrap Protocol. DHCP: Dynamic Host Configuration Protocol.
RARP Reply
RARP server
UDP Broadcast
BOOTP server MAC1 IP1 MAC1 IP1 MAC2 IP2 MAC2 IP2 MAC3 IP3 MAC3 IP3
IP Address IP Address Gateway Gateway IP of servers IP of servers And more And more
ARP CONCEPT
Encapsulation
AM R
ARP operation
ARP Table:
?
10.0.2.1 A.B.C.1.2.3
MAC A.B.C.1.2.3
MAC
IP IP 10.0.2.1 10.0.2.9
Data
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
A
2
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
A
2
is t P ha y I T m
10.0.2.1 A.B.C.1.2.3 10.0.2.5 A.B.C.4.5.6 10.0.2.9 A.B.C.7.8.9
A
2
IP IP 10.0.2.9 10.0.2.1
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
A
3
Data
10.0.2.1 A.B.C.1.2.3
10.0.2.5 A.B.C.4.5.6
10.0.2.9 A.B.C.7.8.9
A
3
Internetwork communication
How to communicate with devices that are not on the same physical network segment.
3
Default gateway
In order for a device to communicate with another device on another network, you must supply it with a default gateway. A default gateway is the IP address of the interface on the router that connects to the network segment on which the source host is located. In order for a device to send data to the address of a device that is on another network segment, the source device sends the data to a default gateway.
3
Proxy ARP
AR PR ep ly
Proxy ARP is a variation of the ARP. In the case the source host does not have a default gateway configured.
3
ARP Flowchart
Send Data to a device
Y
Send Data
3
The router interface connected to the network has an IP address for that network. Routers, just like every other device on the network, send and receive data on the network. If router connects to a LAN, it builds ARP tables that maps IP addresses to MAC addresses in that interface.
3
Lab:
Protocol inspector and ARP
Network protocols
In order to allow two host communicate together through internetwork, they need a same network protocol. Protocols are like languages. IP is a network layer protocol.
4
Routed protocol
Protocols that provide support for the network layer are called routed or routable protocols. IP is a network layer protocol, and because of that, it can be routed over an internetwork.
4
TCP/IP:
04 bytes
Class A: 1 byte network + 3 bytes host Class B: 2 bytes network + 2 bytes host Class C: 3 bytes network + 1 byte host
IPX/SPX: AppleTalk:
10 bytes 03 bytes
Non-routable protocol
Non-routable protocols are protocols that do not support Layer 3. The most common of these non-routable protocols is NetBEUI. NetBEUI is a small, fast, and efficient protocol that is limited to running on one segment.
4
Routing table
E0 E1 E2
Multi-protocol routing
Dynamic routes:
Routers can learn the information from each other on the fly. Using routing protocol to update routing information. RIP, IGRP, EIGRP, OSPF
5
Static routes
Dynamic routes
Dynamic routes:
Maintenance of routing table. Timely distribution of information in the form of routing updates. Relies on routing protocol to share knowledge. Routers can adjust to changing network conditions.
5
Routing protocol
Routing protocols determine the paths that routed protocols follow to their destinations. Routing protocols enable routers that are connected to create a map, internally, of other routers in the network or on the Internet.
5
ols ed toc out pro w r ted g tin e ho rou u Ro min s are ter ocol de ot pr
IGP IGP
EGP
RIP
Most popular. Interior Gateway Protocol. Distance Vector Protocol. Only metric is number of hops. Maximum number of hops is 15. Updates every 30 seconds. Doesnt always select fastest path. Generates lots of network traffic.
6
OSPF
Open Shortest Path First. Interior Gateway Protocol. Link State Protocol. Metric is compose of cost, speed, traffic, reliability, and security. Event-triggered updates.
Q&A