SlideShare a Scribd company logo
Module 8: Network Layer
Introduction to Networks v7.0
(ITN)
2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Module 8: Topics
What will I learn to do in this module?
Topic Title Topic Objective
Network Layer
Characteristics
Explain how the network layer uses IP protocols for reliable
communications.
IPv4 Packet Explain the role of the major header fields in the IPv4 packet.
IPv6 Packet Explain the role of the major header fields in the IPv6 packet.
How a Host Routes
Explain how network devices use routing tables to direct packets to a
destination network.
Router Routing Tables Explain the function of fields in the routing table of a router.
3
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
8.1 Network Layer
Characteristics
4
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
The Network Layer
• Provides services to allow end devices to exchange
data
• IP version 4 (IPv4) and IP version 6 (IPv6) are the
principle network layer communication protocols.
• The network layer performs four basic operations:
• Addressing end devices
• Encapsulation
• Routing
• De-encapsulation
5
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
IP Encapsulation
• IP encapsulates the transport layer
segment.
• IP can use either an IPv4 or IPv6
packet and not impact the layer 4
segment.
• IP packet will be examined by all
layer 3 devices as it traverses the
network.
• The IP addressing does not change
from source to destination.
Note: NAT will change addressing,
but will be discussed in a later
module.
6
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
Characteristics of IP
IP is meant to have low overhead and may be described as:
• Connectionless
• Best Effort
• Media Independent
7
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
Connectionless
IP is Connectionless
• IP does not establish a connection with the destination before sending the packet.
• There is no control information needed (synchronizations, acknowledgments, etc.).
• The destination will receive the packet when it arrives, but no pre-notifications are sent by IP.
• If there is a need for connection-oriented traffic, then another protocol will handle this
(typically TCP at the transport layer).
8
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
Best Effort
IP is Best Effort
• IP will not guarantee delivery of the
packet.
• IP has reduced overhead since there
is no mechanism to resend data that
is not received.
• IP does not expect
acknowledgments.
• IP does not know if the other device
is operational or if it received the
packet.
9
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
Media Independent
IP is unreliable:
• It cannot manage or fix undelivered or
corrupt packets.
• IP cannot retransmit after an error.
• IP cannot realign out of sequence
packets.
• IP must rely on other protocols for these
functions.
IP is media Independent:
• IP does not concern itself with the type
of frame required at the data link layer
or the media type at the physical layer.
• IP can be sent over any media type:
copper, fiber, or wireless.
10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Network Layer Characteristics
Media Independent (Contd.)
The network layer will establish the
Maximum Transmission Unit (MTU).
• Network layer receives this from
control information sent by the data
link layer.
• The network then establishes the
MTU size.
Fragmentation is when Layer 3 splits the
IPv4 packet into smaller units.
• Fragmenting causes latency.
• IPv6 does not fragment packets.
• Example: Router goes from Ethernet
to a slow WAN with a smaller MTU
11
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
8.2 IPv4 Packet
12
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Packet
IPv4 Packet Header
IPv4 is the primary communication protocol for the network layer.
The network header has many purposes:
• It ensures the packet is sent in the correct direction (to the destination).
• It contains information for network layer processing in various fields.
• The information in the header is used by all layer 3 devices that handle the packet
13
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Packet
IPv4 Packet Header Fields
The IPv4 network header characteristics:
• It is in binary.
• Contains several fields of information
• Diagram is read from left to right, 4 bytes per
line
• The two most important fields are the source
and destination.
Protocols may have one or more functions.
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Packet
IPv4 Packet Header Fields
Significant fields in the IPv4 header:
Function Description
Version This will be for v4, as opposed to v6, a 4 bit field= 0100
Differentiated Services Used for QoS: DiffServ – DS field or the older IntServ – ToS or Type of Service
Header Checksum Detect corruption in the IPv4 header
Time to Live (TTL) Layer 3 hop count. When it becomes zero the router will discard the packet.
Protocol I.D.s next level protocol: ICMP, TCP, UDP, etc.
Source IPv4 Address 32 bit source address
Destination IPV4 Address 32 bit destination address
15
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
8.3 IPv6 Packets
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Packets
Limitations of IPv4
IPv4 has three major limitations:
• IPv4 address depletion – We have basically run out of IPv4 addressing.
• Lack of end-to-end connectivity – To make IPv4 survive this long, private addressing and
NAT were created. This ended direct communications with public addressing.
• Increased network complexity – NAT was meant as temporary solution and creates
issues on the network as a side effect of manipulating the network headers addressing.
NAT causes latency and troubleshooting issues.
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Packets
IPv6 Overview
• IPv6 was developed by Internet
Engineering Task Force (IETF).
• IPv6 overcomes the limitations of IPv4.
• Improvements that IPv6 provides:
• Increased address space – based on
128 bit address, not 32 bits
• Improved packet handling –
simplified header with fewer fields
• Eliminates the need for NAT – since
there is a huge amount of addressing,
there is no need to use private
addressing internally and be mapped to
a shared public address
18
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Packets
IPv4 Packet Header Fields in the IPv6 Packet Header
• The IPv6 header is simplified,
but not smaller.
• The header is fixed at 40 Bytes
or octets long.
• Several IPv4 fields were
removed to improve
performance.
• Some IPv4 fields were removed
to improve performance:
• Flag
• Fragment Offset
• Header Checksum
19
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Packets
IPv6 Packet Header
Significant fields in the IPv6 header:
Function Description
Version This will be for v6, as opposed to v4, a 4 bit field= 0110
Traffic Class Used for QoS: Equivalent to DiffServ – DS field
Flow Label Informs device to handle identical flow labels the same way, 20 bit field
Payload Length This 16-bit field indicates the length of the data portion or payload of the IPv6
packet
Next Header I.D.s next level protocol: ICMP, TCP, UDP, etc.
Hop Limit Replaces TTL field Layer 3 hop count
Source IPv4 Address 128 bit source address
Destination IPV4 Address 128 bit destination address
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Packets
IPv6 Packet Header (Cont.)
IPv6 packet may also contain extension headers (EH).
EH headers characteristics:
• provide optional network layer information
• are optional
• are placed between IPv6 header and the payload
• may be used for fragmentation, security, mobility support, etc.
Note: Unlike IPv4, routers do not fragment IPv6 packets.
21
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
8.4 How a Host Routes
22
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How a Host Routes
Host Forwarding Decision
• Packets are always created at the source.
• Each host devices creates their own routing table.
• A host can send packets to the following:
• Itself – 127.0.0.1 (IPv4), ::1 (IPv6)
• Local Hosts – destination is on the same LAN
• Remote Hosts – devices are not on the same LAN
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How a Host Routes
Host Forwarding Decision (Cont.)
• The Source device determines whether the destination is local or remote
• Method of determination:
• IPv4 – Source uses its own IP address and Subnet mask, along with the destination IP
address
• IPv6 – Source uses the network address and prefix advertised by the local router
• Local traffic is dumped out the host interface to be handled by an intermediary device.
• Remote traffic is forwarded directly to the default gateway on the LAN.
24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How a Host Routes
Default Gateway
A router or layer 3 switch can be a default-gateway.
Features of a default gateway (DGW):
• It must have an IP address in the same range as the rest of the LAN.
• It can accept data from the LAN and is capable of forwarding traffic off of the LAN.
• It can route to other networks.
If a device has no default gateway or a bad default gateway, its traffic will not be
able to leave the LAN.
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How a Host Routes
A Host Routes to the Default Gateway
• The host will know the default
gateway (DGW) either statically or
through DHCP in IPv4.
• IPv6 sends the DGW through a
router solicitation (RS) or can be
configured manually.
• A DGW is static route which will be
a last resort route in the routing
table.
• All device on the LAN will need the
DGW of the router if they intend to
send traffic remotely.
26
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How a Host Routes
Host Routing Tables
• On Windows, route print
or netstat -r to display
the PC routing table
• Three sections
displayed by these two
commands:
• Interface List – all
potential interfaces and
MAC addressing
• IPv4 Routing Table
• IPv6 Routing Table
27
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
8.5 Introduction to Routing
28
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Introduction to Routing
Router Packet Forwarding Decision
What happens when the router receives the frame from the host device?
29
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Introduction to Routing
IP Router Routing Table
There three types of routes in a router’s routing table:
• Directly Connected – These routes are automatically added by the router, provided the interface is
active and has addressing.
• Remote – These are the routes the router does not have a direct connection and may be learned:
• Manually – with a static route
• Dynamically – by using a routing protocol to have the routers share their information with each other
• Default Route – this forwards all traffic to a specific direction when there is not a match in the
routing table
30
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Introduction to Routing
Static Routing
Static Route Characteristics:
• Must be configured manually
• Must be adjusted manually by the
administrator when there is a change
in the topology
• Good for small non-redundant
networks
• Often used in conjunction with a
dynamic routing protocol for
configuring a default route
31
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Introduction to Routing
Dynamic Routing
Dynamic Routes Automatically:
• Discover remote networks
• Maintain up-to-date information
• Choose the best path to the
destination
• Find new best paths when there is a
topology change
Dynamic routing can also share static
default routes with the other routers.
32
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Introduction to Routing
Introduction to an IPv4 Routing Table
The show ip route command shows the
following route sources:
• L - Directly connected local interface IP
address
• C – Directly connected network
• S – Static route was manually configured
by an administrator
• O – OSPF
• D – EIGRP
This command shows types of routes:
• Directly Connected – C and L
• Remote Routes – O, D, etc.
• Default Routes – S*

