nginx + DSCP (Differentied services)

Dani Bento dani at telecom.pt
Wed Dec 17 11:27:29 UTC 2014


Hello,

In attachment is our patch to the nginx core. You can take a look.

We found that your module isn't IPv6 compatible too, but it may be
simple to implement that.

Thanks.

On Tue, 16 Dec 2014 18:48:28 +0000
Maxim Dounin <mdounin at mdounin.ru> wrote:

> Hello!
> 
> On Tue, Dec 16, 2014 at 05:24:42PM +0000, Dani Bento wrote:
> 
> > Thanks for the reply.
> > 
> > We looked at your module and found it interesting that you
> > avoided to change the core.
> > 
> > Our code marks each buffer flush individually. We can control the
> > ToS for each request even when using keep-alive (using the
> > X-Accel-ClassID header). After the response has been sent the ToS
> > is reset back to the default (location configuration).
> > 
> > In your module you mark only at the beginning of the response (at
> > the header filter stage). Don't you have problems with different
> > requests using the same connection?
> 
> If you want ToS to be reset, you can use "ip_tos 0x00;" by 
> default, see example here:
> 
> http://mdounin.ru/hg/ngx_http_ip_tos_filter_module/file/tip/README
> 
> > You can only have one ToS mark for
> > each location if you relying on a static configuration. Can it be
> > set by variable "tos $class_id" ?
> 
> Not now, but this can be added if needed - like it was recently 
> added to the "expires" directive, see 
> http://hg.nginx.org/nginx/rev/4983f7d18fe3.
> 



-- 
Dani Bento
Direção de Internet e Tecnologia
DTS/DVS
tlm: +351 91 429 72 81
dani at telecom.pt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ngx-traffic-xaccel-classid-1.6.2.patch
Type: text/x-patch
Size: 26222 bytes
Desc: ngx-traffic-xaccel-classid-1.6.2.patch
URL: <http://mailman.nginx.org/pipermail/nginx-devel/attachments/20141217/ca3a3f9b/attachment-0001.bin>


More information about the nginx-devel mailing list