Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 1 | .. _types: |
| 2 | |
Davide Pesavento | 738fd31 | 2019-02-07 13:40:16 -0500 | [diff] [blame] | 3 | TLV-TYPE number assignments |
| 4 | --------------------------- |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 5 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 6 | +---------------------------------------------+------------------+-----------------+ |
| 7 | | Type | Assigned number | Assigned number | |
| 8 | | | (decimal) | (hexadecimal) | |
| 9 | +=============================================+==================+=================+ |
Alexander Afanasyev | e9315e7 | 2014-02-12 19:53:49 +0000 | [diff] [blame] | 10 | | **Packet types** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 11 | +---------------------------------------------+------------------+-----------------+ |
| 12 | | Interest | 5 | 0x05 | |
| 13 | +---------------------------------------------+------------------+-----------------+ |
| 14 | | Data | 6 | 0x06 | |
| 15 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 16 | | **Common fields** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 17 | +---------------------------------------------+------------------+-----------------+ |
| 18 | | Name | 7 | 0x07 | |
| 19 | +---------------------------------------------+------------------+-----------------+ |
Junxiao Shi | b211da2 | 2017-12-14 20:05:35 +0000 | [diff] [blame] | 20 | | GenericNameComponent | 8 | 0x08 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 21 | +---------------------------------------------+------------------+-----------------+ |
| 22 | | ImplicitSha256DigestComponent | 1 | 0x01 | |
| 23 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | 9013a56 | 2018-08-08 09:48:41 -0400 | [diff] [blame] | 24 | | ParametersSha256DigestComponent | 2 | 0x02 | |
| 25 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 26 | | **Interest packet** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 27 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | e9f4851 | 2018-01-15 23:44:50 -0500 | [diff] [blame] | 28 | | CanBePrefix | 33 | 0x21 | |
| 29 | +---------------------------------------------+------------------+-----------------+ |
| 30 | | MustBeFresh | 18 | 0x12 | |
| 31 | +---------------------------------------------+------------------+-----------------+ |
| 32 | | ForwardingHint | 30 | 0x1e | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 33 | +---------------------------------------------+------------------+-----------------+ |
| 34 | | Nonce | 10 | 0x0a | |
| 35 | +---------------------------------------------+------------------+-----------------+ |
| 36 | | InterestLifetime | 12 | 0x0c | |
| 37 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | e9f4851 | 2018-01-15 23:44:50 -0500 | [diff] [blame] | 38 | | HopLimit | 34 (non-critical)| 0x22 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 39 | +---------------------------------------------+------------------+-----------------+ |
Junxiao Shi | f2bbb90 | 2019-03-15 14:36:30 -0400 | [diff] [blame] | 40 | | ApplicationParameters | 36 (non-critical)| 0x24 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 41 | +---------------------------------------------+------------------+-----------------+ |
Zhiyi Zhang | 0c04fd8 | 2018-09-04 16:29:47 -0400 | [diff] [blame] | 42 | | InterestSignatureInfo | 44 (non-critical)| 0x2c | |
| 43 | +---------------------------------------------+------------------+-----------------+ |
| 44 | | InterestSignatureValue | 46 (non-critical)| 0x2e | |
| 45 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 46 | | **Data packet** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 47 | +---------------------------------------------+------------------+-----------------+ |
| 48 | | MetaInfo | 20 | 0x14 | |
| 49 | +---------------------------------------------+------------------+-----------------+ |
| 50 | | Content | 21 | 0x15 | |
| 51 | +---------------------------------------------+------------------+-----------------+ |
| 52 | | SignatureInfo | 22 | 0x16 | |
| 53 | +---------------------------------------------+------------------+-----------------+ |
| 54 | | SignatureValue | 23 | 0x17 | |
| 55 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 56 | | **Data/MetaInfo** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 57 | +---------------------------------------------+------------------+-----------------+ |
| 58 | | ContentType | 24 | 0x18 | |
| 59 | +---------------------------------------------+------------------+-----------------+ |
| 60 | | FreshnessPeriod | 25 | 0x19 | |
| 61 | +---------------------------------------------+------------------+-----------------+ |
| 62 | | FinalBlockId | 26 | 0x1a | |
| 63 | +---------------------------------------------+------------------+-----------------+ |
Zhiyi Zhang | 0c04fd8 | 2018-09-04 16:29:47 -0400 | [diff] [blame] | 64 | | **Signature** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 65 | +---------------------------------------------+------------------+-----------------+ |
| 66 | | SignatureType | 27 | 0x1b | |
| 67 | +---------------------------------------------+------------------+-----------------+ |
| 68 | | KeyLocator | 28 | 0x1c | |
| 69 | +---------------------------------------------+------------------+-----------------+ |
Junxiao Shi | 665ccf9 | 2018-07-13 13:23:23 -0400 | [diff] [blame] | 70 | | KeyDigest | 29 | 0x1d | |
| 71 | +---------------------------------------------+------------------+-----------------+ |
Zhiyi Zhang | 47e5137 | 2019-02-25 13:47:01 -0800 | [diff] [blame] | 72 | | SignatureNonce | 38 (non-critical)| 0x26 | |
| 73 | +---------------------------------------------+------------------+-----------------+ |
Zhiyi Zhang | 0c04fd8 | 2018-09-04 16:29:47 -0400 | [diff] [blame] | 74 | | SignatureTime | 40 (non-critical)| 0x28 | |
| 75 | +---------------------------------------------+------------------+-----------------+ |
| 76 | | SignatureSeqNum | 42 (non-critical)| 0x2a | |
Zhiyi Zhang | 47e5137 | 2019-02-25 13:47:01 -0800 | [diff] [blame] | 77 | +---------------------------------------------+------------------+-----------------+ |
Junxiao Shi | b211da2 | 2017-12-14 20:05:35 +0000 | [diff] [blame] | 78 | | **Link Object** | |
| 79 | +---------------------------------------------+------------------+-----------------+ |
| 80 | | Delegation | 31 | 0x1f | |
| 81 | +---------------------------------------------+------------------+-----------------+ |
| 82 | | Preference | 30 | 0x1e | |
| 83 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 84 | |
Junxiao Shi | 78ce295 | 2019-05-07 15:34:00 -0400 | [diff] [blame] | 85 | .. note:: |
Davide Pesavento | ec74676 | 2020-06-24 22:57:31 -0400 | [diff] [blame^] | 86 | The ABNF grammar of this specification denotes the TLV-TYPE of element ``X`` as ``X-TYPE``. |
| 87 | For example, ``INTEREST-TYPE`` means ``%x05``, the TLV-TYPE of ``Interest`` encoded in ``VAR-NUMBER-1`` format. |
Junxiao Shi | 78ce295 | 2019-05-07 15:34:00 -0400 | [diff] [blame] | 88 | |
Alexander Afanasyev | ca58dc2 | 2013-12-28 21:04:59 +0000 | [diff] [blame] | 89 | .. _type reservations: |
| 90 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 91 | TLV-TYPE number reservations |
| 92 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 93 | |
| 94 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 95 | | Number range | Designation | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 96 | +================+===========================================================+ |
Alexander Afanasyev | e9f4851 | 2018-01-15 23:44:50 -0500 | [diff] [blame] | 97 | | 9 | Reserved, formerly `Selectors` | |
Junxiao Shi | bdc7501 | 2015-01-13 22:09:12 -0700 | [diff] [blame] | 98 | +----------------+-----------------------------------------------------------+ |
| 99 | | 11 | Reserved, formerly `Scope` | |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 100 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | e9f4851 | 2018-01-15 23:44:50 -0500 | [diff] [blame] | 101 | | 13 | Reserved, formerly `MinSuffixComponents` | |
| 102 | +----------------+-----------------------------------------------------------+ |
| 103 | | 14 | Reserved, formerly `MaxSuffixComponents` | |
| 104 | +----------------+-----------------------------------------------------------+ |
| 105 | | 15 | Reserved, formerly `PublisherPublicKeyLocator` | |
| 106 | +----------------+-----------------------------------------------------------+ |
| 107 | | 16 | Reserved, formerly `Exclude` | |
| 108 | +----------------+-----------------------------------------------------------+ |
| 109 | | 17 | Reserved, formerly `ChildSelector` | |
| 110 | +----------------+-----------------------------------------------------------+ |
| 111 | | 19 | Reserved, formerly `Any` | |
| 112 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | b211da2 | 2017-12-14 20:05:35 +0000 | [diff] [blame] | 113 | | 32 | Reserved, formerly `SelectedDelegation` | |
| 114 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | dcb0f37 | 2019-04-06 18:45:55 +0000 | [diff] [blame] | 115 | | [80, 100] | Reserved for assignments related to local-link data | |
Junxiao Shi | 4406fdd | 2015-06-10 13:28:10 -0700 | [diff] [blame] | 116 | | | processing, e.g., `NDNLP`_, etc. (1-byte encoding) | |
Alexander Afanasyev | b917c0b | 2014-02-12 19:53:48 +0000 | [diff] [blame] | 117 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | dcb0f37 | 2019-04-06 18:45:55 +0000 | [diff] [blame] | 118 | | [101, 127] | Reserved for assignments related to the forwarder | |
Alexander Afanasyev | 7455e9b | 2014-06-25 09:41:08 -0700 | [diff] [blame] | 119 | | | (1-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 120 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | dcb0f37 | 2019-04-06 18:45:55 +0000 | [diff] [blame] | 121 | | all other | | |
| 122 | | numbers in | | |
| 123 | | [1, 127] | Reserved for future assignments (1-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 124 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | dcb0f37 | 2019-04-06 18:45:55 +0000 | [diff] [blame] | 125 | | [128, 252] | For application use (1-byte encoding) | |
| 126 | +----------------+-----------------------------------------------------------+ |
| 127 | | [800, 1000] | Reserved for assignments related to local-link data | |
Junxiao Shi | 4406fdd | 2015-06-10 13:28:10 -0700 | [diff] [blame] | 128 | | | processing, e.g., `NDNLP`_, etc. (3-byte encoding) | |
| 129 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | dcb0f37 | 2019-04-06 18:45:55 +0000 | [diff] [blame] | 130 | | all other | Reserved for future assignments (3-byte encoding) | |
| 131 | | numbers in | | |
| 132 | | [253, 32767] | | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 133 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | dcb0f37 | 2019-04-06 18:45:55 +0000 | [diff] [blame] | 134 | | >32767 | For application use (3-byte or 5-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 135 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 136 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 137 | .. _NDNLP: https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2 |