ca ex s1 m05 osi network layer

71
CCNA Semester1 Chapter 5 - OSI Network Layer CCNA Exploration version 4.0

Post on 21-Oct-2014

3.248 views

Category:

Technology


0 download

DESCRIPTION

 

TRANSCRIPT

Page 1: Ca Ex S1 M05 Osi Network Layer

CCNA – Semester1

Chapter 5 - OSI Network Layer

CCNA Exploration version 4.0

Page 2: Ca Ex S1 M05 Osi Network Layer

Objectives

• Identify the role of the Network Layer, as it describes

communication from one end device to another end

device

• Examine the most common Network Layer protocol,

Internet Protocol (IP), and its features for providing

connectionless and best-effort service

• Understand the principles used to guide the division or

grouping of devices into networks

• Understand the hierarchical addressing of devices and

how this allows communication between networks

• Understand the fundamentals of routes, next hop

addresses and packet forwarding to a destination

network

Page 3: Ca Ex S1 M05 Osi Network Layer

Introduction

• The protocols of the OSI model Network layer specify

addressing and processes that enable Transport layer data to

be packaged and transported. The Network layer encapsulation

allows its contents to be passed to the destination within a

network or on another network with minimum overhead.

Page 4: Ca Ex S1 M05 Osi Network Layer

IPv4

Page 5: Ca Ex S1 M05 Osi Network Layer

Network Layer – Communication from Host to

Host

• Layer 3 uses four basic processes:

– Addressing

– Encapsulation

– Routing: Intermediary devices that connect the networks

are called routers. The role of the router is to select paths

for and direct packets toward their destination. This

process is known as routing.

– Decapsulation

Page 6: Ca Ex S1 M05 Osi Network Layer

Network Layer – Communication from Host

to Host

Page 7: Ca Ex S1 M05 Osi Network Layer

Network Layer – Communication from Host

to Host

Page 8: Ca Ex S1 M05 Osi Network Layer

Network Layer Protocols

• Protocols implemented at the Network

layer that carry user data include:

– Internet Protocol version 4 (IPv4)

– Internet Protocol version 6 (IPv6)

– Novell Internetwork Packet

Exchange (IPX)

– AppleTalk

– Connectionless Network Service

(CLNS/DECNet)

Page 9: Ca Ex S1 M05 Osi Network Layer

The IPv4 Protocol – Example Network Layer

Protocol

• The Internet Protocol was designed as a protocol with low overhead. It

provides only the functions that are necessary to deliver a packet from

a source to a destination over an interconnected system of networks.

The protocol was not designed to track and manage the flow of

packets. These functions are performed by other protocols in other

layers. Basic characteristics:

Page 10: Ca Ex S1 M05 Osi Network Layer

The IPv4 Protocol – Connectionless

Page 11: Ca Ex S1 M05 Osi Network Layer

The IPv4 Protocol – Best Effort

• Since protocols at other layers can manage reliability, IP is

allowed to function very efficiently at the Network layer.

Best Effort Service (unreliable)

• Describe the implications for the use of the IP protocol as it is considered an unreliable protocol

• Unreliable means simply that IP does not have the capability to manage, and recover from, undelivered or corrupt packets.

Page 12: Ca Ex S1 M05 Osi Network Layer

The IPv4 Protocol – Media Independent

• One major characteristic of the media that the Network layer considers: the maximum size of PDU that each medium can transport: the Maximum Transmission Unit (MTU). Part of the control communication between the Data Link layer and the Network layer is the establishment of a maximum size for the packet.

• IPv4 and IPv6 operate independently of the media that carry the data at lower layers of the protocol stack

Page 13: Ca Ex S1 M05 Osi Network Layer

Packaging the Transport Layer PDU

• The process of encapsulating data by layer enables the services at the

different layers to develop and scale without affecting other layers.

• Routers can implement these different Network layer protocols to operate

concurrently over a network to and from the same or different hosts. The

routing performed by these intermediary devices only considers the

contents of the packet header that encapsulates the segment.

Page 14: Ca Ex S1 M05 Osi Network Layer

IPv4 Packet Header

Page 15: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 4 bits

