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