MeasurementStatus » History » Version 13
Ashlesh Gawande, 02/15/2018 12:37 PM
1 | 4 | Ashlesh Gawande | # Measurement Status |
---|---|---|---|
2 | 1 | Ashlesh Gawande | |
3 | 12 | Ashlesh Gawande | Measurement Status is a module of [[Management|NFD Management protocol]]. |
4 | 4 | Ashlesh Gawande | It provides measurement table entries for a given name prefix. |
5 | The strategy responsible for the name prefix need to support measurement queries. |
||
6 | |||
7 | 9 | Ashlesh Gawande | Measurements for a prefix is published as a [[StatusDataset|Status Dataset]] at: ndn:/localhost/nfd/measurements/query/ |
8 | 4 | Ashlesh Gawande | |
9 | 11 | Ashlesh Gawande | ## Control Parameters |
10 | |||
11 | ControlParameters fields: |
||
12 | |||
13 | Name (required) |
||
14 | |||
15 | Name is the prefix for which the measurement query is made. |
||
16 | A forwarder MAY impose a limit on the length of name prefix. The current limit in NFD is 32 name components. |
||
17 | If Name exceeds this limit, the command fails with code 414. |
||
18 | 13 | Ashlesh Gawande | Code 400 is returned if the command is malformed. |
19 | 11 | Ashlesh Gawande | |
20 | ## Measurement Entry Dataset |
||
21 | |||
22 | Each measurement entry is represented by **MeasurementEntry** block: |
||
23 | |||
24 | MeasurementEntry := MEASUREMENT-ENTRY-TYPE TLV-LENGTH |
||
25 | Name |
||
26 | StrategyInfo |
||
27 | |||
28 | * **Name** is the prefix for which the query was made |
||
29 | 1 | Ashlesh Gawande | * **StrategyInfo** is the measurement info provided by the strategy responsible for the given name |
30 | 12 | Ashlesh Gawande | |
31 | Strategy returns a boost::property_tree when queried and managements formats that as JSON string for StrategyInfo. |
||
32 | 13 | Ashlesh Gawande | Code 501 is returned if the strategy does not support measurement queries. |
33 | 3 | Ashlesh Gawande | |
34 | 2 | Ashlesh Gawande | ## TLV-TYPE assignments |
35 | |||
36 | Type | Assigned number | Assigned number (hex) |
||
37 | ------------------------------------------- | ----------------- | --------------------- |
||
38 | MeasurementEntry | 128 | 0x80 |
||
39 | StrategyInfo | 129 | 0x81 |