Movatterモバイル変換


[0]ホーム

URL:


ContentsMenuExpandLight modeDark modeAuto light/dark, in light modeAuto light/dark, in dark modeSkip to content
NDN Packet Format Specification v0.3
Logo
NDN Packet Format Specification v0.3
Back to top

Data Packet

The NDN Data packet is a TLV defined as follows:

Data=DATA-TYPETLV-LENGTHName[MetaInfo][Content]DataSignature

The Data packet represents some arbitrary binary data (held in the optionalContent element) together with itsName, some additional bits of optional information (MetaInfo), and a digital signature (DataSignature).

As recommended by theTLV evolvability guidelines, unrecognized non-critical TLV elements may appear in a Data packet.However, they must not appear before theName element.

Name

SeeName.

MetaInfo

MetaInfo=META-INFO-TYPETLV-LENGTH[ContentType][FreshnessPeriod][FinalBlockId]

ContentType

ContentType=CONTENT-TYPE-TYPETLV-LENGTHNonNegativeInteger

The following ContentTypes are currently defined:

ContentType

Assigned number

Description of the content

BLOB

0

payload identified by the data name; this is the defaultContentType

LINK

1

list of delegations (seeLink Object)

KEY

2

public key (seeCertificate)

NACK

3

application-level NACK

Other ContentType numbers are assigned and maintained in theNDN Packet Specification Wiki.

FreshnessPeriod

FreshnessPeriod=FRESHNESS-PERIOD-TYPETLV-LENGTHNonNegativeInteger

The optionalFreshnessPeriod indicates how long a node should wait after the arrival of this data before marking it “non-fresh”.The encoded value is number of milliseconds.Note that the “non-fresh” data is still valid data; the expiration ofFreshnessPeriod only means that the producer may have produced newer data.

If the Data packet carries aFreshnessPeriod greater than zero, a node should initially consider it “fresh”. After the Data has resided in the node forFreshnessPeriod milliseconds, it will be marked as “non-fresh”.If the Data does not have aFreshnessPeriod or if it has aFreshnessPeriod equal to zero, it MUST be marked “non-fresh” immediately after processing any pending Interests.

If an Interest containsMustBeFresh element, a content store MUST NOT return “non-fresh” Data in response to this Interest.The effect is the same as if that “non-fresh” Data did not exist (i.e., the Interest might be matched by some other Data in the content store, or, failing that, get forwarded to other nodes).When an exact duplicate of the “non-fresh” Data packet with a positiveFreshnessPeriod value arrives at the node, the node SHOULD re-mark it as “fresh” for the specified duration.

FinalBlockId

FinalBlockId=FINAL-BLOCK-ID-TYPETLV-LENGTHNameComponent

The optional FinalBlockId identifies the final block in a sequence of fragments.It should be present in the final block itself, and may also be present in other fragments to provide advanced warning of the end to consumers.The value here should be equal to the last explicit name component of the final block.

Content

Content=CONTENT-TYPETLV-LENGTH*OCTET

TheContent element can carry any arbitrary sequence of bytes.

DataSignature

SeeData Signature.

On this page

[8]ページ先頭

©2009-2026 Movatter.jp