-
Notifications
You must be signed in to change notification settings - Fork 176
tools/wireshark: add support for scion tcp #4780
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
base: master
Are you sure you want to change the base?
Conversation
|
Should we take this to mean that, next, you intend to actually implement TCP on-top of SCION? That'd be really cool! |
|
Sadly, no, I don't have the knowledge for it. Maybe I misunderstood what TCP over Scion was. In my understanding, it was about transmitting original TCP/IP packets encapsulated in SCION UDP packets. This PR is only about decapsulating those TCP packets in Wireshark, to see the content of them. (Decapsulating SCION packets with NextHdr == 6) |
|
I've just read some of the dispatcher code. Is it even possible to use TCP payload in SCION UDP packets? Reading the doc I thought so, but reading the code I'm now unsure... Is it designed but not implemented? |
That is totally fine. However, there will be no packets worth discecting with it. There isn't a single application or library that I know of that sends TCP over SCION traffic. |
|
I can't tell why for confidentiality reasons, but I'm working on something that also uses TCP over SCION, that's why I was interested in this and developing this script. But I see now that the current implementation doesn't handle it 😅 |
I don't remember seeing anything in the dispatcher code regarding TCP. Where, in the documentation, is it hinted that there might be such a thing? There isn't any current plan to implement TCP/SCION. |
|
Yep, I was thinking about TCP over SCION over UDP over IP. But currently (or it's possible that I'm in the dark about something.), the Wireshark script was only able to decrypt UDP over SCION over UDP over IP. And it looks like from the dispatcher that TCP over SCION over UDP over IP is not supported. |
The Assigned SCION Protocol Numbers features a protocol number for TCP over SCION, which is the one I used in the Wireshark script. Thus, I thought it was working. I just found out in this design document about removing the dispatcher the following paragraph, which might confirm that there is no TCP over SCION support for now:
|
|
The dispatcherless SCION stack has minimal support for TCP over SCION, see #4703 . It's enough to make SCION-IP Translation work. It would be nice to have support for TCP over SCION over UDP in the Wireguard plugin. |
|
True, if the so-called TCP traffic comes from a native TCP/IP stack and is delivered to a native TCP/IP stack; being only tunneled through SCION; then there is in some way TCP traffic over SCION. Note that encapsulating the TCP packets directly as SCION payload is an arbitrary choice of whatever pair of tunnel ends is being used. Only the IP translator would do that, because it can be a one-ended tunnel (in the case of UDP - currently). |
Note: First time contributing to a big open-source project! I've read the contribution guide, but I'm open to suggestions/remarks/edits/criticisms and so on!
Hello!
This PR serves personal work. I was investigating SCION packets and realized that no support was offered for decrypting TCP over SCION packets.
This PR implements it.
Please also note that the base script is the one from NetSec ETHZ and thus that this PR includes work that is not mine, but it looks like that this was the most developed version of it and is the one featured in SCION's doc.
Before:

After:

Thanks for your time!