Chapter 6 IPv4 Addresses – Part 3 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 4/13/2008.

Slides:



Advertisements
Similar presentations
© 2008 Cisco Systems, Inc. All rights reserved.Cisco ConfidentialPresentation_ID 1 Introduction to IPv4 Introduction to Networks.
Advertisements

Chapter 19 Network Layer: Logical Addressing Stephen Kim.
Addressing the Network IPv4
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
© N. Ganesan, All rights reserved. Chapter IP Addressing Format.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
1 Internet Protocol Version 6 (IPv6) What the caterpillar calls the end of the world, nature calls a butterfly. - Anonymous.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
Week 5: Internet Protocol Continue to discuss Ethernet and ARP –MTU –Ethernet and ARP packet format IP: Internet Protocol –Datagram format –IPv4 addressing.
1 CCNA 3 v3.1 Module 1. 2 CCNA 3 Module 1 Introduction to Classless Routing.
Internet Control Message Protocol (ICMP)
Chapter 5 The Network Layer.
Mod 9 – IP Addressing Part 2 CIS151 Paul Morris MHCC.
ICMP: Ping and Trace CCNA 1 version 3.0 Rick Graziani Spring 2005.
1 ICMP – Using Ping and Trace CCNA Semester
IP Addressing & Classes
Types of Addresses in IPv4 Network Range
Chapter 6 IPv4 Addresses – Part 3 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 4/13/2008.
1 26-Aug-15 Addressing the network using IPv4 Lecture # 2 Engr. Orland G. Basas Prepared by: Engr. Orland G. Basas IT Lecturer.
Ch.9 – IP Addressing Part 2 CCNA 1 version 3.1 Rick Graziani Spring 2005.
1 26-Aug-15 S Ward Abingdon and Witney College CCNA Exploration Semester 1 Addressing the network IPv4 CCNA Exploration Semester 1 Chapter 6.
1 Internet Addresses (You should read Chapter 4 in Forouzan) IP Address is 32 Bits Long Conceptually the address is the pair ( NETID, HOSTID ) Addresses.
1Group 07 IPv6 2 1.ET/06/ ET/06/ ET/06/ EE/06/ EE/06/ EE/06/6473 Group 07 IPv6.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the Network – IPv4 Network Fundamentals – Chapter 6.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
Network Layer4-1 NAT: Network Address Translation local network (e.g., home network) /24 rest of.
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 9 Internet Control Message.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
IPv4 Addresses. Internet Protocol: Which version? There are currently two versions of the Internet Protocol in use for the Internet IPv4 (IP Version 4)
Page 19/13/2015 Chapter 8 Some conditions that must be met for host to host communication over an internetwork: a default gateway must be properly configured.
TCP/IP Addressing & Subnetting Unit objectives Discuss TCP/IP addressing and determine the IP address class and default subnet mask Discuss subnetting.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
Chapter 6 VLSM and CIDR.
Chapter 6 VLSM and CIDR CIS 82 Routing Protocols and Concepts Rick Graziani Cabrillo College Last Updated: 3/30/2008.
© 2007 Cisco Systems, Inc. All rights reserved.Cisco Public ITE PC v4.0 Chapter 1 1 VLSM and CIDR Routing Protocols and Concepts – Chapter 6 05/07/2009.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Version 4.0 4: Addressing in an Enterprise Network Introducing Routing and Switching in the.
TCOM 515 IP Routing. Syllabus Objectives IP header IP addresses, classes and subnetting Routing tables Routing decisions Directly connected routes Static.
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNP 1 v3.0 Module 2 Advanced IP Addressing Management Cisco Networking Academy.
1 Network Layer Lecture 15 Imran Ahmed University of Management & Technology.
Layer 3: Internet Protocol.  Content IP Address within the IP Header. IP Address Classes. Subnetting and Creating a Subnet. Network Layer and Path Determination.
Error and Control An IP datagram travels from node to node on the way to its destination Each router operates autonomously Failures or problems may occur.
Transport Layer3-1 Chapter 4: Network Layer r 4. 1 Introduction r 4.2 Virtual circuit and datagram networks r 4.3 What’s inside a router r 4.4 IP: Internet.
Internet Protocols (chapter 18) CSE 3213 Fall 2011.
19.1 Chapter 19 Network Layer: Logical Addressing Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
© Cengage Learning 2014 How IP Addresses Get Assigned A MAC address is embedded on a network adapter at a factory IP addresses are assigned manually or.
Cisco 2 - Routers Perrine. J Page 112/19/2015 Chapter 8 TCP/IP Error Message Some of the conditions that must be met in order for host to host communication.
IP Internet Protocol Fundamental packet format that computers use to exchange information. Is a set of technical rules that defines how computers communicate.
Linux Operations and Administration Chapter Eight Network Communications.
Data Communications and Computer Networks Chapter 4 CS 3830 Lecture 19 Omar Meqdadi Department of Computer Science and Software Engineering University.
1 Objectives Identify the basic components of a network Describe the features of Internet Protocol version 4 (IPv4) and Internet Protocol version 6 (IPv6)
CSE5803 Advanced Internet Protocols and Applications (13) Introduction Existing IP (v4) was developed in late 1970’s, when computer memory was about.
IP Protocol CSE TCP/IP Concepts Connectionless Operation Internetworking involves connectionless operation at the level of the Internet Protocol.
Chapter 8: IP Addressing
+ Lecture#4 IPV6 Addressing Asma AlOsaimi. + Topics IPv4 Issues IPv6 Address Representation IPv6 Types.
© 2006 Cisco Systems, Inc. All rights reserved.Cisco Public 1 Addressing the network IPv4 CCNA Exploration Semester 1 – Chapter 6.
Network Layer IP Address.
1 Layer 3: Routing & Addressing Honolulu Community College Cisco Academy Training Center Semester 1 Version
Understand IPv6 Part 2 LESSON 3.3_B Networking Fundamentals.
LESSON Networking Fundamentals Understand IPv4.
Computer Communication and Networking
ICMP – Using Ping and Trace
An IPv4 address is a 32-bit address that uniquely and universally defines the connection of a device (for example, a computer or a router) to the Internet.
Byungchul Park ICMP & ICMPv DPNM Lab. Byungchul Park
Lecture#5 IPV6 Addressing
ICMP – Using Ping and Trace
IPv4 Addresses.
Lecture#5 :IPV6 Adressing
Presentation transcript:

