This blog is only to remind myself of what I've learned (from others or by myself) and only for knowledge sharing. External sources will be clearly stated in [Reference] of each article. I hope this blog won't infringe any copyrights and that it can be useful for interested blog readers.

2008年2月21日 星期四

IPv6 header introduction

[IPv6]

Reference
  • ipv6 (Network Sorcery, Inc)
  • ipv6-next-header (Copyright 2001-2005 Charles M. Kozierok. All Rights Reserved)

MAC header IPv6 header Data :::

IPv6 header:

00 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31
Version Traffic Class Flow Label
Payload Length Next Header Hop Limit
Source address :::
Destination address :::
Data :::

Extension Headers

Reference

Table 72: IPv6 Fragment Extension Header Format

Field Name

Size (bytes)

Description

Next Header

1

Next Header: Contains the protocol number of the next header after the Fragment header. Used to link headers together as described above.

Reserved

1

Reserved: Not used; set to zeroes.

Fragment Offset

13/8 (13 bits)

Fragment Offset: Specifies the offset, or position, in the overall message where the data in this fragment goes. It is specified in units of 8 bytes (64 bits) and used in a manner very similar to the field of the same name in the IPv4 header.

Res

1/4 (2 bits)

Reserved: Not used; set to zeroes.

M Flag

1/8 (1 bit)

More Fragments Flag: Same as the flag of the same name in the IPv4 header—when set to 0, indicates the last fragment in a message; when set to 1, indicates that more fragments are yet to come in the fragmented message.

Identification

4

Identification: Same as the field of the same name in the IPv4 header, but expanded to 32 bits. It contains a specific value that is common to each of the fragments belonging to a particular message, to ensure that pieces from different fragmented messages are not mixed together.

!!NOTES:

1) The value of "Next header" field is 0x2C when it comes to IPv6 Fragment Extension Header.

2) The method of assembling IPv6 fragmented is the same as that of IPv4.

沒有留言: