Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 1 | .. _types: |
| 2 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 3 | TLV-TYPE number assignment |
| 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 | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 24 | | **Interest packet** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 25 | +---------------------------------------------+------------------+-----------------+ |
| 26 | | Selectors | 9 | 0x09 | |
| 27 | +---------------------------------------------+------------------+-----------------+ |
| 28 | | Nonce | 10 | 0x0a | |
| 29 | +---------------------------------------------+------------------+-----------------+ |
| 30 | | InterestLifetime | 12 | 0x0c | |
| 31 | +---------------------------------------------+------------------+-----------------+ |
| 32 | | ForwardingHint | 30 | 0x1e | |
| 33 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 34 | | **Interest/Selectors** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 35 | +---------------------------------------------+------------------+-----------------+ |
| 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 Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 50 | | **Data packet** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 51 | +---------------------------------------------+------------------+-----------------+ |
| 52 | | MetaInfo | 20 | 0x14 | |
| 53 | +---------------------------------------------+------------------+-----------------+ |
| 54 | | Content | 21 | 0x15 | |
| 55 | +---------------------------------------------+------------------+-----------------+ |
| 56 | | SignatureInfo | 22 | 0x16 | |
| 57 | +---------------------------------------------+------------------+-----------------+ |
| 58 | | SignatureValue | 23 | 0x17 | |
| 59 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 60 | | **Data/MetaInfo** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 61 | +---------------------------------------------+------------------+-----------------+ |
| 62 | | ContentType | 24 | 0x18 | |
| 63 | +---------------------------------------------+------------------+-----------------+ |
| 64 | | FreshnessPeriod | 25 | 0x19 | |
| 65 | +---------------------------------------------+------------------+-----------------+ |
| 66 | | FinalBlockId | 26 | 0x1a | |
| 67 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 68 | | **Data/Signature** | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 69 | +---------------------------------------------+------------------+-----------------+ |
| 70 | | SignatureType | 27 | 0x1b | |
| 71 | +---------------------------------------------+------------------+-----------------+ |
| 72 | | KeyLocator | 28 | 0x1c | |
| 73 | +---------------------------------------------+------------------+-----------------+ |
| 74 | | KeyDigest | 29 | 0x1d | |
| 75 | +---------------------------------------------+------------------+-----------------+ |
Junxiao Shi | b211da2 | 2017-12-14 20:05:35 +0000 | [diff] [blame] | 76 | | **Link Object** | |
| 77 | +---------------------------------------------+------------------+-----------------+ |
| 78 | | Delegation | 31 | 0x1f | |
| 79 | +---------------------------------------------+------------------+-----------------+ |
| 80 | | Preference | 30 | 0x1e | |
| 81 | +---------------------------------------------+------------------+-----------------+ |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 82 | |
Alexander Afanasyev | ca58dc2 | 2013-12-28 21:04:59 +0000 | [diff] [blame] | 83 | .. _type reservations: |
| 84 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 85 | TLV-TYPE number reservations |
| 86 | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~ |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 87 | |
| 88 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 89 | | Number range | Designation | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 90 | +================+===========================================================+ |
Junxiao Shi | b211da2 | 2017-12-14 20:05:35 +0000 | [diff] [blame] | 91 | | 0, 2-4, 32-79 | Reserved for future assignments (1-byte encoding) | |
Junxiao Shi | bdc7501 | 2015-01-13 22:09:12 -0700 | [diff] [blame] | 92 | +----------------+-----------------------------------------------------------+ |
| 93 | | 11 | Reserved, formerly `Scope` | |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 94 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | b211da2 | 2017-12-14 20:05:35 +0000 | [diff] [blame] | 95 | | 32 | Reserved, formerly `SelectedDelegation` | |
| 96 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 97 | | 80-100 | Reserved for assignments related to local link data | |
Junxiao Shi | 4406fdd | 2015-06-10 13:28:10 -0700 | [diff] [blame] | 98 | | | processing, e.g., `NDNLP`_, etc. (1-byte encoding) | |
Alexander Afanasyev | b917c0b | 2014-02-12 19:53:48 +0000 | [diff] [blame] | 99 | +----------------+-----------------------------------------------------------+ |
| 100 | | 101-127 | Reserved for assignments related to forwarding daemon | |
Alexander Afanasyev | 7455e9b | 2014-06-25 09:41:08 -0700 | [diff] [blame] | 101 | | | (1-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 102 | +----------------+-----------------------------------------------------------+ |
| 103 | | 128-252 | For application use (1-byte encoding) | |
| 104 | +----------------+-----------------------------------------------------------+ |
Junxiao Shi | 4406fdd | 2015-06-10 13:28:10 -0700 | [diff] [blame] | 105 | | 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 Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 110 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | 7455e9b | 2014-06-25 09:41:08 -0700 | [diff] [blame] | 111 | | >32767 | For application use (3+-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 112 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 113 | |
Junxiao Shi | 1082b42 | 2017-07-18 23:37:52 +0000 | [diff] [blame] | 114 | .. _NDNLP: https://redmine.named-data.net/projects/nfd/wiki/NDNLPv2 |