Chapter 6 IPv4 Addresses – Part 3 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 4/13/2008

2 Topics Calculating the number subnets/hosts needed VLSM (Variable Length Subnet Masks) Classful Subnetting IPv6 ICMP: Ping and Traceroute

Calculating the number subnets/hosts needed

4 Network /24 Need:  As many subnets as possible, 60 hosts per subnet NetworkHost

5 Calculating the number subnets/hosts needed Network /24 Need:  As many subnets as possible, 60 hosts per subnet NetworkHost 6 host bits Number of hosts per subnet

6 Calculating the number subnets/hosts needed Network /24 Need:  As many subnets as possible, 60 hosts per subnet New Subnet Mask: (/26)  Number of Hosts per subnet: 6 bits, 64-2 hosts, 62 hosts  Number of Subnets: 2 bits or 4 subnets NetworkHost 6 host bits Number of subnets

7 Calculating the number subnets/hosts needed Network /24 Need:  As many subnets as possible, 12 hosts per subnet NetworkHost

8 Calculating the number subnets/hosts needed Network /24 Need:  As many subnets as possible, 12 hosts per subnet NetworkHost 4 host bits Number of hosts per subnet

9 Calculating the number subnets/hosts needed Network /24 Need:  As many subnets as possible, 12 hosts per subnet New Subnet Mask: (/28)  Number of Hosts per subnet: 4 bits, 16-2 hosts, 14 hosts  Number of Subnets: 4 bits or 16 subnets NetworkHost 4 host bits Number of subnets Number of hosts per subnet

10 Calculating the number subnets/hosts needed Network /24 Need:  Need 6 subnets, as many hosts per subnet as possible NetworkHost

11 Calculating the number subnets/hosts needed Network /24 Need:  Need 6 subnets, as many hosts per subnet as possible NetworkHost 3 subnet bits Number of subnets

12 Calculating the number subnets/hosts needed Network /24 Need:  Need 6 subnets, as many hosts per subnet as possible New Subnet Mask: (/27)  Number of Hosts per subnet: 5 bits, 32-2 hosts, 30 hosts  Number of Subnets: 3 bits or 8 subnets NetworkHost 3 subnet bits Number of subnets Number of hosts per subnet

VLSM (Variable Length Subnet Masks)

