blob: c6be8ff17c47d90fd2aa57eed8a41c5ac06e4d7d [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+---------------------------------------------+------------------+-----------------+
20| NameComponent | 8 | 0x08 |
21+---------------------------------------------+------------------+-----------------+
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+---------------------------------------------+------------------+-----------------+
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000076
Alexander Afanasyevca58dc22013-12-28 21:04:59 +000077.. _type reservations:
78
Junxiao Shi1082b422017-07-18 23:37:52 +000079TLV-TYPE number reservations
80~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000081
82+----------------+-----------------------------------------------------------+
Junxiao Shi1082b422017-07-18 23:37:52 +000083| Number range | Designation |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000084+================+===========================================================+
Junxiao Shicfc5d212017-06-02 17:48:51 +000085| 0, 2-4, 31-79 | Reserved for future assignments (1-byte encoding) |
Junxiao Shibdc75012015-01-13 22:09:12 -070086+----------------+-----------------------------------------------------------+
87| 11 | Reserved, formerly `Scope` |
Alexander Afanasyev718b86a2014-02-16 05:42:20 +000088+----------------+-----------------------------------------------------------+
89| 80-100 | Reserved for assignments related to local link data |
Junxiao Shi4406fdd2015-06-10 13:28:10 -070090| | processing, e.g., `NDNLP`_, etc. (1-byte encoding) |
Alexander Afanasyevb917c0b2014-02-12 19:53:48 +000091+----------------+-----------------------------------------------------------+
92| 101-127 | Reserved for assignments related to forwarding daemon |
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -070093| | (1-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000094+----------------+-----------------------------------------------------------+
95| 128-252 | For application use (1-byte encoding) |
96+----------------+-----------------------------------------------------------+
Junxiao Shi4406fdd2015-06-10 13:28:10 -070097| 800-1000 | Reserved for assignments related to local link data |
98| | processing, e.g., `NDNLP`_, etc. (3-byte encoding) |
99+----------------+-----------------------------------------------------------+
100| 253-799, | Reserved for future assignments (3-byte encoding) |
101| 1001-32767 | |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000102+----------------+-----------------------------------------------------------+
Alexander Afanasyev7455e9b2014-06-25 09:41:08 -0700103| >32767 | For application use (3+-byte encoding) |
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +0000104+----------------+-----------------------------------------------------------+
Alexander Afanasyev718b86a2014-02-16 05:42:20 +0000105
Junxiao Shi1082b422017-07-18 23:37:52 +0000106.. _NDNLP: https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2