PrefixAnnouncement » History » Version 15
Junxiao Shi, 05/16/2025 05:03 PM
1 | 15 | Junxiao Shi | # Prefix Announcement Object |
---|---|---|---|
2 | 1 | Junxiao Shi | |
3 | 2 | Davide Pesavento | The **prefix announcement object** is a Data packet that represents an application's intent of registering a prefix toward itself. A Data packet that satisfies the following requirements is a prefix announcement object: |
4 | 1 | Junxiao Shi | |
5 | 7 | Davide Pesavento | * Name starts with the announced prefix, followed by a fixed `32=PA` keyword name component, followed by a version component and a segment component as defined by the [NDN Naming Conventions](https://named-data.net/publications/techreports/ndn-tr-22-ndn-memo-naming-conventions/). In the current revision of this specification, the segment number MUST be zero. |
6 | * ContentType MUST be 5 (prefix announcement). |
||
7 | * Content contains a sequence of TLV elements, including at least an ExpirationPeriod element. Ordering of these TLV elements is insignificant. Unrecognized non-critical TLV elements are permitted and MUST be ignored. |
||
8 | 1 | Junxiao Shi | |
9 | 12 | Davide Pesavento | The **validity period** of a prefix announcement object is given in the ExpirationPeriod and ValidityPeriod elements in its Content. |
10 | 1 | Junxiao Shi | |
11 | * ExpirationPeriod gives the duration for which the prefix announcement remains valid. The duration begins when a node or program receives the prefix announcement. This element is required. |
||
12 | 3 | Junxiao Shi | * ValidityPeriod gives the absolute time range in which the prefix announcement remains valid. It is ignored if the receiving node does not have a UnixTime clock. This element is optional. |
13 | * When both ExpirationPeriod and ValidityPeriod are present, the most restrictive constraint applies. |
||
14 | 7 | Davide Pesavento | |
15 | 1 | Junxiao Shi | The trust model of a prefix announcement is to be defined by the application. |
16 | 9 | Davide Pesavento | |
17 | 15 | Junxiao Shi | ## Example |
18 | 3 | Junxiao Shi | |
19 | ``` |
||
20 | Data |
||
21 | 15 | Junxiao Shi | Name /net/example/32=PA/v=0/seg=0 |
22 | 3 | Junxiao Shi | MetaInfo |
23 | 4 | Junxiao Shi | ContentType 5 (prefix announcement) |
24 | 1 | Junxiao Shi | Content |
25 | 3 | Junxiao Shi | ExpirationPeriod 3600000 |
26 | 5 | Junxiao Shi | ValidityPeriod |
27 | NotBefore 20181030T000000 |
||
28 | NotAfter 20181124T235959 |
||
29 | 3 | Junxiao Shi | SignatureInfo |
30 | SignatureValue |
||
31 | 8 | Junxiao Shi | ``` |
32 | |||
33 | 9 | Davide Pesavento | This prefix announcement object announces the prefix `/net/example`. It is valid for one hour from its receipt, between the dates 2018-10-30 and 2018-11-24 (included). |