14 VLSM If you know how to subnet, you can do VLSM. Example: /8  Subnet in /16 subnets:  /16  /16  /16  /16  Etc.  Subnet one of the subnets ( /16)  /24  /24  /24  /24  etc

15 VLSM All other /16 subnets are still available for use as /16 networks or to be subnetted. Host can only be a member of the subnet. Host can NOT be a member of the network that was subnetted / /16 NO! YES!

16 VLSM – Using the chart This chart can be used to help determine subnet addresses. This can any octet. We’ll keep it simple and make it the fourth octet. Network: /24  What if we needed 4 subnets?  What would the Mask be?  What would the addresses of each subnet be?  What would the range of hosts be for each subnet?

17 VLSM – Using the chart Network: /24  What if we needed 4 subnets?  What would the Mask be?  (/26)  What would the addresses of each subnet be?  /26  /26  /26  /26  What would the range of hosts be for each subnet?  /26:  /26:  /26:  /26:

18 VLSM – Using the chart What if we needed several (four) /30 subnets for our serial links? Take one of the /26 subnets and subnet it again into /30 subnets. Still have 3 /26 subnets 16 /30 subnets

Classful Subnetting

20 Classful IP Addressing In the early days of the Internet, IP addresses were allocated to organizations based on request rather than actual need. When an organization received an IP network address, that address was associated with a “Class”, A, B, or C. This is known as Classful IP Addressing The first octet of the address determined what class the network belonged to and which bits were the network bits and which bits were the host bits. There were no subnet masks. It was not until 1992 when the IETF introduced CIDR (Classless Interdomain Routing), making the address class meaning less. This is known as Classless IP Addressing. For now, all you need to know is that today’s networks are classless, except for some things like the structure of Cisco’s IP routing table and for those networks that still use Classful routing protocols. You will learn more about this is CIS 82, CIS 83 and CIS 185.

21 IPv4 Address Classes

22 Address Classes Class A Class B Class C NetworkHost Network Host Network Host 1st octet2nd octet3rd octet4th octet N = Network number assigned by ARIN (American Registry for Internet Numbers) H = Host number assigned by administrator

23 Class A addresses NetworkHost First octet is between 0 – 127, begins with 0 Number between bits With 24 bits available for hosts, there a 2 24 possible addresses. That’s 16,777,216 nodes! There are 126 class A addresses.  0 and 127 have special meaning and are not used. 16,777,214 host addresses, one for network address and one for broadcast address. Only large organizations such as the military, government agencies, universities, and large corporations have class A addresses. For example ISPs have and Class A addresses account for 2,147,483,648 of the possible IPv4 addresses. That’s 50 % of the total unicast address space, if classful was still used in the Internet! Default Mask: (/8)

24 Class B addresses Network Host First octet is between 128 – 191, begins with 10 Number between bits With 16 bits available for hosts, there a 2 16 possible addresses. That’s 65,536 nodes! There are 16,384 (2 14 ) class B networks. 65,534 host addresses, one for network address and one for broadcast address. Class B addresses represent 25% of the total IPv4 unicast address space. Class B addresses are assigned to large organizations including corporations (such as Cisco, government agencies, and school districts). Default Mask: (/16)

25 Class C addresses Network Host First octet is between 192 – 223, begins with 110 Number between bits With 8 bits available for hosts, there a 2 8 possible addresses. That’s 256 nodes! There are 2,097,152 possible class C networks. 254 host addresses, one for network address and one for broadcast address. Class C addresses represent 12.5% of the total IPv4 unicast address space. Default Mask: (/24)

26 IPv4 Address Classes No medium size host networks In the early days of the Internet, IP addresses were allocated to organizations based on request rather than actual need.

27 Network based on first octet The network portion of the IP address was dependent upon the first octet. There was no “Base Network Mask” provided by the ISP. The network mask was inherent in the address itself.

28 IPv4 Address Classes Class D Addresses A Class D address begins with binary 1110 in the first octet. First octet range 224 to 239. Class D address can be used to represent a group of hosts called a host group, or multicast group. Class E Addresses First octet of an IP address begins with 1111 Class E addresses are reserved for experimental purposes and should not be used for addressing hosts or multicast groups.

