Networks (M 418)
Lecture-6 (OSI Network Layer)
Dr. Rashad A. A. Ragb
[email protected] McGraw-Hill Technology Education Copyright © 2006 by The McGraw-Hill Companies, Inc. All rights reserved.
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.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 2
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Network Layer Protocols and Internet Protocol (IP)
Provides services
to exchange data
over the network
between end
devices.
4 Processes:
Addressing
Encapsulation
Routing
Decapsulation
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 3
Network Layer protocols
Internet Protocol version 4 (IPv4) –most widely used
Internet Protocol version 6 (IPv6) – future use…soon!
Novell Internetwork Packet Exchange (IPX)
AppleTalk
Connectionless Network Service (CLNS/DECNet)
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 4
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Network Layer Protocols and Internet Protocol (IP)
Designed with
low overhead
Provides only
functions
necessary to
deliver packets
over the
network
basic
characteristics
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 5
Network Layer Protocols and Internet Protocol (IP)
Connectionless systems (IP, UDP)
Receiving host is NOT contacted before the message is
sent
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 6
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Network Layer Protocols and Internet Protocol (IP)
Unreliable? Simply means that IP does not have the
capability to manage & recover from missing or corrupt
packets.
Depends on
TCP to
manage the
reliability
factor. It just
gets data
from point A
to point B
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 7
Network Layer Protocols and Internet Protocol (IP)
Media doesn’t matter. IP only is concerned with the
maximum size of PDU that each type can transport.
MTU – Maximum
Transmission Unit
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 8
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Network Layer Protocols and Internet Protocol (IP)
Source/Destination IP addresses get added at the
network layer (layer 3).
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 9
Network Layer Protocols and Internet Protocol (IP)
IP packet looks like this. Now let’s break down the 6
key fields.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 10
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
6 key fields of IP header
IP source address – 32 bit ip address of the source host
IP destination address - 32 bit ip address of the destination host –
used to forward the packet by the router!
Time-to-live (TTL) – 8-bit binary that tells the ‘remaining life’ of the
packet. Countdown mechanism at each hop. When is reaches
zero (0), packet is dropped to prevent routing loops.
Type-of-service (ToS) – 8-bit binary used to determine the priority
of each packet. Different types of packets get processed at higher
priorities.
Protocol – indicates the data payload type carried in the packet.
01=ICMP, 06=TCP, 17=UDP, etc.
Fragment Offset – used in case a packet has to be split because
of changing media type to re-construct the packet at the
destination.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 11
Grouping Devices into Networks
Divide networks by:
Geographic location
Purpose
Ownership
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 12
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Grouping networks
Purpose
Users may share similar software or have similar bandwidth
needs
Ownership
Assists in controlling access to devices and data
Assists in administration of the network
Helps with security issues
Geographic location
Improves management and operation
Just the fact of wiring up an entire LAN in a single building
makes this a logical place to start
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 13
Why separate hosts in a network?
Common issues with large networks: performance
degradation, security issues, and address management
(identifying hosts).
Discuss
Broadcast
domains..
Be able to
identify
how many
there are!
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 14
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Why separate hosts?
Security…not allowing students to access research
records and vice-versa.
Done with routers and firewalls.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 15
Why separate hosts?
Address management. Identifying host and using
default gateways.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 16
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Hierarchical Addressing
Each host is uniquely identified. Has levels that assist in
forwarding packets..much like mailing addresses.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 17
Hierarchical Addressing
Routers use the network portion…switches use the
host portion.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 18
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr
Device parameters
If a host needs to communicate ANYWHERE that isn’t
on the local LAN, you must use an intermediary device
(router).
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 19
Default Gateway
Necessary if you are going to communicate with the outside world.
You have to key this in on the host device
If not configured, can only communicate locally on your LAN
The host and the default gateway MUST be on the same network.
Use ipconfig to view ip address, subnet mask, and default
gateway information.
May also use netstat –r, or route print to view routing details on
your PC (stop and do this now…look at your default gateway.
For any given host, it is the NEAR-SIDE Router interface.
What is the first router interface a packet would encounter if it
left your PC? The IP address of that interface on the router
becomes your default gate in the PC.
© 2007 Cisco Systems, Inc. All rights reserved. Cisco Public 20
Copyright © 2001, Cisco Systems, Inc. All rights reserved. Printed in USA.
Presentation_ID.scr