Project

General

Profile

CsMgmt » History » Version 2

Junxiao Shi, 10/13/2017 04:55 AM

1 1 Junxiao Shi
# Content Store Management
2
3
**Content Store Management** is a module of [[Management|NFD Management protocol]].
4
It provides commands and datasets about the Content Store and its usage in forwarding.
5
6
Content Store Management commands and datasets are available under namespace `ndn:/localhost/nfd/cs`.
7
8
## Control Commands
9
10 2 Junxiao Shi
[[ControlCommand]] **management-module**: `cs`
11 1 Junxiao Shi
12
### Update config
13
14
**command-verb**: `config`
15
16
(to be defined in #4050)
17
18
### Erase entry
19
20
**command-verb**: `erase`
21
22
(to be defined in #4318)
23
24
## CS Information Dataset
25
26
CS config and runtime performance are published as a [[StatusDataset|Status Dataset]] at `ndn:/localhost/nfd/cs/info`.
27
28 2 Junxiao Shi
    CsStatus ::= CS-STATUS-TYPE TLV-LENGTH
29
                   NHits
30
                   NMisses
31 1 Junxiao Shi
32 2 Junxiao Shi
    (TLVs have nonNegativeInteger as value)
33 1 Junxiao Shi
34
(additional fields to be defined in #4050)
35
36
## CS Enumeration
37
38
A subset of CS entries can be queried into a [[StatusDataset|Status Dataset]] under `ndn:/localhost/nfd/cs/query`.
39
40
(to be defined in #4317)
41 2 Junxiao Shi
42
43
## TLV-TYPE assignments
44
45
Type                                        | Assigned number   | Assigned number (hex)
46
------------------------------------------- | ----------------- | ---------------------
47
CsStatus                                    | 128               | 0x80
48
NHits                                       | 129               | 0x81
49
NMisses                                     | 130               | 0x82