blob: 57e85c48b9c10623611e0ebe25f0d3bbb522b767 [file] [log] [blame]
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +00001.. _types:
2
Junxiao Shi1082b422017-07-18 23:37:52 +00003TLV-TYPE number assignment
4--------------------------
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +00005
Junxiao Shi1082b422017-07-18 23:37:52 +00006+---------------------------------------------+------------------+-----------------+
7| Type | Assigned number | Assigned number |
8| | (decimal) | (hexadecimal) |
9+=============================================+==================+=================+
Alexander Afanasyeve9315e72014-02-12 19:53:49 +000010| **Packet types** |
Junxiao Shi1082b422017-07-18 23:37:52 +000011+---------------------------------------------+------------------+-----------------+
12| Interest | 5 | 0x05 |
13+---------------------------------------------+------------------+-----------------+
14| Data | 6 | 0x06 |
15+---------------------------------------------+------------------+-----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000016| **Common fields** |
Junxiao Shi1082b422017-07-18 23:37:52 +000017+---------------------------------------------+------------------+-----------------+
18| Name | 7 | 0x07 |
19+---------------------------------------------+------------------+-----------------+
Junxiao Shib211da22017-12-14 20:05:35 +000020| GenericNameComponent | 8 | 0x08 |
Junxiao Shi1082b422017-07-18 23:37:52 +000021+---------------------------------------------+------------------+-----------------+
22| ImplicitSha256DigestComponent | 1 | 0x01 |
23+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000024| **Interest packet** |
Junxiao Shi1082b422017-07-18 23:37:52 +000025+---------------------------------------------+------------------+-----------------+
26| Selectors | 9 | 0x09 |
27+---------------------------------------------+------------------+-----------------+
28| Nonce | 10 | 0x0a |
29+---------------------------------------------+------------------+-----------------+
30| InterestLifetime | 12 | 0x0c |
31+---------------------------------------------+------------------+-----------------+
32| ForwardingHint | 30 | 0x1e |
33+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000034| **Interest/Selectors** |
Junxiao Shi1082b422017-07-18 23:37:52 +000035+---------------------------------------------+------------------+-----------------+
36| MinSuffixComponents | 13 | 0x0d |
37+---------------------------------------------+------------------+-----------------+
38| MaxSuffixComponents | 14 | 0x0e |
39+---------------------------------------------+------------------+-----------------+
40| PublisherPublicKeyLocator | 15 | 0x0f |
41+---------------------------------------------+------------------+-----------------+
42| Exclude | 16 | 0x10 |
43+---------------------------------------------+------------------+-----------------+
44| ChildSelector | 17 | 0x11 |
45+---------------------------------------------+------------------+-----------------+
46| MustBeFresh | 18 | 0x12 |
47+---------------------------------------------+------------------+-----------------+
48| Any | 19 | 0x13 |
49+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000050| **Data packet** |
Junxiao Shi1082b422017-07-18 23:37:52 +000051+---------------------------------------------+------------------+-----------------+
52| MetaInfo | 20 | 0x14 |
53+---------------------------------------------+------------------+-----------------+
54| Content | 21 | 0x15 |
55+---------------------------------------------+------------------+-----------------+
56| SignatureInfo | 22 | 0x16 |
57+---------------------------------------------+------------------+-----------------+
58| SignatureValue | 23 | 0x17 |
59+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000060| **Data/MetaInfo** |
Junxiao Shi1082b422017-07-18 23:37:52 +000061+---------------------------------------------+------------------+-----------------+
62| ContentType | 24 | 0x18 |
63+---------------------------------------------+------------------+-----------------+
64| FreshnessPeriod | 25 | 0x19 |
65+---------------------------------------------+------------------+-----------------+
66| FinalBlockId | 26 | 0x1a |
67+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000068| **Data/Signature** |
Junxiao Shi1082b422017-07-18 23:37:52 +000069+---------------------------------------------+------------------+-----------------+
70| SignatureType | 27 | 0x1b |
71+---------------------------------------------+------------------+-----------------+
72| KeyLocator | 28 | 0x1c |
73+---------------------------------------------+------------------+-----------------+
74| KeyDigest | 29 | 0x1d |
75+---------------------------------------------+------------------+-----------------+
Junxiao Shib211da22017-12-14 20:05:35 +000076| **Link Object** |
77+---------------------------------------------+------------------+-----------------+
78| Delegation | 31 | 0x1f |
79+---------------------------------------------+------------------+-----------------+
80| Preference | 30 | 0x1e |
81+---------------------------------------------+------------------+-----------------+
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000082
Alexander Afanasyevca58dc22013-12-28 21:04:59 +000083.. _type reservations:
84
Junxiao Shi1082b422017-07-18 23:37:52 +000085TLV-TYPE number reservations
86~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000087
88+----------------+-----------------------------------------------------------+
Junxiao Shi1082b422017-07-18 23:37:52 +000089| Number range | Designation |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000090+================+===========================================================+
Junxiao Shib211da22017-12-14 20:05:35 +000091| 0, 2-4, 32-79 | Reserved for future assignments (1-byte encoding) |
Junxiao Shibdc75012015-01-13 22:09:12 -070092+----------------+-----------------------------------------------------------+
93| 11 | Reserved, formerly `Scope` |
Alexander Afanasyev718b86a2014-02-16 05:42:20 +000094+----------------+-----------------------------------------------------------+
Junxiao Shib211da22017-12-14 20:05:35 +000095| 32 | Reserved, formerly `SelectedDelegation` |
96+----------------+-----------------------------------------------------------+
Alexander Afanasyev718b86a2014-02-16 05:42:20 +000097| 80-100 | Reserved for assignments related to local link data |
Junxiao Shi4406fdd2015-06-10 13:28:10 -070098| | processing, e.g., `NDNLP`_, etc. (1-byte encoding) |
Alexander Afanasyevb917c0b2014-02-12 19:53:48 +000099+----------------+-----------------------------------------------------------+
100| 101-127 | Reserved for assignments related to forwarding daemon |
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -0700101| | (1-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000102+----------------+-----------------------------------------------------------+
103| 128-252 | For application use (1-byte encoding) |
104+----------------+-----------------------------------------------------------+
Junxiao Shi4406fdd2015-06-10 13:28:10 -0700105| 800-1000 | Reserved for assignments related to local link data |
106| | processing, e.g., `NDNLP`_, etc. (3-byte encoding) |
107+----------------+-----------------------------------------------------------+
108| 253-799, | Reserved for future assignments (3-byte encoding) |
109| 1001-32767 | |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000110+----------------+-----------------------------------------------------------+
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -0700111| >32767 | For application use (3+-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000112+----------------+-----------------------------------------------------------+
Alexander Afanasyev718b86a2014-02-16 05:42:20 +0000113
Junxiao Shi1082b422017-07-18 23:37:52 +0000114.. _NDNLP: https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2