2016-4-18 ICMPV6 Protocol [rfc2463]--Message detailed

Source: Internet
Author: User

Technorati Tags: ipv6,icmpv6,ccie, routing, ICMP error

Profile

--icmpv6 (Internet Control Message protocol for the IPV6) is one of the underlying protocols of IPV6. defined in RFC2463 .

-Used to pass information or errors generated in message forwarding.

--icmpv6-defined messages are widely used in other protocols. Includes: NDP (Neighbor Discovery Protocol, PATHMTU Path discovery mechanism, MLD protocol [alternative to multicast in IPv4 IGMP protocol], etc.)

ICMPv6 Baotou is a header that belongs to the upper layer protocol. He must be behind all extension headers.

When specifying the ICMPV6 header, the base header or the "Next header=58"[next-header=0x3a]in the extension header, so that the base header or extension header of the IPV6 can be associated with the ICMPV6 header.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image002 "border=" 0 "alt=" clip_ image002 "src=" http://s3.51cto.com/wyfs02/M00/7F/25/wKiom1cU3tPzSQa8AAFBawP3p8U115.jpg "height=" 447 "/>

The following message is a ICMPV6 message.

In this, there is a IPv6 of the basic Baotou, Next-header inside the designated is 0X3A. Specifies the protocol header for the ICMPV6.

The attachment is the relevant grab bag.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image004 "border=" 0 "alt=" clip_ image004 "src=" http://s3.51cto.com/wyfs02/M01/7F/25/wKiom1cU3tfiVLPMAAKt-JAsi1A431.jpg "height=" 502 "/>

ICMPv6 of the type class:

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image006 "border=" 0 "alt=" clip_ image006 "src=" http://s3.51cto.com/wyfs02/M02/7F/25/wKiom1cU3tjAttnZAABp2mhhwOg221.jpg "height=" "/>

1, Error class message (Error message), also known as error messages, the highest bit to be 0, also ICMPv6 type=[0-127].

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image008 "border=" 0 "alt=" clip_ image008 "src=" http://s3.51cto.com/wyfs02/M00/7F/25/wKiom1cU3trwEnZwAAFD5fjcy-4425.jpg "height=" 477 "/>

NOTES: If this is an error message, then the type in the ICMPV6 header will be between 0-127.

Error message:

---1, error Messages (RFC2463)

~ ~ ~ Destination Unreachable (type=1) not to reach

code=0: no route to target reached

If you are in the network, R1--R2--R3.

R1 Ping "R5" loopback to ensure that this "R5" is not available in all networks.

Then R1 will send ICMP to R2 this default gateway, but R2 will give R1 a response to a error message, Code=0. Indicates a route that does not reach the destination.

R1--r2--r3

Ping 2055::1 above the R1, this loopback port does not have any route with this route.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image010 "border=" 0 "alt=" clip_ image010 "src=" http://s3.51cto.com/wyfs02/M01/7F/25/wKiom1cU3tuBM80ZAABORI10aEc311.jpg "height="/>

By grasping the packet to see, R1 Ping 2,055:1, the ICMPV6 message to R2 e0/0 input, the result because R2 received no routing information, directly R2 to R1 response to ICMPV6 error message. type=1, Code=0, no route.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image012 "border=" 0 "alt=" clip_ image012 "src=" http://s3.51cto.com/wyfs02/M01/7F/25/wKiom1cU3t2gi2sEAAFuS5mlPHA052.jpg "height=" 280 "/>

code=1: communication with the target is forbidden by the managed policy

In this case, it is generally in the middle of the link to do an ACL and other policies prohibit ICMP message traffic.

Here is a packet of the policy ping packet that made the ACL.

R1---[E0/0]R2---R3

An ACL is applied to the input direction of the e0/0 above R2. Disables all ICMP packets sent by R1.

The red box below is an ICMP error message that R2 responds to R1, code=1. Communication with the target is forbidden by the managed policy.
650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image014 "border=" 0 "alt=" clip_ image014 "src=" http://s3.51cto.com/wyfs02/M02/7F/25/wKiom1cU3t-zFjysAAGEmf_qHys676.jpg "height=" 282 "/>

code=2: Not Specified

code=3: Address not reached

Here first or to say, address unreachable, and code=0, routing unreachable. What's the difference. Code=3, I have a destination route, but the address is not. Code=0 is that there is no route at all.

Simulation process: Here is to say, R1--R2---2023::x/64---R3

Here the R2 and R3 interface addresses are: 2023::2/64 and 2023::3/64

However, on the R1, ping 2023::10/64 this completely nonexistent address. After the data has been dumped from R1 to R2, R2 has routes, but this "2023::10/64" is completely unreachable.

The simulation topology map is: R1---2012::x/64---R2 (2023::2/64)-----(2023::3/64) R3

Ping 2023::10 the non-existent address above the R1.

The information on debug above R1 is as follows:

*APR 16:31:24.045:icmpv6:sent Echo Request, Src=2012::1, Dst=2023::10.

*APR 16:31:27.265:icmpv6:received Unreachable Code 3, Src=2012::2, dst=2012::1

Ps. R2 return ICMP message code=3 time, there will be a certain delay, because R2 received the message, because there is a route, so R2 also take time to address the search, send ns out, waiting for Na back. If Na does not time out, R2 will not be able to respond to ICMPV6 error messages at this time.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image016 "border=" 0 "alt=" clip_ image016 "src=" http://s3.51cto.com/wyfs02/M00/7F/26/wKiom1cU3uGDvrHeAAG05ZFTsmY825.jpg "height=" 282 "/>

code=4: ports not up to

With this, you can use the Traceroute tool.

R1---R2---R3

Landed on the R1 above the traceroute R3. This time the corresponding port is unreachable.

R1:traceroute 2033::1

This time on the R1 received ICMP error message, code=4 message.

*APR 17:32:23.110:icmpv6:received Time Exceeded, Src=2012::2, dst=2012::1

*APR 17:32:23.116:icmpv6:received Time Exceeded, Src=2012::2, dst=2012::1

*APR 17:32:23.121:icmpv6:received Time Exceeded, Src=2012::2, dst=2012::1

*APR 17:32:23.127:icmpv6:received Unreachable Code 4, Src=2023::3, dst=2012::1

*APR 17:32:23.132:icmpv6:received Unreachable Code 4, Src=2023::3, dst=2012::1

*APR 17:32:23.137:icmpv6:received Unreachable Code 4, Src=2023::3, dst=2012::1

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image018 "border=" 0 "alt=" clip_ image018 "src=" http://s3.51cto.com/wyfs02/M01/7F/26/wKiom1cU3uWAPhGsAAIkeB9FwxQ103.jpg "height=" 376 "/>

~ ~ ~ Packet Extra long packet Too Big (type=2)

Code=0

~ ~ ~ Timeout Time Exceeded (type=3)

Code=0: Exceeded Hop limit in transit (hot-limit timeout, IPv4 ttl timeout)

Code=1: Time-out during Shard reassembly

~ ~ ~ Parameter Problem parameter problem (type=4)

Code=0: Header field with error encountered

Code=1: Encountering an unrecognized next-header

code=2: An unrecognized IPv6 option was encountered




---2, Information class Messages (Information message), also known as message messages , Highest bit to be 1, also ICMPv6 type=[128-255].

NOTES: In the case of messages of the information class, the value of type is between 128-255 .

Information-type messages (RFC2463), we use the most is type=128 echo request and 129, Echo reply.

~~~~ Echo Request message (Echo Request)

type=128, code=0.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image020 "border=" 0 "alt=" clip_ image020 "src=" http://s3.51cto.com/wyfs02/M00/7F/26/wKiom1cU3ueCkIDVAAFlEB5mJjM149.jpg "height=" 307 "/>

~~~~ Loopback Response Message (Echo Reply)

type=129, code=0.

650) this.width=650; "Style=" background-image:none;border-bottom:0px;border-left:0px;padding-left:0px; padding-right:0px;border-top:0px;border-right:0px;padding-top:0px; "title=" clip_image022 "border=" 0 "alt=" clip_ image022 "src=" http://s3.51cto.com/wyfs02/M00/7F/23/wKioL1cU36fSJHmqAAGGJ-cV9mo615.jpg "height=" 340 "/>

Attachment has I do the experiment related ICMP6 grab bag, have the need friend can download contrast to comb the concept.

This article is from the "hank--me, Focus on Principles" blog, be sure to keep this source http://361531.blog.51cto.com/351531/1765168

2016-4-18 ICMPV6 Protocol [rfc2463]--Message detailed

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.