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

Replace max hop count and total hop count with remaining hop count? #14

Closed
mickeyspiegel opened this issue Feb 1, 2018 · 1 comment
Closed

Comments

@mickeyspiegel
Copy link
Contributor

By replacing max hop count and total hop count with remaining hop count, we can save one byte in the INT header.

  • Source sets initial value of remaining hop count
  • Every hop that adds INT metadata decrements the remaining hop count by 1
  • When remaining hop count reaches 0, the INT metadata stack is full and the E bit must be set to 1

A device parsing the INT metadata stack uses the length from the appropriate INT shim header to determine when it reaches the end of the INT metadata stack:

  • metadata stack size = 'length' * 4 - [total fixed header sizes]
@mhira1
Copy link
Contributor

mhira1 commented Mar 13, 2018

This is addressed by Mickey's commit 19295e5

@mhira1 mhira1 closed this as completed Mar 13, 2018
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

No branches or pull requests

2 participants