Re: curl DSCP option?

Ronan Pigott via curl-users <[email protected]>
Newsgroups gmane.comp.web.curl.general
Message-ID <[email protected]>
> I don't know much about DSCP, but from what I understand it you are
> (almost?)
> 
> asking for this:
> 
>  https://github.com/curl/curl/pull/13606

Wow, what lucky timing. This looks like just what I had in mind.

DSCP is just the top 6 bits of what used to be the IP type-of-service field in
the IP header. Now the bottom two bits are used for ECN and the top 6 for
differentiated service.

In my case, I am interested because the cake qdisc "diffserv" configuration
uses this field to help select a traffic category for various flows, and cake
is the qdisc of choice for implementing QoS/SQM in OpenWRT and other home
routers. With very constrained upload bandwidth, the ability to mark some
transfers as "background" traffic with the LE (Lower Effort) codepoint is
useful to help maintain low latency on the link under load, and I expect that
is mostly how it will be used in curl.

Linux or custom netfilter may also use this field to set the internal sk
priority, which in turn is used by drivers to determine, e.g. 802.1p VLAN
priority, or 802.11e User Priority / Access Category if it traverses a Wi-Fi
network. I have observed some odd issues apparently related to 802.11e with my
laptop wi-fi card, and this could be useful to produce affected traffic on
demand for debugging purposes, similar to ping -Q.

Cheers,
Ronan
-- 
Unsubscribe: https://lists.haxx.se/mailman/listinfo/curl-users
Etiquette:   https://curl.se/mail/etiquette.html
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.