blob: eb944ec836a504e9ae4d281d1984f42071ed8938 [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+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeve9f48512018-01-15 23:44:50 -050026| CanBePrefix | 33 | 0x21 |
27+---------------------------------------------+------------------+-----------------+
28| MustBeFresh | 18 | 0x12 |
29+---------------------------------------------+------------------+-----------------+
30| ForwardingHint | 30 | 0x1e |
Junxiao Shi1082b422017-07-18 23:37:52 +000031+---------------------------------------------+------------------+-----------------+
32| Nonce | 10 | 0x0a |
33+---------------------------------------------+------------------+-----------------+
34| InterestLifetime | 12 | 0x0c |
35+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeve9f48512018-01-15 23:44:50 -050036| HopLimit | 34 (non-critical)| 0x22 |
Junxiao Shi1082b422017-07-18 23:37:52 +000037+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeve9f48512018-01-15 23:44:50 -050038| Parameters | 35 (critical) | 0x23 |
Junxiao Shi1082b422017-07-18 23:37:52 +000039+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000040| **Data packet** |
Junxiao Shi1082b422017-07-18 23:37:52 +000041+---------------------------------------------+------------------+-----------------+
42| MetaInfo | 20 | 0x14 |
43+---------------------------------------------+------------------+-----------------+
44| Content | 21 | 0x15 |
45+---------------------------------------------+------------------+-----------------+
46| SignatureInfo | 22 | 0x16 |
47+---------------------------------------------+------------------+-----------------+
48| SignatureValue | 23 | 0x17 |
49+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000050| **Data/MetaInfo** |
Junxiao Shi1082b422017-07-18 23:37:52 +000051+---------------------------------------------+------------------+-----------------+
52| ContentType | 24 | 0x18 |
53+---------------------------------------------+------------------+-----------------+
54| FreshnessPeriod | 25 | 0x19 |
55+---------------------------------------------+------------------+-----------------+
56| FinalBlockId | 26 | 0x1a |
57+---------------------------------------------+------------------+-----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000058| **Data/Signature** |
Junxiao Shi1082b422017-07-18 23:37:52 +000059+---------------------------------------------+------------------+-----------------+
60| SignatureType | 27 | 0x1b |
61+---------------------------------------------+------------------+-----------------+
62| KeyLocator | 28 | 0x1c |
63+---------------------------------------------+------------------+-----------------+
Junxiao Shi665ccf92018-07-13 13:23:23 -040064| KeyDigest | 29 | 0x1d |
65+---------------------------------------------+------------------+-----------------+
Junxiao Shib211da22017-12-14 20:05:35 +000066| **Link Object** |
67+---------------------------------------------+------------------+-----------------+
68| Delegation | 31 | 0x1f |
69+---------------------------------------------+------------------+-----------------+
70| Preference | 30 | 0x1e |
71+---------------------------------------------+------------------+-----------------+
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000072
Alexander Afanasyevca58dc22013-12-28 21:04:59 +000073.. _type reservations:
74
Junxiao Shi1082b422017-07-18 23:37:52 +000075TLV-TYPE number reservations
76~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000077
78+----------------+-----------------------------------------------------------+
Junxiao Shi1082b422017-07-18 23:37:52 +000079| Number range | Designation |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000080+================+===========================================================+
Alexander Afanasyeve9f48512018-01-15 23:44:50 -050081| 0, 2-4, | |
82| 36-79 | Reserved for future assignments (1-byte encoding) |
83+----------------+-----------------------------------------------------------+
84| 9 | Reserved, formerly `Selectors` |
Junxiao Shibdc75012015-01-13 22:09:12 -070085+----------------+-----------------------------------------------------------+
86| 11 | Reserved, formerly `Scope` |
Alexander Afanasyev718b86a2014-02-16 05:42:20 +000087+----------------+-----------------------------------------------------------+
Alexander Afanasyeve9f48512018-01-15 23:44:50 -050088| 13 | Reserved, formerly `MinSuffixComponents` |
89+----------------+-----------------------------------------------------------+
90| 14 | Reserved, formerly `MaxSuffixComponents` |
91+----------------+-----------------------------------------------------------+
92| 15 | Reserved, formerly `PublisherPublicKeyLocator` |
93+----------------+-----------------------------------------------------------+
94| 16 | Reserved, formerly `Exclude` |
95+----------------+-----------------------------------------------------------+
96| 17 | Reserved, formerly `ChildSelector` |
97+----------------+-----------------------------------------------------------+
98| 19 | Reserved, formerly `Any` |
99+----------------+-----------------------------------------------------------+
Junxiao Shib211da22017-12-14 20:05:35 +0000100| 32 | Reserved, formerly `SelectedDelegation` |
101+----------------+-----------------------------------------------------------+
Alexander Afanasyev718b86a2014-02-16 05:42:20 +0000102| 80-100 | Reserved for assignments related to local link data |
Junxiao Shi4406fdd2015-06-10 13:28:10 -0700103| | processing, e.g., `NDNLP`_, etc. (1-byte encoding) |
Alexander Afanasyevb917c0b2014-02-12 19:53:48 +0000104+----------------+-----------------------------------------------------------+
105| 101-127 | Reserved for assignments related to forwarding daemon |
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -0700106| | (1-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000107+----------------+-----------------------------------------------------------+
108| 128-252 | For application use (1-byte encoding) |
109+----------------+-----------------------------------------------------------+
Junxiao Shi4406fdd2015-06-10 13:28:10 -0700110| 800-1000 | Reserved for assignments related to local link data |
111| | processing, e.g., `NDNLP`_, etc. (3-byte encoding) |
112+----------------+-----------------------------------------------------------+
113| 253-799, | Reserved for future assignments (3-byte encoding) |
114| 1001-32767 | |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000115+----------------+-----------------------------------------------------------+
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -0700116| >32767 | For application use (3+-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000117+----------------+-----------------------------------------------------------+
Alexander Afanasyev718b86a2014-02-16 05:42:20 +0000118
Junxiao Shi1082b422017-07-18 23:37:52 +0000119.. _NDNLP: https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2