You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@trafficserver.apache.org by Jason Strongman <ja...@gmail.com> on 2014/09/04 06:34:35 UTC

Re: ATS QOS

As a follow up, I was able to set dscp using the below rewrite rule.

cond %{SEND_RESPONSE_HDR_HOOK}
cond %{CLIENT-HEADER:User-Agent} =foo
set-conn-dscp 184


corresponding pcaps displayed the expected.

Thanks!


On Fri, Aug 22, 2014 at 6:06 PM, Jason Strongman <
jasonstrongman2016@gmail.com> wrote:

>
> Thanks Jack! I created the below per your instruction.
>
>
>
> https://issues.apache.org/jira/browse/TS-3037
>
> Description
>
> Modify ATS to allow setting another socket option, SO_PRIORITY.
>
> This parameter should be set on new connections created by ATS. The
> parameter should also be set on responses back to clients.
>
> This parameter should also be set based on request or response conditions.
> So preferably allowing the parameter to be defined within the
> header_rewrite or lua plugins.
>
> This parameter should only impact layer 2 and should have no impacts on
> the layer 3 DSCP values.
>
>
>
> On Wed, Aug 20, 2014 at 2:09 PM, Jack Bates <du...@nottheoilrig.com>
> wrote:
>
>> On 13/08/14 08:31 AM, Jason Strongman wrote:
>>
>>> Do you know if ATS also allows for setting priority code point(PCP) as
>>> referenced in 'IEEE 802.1Q'
>>>
>>> I see PCP is controlled by SO_PRIORITY, but I dont see any reference to
>>> this option in the ATS code.
>>>
>>
>> Does the following plugin work for you?
>> http://nottheoilrig.com/trafficserver/201408200/priority.cc
>>
>> With it you should be able to set SO_PRIORITY based on the request
>> target. With a bit more work it could support additional criteria like the
>> user agent.
>>
>> Please open another issue in the issue tracker (
>> https://issues.apache.org/jira/browse/TS) if support for the priority
>> code point would make a useful addition to Traffic Server.
>> (Currently there's nothing related to it in Traffic Server.)
>>
>> To compile the plugin you should be able to use the tsxs command e.g.
>> $ tsxs -o priority.so priority.cc
>>
>> To configure it add lines like the following to remap.config:
>> map http://example.com http://example.com @plugin=priority.so @pparam=4
>> regex_map http://.*\.example.com http://$0 @plugin=priority.so @pparam=4
>>
>
>