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

Define the semantics of RX and TX for NETWORK vantage point #6

Closed
rmarx opened this issue Apr 5, 2019 · 1 comment
Closed

Define the semantics of RX and TX for NETWORK vantage point #6

rmarx opened this issue Apr 5, 2019 · 1 comment

Comments

@rmarx
Copy link
Contributor

rmarx commented Apr 5, 2019

For CLIENT and SERVER, the difference between RECEIVE (RX) and TRANSMIT (TX) is obvious. Not so for an in-network observer (or, e.g., a proxy server), where these terms make less sense...

Some options:

  • Type is NETWORK_CLIENT and NETWORK_SERVER (instead of NETWORK)
  • add separate "flow" field indicating if we use CLIENT or SERVER semantics (currently in the draft)
  • add separate metadata field indicating which 5-tuple is the conceptual "client" and which is the "server" and use RX/TX based on that
  • Don't fix this and let the tooling layer figure it out (if packet nr 6 is a client TX and a RX in the NETWORK trace, the network is from the viewpoint of the SERVER)

Broader discussion: does it make sense to log packets as PACKET_TX and _RX here? how about instead a PACKET event (similar to how wireshark does it). However: this doesn't make sense for (stateful) proxies that do act as both client+server when ~transforming the traffic (e.g., Facebook's load balancer).

@rmarx
Copy link
Contributor Author

rmarx commented Oct 14, 2019

Solved in draft-01 by using separate _sent and _received (or equivalent) events for clarity + using vantage_point and their "flow" field.

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

No branches or pull requests

1 participant