| Overview |
|
|
|
10.1 | Routed Protocol | ||
| 10.1.1 | Routable and routed protocols |
|
A protocol is a set of rules that
determines how computers communicate with each other across networks.
Computers communicate with one another by exchanging data messages. To
accept and act on these messages, computers must have definitions of
how a message is interpreted. Examples of messages include those
establishing a connection to a remote machine, e-mail messages, and
files transferred over a network.
A protocol describes the following:
A routed protocol allows the router to
forward data between nodes on different networks.
The reason that a network mask is used
is to allow groups of sequential IP addresses to be treated as a
single unit.
|
|
|
10.1 | Routed Protocol | ||
| 10.1.2 | IP as a routed protocol |
|
The Internet Protocol (IP) is the most
widely used implementation of a hierarchical network-addressing
scheme. As information flows down the layers of
the OSI model, the data is processed at each layer.
|
|
|
10.1 | Routed Protocol | ||
| 10.1.3 | Packet propagation and switching within a router |
|
As a packet travels through an
internetwork to its final destination, the Layer 2 frame headers and
trailers are removed and replaced at every Layer 3 device.
Layer 2 Ethernet frames are designed to operate within a broadcast domain using the MAC address that is burned into the physical device. Other Layer 2 frame types include Point-to-Point Protocol (PPP) serial links and Frame Relay connections, which use different Layer 2 addressing schemes. Regardless of the type of Layer 2 addressing used, frames are designed to operate within a Layer 2 broadcast domain, as the data crosses a Layer 3 device the Layer 2 information changes. As a frame is received at a router
interface, the destination MAC address is extracted.
|
|
|
10.1 | Routed Protocol | ||
| 10.1.4 | Internet Protocol (IP) |
|
Two types of delivery services are
connectionless and connection-oriented. These two services provide the
actual end-to-end delivery of data in an internetwork.
Most network services use a
connectionless delivery system.
In connection-oriented systems, a
connection is established between the sender and the recipient before
any data is transferred.
Connectionless network processes are often referred to as packet switched processes. As the packets pass from source to destination, packets can switch to different paths, and possibly arrive out of order. Devices make the path determination for each packet based on a variety of criteria. Some of the criteria, such as available bandwidth, may differ from packet to packet. Connection-oriented network processes are often referred to as circuit switched processes. A connection with the recipient is first established, and then data transfer begins. All packets travel sequentially across the same physical or virtual circuit. The Internet is a gigantic, connectionless network in which all packet deliveries are handled by IP. TCP adds Layer 4, connection-oriented reliability services to IP.
|
|
|
10.1 | Routed Protocol | ||
| 10.1.5 | Anatomy of an IP packet |
IP packets consist of the data from upper
layers plus an IP header. The IP header consists of the following:
While the IP source and destination addresses are important, the other header fields have made IP very flexible. The header fields are the information that is provided to the upper layer protocols defining the data in the packet.
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.1 | Routing overview |
|
Routing is an OSI Layer 3 function.
The following are the two key functions of a router:
A router is a network layer device that
uses one or more routing metrics to determine the optimal path along
which network traffic should be forwarded. Routing metrics are values
used in determining the advantage of one route over another.
Routers interconnect network segments
or entire networks. Routers pass data frames between networks based on
Layer 3 information. Routers make logical decisions regarding the best
path for the delivery of data. Routers then direct packets to the
appropriate output port to be encapsulated for transmission.
This course focuses on the most common routable protocol, which is the Internet Protocol (IP). Other examples of routable protocols include IPX/SPX and AppleTalk. These protocols provide Layer 3 support. Non-routable protocols do not provide Layer 3 support. The most common non-routable protocol is NetBEUI. NetBEUI is a small, fast, and efficient protocol that is limited to frame delivery within one segment.
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.2 | Routing versus switching |
|
Routing is often contrasted with
switching. The relationship between switching and
routing parallels that of telephone local and long distance calls.
When a telephone call is made to a number within the same area code, a
local switch handles the call. However, the local switch can only keep
track of its own local numbers. The local switch cannot handle all the
telephone numbers in the world. When the switch receives a request for
a call outside of its area code, it switches the call to a
higher-level switch that recognizes area codes. The higher-level
switch then switches the call so that it eventually gets to the local
switch for the area code dialed.
The router performs a function similar
to that of the higher-level switch in the telephone example. Figure
The Layer 2 switch can only recognize its own local MAC addresses and cannot handle Layer 3 IP addresses. When a host has data for a non-local IP address, it sends the frame to the closest router, also known as its default gateway. The host uses the MAC address of the router as the destination MAC address. A Layer 2 switch interconnects segments
belonging to same logical network or subnetwork.
Just as a Layer 2 switch keeps a table
of known MAC addresses, the router keeps a table of IP addresses known
as a routing table.
Another difference between switched and
routed networks is switched networks do not block broadcasts.
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.3 | Routed versus routing |
|
Protocols used at the network layer that
transfer data from one host to another across a router are called
routed or routable protocols. Routed protocols transport
data across a network. Routing protocols allow routers to choose the
best path for data from source to destination.
A routed protocol functions include the
following:
The Internet Protocol (IP) and Novell's Internetwork Packet Exchange (IPX) are examples of routed protocols. Other examples include DECnet, AppleTalk, Banyan VINES, and Xerox Network Systems (XNS). Routers use routing protocols to exchange routing tables and share routing information. In other words, routing protocols enable routers to route routed protocols. A routing protocol functions includes
the following:
Examples of routing protocols that support the IP routed protocol include the Routing Information Protocol (RIP), Interior Gateway Routing Protocol (IGRP), Open Shortest Path First (OSPF), Border Gateway Protocol (BGP), and Enhanced IGRP (EIGRP).
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.4 | Path determination |
|
Path determination occurs at the network
layer. The router uses path determination to
decide which port an incoming packet should be sent out of to travel
on to its destination.
The decisions of a driver are influenced by factors such as traffic on a road, the speed limit of the road, the number of lanes on the road, whether or not there is a toll on the road, and whether or not the road is frequently closed. Sometimes it is faster to take a longer route on a smaller, less crowded back street instead of a highway with a lot of traffic. Similarly, routers can make decisions based on the load, bandwidth, delay, cost, and reliability of a network link. The following process is used during
path determination for every packet that is routed:
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.5 | Routing tables |
|
Routers use routing protocols to build and
maintain routing tables that contain route information. This aids in
the process of path determination. Routing protocols fill routing
tables with a variety of route information. This information varies
depending on the routing protocol used. Routing tables contain the
information necessary to forward data packets across connected
networks. Layer 3 devices interconnect broadcast domains or LANs. A
hierarchical addressing scheme is required for data transfer to occur.
Routers keep track of important information in their routing tables, including the following:
Routers communicate with one another to maintain their routing tables through the transmission of routing update messages. Some routing protocols transmit update messages periodically, while others send them only when there are changes in the network topology. Some protocols transmit the entire routing table in each update message, and some transmit only routes that have changed. By analyzing the routing updates from the neighboring routers, a router builds and maintains its routing table.
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.6 | Routing algorithms and metrics |
|
An algorithm is a detailed solution to a
problem. In the case of routing packets, different routing protocols
use different algorithms to decide which port an incoming packet
should be sent to. Routing algorithms depend on metrics to make these
decisions.
Routing protocols often have one or more of the following design goals:
Routing algorithms use different
metrics to determine the best route.
Metrics can be based on a single characteristic of a path, or can be calculated based on several characteristics. The following are the metrics that are most commonly used by routing protocols:
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.7 | IGP and EGP |
|
An autonomous system is a network or set
of networks under common administrative control, such as the cisco.com
domain. An autonomous system consists of routers that present a
consistent view of routing to the external world.
Two families of routing protocols are
Interior Gateway Protocols (IGPs) and Exterior Gateway Protocols (EGPs).
IGPs route data within an autonomous system.
EGPs route data between autonomous systems. An example of an EGP is Border Gateway Protocol (BGP).
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.8 | Link state and distance vector |
|
Routing protocols can be classified as
either IGPs or EGPs, which describes whether a group of routers is
under a single administration or not. IGPs can be further categorized
as either distance-vector or link-state protocols.
The distance-vector routing approach determines the distance and direction, vector, to any link in the internetwork. The distance may be the hop count to the link. 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. By receiving a routing update, a router can verify all the known routes and make changes to its routing table. This process is also known as routing by rumor. The understanding that a router has of the network is based upon the perspective of the adjacent router of the network topology. Examples of distance-vector protocols include the following:
Link-state routing protocols were designed to overcome limitations of distance vector routing protocols. Link-state routing protocols respond quickly to network changes sending trigger updates only when a network change has occurred. Link-state routing protocols send periodic updates, known as link-state refreshes, at longer time intervals, such as every 30 minutes. When a route or link changes, the device that detected the change creates a link-state advertisement (LSA) concerning that link. The LSA is then transmitted to all neighboring devices. Each routing device takes a copy of the LSA, updates its link-state database, and forwards the LSA to all neighboring devices. This flooding of LSAs is required to ensure that all routing devices create databases that accurately reflect the network topology before updating their routing tables. Link-state algorithms typically use their databases to create routing table entries that prefer the shortest path. Examples of link-state protocols include Open Shortest Path First (OSPF) and Intermediate System-to-Intermediate System (IS-IS).
|
|
|
10.2 | IP Routing Protocols | ||
| 10.2.9 | Routing protocols |
|
RIP is a distance vector routing protocol
that uses hop count as its metric to determine the direction and
distance to any link in the internetwork. If there are multiple paths
to a destination, RIP selects the path with the least number of hops.
However, because hop count is the only routing metric used by RIP, it
does not always select the fastest path to a destination. Also, RIP
cannot route a packet beyond 15 hops. RIP Version 1 (RIPv1) requires
that all devices in the network use the same subnet mask, because it
does not include subnet mask information in routing updates. This is
also known as classful routing.
RIP Version 2 (RIPv2) provides prefix routing, and does send subnet mask information in routing updates. This is also known as classless routing. With classless routing protocols, different subnets within the same network can have different subnet masks. The use of different subnet masks within the same network is referred to as variable-length subnet masking (VLSM). IGRP is a distance-vector routing protocol developed by Cisco. IGRP was developed specifically to address problems associated with routing in large networks that were beyond the range of protocols such as RIP. IGRP can select the fastest available path based on delay, bandwidth, load, and reliability. IGRP also has a much higher maximum hop count limit than RIP. IGRP uses only classful routing. OSPF is a link-state routing protocol developed by the Internet Engineering Task Force (IETF) in 1988. OSPF was written to address the needs of large, scalable internetworks that RIP could not. Intermediate System-to-Intermediate System (IS-IS) is a link-state routing protocol used for routed protocols other than IP. Integrated IS-IS is an expanded implementation of IS-IS that supports multiple routed protocols including IP. Like IGRP, EIGRP is a proprietary Cisco protocol. EIGRP is an advanced version of IGRP. Specifically, EIGRP provides superior operating efficiency such as fast convergence and low overhead bandwidth. EIGRP is an advanced distance-vector protocol that also uses some link-state protocol functions. Therefore, EIGRP is sometimes categorized as a hybrid routing protocol. Border Gateway Protocol (BGP) is an example of an External Gateway Protocol (EGP). BGP exchanges routing information between autonomous systems while guaranteeing loop-free path selection. BGP is the principal route advertising protocol used by major companies and ISPs on the Internet. BGP4 is the first version of BGP that supports classless interdomain routing (CIDR) and route aggregation. Unlike common Internal Gateway Protocols (IGPs), such as RIP, OSPF, and EIGRP, BGP does not use metrics like hop count, bandwidth, or delay. Instead, BGP makes routing decisions based on network policies, or rules using various BGP path attributes.
|
|
|
10.3 | The Mechanics of Subnetting | ||
| 10.3.1 | Classes of network IP addresses |
|
Classes of IP addresses offer a range
from 256 to 16.8 million hosts, as discussed previously in this
module. To efficiently manage a limited supply of IP addresses, all
classes can be subdivided into smaller subnetworks. Figure
|
|
|
10.3 | The Mechanics of Subnetting | ||
| 10.3.2 | Introduction to and reason for subnetting |
|
To create the subnetwork structure, host
bits must be reassigned as network bits. This is often referred to as
borrowing bits. However, a more accurate term would be lending
bits. The starting point for this process is always the leftmost host
bit, the one closest to the last network octet.
Subnet addresses include the Class A,
Class B, and Class C network portion, plus a subnet field and a host
field. The subnet field and the host field are created from the
original host portion of the major IP address. This is done by
assigning bits from the host portion to the original network portion
of the address.
In addition to the need for manageability, subnetting enables the network administrator to provide broadcast containment and low-level security on the LAN. Subnetting provides some security since access to other subnets is only available through the services of a router. Further, access security may be provided through the use of access lists. These lists can permit or deny access to a subnet, based on a variety of criteria, thereby providing more security. Access lists will be studied later in the curriculum. Some owners of Class A and B networks have also discovered that subnetting creates a revenue source for the organization through the leasing or sale of previously unused IP addresses. A LAN is seen as a single network with no knowledge of the internal network structure. This view of the network keeps the routing tables small and efficient. Given a local node address of 192.168.10.14, the world outside the LAN sees only the advertised major network number of 192.168.10.0. The reason for this is that the local address of 192.168.10.14 is only valid within the LAN 192.168.10.0 and cannot function anywhere else.
|
|
|
10.3 | The Mechanics of Subnetting | ||
| 10.3.3 | Establishing the subnet mask address |
|
Selecting the number of bits to use in the
subnet process will depend on the maximum number of hosts required per
subnet. An understanding of basic binary math and the position value
of the bits in each octet is necessary when calculating the number of
subnetworks and hosts created when bits were borrowed.
The last two bits in the last octet, regardless of the IP address class, may never be assigned to the subnetwork. These bits are referred to as the last two significant bits. Use of all the available bits to create subnets, except these last two, will result in subnets with only two usable hosts. This is a practical address conservation method for addressing serial router links. However, for a working LAN this would result in prohibitive equipment costs. The subnet mask gives the router the
information required to determine in which network and subnet a
particular host resides.
To determine the number of bits to be
used, the network designer needs to calculate how many hosts the
largest subnetwork requires and the number of subnetworks needed. As
an example, the network requires 30 hosts and five subnetworks. A
shortcut to determine how many bits to reassign is by using the
subnetting chart.
The method that was used to create the
subnet chart
can be used to solve all subnetting problems.
Number of usable subnets= two to the power of the assigned subnet bits or borrowed bits, minus two (reserved addresses for subnetwork id and subnetwork broadcast)
Number of usable hosts= two to the power of the bits remaining, minus two (reserved addresses for subnet id and subnet broadcast)
|
|
|
10.3 | The Mechanics of Subnetting | ||
| 10.3.4 | Applying the subnet mask |
|
Once the subnet mask has been established
it then can be used to create the subnet scheme.
When filling in the subnet chart three
of the fields are automatic, others require some calculation. The
subnetwork ID of subnet zero is the same as the major network number,
in this case 192.168.10.0. The broadcast ID for the whole network is
the largest number possible, in this case 192.168.10.255. The third
number that is given is the subnetwork ID for subnet number seven.
This number is the three network octets with the subnet mask number
inserted in the fourth octet position. Three bits were assigned to the
subnet field with a cumulative value of 224.
When consulting the subnetting chart or
using the formula, the three bits assigned to the subnet field will
result in 32 total hosts assigned to each subnet.
The broadcast field is the last number
in each subnetwork, and has all binary ones in the host portion. This
address has the ability to broadcast only to the members of a single
subnet. The balance of the broadcast ID column can be filled in using the same process that was used in the subnetwork ID column. Simply add 32 to the preceding broadcast ID of the subnet. Another option is to start at the bottom of this column and work up to the top by subtracting one from the preceding subnetwork ID.
|
|
|
10.3 | The Mechanics of Subnetting | ||
| 10.3.5 | Subnetting Class A and B networks |
|
The Class A and B subnetting procedure is
identical to the process for Class C, except there may be
significantly more bits involved. The available bits for assignment to
the subnet field in a Class A address is 22 bits while a Class B
address has 14 bits.
Assigning 12 bits of a Class B address to
the subnet field creates a subnet mask of 255.255.255.240 or /28. All
eight bits were assigned in the third octet resulting in 255, the
total value of all eight bits. Four bits were assigned in the fourth
octet resulting in 240. Recall that the slash mask is the sum total of
all bits assigned to the subnet field plus the fixed network bits.
Assigning 20 bits of a Class A address
to the subnet field creates a subnet mask of 255.255.255.240 or /28.
All eight bits of the second and third octets were assigned to the
subnet field and four bits from the fourth octet.
In this situation, it is apparent that the subnet mask for the Class A and Class B addresses appear identical. Unless the mask is related to a network address it is not possible to decipher how many bits were assigned to the subnet field. Whichever class of address needs to be subnetted, the following rules are the same:
|
|
|
10.3 | The Mechanics of Subnetting | ||
| 10.3.6 | Calculating the resident subnetwork through ANDing |
|
Routers use subnet masks to determine the
home subnetwork for individual nodes. This process is referred to as
logical ANDing. ANDing is a binary process by which the router
calculates the subnetwork ID for an incoming packet.
This process is handled at the binary
level. Therefore, it is necessary to view the IP address and mask in
binary. Subnetting is a learned skill. It will take many hours performing practice exercises to gain a development of flexible and workable schemes. A variety of subnet calculators are available on the web. However, a network administrator must know how to manually calculate subnets in order to effectively design the network scheme and assure the validity of the results from a subnet calculator. The subnet calculator will not provide the initial scheme, only the final addressing. Also, no calculators, of any kind, are permitted during the certification exam.
|
| Summary |
An understanding of the following key
points should have been achieved:
|