More Related Content

PPTX
ITN_Module_8.pptx
AliJrboy
 
PPTX
Subject NETWORK LAYER for under graduates.pptx
nuruddinrazali
 
PPTX
Chp4 Network Layer.pptxdata communication and networking
eliasaraya142
 
PPTX
CCNA v6.0 ITN - Chapter 06
Irsandi Hasan
 
PPTX
Ccna v5-S1-Chapter 6
Hamza Malik
 
PPTX
Itn instructor ppt_chapter6_network_layer
Universitas Teknokrat Indonesia
 
PPT
CN L8 — копия.ppt
AssemNazirova2
 
PPTX
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 6
Waqas Ahmed Nawaz
 
ITN_Module_8.pptx
AliJrboy
 
Subject NETWORK LAYER for under graduates.pptx
nuruddinrazali
 
Chp4 Network Layer.pptxdata communication and networking
eliasaraya142
 
CCNA v6.0 ITN - Chapter 06
Irsandi Hasan
 
Ccna v5-S1-Chapter 6
Hamza Malik
 
Itn instructor ppt_chapter6_network_layer
Universitas Teknokrat Indonesia
 
CN L8 — копия.ppt
AssemNazirova2
 
CCNA (R & S) Module 01 - Introduction to Networks - Chapter 6
Waqas Ahmed Nawaz
 

Similar to 7.1 Network Layer.pdf1234567891011121314 (20)

PPTX
CCNA RS_ITN - Chapter 6
Irsandi Hasan
 
PPTX
CCNA RS_NB - Chapter 6
Irsandi Hasan
 
PPTX
CCNA 1 Routing and Switching v5.0 Chapter 6
Nil Menon
 
PDF
CCNAv5 - S1: Chapter 6 - Network Layer
Vuz Dở Hơi
 
PPTX
Chapter 6 : Network layer
teknetir
 
PPTX
57798_Lectures1415.pptx
SheerazAli55
 
PPTX
ITN6_Instructor_Materials_Chapter6git.pptx
VanshKodinariya1
 
PPTX
Lecture Notes- Network Services - Copy.pptx
SaqibAhmedKhan4
 
PDF
Modulo 4 cisco ccna v7 para estudiantes d
SebastianAcevedoGome1
 
PPTX
CCNA_ITN_Chp4.pptx
NguyenLe340487
 
PPTX
04. network access
samiulsuman
 
PPTX
CCNA v6.0 ITN - Chapter 04
Irsandi Hasan
 
PDF
Network Layer & Transport Layer
Sweta Kumari Barnwal
 
PPTX
ITN_Mod-4.pptx sxdvgrthyjukilo;p'['oDCDVS
efazalammahi
 
PDF
7.2 Physical Layer.pdf123456789101112123
MinaMolky
 
PPTX
ITN_Module_6.pptx
argost1003
 
PDF
CCNAv5 - S1: Chapter 5 - Ethernet
Vuz Dở Hơi
 
PPTX
Chapter 5 : Ethernet
teknetir
 
PDF
6.1 Data Link Layer.pdf 1234567891011121314
MinaMolky
 
PPTX
Ccna v5-S1-Chapter 5
Hamza Malik
 