29 Fill in the information… Class _____Default Mask:______________ Network: _________________Broadcast: ________________ Hosts: _________________ through ___________________ Class ______Default Mask:______________ Network: _________________Broadcast: ________________ Hosts: _________________ through _____________________ Class ______Default Mask:______________ Network: _________________Broadcast: ________________ Hosts: _________________ through _____________________

30 Fill in the information… Class CDefault Mask: Network: Broadcast: Hosts: through Class A Default Mask: Network: Broadcast: Hosts: through Class B Default Mask: Network: Broadcast: Hosts: through

31 Class separates network from host bits The Class determines the Base Network Mask! Class CDefault Mask: Network: Class A Default Mask: Network: Class B Default Mask: Network:

32 Know the classes! First First Network Host Class Bits Octet Bits Bits A 0 0 – B C D – 239 E

33 IP addressing crisis Address Depletion Internet Routing Table Explosion

34 IPv4 Addressing Subnet Mask One solution to the IP address shortage was thought to be the subnet mask. Formalized in 1985 (RFC 950), the subnet mask breaks a single class A, B or C network in to smaller pieces. This does allow a network administrator to divide their network into subnets. Routers still associated an network address with the first octet of the IP address.

35 All Zeros and All Ones Subnets Using the All Ones Subnet There is no command to enable or disable the use of the all-ones subnet, it is enabled by default. Router(config)#ip subnet-zero The use of the all-ones subnet has always been explicitly allowed and the use of subnet zero is explicitly allowed since Cisco IOS version RFC 1878 states, "This practice (of excluding all-zeros and all-ones subnets) is obsolete! Modern software will be able to utilize all definable networks." Today, the use of subnet zero and the all-ones subnet is generally accepted and most vendors support their use, though, on certain networks, particularly the ones using legacy software, the use of subnet zero and the all-ones subnet can lead to problems. CCO: Subnet Zero and the All-Ones Subnet 86a f18.shtml

36 Long Term Solution: IPv6 (coming) IPv6, or IPng (IP – the Next Generation) uses a 128-bit address space, yielding 340,282,366,920,938,463,463,374,607,431,768,211,456 possible addresses. IPv6 has been slow to arrive IPv6 requires new software; IT staffs must be retrained IPv6 will most likely coexist with IPv4 for years to come. Some experts believe IPv4 will remain for more than 10 years.

37 Short Term Solutions: IPv4 Enhancements Discussed in CIS 83 and CIS 185 CIDR (Classless Inter-Domain Routing) – RFCs 1517, 1518, 1519, 1520 VLSM (Variable Length Subnet Mask) – RFC 1009 Private Addressing - RFC 1918 NAT/PAT (Network Address Translation / Port Address Translation) – RFC  More later when we discuss TCP

/8 ( )16,777,216 host addresses /9 ( )8,388,608 host addresses /10 ( )4,194,304 host addresses /11 ( )2,097,152 host addresses /12 ( )1,048,576 host addresses /13 ( )524,288 host addresses /14 ( )262,144 host addresses /15 ( )131,072 host addresses /16 ( )65,536 host addresses /17 ( )32,768 host addresses /18 ( )16,384 host addresses /19 ( )8,192 host addresses /20 ( )4,096 host addresses /21 ( )2,048 host addresses /22 ( )1,024 host addresses /23 ( )512 host addresses /24 ( )256 host addresses /25 ( )128 host addresses /26 ( )64 host addresses /27 ( )32 host addresses /28 ( )16 host addresses /29 ( )8 host addresses /30 ( )4 host addresses /31 ( )2 host addresses /32 ( )“Host Route” ISPs no longer restricted to three classes. Can now allocate a large range of network addresses based on customer requirements

39 Active BGP entries – March,

40 ISP/NAP Hierarchy - “The Internet: Still hierarchical after all these years.” Jeff Doyle (Tries to be anyways!)

IPv6

42 Background That short-term solution was Network Address Translation (NAT) and RFC There are two fundamental drivers behind the growing recognition of the need for IPv6. (NAT stifles innovation in these areas.)  New applications using core concepts such as:  mobile IP  service quality guarantees  end-to-end security  peer-to-peer networking.  Rapid modernization of heavily populated countries such as India and China.  A compelling statistic is that the number of remaining unallocated IPv4 addresses is almost the same as the population of China: about 1.3 billion.