• Indicates version of IP used

• IPv4: 0100; IPv6: 0110

Page 16: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 4 bits

• Indicates datagram header length in 32 bit words

Page 17: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 8 bits

• Specifies the level of importance that has been

assigned by upper-layer protocol

Page 18: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 16 bits

• Specifies the length of the entire packet in bytes,

including data and header

Page 19: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 16 bits

• Identifies the current datagram

Page 20: Ca Ex S1 M05 Osi Network Layer

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.

Page 21: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 13 bits

• Used to help piece together datagram

fragments

Page 22: Ca Ex S1 M05 Osi Network Layer

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

Page 23: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 8 bits

• Indicates which upper-layer protocol, such as TCP(6) or

UDP(17), receives incoming packets after IP

processing has been completed

Page 24: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 16 bits

• Helps ensure IP header integrity

• Not caculated for the encapsulation data

Page 25: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 32 bits

• Specifies the sending node IP address

Page 26: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• 32 bits

• Specifies the receiving node IP address

Page 27: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• Variable length

• Allows IP to support various options, such as security

Page 28: Ca Ex S1 M05 Osi Network Layer

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.

Page 29: Ca Ex S1 M05 Osi Network Layer

Network Layer Fields

• Variable length up to 64 KB

• Contains upper-layer information

Page 30: Ca Ex S1 M05 Osi Network Layer

Networks –

Dividing Hosts into Groups

Page 31: Ca Ex S1 M05 Osi Network Layer

Separating Hosts into Common Groups

• Networks can be grouped based on factors that include:

– Geographic location

– Purpose

– OwnershipGeographic

Page 32: Ca Ex S1 M05 Osi Network Layer

Separating Hosts into Common Groups

Purpose: Users who have similar tasks typically use

common software, common tools, and have common

traffic patterns.

Page 33: Ca Ex S1 M05 Osi Network Layer

Separating Hosts into Common Groups

Purpose

Page 34: Ca Ex S1 M05 Osi Network Layer

Separating Hosts into Common Groups

Ownership: Using an organizational (company,

department) basis for creating networks assists in

controlling access to the devices and data as well as

the administration of the networks.

Page 35: Ca Ex S1 M05 Osi Network Layer

Separating Hosts into Common Groups

Ownership

Page 36: Ca Ex S1 M05 Osi Network Layer

Why separate hosts into networks

Common issues with large networks are: Performance

degradation, Security issues, Address Management

• Improving Performance:

Page 37: Ca Ex S1 M05 Osi Network Layer

Why separate hosts into networks

• Increase network security

Page 38: Ca Ex S1 M05 Osi Network Layer

Why separate hosts into networks

• Address management: To expect each host to know the

address of every other host would impose a processing

burden on these network devices that would severely

degrade their performance.

Page 39: Ca Ex S1 M05 Osi Network Layer

Why separate hosts into networks

• Hierarchical addressing: solves the problem of devices

communicating across networks of networks

Page 40: Ca Ex S1 M05 Osi Network Layer

Dividing the networks - Networks from networks

• If a large network has to be divided, additional layers of

addressing can be created. Using hierarchical addressing

means that the higher levels of the address are retained; with a

subnetwork level and then the host level.

Page 41: Ca Ex S1 M05 Osi Network Layer

Routing –

How Our Data Packets are Handled

Page 42: Ca Ex S1 M05 Osi Network Layer

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.

Page 43: Ca Ex S1 M05 Osi Network Layer

Routing Protocols

• 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)

Page 44: Ca Ex S1 M05 Osi Network Layer

Supporting communication outside our network

This is called the next-hop address. If a route is available to the router, the router will forward the packet to the next-hop router that offers a path to the destination network.

• To communicate with a device on another network, a host

uses the address of this gateway, or default gateway, to

forward a packet outside the local network.

• The router also needs a route that defines where to forward

the packet next.

Page 45: Ca Ex S1 M05 Osi Network Layer

Fundamentals of Routes, Next Hop Addresses and Packet

Forwarding

• If the destination host is in the same network as the source host, the packet is delivered between the two hosts on the local media without the need for a router.

