Skip to content

Conversation

@lukedirtwalker
Copy link
Collaborator

Currently the beacon diversity calculation was wrong. We only considered ingress interface in construction direction. However the first ASEntry will always have a zero ingress interface. Furthermore with this approach we did not really consider the last ingress interface, which was the ingress interface into the AS, which is not yet represented by an ASEntry (as the termination/extension only happens after selection).

By using the egress interfaces interfaces instead we solve both problems.

Currently the beacon diversity calculation was wrong. We only considered
ingress interface in construction direction. However the first ASEntry
will always have a zero ingress interface. Furthermore with this
approach we did not really consider the last ingress interface, which
was the ingress interface into the AS, which is not yet represented by
an ASEntry (as the termination/extension only happens after selection).

By using the egress interfaces interfaces instead we solve both
problems.
beacon []uint16
name string
beacon []uint16
// mBeacon allows to manually specify the other beacon.
Copy link
Contributor

@FR4NK-W FR4NK-W Dec 9, 2025

Choose a reason for hiding this comment

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

nit: Maybe also mention in the comment that beacon should not be set when setting mBeacon? Or simply mention that mBeacon overrides beacon?

lukedirtwalker added a commit to Anapaya/os-scion that referenced this pull request Dec 10, 2025
scionproto#4854

Currently the beacon diversity calculation was wrong. We only considered
ingress interface in construction direction. However the first ASEntry
will always have a zero ingress interface. Furthermore with this
approach we did not really consider the last ingress interface, which
was the ingress interface into the AS, which is not yet represented by
an ASEntry (as the termination/extension only happens after selection).

By using the egress interfaces interfaces instead we solve both
problems.
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.

5 participants