Sie sind auf Seite 1von 0

1

Module 10
Routing Fundamentals and Subnets
CCNA 1 version 3.1
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Contents
Internet Protocol - Routed
IP routing Protocols
Mechanics of Subnetting
2
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routable and Routed Protocol
Protocol:
The format that a message must conform
The way in which computers must exchange a message within the context of a
particular activity
A routed protocol allows the router to forward data between nodes on different
networks
Routable protocol: must provide the ability to assign a network number and a host
number to each individual device
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
IP Address Grouping
3
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
IP as a routed protocol
The Internet Protocol (IP) is the most widely used implementation of a
hierarchical network-addressing scheme.
Connectionless, unreliable, best-effort delivery protocol
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Packet Propagation and Switching
4
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
5
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
6
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
7
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
8
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router Protocol Stripping
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Encapsulation changes in a Router
9
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Internet Protocol (IP)
Connectionless: Different packets may take different paths to get through the
network; reassembled at the destination, the destination is not contacted before a
packet is sent. Ex: a postal system the sender never knows whether the letter arrived
at the destination.
Connection-oriented: A connection is established between the sender and the
recipient before any data is transferred. Ex: telephone system.
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
10
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
4 bits
Indicates version of IP used
IPv4: 0100; IPv6: 0110
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
4 bits
Indicates datagram header length in 32 bit words
11
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
8 bits
Specifies the level of importance that has been
assigned by upper-layer protocol
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
16 bits
Specifies the length of the entire packet in bytes,
including data and header
12
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
16 bits
Identifies the current datagram
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
3 bits
The second bit specifies if the packet can be fragmented; the last
bit specifying whether the packet is the last fragment in a series
of fragmented packets.
13
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
13 bits
Used to help piece together datagram
fragments
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
8 bits
Specifies the number of hops a packet may travel. This
number is decreased by one as the packet travels through a
router
14
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
8 bits
Indicates which upper-layer protocol, such as TCP or UDP,
receives incoming packets after IP processing has been
completed
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
16 bits
Helps ensure IP header integrity
15
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
32 bits
Specifies the sending node IP address
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
32 bits
Specifies the receiving node IP address
16
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
Variable length
Allows IP to support various options, such as security
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
Variable length
Extra zeros are added to this field to ensure that the
IP header is always a multiple of 32 bits.
17
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Network Layer Fields
Variable length up to 64 Kb
Contains upper-layer information
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing Protocols
Routing is an OSI Layer 3
function. It is a
hierarchical scheme and
allows individual
addresses to be group
together.
Routing is the process of
finding the most efficient
path from one device to
another.
18
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing Metrics
Two key functions of a router:
Maintain routing tables and make sure other routers know of changes in
the network topology.
Use the routing table to determine where to send them
Routing metrics are values used in determining the advantage of one route
over another. They use various combinations of metrics for determining the
best path for data
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing vs. Switching
Switching occurs at Layer 2, routing occurs at Layer 3.
Routing and switching use different information in the
process of moving data from source to destination
19
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Switching and Layer 2 Routing
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
ARP table and Routing table
20
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Router and Switch
Each computer and router interface maintains an ARP table for Layer 2
communication. The ARP table is only effective for the broadcast domain (or
LAN) that it is connected to
MAC addresses are not logically organized, but IP addresses are organized
in a hierarchical manner
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routed versus Routing
Routed protocol: used at the network layer that transfer data from one host to
another across a router
Routing protocols: allow routers to choose the best path for data from source to
destination
Examples: Internet Protocol (IP); Novell's Internetwork Packet Exchange (IPX);
DECnet, AppleTalk, Banyan VINES, and Xerox Network Systems (XNS).
21
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing protocol
Provides processes for sharing route information
Allows routers to communicate with other routers to update and maintain the
routing tables
Examples: Routing Information Protocol (RIP), Interior Gateway Routing
Protocol (IGRP), Open Shortest Path First (OSPF), Border Gateway
Protocol (BGP), and Enhanced IGRP (EIGRP)
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Path Determination
Path determination enables a router to compare the destination address
to the available routes in its routing table, and to select the best path
Static or Dynamic routing
22
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Transportation Analogy
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
The Routing Process
23
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing Table
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Information in Routing Table
Protocol type The type of routing protocol that created the routing
table entry
Destination/next-hop associations These associations tell a router
that a particular destination is either directly connected to the router, or
that it can be reached using another router called the next-hop on the
way to the final destination
Routing metric Different routing protocols use different routing
metrics.
Outbound interfaces The interface that the data must be sent out on
24
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing Algorithms & Metrics
Design goals of Routing
Protocols
Optimization
Simplicity & Low Overhead
Robustness & stability
Flexibility
Rapid Convegence
Some metrics used by Routing
Protocols:
-Bandwidth
-Delay
-Load
-Reliability
-Hop count
-Ticks, cost
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
IGP and EGP
Autonomous system is a network or set of networks under common
administrative control. An autonomous system consists of routers that present
a consistent view of routing to the external world.
Interior Gateway Protocols (IGP): route data within an autonomous system. Eg:
RIP and RIPv2; IGRP; EIGRP; OSPF; IS-IS;
Exterior Gateway Protocols (EGP): route data between autonomous systems.
Eg: BGP
25
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Link state and Distance Vector
The distance-vector routing approach determines the
distance and direction, vector, to any link in the
internetwork. Routers using distance-vector algorithms
send all or part of their routing table entries to adjacent
routers on a periodic basis. This happens even if there are
no changes in the network. Eg: RIP, IGRP, EIRP
Link state routing protocols send periodic update at longer
time interval (30), Flood update only when there is a
change in topology. Link state use their database to creat
routing table. Eg: OSPF, IS-IS
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Routing Protocols
RIP:distance vector; uses hop count as its metric; RIP
cannot route a packet beyond 15 hops. RIPv1 requires
all devices in the network use the same subnet mask.
RIPv2 supports VLSM.
IGRP:distance-vector; routing protocol developed by
Cisco. IGRP can select the fastest path based on delay,
bandwidth, load, and reliability. It also has a much
higher maximum hop count limit than RIP.
OSPF
IS-IS
EIGRP
BGP
26
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Classes of network IP addresses
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Reason for Subnetting
Host bit must be
reassigned as network
bit.The starting borrow
bit is the leftmost hosting
bit.
Providing broadcast
contentment and low
level security.
27
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Establishing SM address
The number of bits in the
subnet will depend on
the maximum number of
hosts required per
subnet.
The subnet mask: using
binary ones in the host
octet(s)
(2
power of borrowed bits
) 2 =
usable subnets
(2
power of remaining host bi ts
)2=
usable hosts
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Applying the Subnet Mask
28
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
The Logical ANDing process
ANDing is a binary process by which the router calculates the subnetwork
ID for an incoming packet
ANDding process is handled at the binary level
(IP address) AND (subnetmask address) = subnetwork ID (router uses that
information to forward the packet across the correct interface)
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Summary
29
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Lab
Basic Subnettting
Subnetting class A address
Subnetting class B address
Subnetting class C address
Hc vin mng Cisco Bch Khoa - Website: www.ciscobachkhoa.com
Web References
http://www.isc.org/
http://www.oreillynet.com/pub/a/network/2001/05/22/net_2nd_lang.html
http://ironbark.ucnv.edu.au/courses/subjects/c202/1998/lectures/Lect19.html
http://www.erg.abdn.ac.uk/users/gorry/course/inet-pages/ip-packet.html
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/routing.htm
http://www.cs.cornell.edu/skeshav/talks/infocom97panel/
http://www.inetdaemon.com/tutorials/internet/routing/routing_vs_routed.html
http://www.ictglobal.com/ICT009/routing_basics.html
http://www.pku.edu.cn/academic/research/computer-center/tc/html/TC0310.html
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/routing.htm#xtocid6
http://www.faqs.org/faqs/cisco-networking-faq/section-28.html
http://www.inetdaemon.com/tutorials/internet/routing/dv_vs_ls.html
http://www.cisco.com/univercd/cc/td/doc/cisintwk/ito_doc/routing.htm
http://support.wrq.com/tutorials/tutorial.html
http://www.ralphb.net/IPSubnet/

Das könnte Ihnen auch gefallen