• If the destination host and source host are not in the same network, the packet may be carrying a Transport layer PDU across many networks and through many routers.

Page 46: Ca Ex S1 M05 Osi Network Layer

IP Packet – Carrying Data End-to-End

Page 47: Ca Ex S1 M05 Osi Network Layer

IP Packet – Carrying Data End-to-End

Page 48: Ca Ex S1 M05 Osi Network Layer

IP Packet – Carrying Data End-to-End

Page 49: Ca Ex S1 M05 Osi Network Layer

IP Packet – Carrying Data End-to-End

Page 50: Ca Ex S1 M05 Osi Network Layer

IP Packet – Carrying Data End-to-End

Page 51: Ca Ex S1 M05 Osi Network Layer

A gateway – the way out of our network

Page 52: Ca Ex S1 M05 Osi Network Layer

A gateway – the way out of our network

Page 53: Ca Ex S1 M05 Osi Network Layer

A gateway – the way out of our network

• A router makes a forwarding decision for each packet that arrives at the

gateway interface. This forwarding process is referred to as routing. To

forward a packet to a destination network, the router requires a route to

that network. If a route to a destination network does not exist, the packet

cannot be forwarded.

Page 54: Ca Ex S1 M05 Osi Network Layer

Routing table

• The routing table stores information about connected and

remote networks. Routes in a routing table have three main

features:

– Destination network

– Next-hop

– Metric

Page 55: Ca Ex S1 M05 Osi Network Layer

A Route – The Path to a Network

Page 56: Ca Ex S1 M05 Osi Network Layer

Host Routing Table

• A host creates the routes used to forward the packets it originates. These routes are derived from the connected network and the configuration of the default gateway.

• Hosts automatically add all connected networks to the routes. These routes for the local networks allow packets to be delivered to hosts that are connected to these networks.

Route print

Page 57: Ca Ex S1 M05 Osi Network Layer

Routing table entries

Page 58: Ca Ex S1 M05 Osi Network Layer

Routing table entries

Page 59: Ca Ex S1 M05 Osi Network Layer

Default route

• A router can be configured to have a default route. A default route

is a route that will match all destination networks. In IPv4

networks, the address 0.0.0.0 is used for this purpose. The

default route is used to forward packets for which there is no entry

in the routing table for the destination network. Packets with a

destination network address that does not match a more specific

route in the routing table are forwarded to the next-hop router

associated with the default route.

Page 60: Ca Ex S1 M05 Osi Network Layer

Packet forwarding

• Routing is done packet-by-packet and hop-by-hop. Each

packet is treated independently in each router along the path.

• The router will do one of three things with the packet: Forward

it to the next-hop router; Forward it to the destination host;

Drop it.

Page 61: Ca Ex S1 M05 Osi Network Layer

Packet forwarding

• If the routing table does not contain a more specific route entry for an

arriving packet, the packet is forwarded to the interface indicated by a

default route, if one exists. The default route is also known as the

Gateway of Last Resort.

Page 62: Ca Ex S1 M05 Osi Network Layer

Packet forwarding

Page 63: Ca Ex S1 M05 Osi Network Layer

Routing Processes –

How Routes are Learned

Page 64: Ca Ex S1 M05 Osi Network Layer

Routing protocol – Sharing the route

• Routing protocols: static and dynamic routes

Page 65: Ca Ex S1 M05 Osi Network Layer

Static Routing

• Static route: routes to remote networks with the

associated next hops can be manually configured on the

router. A default route can also be statically configured.

Page 66: Ca Ex S1 M05 Osi Network Layer

Dynamic Routing

• Routing protocols are the set of rules by which routers

dynamically share their routing information.

Page 67: Ca Ex S1 M05 Osi Network Layer

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)

Page 68: Ca Ex S1 M05 Osi Network Layer

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

Page 69: Ca Ex S1 M05 Osi Network Layer

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, EIGRP

• 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 create

routing table. Eg: OSPF, IS-IS

Page 70: Ca Ex S1 M05 Osi Network Layer

Dynamic Routing: Example 5.4.3.2

Page 71: Ca Ex S1 M05 Osi Network Layer

Summary