Top Banner
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1 Version 4.0 OSI Network Layer Network Fundamentals Chapter 5
35

OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

Mar 12, 2020

Download

Documents

dariahiddleston
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 1 Version 4.0

OSI Network Layer

Network Fundamentals – Chapter 5

Page 2: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

2 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

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: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

3 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Protocols and Internet Protocol (IP)

Layer 3 of OSI

Receives segments or PDUs from TL

4 tasks:

• Addressing packets with an IP address

• Encapsulation

• Routing

• Decapsulation

Page 4: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

4 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Protocols and Internet Protocol (IP)

Page 5: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

5 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Tasks

• Addressing packets with an IP address

• Each sending and receiving device must have unique IP address

• Device with IP address = hosts

• Sending host = source IP address

• Receiving host = destination IP address

• iPrivacyTools.com

Page 6: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

6 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Tasks • Encapsulation

• IP header – source and destination IP addresses

• Process of adding information = encapsulation

• Encapsulated PDU = packet

Page 7: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

7 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Tasks • Routing

• Routers =device that connect networks

• Routers – understand packets and calculating best path for packets

• Routing = process perform by routers : receive packets, analyzing dest add info, select a path and forwarding packets to the next router

• Each route to next device = hop

Page 8: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

8 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Tasks • Decapsulation

• Process of removing encapsulation data

• Actually encap and decap happened at all layers of OSI model

• When the IP packet is decapsulated, the information in the packet is handed up to the upper layers for delivery and processing.

Page 9: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

9 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Network Layer Protocols IP is the most common network layer protocol

Page 10: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

10 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4

Most widely used

Basic characteristics:

Page 11: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

11 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Connectionless

•No established connection

•IP simply sends packets without informing receiver

•Requires less data to perform required tasks – uses much less processing power and bandwidth = overhead

Page 12: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

12 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4

Page 13: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

13 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Best Effort

•TCP is reliable (Chapter 4)

•IP is unreliable

•IP makes a ‘best effort’ to deliver packets

•TCP can be relied on delivery problems

•TCP/IP – TL & NL

Page 14: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

14 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Best Effort

Page 15: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

15 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Media independent

• IP is not concerned with physical medium that carries packet

• Internetwork communication – multimedia journey

• ex. wireless, ethernet cable, fiber optic

Page 16: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

16 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Media independent

Page 17: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

17 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 IPv4 encapsulates or packages the TL segment or

datagram as packets

Page 18: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

18 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Packet Header IP Source Address

32 bits

IP Destination Address

32 bits

Time to Live (TTL)

8 bits

Max hops the packet can take before considered lost/undeliverable

Each router decrements TTL field by at leased 1

If TTL reaches 0 – packet will be dropped

Page 19: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

19 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Packet Header Type of Service (ToS)

8 bits

Describes level of throughput

Ex – voice data precede streaming music

Quality of Service - QOS

Protocol

8 bits

Indicate upper layer protocol

TCP, UDP or ICMP

Flag and Fragment Offset

Packet fragmented – small MTU

Used to reconstruct the packets

Page 20: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

20 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Packet Header Version

IPv4 or IPv6

Internet Header Length (IHL)

How long the header - Options may caused different lengths

Packet Length

Total length of datagram including the header

Min 20 bytes, max 65,535 bytes

Identification

Help reassemble any fragments

Page 21: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

21 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

IPv4 Packet Header

Header Checksum

Indicate length of header

Checked by each router

If invalid, packet assumed to be corrupted and is dropped

Relation to TTL? –Each Hop….

Options

Special routing services

Padding

Fill bits when header data does not end on 32 bits boundary

Page 22: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

22 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Dividing Networks from Networks IPv4 address = 32 bits

Two parts

Network = 24 bits - postcode

Host = 8 bits - destination

Page 23: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

23 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Intermediary gateway device allowing devices to

communicate across sub-divided networks

A host has a default gateway address defined

Ipconfig command

Page 24: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

24 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding IP packet traverses unchanged via routers from sub

network to sub-network

Page 25: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

25 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Gateway needed to send packet out of the network

Routers add routes for the connected network to their routing table

Routing table stores information about connected and remote networks

When configured with IP and subnet mask, the interface becomes part of the network

The routing table includes that network as directly connected network.

Page 26: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

26 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding

Page 27: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

27 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding 3 mains features of routes in routing table

Destination network

Next-hop

Metric • Hop Count

• Delay

Page 28: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

28 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Destination network in routing table entry represents a

range of host addresses or network and host addresses

Page 29: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

29 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Next Hop – where the packet goes next

Next hop is the address of the device that will process the packet next

The default route is used when the destination network is not represented by any other route in the rout-ing table.

Page 30: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

30 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Steps of IP packets as they are routed through several

gateways from devices on one sub network to devices on other sub networks

Page 31: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

31 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Static Routing

Manually configured route information on the router

Low router processing overhead, High administrative cost

Dynamic Routing

Routers can learn about routes automatically from other routers

High router processing overhead, Little administrative cost

Page 32: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

32 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Static Routing

Page 33: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

33 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Fundamentals of Routes, Next Hop Addresses and Packet Forwarding Dynamic Routing

Page 34: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

34 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public

Summary

Page 35: OSI Network Layer - Weeblyskj3443.weebly.com/.../3/3/1/23318904/chapter_5_network_layer_ainuddin.pdf · Network Layer Tasks • Routing • Routers =device that connect networks •

35 © 2007 Cisco Systems, Inc. All rights reserved. Cisco Public