Skip to content

fw: implement rib/announce management command - #206

Open
Harsh23Kashyap wants to merge 1 commit into
named-data:mainfrom
Harsh23Kashyap:fix/rib-announce
Open

Harsh23Kashyap wants to merge 1 commit into
named-data:mainfrom
Harsh23Kashyap:fix/rib-announce

Conversation

@Harsh23Kashyap

Copy link
Copy Markdown

Closes #195

rib/announce returned 501 Not Implemented. This implements it:

  • validates the embedded PrefixAnnouncement Data packet and replies 400 when it is invalid
  • extracts the announced prefix (the name portion before the PA keyword component, allowing trailing version and segment components), route cost, and expiration from ExpirationPeriod; ValidityPeriod in the content is ignored, matching NFD
  • inserts the route into the RIB with origin prefixann toward the face the command arrived on, and replies with the created route parameters

Name parsing and field handling were checked against NFD's rib-manager and the NDNts PrefixAnn builder for interop. Adds unit tests for the parser and the handler; go build ./... and go test ./fw/... pass.

Implements the rib/announce management command (closes named-data#195), which
previously always returned 501. The PrefixAnnouncement Data packet
carried in the command Interest's ApplicationParameters is parsed for
its announced prefix (the name before the PA keyword component,
optionally followed by version and segment components), its required
ExpirationPeriod, and its optional route Cost.

A route with origin prefixann (129) toward the face the command
arrived on is inserted into the RIB and expires after the announced
ExpirationPeriod, mirroring NFD's rib-manager. The control response
carries the created route's parameters. PrefixAnnouncement signatures
are not validated, as YaNFD has no trust schema configured for
management.
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.

[fw] rib/announce command returns 501 error

1 participant