CCNA RS_ITN - Chapter 6
Irsandi Hasan
 
CCNA RS_NB - Chapter 6
Irsandi Hasan
 
CCNA 1 Routing and Switching v5.0 Chapter 6
Nil Menon
 
CCNAv5 - S1: Chapter 6 - Network Layer
Vuz Dở Hơi
 
Chapter 6 : Network layer
teknetir
 
57798_Lectures1415.pptx
SheerazAli55
 
ITN6_Instructor_Materials_Chapter6git.pptx
VanshKodinariya1
 
Lecture Notes- Network Services - Copy.pptx
SaqibAhmedKhan4
 
Modulo 4 cisco ccna v7 para estudiantes d
SebastianAcevedoGome1
 
CCNA_ITN_Chp4.pptx
NguyenLe340487
 
04. network access
samiulsuman
 
CCNA v6.0 ITN - Chapter 04
Irsandi Hasan
 
Network Layer & Transport Layer
Sweta Kumari Barnwal
 
ITN_Mod-4.pptx sxdvgrthyjukilo;p'['oDCDVS
efazalammahi
 
7.2 Physical Layer.pdf123456789101112123
MinaMolky
 
ITN_Module_6.pptx
argost1003
 
CCNAv5 - S1: Chapter 5 - Ethernet
Vuz Dở Hơi
 
Chapter 5 : Ethernet
teknetir
 
6.1 Data Link Layer.pdf 1234567891011121314
MinaMolky
 
Ccna v5-S1-Chapter 5
Hamza Malik
 
Ad

Recently uploaded (20)

PDF
The Future of Artificial Intelligence (AI)
Mukul
 
PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
PPTX
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
PDF
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
PDF
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
The Future of AI & Machine Learning.pptx
pritsen4700
 
PDF
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
PDF
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
PDF
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
PDF
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
PDF
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
The Future of Artificial Intelligence (AI)
Mukul
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
AI and Robotics for Human Well-being.pptx
JAYMIN SUTHAR
 
IT Runs Better with ThousandEyes AI-driven Assurance
ThousandEyes
 
OFFOFFBOX™ – A New Era for African Film | Startup Presentation
ambaicciwalkerbrian
 
NewMind AI Weekly Chronicles - July'25 - Week IV
NewMind AI
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
The Future of AI & Machine Learning.pptx
pritsen4700
 
Structs to JSON: How Go Powers REST APIs
Emily Achieng
 
GDG Cloud Munich - Intro - Luiz Carneiro - #BuildWithAI - July - Abdel.pdf
Luiz Carneiro
 
How Open Source Changed My Career by abdelrahman ismail
a0m0rajab1
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
How ETL Control Logic Keeps Your Pipelines Safe and Reliable.pdf
Stryv Solutions Pvt. Ltd.
 
AI Unleashed - Shaping the Future -Starting Today - AIOUG Yatra 2025 - For Co...
Sandesh Rao
 
Software Development Methodologies in 2025
KodekX
 
AI-Cloud-Business-Management-Platforms-The-Key-to-Efficiency-Growth.pdf
Artjoker Software Development Company
 
Tea4chat - another LLM Project by Kerem Atam
a0m0rajab1
 
Ad

