Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nfdc / dvc + URI refactor + client conf #93

Merged
merged 36 commits into from
Jan 3, 2025
Merged

nfdc / dvc + URI refactor + client conf #93

merged 36 commits into from
Jan 3, 2025

Conversation

pulsejet
Copy link
Collaborator

@pulsejet pulsejet commented Jan 2, 2025

I/O compatibility with nfdc is a non-goal. This is a debugging tool.

TODO:

  • Allow face URI when adding route
  • Create face if needed when adding route
  • Documentation
Usage: ndnd fw [command]
  run             Start the NDN Forwarding Daemon
                  
  status          Print general status
  face list       Print face table
  face create     Create a face
  face destroy    Destroy a face
  route list      Print RIB routes
  route add       Add a route to the RIB
  route remove    Remove a route from the RIB
  fib list        Print FIB entries
  cs info         Print content store info
  strategy list   Print strategy choices
  strategy set    Set strategy choice
  strategy unset  Unset strategy choice

Test (on Windows):

PS C:\Users\varun\Code\ndnd> .\ndnd.exe fw status
General NFD status:
                 version=
               startTime=2025-01-01 20:59:26.776 -0800 PST
             currentTime=2025-01-01 20:59:44.022 -0800 PST
                  uptime=17.246s
        nNameTreeEntries=0
             nFibEntries=1
             nPitEntries=0
    nMeasurementsEntries=0
              nCsEntries=0
            nInInterests=3
           nOutInterests=1
                 nInData=0
                nOutData=0
                nInNacks=0
               nOutNacks=0
     nSatisfiedInterests=0
   nUnsatisfiedInterests=2

PS C:\Users\varun\Code\ndnd> .\ndnd.exe fw face create remote=udp://suns.cs.ucla.edu:6363
Status=200 (OK)
  BaseCongestionMarkInterval=100000000
  DefaultCongestionThreshold=65536
  FaceId=9
  FacePersistency=Persistent
  Flags=0
  LocalUri=udp4://192.168.1.11:6363
  Mtu=8800
  Uri=udp4://131.179.196.48:6363
PS C:\Users\varun\Code\ndnd> .\ndnd.exe fw route add prefix=/ndn face=9                  
Status=200 (OK)
  Cost=0
  FaceId=9
  Flags=1
  Name=/ndn
  Origin=255
PS C:\Users\varun\Code\ndnd> .\ndnd.exe ping /ndn/edu/ucla                               
PING /ndn/edu/ucla/ping
content from /ndn/edu/ucla: seq=13514433451602086255, time=47.557000 ms
content from /ndn/edu/ucla: seq=13514433451602086256, time=18.751000 ms

--- /ndn/edu/ucla ping statistics ---
2 interests transmitted, 2 received, 0% lost
rtt min/avg/max = 18.751000/33.154000/47.557000 ms

@pulsejet pulsejet self-assigned this Jan 2, 2025
@pulsejet pulsejet requested a review from zjkmxy January 2, 2025 05:07
std/engine/basic/engine.go Outdated Show resolved Hide resolved
std/engine/basic/engine.go Outdated Show resolved Hide resolved
tools/dvc/dvc.go Show resolved Hide resolved
fw/executor/main.go Show resolved Hide resolved
tools/nfdc/nfdc_status.go Outdated Show resolved Hide resolved
@pulsejet pulsejet changed the title [WIP] fw control (nfdc) nfdc / dvc + URI refactor + client conf Jan 2, 2025
@pulsejet
Copy link
Collaborator Author

pulsejet commented Jan 2, 2025

Done with this - too many things ended up here as usual.

There's documentation in the repo for the new nfdc and dvc tools - I plan to set up a github pages to consolidate it.

This also implements client config and closes #85

Copy link
Member

@zjkmxy zjkmxy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your hard work!

@pulsejet pulsejet merged commit 6a31c07 into main Jan 3, 2025
10 checks passed
@pulsejet pulsejet deleted the nfdc branch January 3, 2025 01:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants