1 / 17

ICMPv6

ICMPv6. Error Message Types Informational Message Types. ICMPv6 Header. Type (1 Byte). 1. Code (1Byte). Checksum (2 Bytes). Data (Variable). ICMPv6 Error Message. Destination Unreachable Packet too Big Time Exceeded Parameter Problem. Destination Unreachable.

evaparson
Télécharger la présentation

ICMPv6

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. ICMPv6 • Error Message Types • Informational Message Types

  2. ICMPv6 Header Type (1 Byte) 1 Code (1Byte) Checksum (2 Bytes) Data (Variable)

  3. ICMPv6 Error Message • Destination Unreachable • Packet too Big • Time Exceeded • Parameter Problem

  4. Destination Unreachable • A Destination Unreachable message is generated if an IP datagram cannot be delivered. • A Type field with the value 1 identifies this message. Code: 0: no route to destination 1: communication administratively prohibited 2: address unreachable 4: port unreachable Type (1 Byte) 1 Code (1Byte) Checksum (2 Bytes) Unused (4 Bytes) Must be zero ignored by receiver Data (Variable)

  5. Packet Too Big • If a router cannot forward a packet because it is larger than the MTU of the outgoing link, it will generate a Packet Too Big message. • This ICMPv6 message type is used as part of the Path MTU discovery process that I discuss later in this chapter. Type (1 Byte) 2 Code (1Byte) 0 Checksum (2 Bytes) MTU (4 Bytes) The Maximum transmission unit of the next hop link Data (Variable)

  6. Time Exceeded • When a router forwards a packet, it always decrements the hop limit by one. • The hop limit makes sure that a packet does not endlessly travel through a network. • If a router receives a packet with a hop limit of 1 and decrements the limit to 0, it discards the packet, generates a Time Exceeded message with a code value of 0, and sends this message back to the source host

  7. Time Exceeded Code: 0: Hop limit exceeded in transit 1: Fragment reassembly time exceeded Type (1 Byte) 3 Code (1Byte) Checksum (2 Bytes) Unused (4 Bytes) Must be zero ignored by receiver Data (Variable)

  8. Parameter Problem • If an IPv6 node cannot complete the processing of a packet because it has a problem identifying a field in the IPv6 header or in an Extension header. • it must discard the packet, and it should send an ICMP Parameter Problem message back to the source of the problem packet.

  9. Parameter Problem Code: 0: Erroneous header field encountered 1: Unrecognized next header type encountered 2: Unrecognized IPv6 option encountered Type (1 Byte) 4 Code (1Byte) Checksum (2 Bytes) Pointer (4 Bytes) Identify the offset where error was decided Data (Variable)

  10. ICMP Informational Messages • In RFC 4443, two types of informational messages are defined: the Echo Request and the Echo Reply messages. • Other ICMP informational messages are used for Path MTU Discovery and Neighbor Discovery. • The Echo Request and Echo Reply messages are used for one of the most common TCP/IP utilities: Packet INternet Groper (ping).

  11. Echo Request Message Type (1 Byte) 128 Code (1Byte) 0 Checksum (2 Bytes) Identifier (2 Bytes) Used to Match echo reply to this request may be zero Sequence No (2 Bytes) Used to Match echo reply to this request may be zero Data (Variable) Zero or more bytes of arbitrary data • The Identifier and Sequence Number fields are used to match requests with replies. • The reply must always contain the same numbers as the request.

  12. Echo Reply Message Type (1 Byte) 129 Code (1Byte) 0 Checksum (2 Bytes) Identifier (2 Bytes) The identifier from the invoking echo request Sequence No (2 Bytes) The SN from the invoking echo request Data (Variable) Data from the invoking echo request • The Identifier and Sequence Number fields must match the fields in the request • The reply must always contain the same numbers as the request.

  13. Neighbor Discovery (ND) • combines Address Resolution Protocol (ARP) and ICMP Router Discovery and Redirect • With IPv4, we have no means to detect whether a neighbor is reachable • With the Neighbor Discovery protocol, a Neighbor Unreachability Detection (NUD) mechanism has been defined • Duplicate IP address detection (DAD) has also been implemented

  14. Neighbor Discovery (ND) • For autoconfiguration of IPv6 addresses • To determine network prefixes, routes and other configuration information • For Duplicate IP address detection (DAD) • To determine layer two addresses of nodes on the same link • To find neighboring routers that can forward their packets • To keep track of which neighbors are reachable and which are not • To detect changed link-layer addresses

  15. Router Solicitation and Router Advertisement • Routers send out Router Advertisement messages at regular intervals • Hosts can request Router Advertisements by issuing a Router Solicitation message • This will trigger routers to issue Router Advertisements immediately, outside of the regular interval

  16. Neighbor Solicitation and Neighbor Advertisement • This pair of messages fulfills two functions: the link-layer address resolution that is handled by ARP in IPv4, and the Neighbor Unreachability Detection mechanism

  17. Path MTU Discovery • With IPv6, routers do not fragment packets anymore • Path MTU discovery tries to ensure that a packet is sent using the largest possible size that is supported on a certain route • The Path MTU is the smallest link MTU of all links from a source to a destination • a host assumes that the Path MTU is the same as the MTU of the first hop link and it uses that size. • If the packet is too big for a certain router along the path to deliver the packet to the next link, the router discards the packet and sends back an ICMPv6 Packet Too Big message

More Related