43 IPv6 IPv6 replaces the 32-bit IPv4 address with a 128-bit address, making 340 trillion trillion trillion IP addresses available. 340,282,366,920,938,463,463,374,607,431,768,211,456 addresses  Represented by breaking them up into eight 16-bit segments.  Each segment is written in hexadecimal between 0x0000 and 0xFFFF, separated by colons. An example of a written IPv6 address is 3ffe:1944:0100:000a:0000:00bc:2500:0d0b

44 Global Unicast Addresses Note: This format, specified in RFC 3587, obsoletes and simplifies an earlier format that divided the IPv6 unicast address into Top Level Aggregator (TLA), Next-Level Aggregator (NLA), and other fields. However, you should be aware that this obsolescence is relatively recent and you are likely to encounter some books and documents that show the old IPv6 address format. Replaced with

45 Global Unicast Addresses The host portion of the address is called the Interface ID. The reason for this name is that a host can have more than one IPv6 interface, and so the address more correctly identifies an interface on a host than a host itself. But that subtlety only goes so far:  A single interface can have:  multiple IPv6 addresses, and  an IPv4 address in addition.

46 Global Unicast Addresses Subnet Identifier is part of the network portion of the address rather than the host portion. A big benefit is that the Interface ID can be a consistent size for all IPv6 addresses. And making the Subnet ID a part of the network portion creates a clear separation of functions:  The network portion provides the location of a device down to the specific data link and  the host portion provides the identity of the device on the data link.

47 Global Unicast Addresses With very few exceptions:  Interface ID is 64 bits  Subnet ID field is 16 bits  provides for 65,536 separate subnets The IANA and the Regional Internet Registries (RIRs) assign IPv6 prefixes— normally /32 or /35 in length—to the Local Internet Registries (LIRs). The LIRs, which are usually large Internet Service Providers, then allocate longer prefixes to their customers. In the majority of cases, the prefixes assigned by the LIRs are /48.

48 Background IPv4 will exist for some time, as the transition begins to IPv6. Other new protocols have been developed in support of IPv6:  Routing protocols (OSPFv3) so routers can learn about IPv6 network addresses.  ICMPv6

49

ICMP: Ping and Trace

51 ICMP (Internet Control Message Protocol) ICMP: A Layer 3 protocol Used for sending messages Encapsulated in a Layer 3, IP packet Uses Type and Code fields for various messages Partial list

52 ICMP Unreachable Destination or Service Used to notify a host that the destination or service is unreachable. When a host or router receives a packet that it cannot deliver, it may send an ICMP Destination Unreachable packet to the host originating the packet. The Destination Unreachable packet will contain codes that indicate why the packet could not be delivered. From a router:  0 = network unreachable – Does not have a route in the routing table  1 = host unreachable – Has a route but can’t find host. (end router) From a host:  2 = protocol unreachable  3 = port unreachable  Service is not available because no daemon is running providing the service or because security on the host is not allowing access to the service.

54 Ping Uses ICMP message encapsulated within an IP Packet  Protocol field = 1 Does not use TCP or UDP Format ping ip address (or ping for extended ping) ping

55 Echo Request The sender of the ping, transmits an ICMP message, “Echo Request” Echo Request - Within ICMP Message Type = 8 Code = 0

56 Echo Reply The IP address (destination) of the ping, receives the ICMP message, “Echo Request” The ip address (destination) of the ping, returns the ICMP message, “Echo Reply” Echo Reply - Within ICMP Message Type = 0 Code = 0

57 Ping example

58 Q: Are pings forwarded by routers? A: Yes! This is why you can ping devices all over the Internet. Q: Do all devices forward or respond to pings? A: No, this is up to the network administrator of the device. Devices, including routers, can be configured not to reply to pings (ICMP echo requests). This is why you may not always be able to ping a device. Also, routers can be configured not to forward pings destined for other devices. Pings may fail

59 Traceroute Traceroute is a utility that records the route (router IP addresses) between two devices on different networks.

60 Tracroute On modern Unix and Linux-based operating systems, the traceroute utility by default uses UDP datagrams with a destination port number starting at The traceroute utility usually has an option to specify use of ICMP echo request (type 8) instead. The Windows utility uses ICMP echo request, better known as ping packets. Some firewalls on the path being investigated may block UDP probes but allow the ICMP echo request traffic to pass through. There are also traceroute implementations sending out TCP packets, such as tcptraceroute or Layer Four Trace. In Microsoft Windows, traceroute is named tracert. A new utility, pathping, was introduced with Windows NT, combining ping and traceroute functionality. All these traceroutes rely on ICMP (type 11) packets coming back.

