Skip to content

Space and four-tuple state are in the wrong location #591

Description

@flub

In #588 we clearly describe the relation between PacketNumberSpace and PathData. This also surfaces that we have been putting data in the wrong structs:

  • PathData::off_path_challenges_unconfirmed
  • PathData::status
  • PathData::open_status
  • PathData::draining
  • PacketNumberSpace::ecn_counters
  • PacketNumberSpace::ecn_feedback

And also a lot of related things like PathStatus in paths.rs file are in the wrong place. The connection::paths module is awkward since it talks about network paths, not multipath paths.

In general I think using the following two terms might be desirable:

  • path for a multipath path identified by a PathId. If possible try and prefer space as that can be less ambiguous. Space is short for packet number space and includes the Initial and Handshake spaces which is fine in many contexts.
  • 4-tuple for a network path.

It might even be desirable to aim for changing the entire module structure, e.g.: move PathData into
connections::space::four_tuple::FourTupleData. But more or better ideas here are welcome.

This issue should almost certainly be split up into sub-issues.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    • Status
      👍 Ready

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions