blob: 4ed52f4f8f1854da777e4586a2638a231ef638df [file] [log] [blame]
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +00001.. _types:
2
3Type value assignment
4---------------------
5
Alexander Afanasyeva4397b82013-12-26 05:25:27 +00006+---------------------------------------------+-------------------+----------------+
7| Type | Assigned value | Assigned value |
8| | (decimal) | (hexadecimal) |
9+=============================================+===================+================+
Alexander Afanasyeve9315e72014-02-12 19:53:49 +000010| **Packet types** |
11+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000012| Interest | 5 | 0x05 |
Alexander Afanasyeve9315e72014-02-12 19:53:49 +000013+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000014| Data | 6 | 0x06 |
15+---------------------------------------------+-------------------+----------------+
16| **Common fields** |
17+---------------------------------------------+-------------------+----------------+
18| Name | 7 | 0x07 |
19+---------------------------------------------+-------------------+----------------+
20| NameComponent | 8 | 0x08 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000021+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev4b8be212014-10-06 10:55:04 -070022| ImplicitSha256DigestComponent | 1 | 0x01 |
23+---------------------------------------------+-------------------+----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000024| **Interest packet** |
25+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000026| Selectors | 9 | 0x09 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000027+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000028| Nonce | 10 | 0x0a |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000029+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000030| InterestLifetime | 12 | 0x0c |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000031+---------------------------------------------+-------------------+----------------+
32| **Interest/Selectors** |
33+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000034| MinSuffixComponents | 13 | 0x0d |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000035+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000036| MaxSuffixComponents | 14 | 0x0e |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000037+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000038| PublisherPublicKeyLocator | 15 | 0x0f |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000039+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000040| Exclude | 16 | 0x10 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000041+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000042| ChildSelector | 17 | 0x11 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000043+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000044| MustBeFresh | 18 | 0x12 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000045+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000046| Any | 19 | 0x13 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000047+---------------------------------------------+-------------------+----------------+
48| **Data packet** |
49+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000050| MetaInfo | 20 | 0x14 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000051+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000052| Content | 21 | 0x15 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000053+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000054| SignatureInfo | 22 | 0x16 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000055+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000056| SignatureValue | 23 | 0x17 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000057+---------------------------------------------+-------------------+----------------+
58| **Data/MetaInfo** |
59+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000060| ContentType | 24 | 0x18 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000061+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000062| FreshnessPeriod | 25 | 0x19 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000063+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000064| FinalBlockId | 26 | 0x1a |
Alexander Afanasyev08f39ce2014-02-12 19:53:50 +000065+---------------------------------------------+-------------------+----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000066| **Data/Signature** |
67+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000068| SignatureType | 27 | 0x1b |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000069+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000070| KeyLocator | 28 | 0x1c |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000071+---------------------------------------------+-------------------+----------------+
Alexander Afanasyevf3e5e852014-06-13 22:44:02 -070072| KeyDigest | 29 | 0x1d |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000073+---------------------------------------------+-------------------+----------------+
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000074
Alexander Afanasyevca58dc22013-12-28 21:04:59 +000075.. _type reservations:
76
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000077Type value reservations
78~~~~~~~~~~~~~~~~~~~~~~~
79
80+----------------+-----------------------------------------------------------+
81| Values | Designation |
82+================+===========================================================+
Junxiao Shibdc75012015-01-13 22:09:12 -070083| 0, 2-4, 30-79 | Reserved for future assignments (1-byte encoding) |
84+----------------+-----------------------------------------------------------+
85| 11 | Reserved, formerly `Scope` |
Alexander Afanasyev718b86a2014-02-16 05:42:20 +000086+----------------+-----------------------------------------------------------+
87| 80-100 | Reserved for assignments related to local link data |
Junxiao Shi4406fdd2015-06-10 13:28:10 -070088| | processing, e.g., `NDNLP`_, etc. (1-byte encoding) |
Alexander Afanasyevb917c0b2014-02-12 19:53:48 +000089+----------------+-----------------------------------------------------------+
90| 101-127 | Reserved for assignments related to forwarding daemon |
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -070091| | (1-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000092+----------------+-----------------------------------------------------------+
93| 128-252 | For application use (1-byte encoding) |
94+----------------+-----------------------------------------------------------+
Junxiao Shi4406fdd2015-06-10 13:28:10 -070095| 800-1000 | Reserved for assignments related to local link data |
96| | processing, e.g., `NDNLP`_, etc. (3-byte encoding) |
97+----------------+-----------------------------------------------------------+
98| 253-799, | Reserved for future assignments (3-byte encoding) |
99| 1001-32767 | |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000100+----------------+-----------------------------------------------------------+
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -0700101| >32767 | For application use (3+-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000102+----------------+-----------------------------------------------------------+
Alexander Afanasyev718b86a2014-02-16 05:42:20 +0000103
Junxiao Shi4406fdd2015-06-10 13:28:10 -0700104.. _NDNLP: http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2