Khác biệt giữa bản sửa đổi của “ICMPv6”

Nội dung được xóa Nội dung được thêm vào
n replaced: . → . (2) using AWB
Dòng 9:
==Chi tiết kỹ thuật ==
Cũng như ICMP, các thông điệp ICMPv6 được chia ra làm 2 loại: ''thông điệp lỗi'' và ''thông điệp thông tin''. Các thông điệp ICMPv6 được các gói IPv6 chuyên chở trong đó giá trị của Next Header cho ICMPv6 là 58.
 
===Gói tin ICMPv6===
Gói tin ICMPv6 bao gồm phần header và phần thông điệp. ICMPv6 header bao gồm ba trường: Type (8 bít), Code (8 bít) và Checksum (16 bít).
* ''type'' xác định loại thông điệp. Giá trị từ 0 tới 127 (bít đầu tiên là 0) chỉ thông điệp lỗi, từ 128 tới 255 (bít đầu tiên là 1) thông điệp thông tin.
* ''code'' phân dạng sâu hơn gói tin ICMPv6, định rõ đây là gói tin dạng gì trong từng loại thông điệp ICMPv6.
* ''checksum'' cung cấp giá trị sử dụng để kiểm tra lỗi cho toàn bộ gói tin ICMPv6.
 
{| class="wikitable" style="text-align:center"
|+ Gói tin ICMPv6
|-
! Bit offset !! colspan="8" width="22%" | 0–7 !! colspan="8" width="22%" | 8–15 !! colspan="16" width="44%"| 16–31
|-
| '''0''' || colspan="8"| Type || colspan="8"| Code || colspan="16"| Checksum
|-
| '''32''' || colspan="32"| Thông điệp
|-
|}
 
===Loại thông điệp===
{| class="wikitable"
! colspan="2" align="center"| Type
! colspan="2" align="center"| Code
|-
! Giá trị !! Nghĩa !! Giá trị !! Nghĩa
|-
! colspan="4" align="center"| Thông điệp lỗi ICMPv6
|-
|rowspan=8| 1
|rowspan=8| [[Destination Unreachable]]
| 0
| no route to destination
|-
| 1
| communication with destination administratively prohibited
|-
| 2
| beyond scope of source address
|-
| 3
| address unreachable
|-
| 4
| port unreachable
|-
| 5
| source address failed ingress/egress policy
|-
| 6
| reject route to destination
|-
| 7
| Error in Source Routing Header
|-
| 2 || [[IPv6_packet#Fragmentation|Packet Too Big]] || 0
|-
|rowspan=2| 3
|rowspan=2| [[Time Exceeded]]
| 0
| hop limit exceeded in transit
|-
| 1
| fragment reassembly time exceeded
|-
|rowspan=3| 4
|rowspan=3| [[Parameter Problem]]
| 0
| erroneous header field encountered
|-
| 1
| unrecognized Next Header type encountered
|-
| 2
| unrecognized IPv6 option encountered
|-
| 100 || Private experimentation || ||
|-
| 101 || Private experimentation || ||
|-
| 127 || Reserved for expansion of ICMPv6 error messages || ||
|-
! colspan="4" align="center"| Thông điệp thông tin ICMPv6
|-
| 128 || [[Echo Request]] || 0 ||
|-
| 129 || [[Echo Reply]] || 0 ||
|-
| 130 || [[Multicast Listener Query]] ([[Multicast Listener Discovery|MLD]]) || 0 ||
There are two subtypes of Multicast Listener Query messages:
* General Query, used to learn which multicast addresses have listeners on an attached link.
* Multicast-Address-Specific Query, used to learn if a particular multicast address has any listeners on an attached link.
These two subtypes are differentiated by the contents of the Multicast Address field, as described in section 3.6 of RFC 2710
|-
| 131 || [[Multicast Listener Report]] (MLD) || 0 ||
|-
| 132 || [[Multicast Listener Done]] (MLD) || 0 ||
|-
| 133 || Router Solicitation ([[Neighbor Discovery Protocol|NDP]]) || 0 ||
|-
| 134 || Router Advertisement (NDP) || 0 ||
|-
| 135 || Neighbor Solicitation (NDP) || 0 ||
|-
| 136 || Neighbor Advertisement (NDP) || 0 ||
|-
| 137 || Redirect Message (NDP) || 0 ||
|-
|rowspan=3| 138
|rowspan=3| Router Renumbering
| 0
| Router Renumbering Command
|-
| 1
| Router Renumbering Result
|-
| 255
| Sequence Number Reset
|-
|rowspan=3| 139
|rowspan=3| ICMP Node Information Query
| 0
| The Data field contains an IPv6 address which is the Subject of this Query.
|-
| 1
| The Data field contains a name which is the Subject of this Query, or is empty, as in the case of a NOOP.
|-
| 2
| The Data field contains an IPv4 address which is the Subject of this Query.
|-
|rowspan=3| 140
|rowspan=3| ICMP Node Information Response
| 0
| A successful reply. The Reply Data field may or may not be empty.
|-
| 1
| The Responder refuses to supply the answer. The Reply Data field will be empty.
|-
| 2
| The Qtype of the Query is unknown to the Responder. The Reply Data field will be empty.
|-
| 141 || Inverse Neighbor Discovery Solicitation Message || 0 ||
|-
| 142 || Inverse Neighbor Discovery Advertisement Message || 0 ||
|-
| 143 || Multicast Listener Discovery ([[Multicast Listener Discovery|MLDv2]]) reports (RFC 3810) || ||
|-
| 144 || Home Agent Address Discovery Request Message || 0 ||
|-
| 145 || Home Agent Address Discovery Reply Message || 0 ||
|-
| 146 || Mobile Prefix Solicitation || 0 ||
|-
| 147 || Mobile Prefix Advertisement || 0 ||
|-
| 148 || Certification Path Solicitation ([[Secure Neighbor Discovery Protocol|SEND]]) || ||
|-
| 149 || Certification Path Advertisement (SEND) || ||
|-
| 151 || Multicast Router Advertisement ([[Multicast router discovery|MRD]]) || ||
|-
| 152 || Multicast Router Solicitation (MRD) || ||
|-
| 153 || Multicast Router Termination (MRD) || ||
|-
| 155 || RPL Control Message || ||
|-
| 200 || Private experimentation || ||
|-
| 201 || Private experimentation || ||
|-
| 255 || Reserved for expansion of ICMPv6 informational messages || ||
|}
 
Chú ý là bản trên không đầy đủ. Danh sách toàn bộ hiện tại có thể xem tại: [http://www.iana.org/assignments/icmpv6-parameters IANA: ICMPv6 Parameters].
 
== Tham khảo ==