blob: a63926fdc12e236cc0c82da14ec46ea0efdf570c [file] [log] [blame]
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +00001.. _types:
2
3Type value assignment
4---------------------
5
Alexander Afanasyeva4397b82013-12-26 05:25:27 +00006+---------------------------------------------+-------------------+----------------+
7| Type | Assigned value | Assigned value |
8| | (decimal) | (hexadecimal) |
9+=============================================+===================+================+
Alexander Afanasyeve9315e72014-02-12 19:53:49 +000010| **Packet types** |
11+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000012| Interest | 5 | 0x05 |
Alexander Afanasyeve9315e72014-02-12 19:53:49 +000013+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000014| Data | 6 | 0x06 |
15+---------------------------------------------+-------------------+----------------+
16| **Common fields** |
17+---------------------------------------------+-------------------+----------------+
18| Name | 7 | 0x07 |
19+---------------------------------------------+-------------------+----------------+
20| NameComponent | 8 | 0x08 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000021+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev4b8be212014-10-06 10:55:04 -070022| ImplicitSha256DigestComponent | 1 | 0x01 |
23+---------------------------------------------+-------------------+----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000024| **Interest packet** |
25+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000026| Selectors | 9 | 0x09 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000027+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000028| Nonce | 10 | 0x0a |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000029+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000030| InterestLifetime | 12 | 0x0c |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000031+---------------------------------------------+-------------------+----------------+
Junxiao Shicfc5d212017-06-02 17:48:51 +000032| ForwardingHint | 30 | 0x1e |
33+---------------------------------------------+-------------------+----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000034| **Interest/Selectors** |
35+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000036| MinSuffixComponents | 13 | 0x0d |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000037+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000038| MaxSuffixComponents | 14 | 0x0e |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000039+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000040| PublisherPublicKeyLocator | 15 | 0x0f |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000041+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000042| Exclude | 16 | 0x10 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000043+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000044| ChildSelector | 17 | 0x11 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000045+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000046| MustBeFresh | 18 | 0x12 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000047+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000048| Any | 19 | 0x13 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000049+---------------------------------------------+-------------------+----------------+
50| **Data packet** |
51+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000052| MetaInfo | 20 | 0x14 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000053+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000054| Content | 21 | 0x15 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000055+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000056| SignatureInfo | 22 | 0x16 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000057+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000058| SignatureValue | 23 | 0x17 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000059+---------------------------------------------+-------------------+----------------+
60| **Data/MetaInfo** |
61+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000062| ContentType | 24 | 0x18 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000063+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000064| FreshnessPeriod | 25 | 0x19 |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000065+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000066| FinalBlockId | 26 | 0x1a |
Alexander Afanasyev08f39ce2014-02-12 19:53:50 +000067+---------------------------------------------+-------------------+----------------+
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000068| **Data/Signature** |
69+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000070| SignatureType | 27 | 0x1b |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000071+---------------------------------------------+-------------------+----------------+
Alexander Afanasyev0bc9f1a2014-02-13 08:05:36 +000072| KeyLocator | 28 | 0x1c |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000073+---------------------------------------------+-------------------+----------------+
Alexander Afanasyevf3e5e852014-06-13 22:44:02 -070074| KeyDigest | 29 | 0x1d |
Alexander Afanasyeva4397b82013-12-26 05:25:27 +000075+---------------------------------------------+-------------------+----------------+
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000076
Alexander Afanasyevca58dc22013-12-28 21:04:59 +000077.. _type reservations:
78
Alexander Afanasyevfffabfb2013-12-11 21:29:05 +000079Type value reservations
80~~~~~~~~~~~~~~~~~~~~~~~
81
82+----------------+-----------------------------------------------------------+
83| Values | Designation |
84+================+===========================================================+
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 Shi4406fdd2015-06-10 13:28:10 -0700106.. _NDNLP: http://redmine.named-data.net/projects/nfd/wiki/NDNLPv2