Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 1 | .. _types: |
| 2 | |
| 3 | Type value assignment |
| 4 | --------------------- |
| 5 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 6 | +---------------------------------------------+-------------------+----------------+ |
| 7 | | Type | Assigned value | Assigned value | |
| 8 | | | (decimal) | (hexadecimal) | |
| 9 | +=============================================+===================+================+ |
Alexander Afanasyev | e9315e7 | 2014-02-12 19:53:49 +0000 | [diff] [blame] | 10 | | **Packet types** | |
| 11 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 12 | | Interest | 5 | 0x05 | |
Alexander Afanasyev | e9315e7 | 2014-02-12 19:53:49 +0000 | [diff] [blame] | 13 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 14 | | Data | 6 | 0x06 | |
| 15 | +---------------------------------------------+-------------------+----------------+ |
| 16 | | **Common fields** | |
| 17 | +---------------------------------------------+-------------------+----------------+ |
| 18 | | Name | 7 | 0x07 | |
| 19 | +---------------------------------------------+-------------------+----------------+ |
| 20 | | NameComponent | 8 | 0x08 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 21 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 4b8be21 | 2014-10-06 10:55:04 -0700 | [diff] [blame] | 22 | | ImplicitSha256DigestComponent | 1 | 0x01 | |
| 23 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 24 | | **Interest packet** | |
| 25 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 26 | | Selectors | 9 | 0x09 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 27 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 28 | | Nonce | 10 | 0x0a | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 29 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 30 | | InterestLifetime | 12 | 0x0c | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 31 | +---------------------------------------------+-------------------+----------------+ |
| 32 | | **Interest/Selectors** | |
| 33 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 34 | | MinSuffixComponents | 13 | 0x0d | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 35 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 36 | | MaxSuffixComponents | 14 | 0x0e | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 37 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 38 | | PublisherPublicKeyLocator | 15 | 0x0f | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 39 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 40 | | Exclude | 16 | 0x10 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 41 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 42 | | ChildSelector | 17 | 0x11 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 43 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 44 | | MustBeFresh | 18 | 0x12 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 45 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 46 | | Any | 19 | 0x13 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 47 | +---------------------------------------------+-------------------+----------------+ |
| 48 | | **Data packet** | |
| 49 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 50 | | MetaInfo | 20 | 0x14 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 51 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 52 | | Content | 21 | 0x15 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 53 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 54 | | SignatureInfo | 22 | 0x16 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 55 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 56 | | SignatureValue | 23 | 0x17 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 57 | +---------------------------------------------+-------------------+----------------+ |
| 58 | | **Data/MetaInfo** | |
| 59 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 60 | | ContentType | 24 | 0x18 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 61 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 62 | | FreshnessPeriod | 25 | 0x19 | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 63 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 64 | | FinalBlockId | 26 | 0x1a | |
Alexander Afanasyev | 08f39ce | 2014-02-12 19:53:50 +0000 | [diff] [blame] | 65 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 66 | | **Data/Signature** | |
| 67 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 68 | | SignatureType | 27 | 0x1b | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 69 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | 0bc9f1a | 2014-02-13 08:05:36 +0000 | [diff] [blame] | 70 | | KeyLocator | 28 | 0x1c | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 71 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | f3e5e85 | 2014-06-13 22:44:02 -0700 | [diff] [blame] | 72 | | KeyDigest | 29 | 0x1d | |
Alexander Afanasyev | a4397b8 | 2013-12-26 05:25:27 +0000 | [diff] [blame] | 73 | +---------------------------------------------+-------------------+----------------+ |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 74 | |
Alexander Afanasyev | ca58dc2 | 2013-12-28 21:04:59 +0000 | [diff] [blame] | 75 | .. _type reservations: |
| 76 | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 77 | Type value reservations |
| 78 | ~~~~~~~~~~~~~~~~~~~~~~~ |
| 79 | |
| 80 | +----------------+-----------------------------------------------------------+ |
| 81 | | Values | Designation | |
| 82 | +================+===========================================================+ |
Junxiao Shi | bdc7501 | 2015-01-13 22:09:12 -0700 | [diff] [blame^] | 83 | | 0, 2-4, 30-79 | Reserved for future assignments (1-byte encoding) | |
| 84 | +----------------+-----------------------------------------------------------+ |
| 85 | | 11 | Reserved, formerly `Scope` | |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 86 | +----------------+-----------------------------------------------------------+ |
| 87 | | 80-100 | Reserved for assignments related to local link data | |
Alexander Afanasyev | 7455e9b | 2014-06-25 09:41:08 -0700 | [diff] [blame] | 88 | | | processing, e.g., `NDNLP header`_, `LocalControlHeader`_, | |
| 89 | | | etc. (1-byte encoding) | |
Alexander Afanasyev | b917c0b | 2014-02-12 19:53:48 +0000 | [diff] [blame] | 90 | +----------------+-----------------------------------------------------------+ |
| 91 | | 101-127 | Reserved for assignments related to forwarding daemon | |
Alexander Afanasyev | 7455e9b | 2014-06-25 09:41:08 -0700 | [diff] [blame] | 92 | | | (1-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 93 | +----------------+-----------------------------------------------------------+ |
| 94 | | 128-252 | For application use (1-byte encoding) | |
| 95 | +----------------+-----------------------------------------------------------+ |
| 96 | | 253-32767 | Reserved for future assignments (3-byte encoding) | |
| 97 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | 7455e9b | 2014-06-25 09:41:08 -0700 | [diff] [blame] | 98 | | >32767 | For application use (3+-byte encoding) | |
Alexander Afanasyev | fffabfb | 2013-12-11 21:29:05 +0000 | [diff] [blame] | 99 | +----------------+-----------------------------------------------------------+ |
Alexander Afanasyev | 718b86a | 2014-02-16 05:42:20 +0000 | [diff] [blame] | 100 | |
| 101 | .. _NDNLP header: http://redmine.named-data.net/projects/nfd/wiki/NDNLP-TLV |
| 102 | |
| 103 | .. _LocalControlHeader: http://redmine.named-data.net/projects/nfd/wiki/LocalControlHeader |