Skip to content

See if DSCP is working #3915

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

Open
darkman1983 opened this issue Apr 15, 2025 · 2 comments
Open

See if DSCP is working #3915

darkman1983 opened this issue Apr 15, 2025 · 2 comments

Comments

@darkman1983
Copy link

darkman1983 commented Apr 15, 2025

I've wondered if DSCP is actually working.
So i've used tcpdump to see, but that wasn't enough in my eyes, i needed a sneaky minimal GUI to see :-D

Setup:
SQM enabled in OMR for VPN + WAN -> DSCP FLAG's should be set. Is it required for VPN? Dunno :-P

So, DSCP is sent through VPN, which ones and do they arrive on VPS? Do they go out? Let's see...
OMR:
Image

VPS (Interface with public IP):
Image

I've also tested with WAN of OMR, but on that Interface (SQM enabled, DSCP should be set) only CS0 (Best Effort) goes out. Reading through internet revelad ISP is overriding or removing DSCP anyways.
But as DSCP is for specific ports most time and OMR sends portforwardings through VPN anyways, you can test.
The ISP is still a thing, because VPN traffic can't be prioritized.

As you can see, DSCP works, but there is a difference of what get's IN/OUT on OMR and VPS.

The Script (pure bash)

Requirement: tcpdump
Parameters: tun0 default or give interface name on script start
Setup: Install tcpdump if not installed. Save with desired name, eg. tos_counter.sh, chmod with eg. "ug+x", execute with eg. "./tos_counter".

NoPaste of Script

So, whats the conclusion of this?
Is DSCP worth using it?

Actually i don't know exactly, because of that difference of OMR / VPS on DSCP TOS flags...
Is there anything to be configured on VPS regarding DSCP? Only DEV of OMR can tell :-)

@darkman1983
Copy link
Author

Script updated

@Ysurac
Copy link
Owner

Ysurac commented Apr 24, 2025

DSCP give strange results on OMR, not exactly sure why.
VPS should always be higher than OMR as you are testing only tun0 on OMR, so only the VPN (it's not exactly the case, maybe some loss...). It's also possible that VPS output remove most of the DSCP tags.

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

2 participants