7.1 Network Layer.pdf1234567891011121314

  • 1. Module 8: Network Layer Introduction to Networks v7.0 (ITN)
  • 2. 2 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Module 8: Topics What will I learn to do in this module? Topic Title Topic Objective Network Layer Characteristics Explain how the network layer uses IP protocols for reliable communications. IPv4 Packet Explain the role of the major header fields in the IPv4 packet. IPv6 Packet Explain the role of the major header fields in the IPv6 packet. How a Host Routes Explain how network devices use routing tables to direct packets to a destination network. Router Routing Tables Explain the function of fields in the routing table of a router.
  • 3. 3 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8.1 Network Layer Characteristics
  • 4. 4 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics The Network Layer • Provides services to allow end devices to exchange data • IP version 4 (IPv4) and IP version 6 (IPv6) are the principle network layer communication protocols. • The network layer performs four basic operations: • Addressing end devices • Encapsulation • Routing • De-encapsulation
  • 5. 5 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics IP Encapsulation • IP encapsulates the transport layer segment. • IP can use either an IPv4 or IPv6 packet and not impact the layer 4 segment. • IP packet will be examined by all layer 3 devices as it traverses the network. • The IP addressing does not change from source to destination. Note: NAT will change addressing, but will be discussed in a later module.
  • 6. 6 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics Characteristics of IP IP is meant to have low overhead and may be described as: • Connectionless • Best Effort • Media Independent
  • 7. 7 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics Connectionless IP is Connectionless • IP does not establish a connection with the destination before sending the packet. • There is no control information needed (synchronizations, acknowledgments, etc.). • The destination will receive the packet when it arrives, but no pre-notifications are sent by IP. • If there is a need for connection-oriented traffic, then another protocol will handle this (typically TCP at the transport layer).
  • 8. 8 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics Best Effort IP is Best Effort • IP will not guarantee delivery of the packet. • IP has reduced overhead since there is no mechanism to resend data that is not received. • IP does not expect acknowledgments. • IP does not know if the other device is operational or if it received the packet.
  • 9. 9 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics Media Independent IP is unreliable: • It cannot manage or fix undelivered or corrupt packets. • IP cannot retransmit after an error. • IP cannot realign out of sequence packets. • IP must rely on other protocols for these functions. IP is media Independent: • IP does not concern itself with the type of frame required at the data link layer or the media type at the physical layer. • IP can be sent over any media type: copper, fiber, or wireless.
  • 10. 10 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Network Layer Characteristics Media Independent (Contd.) The network layer will establish the Maximum Transmission Unit (MTU). • Network layer receives this from control information sent by the data link layer. • The network then establishes the MTU size. Fragmentation is when Layer 3 splits the IPv4 packet into smaller units. • Fragmenting causes latency. • IPv6 does not fragment packets. • Example: Router goes from Ethernet to a slow WAN with a smaller MTU
  • 11. 11 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8.2 IPv4 Packet
  • 12. 12 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv4 Packet IPv4 Packet Header IPv4 is the primary communication protocol for the network layer. The network header has many purposes: • It ensures the packet is sent in the correct direction (to the destination). • It contains information for network layer processing in various fields. • The information in the header is used by all layer 3 devices that handle the packet
  • 13. 13 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv4 Packet IPv4 Packet Header Fields The IPv4 network header characteristics: • It is in binary. • Contains several fields of information • Diagram is read from left to right, 4 bytes per line • The two most important fields are the source and destination. Protocols may have one or more functions.
  • 14. 14 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv4 Packet IPv4 Packet Header Fields Significant fields in the IPv4 header: Function Description Version This will be for v4, as opposed to v6, a 4 bit field= 0100 Differentiated Services Used for QoS: DiffServ – DS field or the older IntServ – ToS or Type of Service Header Checksum Detect corruption in the IPv4 header Time to Live (TTL) Layer 3 hop count. When it becomes zero the router will discard the packet. Protocol I.D.s next level protocol: ICMP, TCP, UDP, etc. Source IPv4 Address 32 bit source address Destination IPV4 Address 32 bit destination address
  • 15. 15 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8.3 IPv6 Packets
  • 16. 16 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv6 Packets Limitations of IPv4 IPv4 has three major limitations: • IPv4 address depletion – We have basically run out of IPv4 addressing. • Lack of end-to-end connectivity – To make IPv4 survive this long, private addressing and NAT were created. This ended direct communications with public addressing. • Increased network complexity – NAT was meant as temporary solution and creates issues on the network as a side effect of manipulating the network headers addressing. NAT causes latency and troubleshooting issues.
  • 17. 17 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv6 Packets IPv6 Overview • IPv6 was developed by Internet Engineering Task Force (IETF). • IPv6 overcomes the limitations of IPv4. • Improvements that IPv6 provides: • Increased address space – based on 128 bit address, not 32 bits • Improved packet handling – simplified header with fewer fields • Eliminates the need for NAT – since there is a huge amount of addressing, there is no need to use private addressing internally and be mapped to a shared public address
  • 18. 18 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv6 Packets IPv4 Packet Header Fields in the IPv6 Packet Header • The IPv6 header is simplified, but not smaller. • The header is fixed at 40 Bytes or octets long. • Several IPv4 fields were removed to improve performance. • Some IPv4 fields were removed to improve performance: • Flag • Fragment Offset • Header Checksum
  • 19. 19 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv6 Packets IPv6 Packet Header Significant fields in the IPv6 header: Function Description Version This will be for v6, as opposed to v4, a 4 bit field= 0110 Traffic Class Used for QoS: Equivalent to DiffServ – DS field Flow Label Informs device to handle identical flow labels the same way, 20 bit field Payload Length This 16-bit field indicates the length of the data portion or payload of the IPv6 packet Next Header I.D.s next level protocol: ICMP, TCP, UDP, etc. Hop Limit Replaces TTL field Layer 3 hop count Source IPv4 Address 128 bit source address Destination IPV4 Address 128 bit destination address
  • 20. 20 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential IPv6 Packets IPv6 Packet Header (Cont.) IPv6 packet may also contain extension headers (EH). EH headers characteristics: • provide optional network layer information • are optional • are placed between IPv6 header and the payload • may be used for fragmentation, security, mobility support, etc. Note: Unlike IPv4, routers do not fragment IPv6 packets.
  • 21. 21 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8.4 How a Host Routes
  • 22. 22 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential How a Host Routes Host Forwarding Decision • Packets are always created at the source. • Each host devices creates their own routing table. • A host can send packets to the following: • Itself – 127.0.0.1 (IPv4), ::1 (IPv6) • Local Hosts – destination is on the same LAN • Remote Hosts – devices are not on the same LAN
  • 23. 23 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential How a Host Routes Host Forwarding Decision (Cont.) • The Source device determines whether the destination is local or remote • Method of determination: • IPv4 – Source uses its own IP address and Subnet mask, along with the destination IP address • IPv6 – Source uses the network address and prefix advertised by the local router • Local traffic is dumped out the host interface to be handled by an intermediary device. • Remote traffic is forwarded directly to the default gateway on the LAN.
  • 24. 24 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential How a Host Routes Default Gateway A router or layer 3 switch can be a default-gateway. Features of a default gateway (DGW): • It must have an IP address in the same range as the rest of the LAN. • It can accept data from the LAN and is capable of forwarding traffic off of the LAN. • It can route to other networks. If a device has no default gateway or a bad default gateway, its traffic will not be able to leave the LAN.
  • 25. 25 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential How a Host Routes A Host Routes to the Default Gateway • The host will know the default gateway (DGW) either statically or through DHCP in IPv4. • IPv6 sends the DGW through a router solicitation (RS) or can be configured manually. • A DGW is static route which will be a last resort route in the routing table. • All device on the LAN will need the DGW of the router if they intend to send traffic remotely.
  • 26. 26 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential How a Host Routes Host Routing Tables • On Windows, route print or netstat -r to display the PC routing table • Three sections displayed by these two commands: • Interface List – all potential interfaces and MAC addressing • IPv4 Routing Table • IPv6 Routing Table
  • 27. 27 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential 8.5 Introduction to Routing
  • 28. 28 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Introduction to Routing Router Packet Forwarding Decision What happens when the router receives the frame from the host device?
  • 29. 29 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Introduction to Routing IP Router Routing Table There three types of routes in a router’s routing table: • Directly Connected – These routes are automatically added by the router, provided the interface is active and has addressing. • Remote – These are the routes the router does not have a direct connection and may be learned: • Manually – with a static route • Dynamically – by using a routing protocol to have the routers share their information with each other • Default Route – this forwards all traffic to a specific direction when there is not a match in the routing table
  • 30. 30 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Introduction to Routing Static Routing Static Route Characteristics: • Must be configured manually • Must be adjusted manually by the administrator when there is a change in the topology • Good for small non-redundant networks • Often used in conjunction with a dynamic routing protocol for configuring a default route
  • 31. 31 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Introduction to Routing Dynamic Routing Dynamic Routes Automatically: • Discover remote networks • Maintain up-to-date information • Choose the best path to the destination • Find new best paths when there is a topology change Dynamic routing can also share static default routes with the other routers.
  • 32. 32 © 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential Introduction to Routing Introduction to an IPv4 Routing Table The show ip route command shows the following route sources: • L - Directly connected local interface IP address • C – Directly connected network • S – Static route was manually configured by an administrator • O – OSPF • D – EIGRP This command shows types of routes: • Directly Connected – C and L • Remote Routes – O, D, etc. • Default Routes – S*