61 Trace ( Cisco = traceroute, tracert,…) is used to trace the probable path a packet takes between source and destination. Probable, because IP is a connectionless protocol, and different packets may take different paths between the same source and destination networks, although this is not usually the case. Trace will show the path the packet takes to the destination, but the return path may be different.  This is more likely the case in the Internet, and less likely within your own autonomous system. Linux/Unix Systems  Uses ICMP message within an IP Packet  Both are layer 3 protocols.  Uses UDP as a the transport layer.  We will see why this is important in a moment. Trace (Traceroute)

62 Format (trace, traceroute, tracert) RTA# traceroute ip address RTA# traceroute Trace

63 How it works (using UDP) - Fooling the routers & host! Traceroute uses ping (echo requests) Traceroute sets the TTL (Time To Live) field in the IP Header, initially to “1” Trace

64 RTB - TTL: When a router receives an IP Packet, it decrements the TTL by 1. If the TTL is 0, it will not forward the IP Packet, and send back to the source an ICMP “time exceeded” message. ICMP Message: Type = 11, Code = 0 Trace

65 RTB After the traceroute is received by the first router, it decrements the TTL by 1 to 0. Noticing the TTL is 0, it sends back a ICMP Time Exceeded message back to the source, using its IP address for the source IP address. Router B’s IP header includes its own IP address (source IP) and the sending host’s IP address (dest. IP).

66 RTA, Sending Host The traceroute program of the sending host (RTA) will use the source IP address of this ICMP Time Exceeded packet to display at the first hop. RTA# traceroute Type escape sequence to abort. Tracing the route to msec 4 msec 4 msec

67 RTA The traceroute program increments the TTL by 1 (now 2 ) and resends the ICMP Echo Request packet.

68 RTB This time RTB decrements the TTL by 1 and it is NOT 0. (It is 1.) So it looks up the destination ip address in its routing table and forwards it on to the next router. RTC RTC however decrements the TTL by 1 and it is 0. RTC notices the TTL is 0 and sends back the ICMP Time Exceeded message back to the source. RTC’s IP header includes its own IP address (source IP) and the sending host’s IP address (destination IP address of RTA). The sending host, RTA, will use the source IP address of this ICMP Time Exceeded message to display at the second hop.

69. RTA to RTB RTB to RTC

70 The sending host, RTA: The traceroute program uses this information (Source IP Address) and displays the second hop. RTA# traceroute Type escape sequence to abort. Tracing the route to msec 4 msec 4 msec msec 16 msec 16 msec

71 The sending host, RTA: The traceroute program increments the TTL by 1 (now 3 ) and resends the Packet.

72. RTA to RTB RTB to RTC RTC to RTD

73 RTB This time RTB decrements the TTL by 1 and it is NOT 0. (It is 2.) So it looks up the destination ip address in its routing table and forwards it on to the next router. RTC This time RTC decrements the TTL by 1 and it is NOT 0. (It is 1.) So it looks up the destination ip address in its routing table and forwards it on to the next router. RTD RTD however decrements the TTL by 1 and it is 0. However, RTD notices that the Destination IP Address of is it’s own interface. Since it does not need to forward the packet, the TTL of 0 has no affect.

74 RTD RTD sends the packet to the UDP process. UDP examines the unrecognizable port number of 35,000 and sends back an ICMP Port Unreachable message to the sender, RTA, using Type 3 and Code 3.

75 Sending host, RTA RTA receives the ICMP Port Unreachable message. The traceroute program uses this information (Source IP Address) and displays the third hop. The traceroute program also recognizes this Port Unreachable message as meaning this is the destination it was tracing.

76 Sending host, RTA RTA, the sending host, now displays the third hop. Getting the ICMP Port Unreachable message, it knows this is the final hop and does not send any more traces (echo requests). RTA# traceroute Type escape sequence to abort. Tracing the route to msec 4 msec 4 msec msec 16 msec 16 msec msec 16 msec 16 msec

77 For more information on ICMP and other TCP/IP topics, I recommend: TCP/IP Illustrated, Volume I – R.W. Stevens Recommended Reading

Chapter 6 IPv4 Addresses – Part 3 CIS 81 Networking Fundamentals Rick Graziani Cabrillo College Last Updated: 4/13/2008