Beruflich Dokumente
Kultur Dokumente
page 1 of 32
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.
page 2 of 32
IP as a routed protocol
The Internet Protocol (IP) is the most widely used implementation of a hierarchical network-addressing scheme. IP is a connectionless (no need for call setup), unreliable (no error control), and best-effort delivery (no bandwidth control) protocol. At the network layer, the data is encapsulated into packets, also known as datagrams. IP determines the contents of the IP packet header, which includes addressing and other control information, but is not concerned with the actual data.
page 3 of 32
Layer 3 data units, packets, are for end-to-end addressing. As the data crosses a Layer 3 device the Layer 2 information changes. Address checked to see if Broadcast or to Router Interface Frame accepted.
CRC Checked. Packet sent to Layer 4. If destined for other IP or Gateway. Frame given appropriate info and new FCS.
page 4 of 32
Connection Oriented
Connection established before data Tx. Circuit Switched. Packets follow same path (circuit) sequentially, e.g. Phone system
The Internet is a gigantic (big), connectionless network. All packet deliveries are handled by IP. TCP adds Layer 4, connectionoriented, reliable (with error control) services to IP.
page 5 of 32
page 7 of 32
Routing overview
Routing takes place in the Network layer. Routing allows individual addresses to be grouped together. Routing finds most efficient path from one device to another. Routers provide 2 key functions
Maintain routing tables and network topology (utilizes routing protocol). Provide mechanisms for finding correct path (path determination).
page 8 of 32
page 9 of 32
Routing protocols allow routers to choose the best path for data from source to destination.
Provides processes for sharing route information. Allows routers to communicate with other routers to update and maintain the routing tables. 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).
Network Technology II Bridging Routing Fundamentals and Subnets page 10 of 32
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 routing configured by administrator. Dynamic routing learned automatically from other routers and devices.
The destination address is obtained from the packet. The mask of the first entry in the routing table is applied to the destination address. The masked destination and the routing table entry are compared. If there is a match, the packet is forwarded to the port that is associated with that table entry. If there is not a match, the next entry in the table is checked. If the packet does not match any entries in the table, the router checks to see if a default route has been set. If a default route has been set, the packet is forwarded to the associated port. A default route is a route that is configured by the network administrator as the route to use if there are no matches in the routing table. If there is no default route, the packet is discarded. Usually a message is sent back to the sending device indicating that the destination was unreachable.
Network Technology II Bridging Routing Fundamentals and Subnets page 11 of 32
Routing tables
Routers use routing protocols to build and maintain routing tables that contain route information.
Routing tables include the following: 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. When a router receives an incoming packet, it checks the destination address and attempts to match this address with a routing table entry. Routing metric Different routing protocols use different routing metrics. Routing metrics are used to determine the desirability of a route. For example, the Routing Information Protocol (RIP) uses hop count as its only routing metric. Interior Gateway Routing Protocol (IGRP) uses a combination of bandwidth, load, delay, and reliability metrics to create a composite metric value. Outbound interfaces The interface that the data must be sent out on, in order to reach the final destination.
page 15 of 32
Routing protocols
RIP
Uses Hop Count as metric Max 15 Hops.
RIPv1 requires all devices in network use same subnet mask classful routing that does not send subnet mask info in updates. RIPv2 allows different subnet masks within network classless routing that sends subnet mask info with updates VLSM.
IGRP
A distance-vector routing protocol developed by Cisco. IGRP can select the fastest available path based on delay, bandwidth, load, and reliability. IGRP higher maximum hop count limit than RIP. IGRP uses only classful routing.
page 17 of 32
page 19 of 32
Subnet Addresses
Include Class A, B, or C network portion plus a subnet field and a host field. Bits are borrowed from the host field and are designated as the subnet field.
Network Host
Network
Subnet
page 20 of 32
24 16 8
Routing Fundamentals and Subnets
22 14 6
page 21 of 32
page 22 of 32
Calculating a Subnet
We will subnet the IP address:
223.14.17.0
Step 1
Determine the default subnet mask Class C default subnet mask: 255.255.255.0
Step 2
Determine the number of subnets needed and hosts on each to determine how many bits to borrow from the host ID. Need: 13 subnets 10 hosts on each subnet
page 23 of 32
Calculating a Subnet
Step 3 Figure the actual number of subnets and hosts by borrowing bits from host ID. Lets see how many subnets and hosts we will have by borrowing 4 bits from the host. 223.14.17.0
XXXX
HHHH
16 possible subnets
Network Technology II Bridging
Calculating a Subnet
Step 3 continued We get 16 possible subnets and 16 possible hosts for each subnet because: For the 4 bits borrowed each bit can be a 1 or a 0 leaving you with 24 or 16 possible combinations. The same goes for the 4 leftover host bits. Important: There are only 14 available hosts on each subnet. Why? Because address with all '1' is the broadcast address and that with all '0' is the network address. A subnet address with all '0' is a zero subnet and that with all '1' is a broadcast subnet. The zero subnet and the broadcast subnet were reserved in years past but are now usable. The ip subnet-zero command enables the router to use zero subnet. The broadcast subnet can be used without special configuration.
Network Technology II Bridging Routing Fundamentals and Subnets page 25 of 32
Calculating a Subnet
Step 4 Determine the subnet mask.
223.14.17.0
XXXX
HHHH
page 26 of 32
Calculating a Subnet
Step 4 continued Add the place values of X together to get the last octet decimal value of the subnet mask.
last octet of the subnet mask= 27 26 25 24 23 22 21 20
1 1 1 1 0 0 0 0 128 + 64 + 32 + 16 = 240
The subnet mask is: 255.255.255.240 The subnet mask is used to reveal the subnet and host address fields in IP addresses.
Network Technology II Bridging Routing Fundamentals and Subnets page 27 of 32
Calculating a Subnet
Step 5 Determine the ranges of host addresses for each subnet.
Subnet # 1 2 3 4 5 6 7 8 Subnet Bits 0000 0001 0010 0011 0100 0101 0110 0111 Host Bits 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 In Decimal .0 -.15 .16 - .31 .32 - .47 .48 - .63 .64 - .79 .80 - .95 .96 - .111 .112 - .127
page 28 of 32
Calculating a Subnet
Step 5 continued ...
Subnet # 9 10 11 12 13 14 15 16 Subnet Bits 1000 1001 1010 1011 1100 1101 1110 1111 Host Bits 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 0000-1111 In Decimal .128 -.143 .144 - .159 .160 - .175 .176 - .191 .192 - .207 .208 - .223 .224 - .239 .240 - .255
page 29 of 32
Calculating a Subnet
Step 5 continued.
There are 16 possible subnets. There are 16 possible hosts on each subnet. That equals 256 possible hosts. What are our available subnets? Ans: 16 (including the zero subnet and the broadcast subnet) What are our available hosts on each subnet? Why????? Ans: 14 available hosts on each subnet, because the two host addresses with all '0' and all '1' are reserved, i.e. number of hosts = 2n-1, where n = number of host bits.
Network Technology II Bridging Routing Fundamentals and Subnets page 30 of 32
page 31 of 32