Project

General

Profile

Actions

Task #1328

closed

nfd-status: plain text status command

Added by Junxiao Shi almost 11 years ago. Updated almost 11 years ago.

Status:
Closed
Priority:
High
Category:
Tools
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
6.00 h

Description

Develop a command tool nfd-status to show NFD status as plain text.

Output should contain:

  • version information and global counters (from StatusServer #1199)
    • NFD version
    • start timestamp
    • current timestamp
    • current number of NameTree entries
    • current number of FIB entries
    • current number of PIT entries (regardless of whether it is pending or satisfied)
    • current number of Measurements entries
    • current number of CS entries
    • total number of incoming Interests since forwarder starts
    • total number of outgoing Interests since forwarder starts
    • total number of incoming Datas since forwarder starts
    • total number of outgoing Datas since forwarder starts
  • Faces (via FaceStatus protocol)
    • FaceId
    • Uri
    • counters
  • FIB (via FibEnumeration protocol)
    • prefix
    • nexthop

This tool is a NDN consumer. It must not depend on HTTP.


Related issues 4 (0 open4 closed)

Related to NFD - Task #1199: StatusServerClosedJunxiao Shi03/09/2014

Actions
Related to NFD - Task #1192: FIB enumeration commandClosed

Actions
Related to NFD - Task #1245: Face list commandClosed

Actions
Blocks NFD - Task #1181: HTTP status serverClosedChengyu Fan

Actions
Actions #1

Updated by Junxiao Shi almost 11 years ago

  • Description updated (diff)
  • Estimated time set to 6.00 h

Assignee should start reading FaceStatus and FibEnumeration protocol.

Development of this task should occur side-by-side with #1199 #1192 #1245.

Actions #2

Updated by Jerald Paul Abraham almost 11 years ago

  • Status changed from New to In Progress

Making a ndn-cpp tool to use NFD FIB Enumeration protocol and Face Status protocol.

Actions #3

Updated by Jerald Paul Abraham almost 11 years ago

  • % Done changed from 0 to 30

Public Github Repository:

https://github.com/jeraldabraham/nfd-status

Update:

  • Basic Consumer Tool Skeleton Added
  • Fetch Requests To NFD Face Management Protocol & NFD FIB Enumeration Protocol Added
Actions #4

Updated by Junxiao Shi almost 11 years ago

This tool should go into /tools/ directory of NFD repository, instead of a separate repository, because it's solely used with NFD and is useless with another forwarder.

Actions #5

Updated by Jerald Paul Abraham almost 11 years ago

Ok.

Will move it to nfd/tools once development is complete. This tool will then be within namespace nfd.

Actions #6

Updated by Junxiao Shi almost 11 years ago

This tool should be in NFD repository since the first commit, not moved later.

Code must conform to CodeStyle and every commit needs to be reviewed.

Please use nfd_status namespace.

Actions #7

Updated by Jerald Paul Abraham almost 11 years ago

From my experience, that is time consuming and inefficient. Gerrit reviews have caused back and forth design changes which is pointless, even though they are mandatory and necessary.

As there is no pre-decided design, the developer must be allowed to come up with his first version. I would recommend one review in such cases.

Actions #8

Updated by Junxiao Shi almost 11 years ago

You can write a design document or slides, send to nfd-dev mailing list, and request a design review.

In this way it's less likely to receive negative review due to design problem.

Actions #9

Updated by Junxiao Shi almost 11 years ago

  • Description updated (diff)

version information and global counters encoding/decoding procedures are implemented in the library as part of #1199.

There won't be a formal definition of the format at this moment.

Actions #10

Updated by Alex Afanasyev almost 11 years ago

  • Priority changed from Normal to High

This code MUST be moved to NFD asap. If you want, I can do it too (as well as adjust the code style). Let me know.

Actions #11

Updated by Jerald Paul Abraham almost 11 years ago

I will try to complete this by today Alex. If there is not good progress, you can take over.

Actions #12

Updated by Alex Afanasyev almost 11 years ago

  • Assignee changed from Jerald Paul Abraham to Alex Afanasyev
Actions #13

Updated by Alex Afanasyev almost 11 years ago

  • Status changed from In Progress to Code review
  • % Done changed from 30 to 100
Actions #14

Updated by Alex Afanasyev almost 11 years ago

  • Status changed from Code review to Closed
Actions

Also available in: Atom PDF