Module 8: Network Layer &�Module 13: ICMP
CCNA Routing and Switching:
Introduction to Networks v7.0 (ITN)
This Slides is prepared by:
Eng. Rawan Aljamal
Cisco Certified CCNA Instructor Trainer
1
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
The Network Layer
2
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IP Encapsulation
Protocol Data Unit (PDU)
Layer 5 and above, the PDU is referred to as data.
Layer 4, the PDU of the Transport Layer is referred to as a segment.
Layer 3, the PDU of the Network Layer is referred to as a packet.
Layer 2, the PDU of the Data Link Layer is referred to as a frame.
Layer 1, the PDU of the Physical Layer is referred to as bit (1s or 0s).
3
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IP is Connectionless
4
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IP is Best Effort
5
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IP is Unreliable
6
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IP is Media Independent
7
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Packet Header
IPv4 is one of the primary communication protocol for the network layer.
The IPv4 header consists of a variable-length header of 20 octets (up to 60 bytes if the Options field is used).
The network header has many purposes:
8
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv4 Packet Header Fields
Function | Description |
Version | This will be for v4, as opposed to v6, a 4-bit field= 0100 |
Differentiated Services | Used for QoS |
Header Checksum | Detect corruption in the IPv4 header |
Time to Live (TTL) | Layer 3 hop count. Used to prevent a packet from traversing a network endlessly. 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 |
9
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Limitations of IPv4
IPv4 has three major limitations:
10
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Overview
11
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IPv6 Packet Header Fields
12
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
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 |
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 |
13
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
How a Host Routes
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
14
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Host Forwarding Decision
To test if the TCP/IP stack on the device is working correctly.
Local traffic is dumped out the host interface to be handled by an intermediary device (typically a switch).
Remote traffic is forwarded directly to the default gateway on the LAN.
15
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Host IP configuration in Packet Tracer
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
16
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Introduction to Routing
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
17
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Router Packet Forwarding Decision
At each hop along the path, a router performs the following steps:
18
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
IP Router Routing Table
There are types of routes in a router’s routing table:
19
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ICMP
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
20
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ICMPv4 and ICMPv6 Messages
21
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Host Reachability
In the example:
22
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
ICMP in Packet Tracer
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
23
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
Suggested Lab Work
Page # | Activity Name |
13.2.6 | Verify IPv4 and IPv6 Addressing |
13.2.7 | Use Ping and Traceroute to Test Network Connectivity |
13.3.1 | Use ICMP to Test and Correct Network Connectivity |
24
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential
25
© 2016 Cisco and/or its affiliates. All rights reserved. Cisco Confidential