Community discussions

MikroTik App
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

how to mark SSL with DSCP?

Fri May 27, 2011 8:20 am

Hi
what is the DSCP marking for SSL (https)
i want to prioritise sites like gmail .. https://www.mail.google.com
 
hellweiss
newbie
Posts: 35
Joined: Thu Sep 02, 2010 10:36 am

Re: how to mark SSL with DSCP?

Fri May 27, 2011 10:42 am

Hi,

correct me, if i'm wrong, but DSCP is the wrong way, because you don't have any influence on
the internet Routers and they will definitely not 'look' at your DSCP Value. What you need to go
for is priority Queues.

http://wiki.mikrotik.com/wiki/Manual:Qu ... Q_Examples

regards
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: how to mark SSL with DSCP?

Fri May 27, 2011 11:33 am

Hi,

correct me, if i'm wrong, but DSCP is the wrong way, because you don't have any influence on
the internet Routers and they will definitely not 'look' at your DSCP Value. What you need to go
for is priority Queues.

http://wiki.mikrotik.com/wiki/Manual:Qu ... Q_Examples

regards
hi thanks for the reply.
but i am using DSCP and it is recognising different sorts of traffic, but, not ssl.
i followed this tut:
http://wiki.mikrotik.com/wiki/DSCP_based_QoS_with_HTB
 
hellweiss
newbie
Posts: 35
Joined: Thu Sep 02, 2010 10:36 am

Re: how to mark SSL with DSCP?

Fri May 27, 2011 11:48 am

Hi,

correct me, if i'm wrong, but DSCP is the wrong way, because you don't have any influence on
the internet Routers and they will definitely not 'look' at your DSCP Value. What you need to go
for is priority Queues.

http://wiki.mikrotik.com/wiki/Manual:Qu ... Q_Examples

regards
hi thanks for the reply.
but i am using DSCP and it is recognising different sorts of traffic, but, not ssl.
i followed this tut:
http://wiki.mikrotik.com/wiki/DSCP_based_QoS_with_HTB
Looks like in the example above the router 'looks' at the DSCP Value and sort the Traffic into the appropriate queues. So you need do set a DSCP Value to your SSL Traffic, that it gets
sorted into the right queue.
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: how to mark SSL with DSCP?

Fri May 27, 2011 1:01 pm

Hi,

correct me, if i'm wrong, but DSCP is the wrong way, because you don't have any influence on
the internet Routers and they will definitely not 'look' at your DSCP Value. What you need to go
for is priority Queues.

http://wiki.mikrotik.com/wiki/Manual:Qu ... Q_Examples

regards
hi thanks for the reply.
but i am using DSCP and it is recognising different sorts of traffic, but, not ssl.
i followed this tut:
http://wiki.mikrotik.com/wiki/DSCP_based_QoS_with_HTB
Looks like in the example above the router 'looks' at the DSCP Value and sort the Traffic into the appropriate queues. So you need do set a DSCP Value to your SSL Traffic, that it gets
sorted into the right queue.
yeah, how do i do it?
 
hellweiss
newbie
Posts: 35
Joined: Thu Sep 02, 2010 10:36 am

Re: how to mark SSL with DSCP?

Fri May 27, 2011 2:01 pm

can you try to mangle dscp value in the pre-routing chain ?!?
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: how to mark SSL with DSCP?

Fri May 27, 2011 6:50 pm

can you try to mangle dscp value in the pre-routing chain ?!?
i tried this, [below] but it did not work.
add action=mark-packet chain=forward comment="" disabled=no dst-port=443 \
    new-packet-mark=ssl passthrough=yes protocol=tcp
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=queue1 packet-mark=ssl parent=ether2 priority=1 \
    queue=default
 
hellweiss
newbie
Posts: 35
Joined: Thu Sep 02, 2010 10:36 am

Re: how to mark SSL with DSCP?

Fri May 27, 2011 7:08 pm

A mangle rule with dest port 443, new dscp value 42 and chain
prerouting should do it. Dont know if it works in the forward chain
if the rule is somewhere at the top.
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: how to mark SSL with DSCP?

Sat May 28, 2011 10:56 pm

i tried this:
/ip firewall mangle
add action=mark-packet chain=forward comment=dscp_42 disabled=no dst-port=443 \
    new-packet-mark=ssl passthrough=no protocol=tcp
then it picks up the SSL connections (i can see the stats moving whenever i access a ssl site)
BUT, the queue doesnt catch it. i did the queue in the following way:
add burst-limit=0 burst-threshold=0 burst-time=0s disabled=no limit-at=0 \
    max-limit=0 name=queue1 packet-mark=ssl parent=global-in priority=1 \
    queue=defaul
i tried switching passthrough on but still never work
 
marklodge
Member Candidate
Member Candidate
Topic Author
Posts: 250
Joined: Sun Jun 21, 2009 6:15 pm

Re: how to mark SSL with DSCP?

Sat May 28, 2011 10:59 pm

btw, how about doing this?:
add action=set-priority chain=forward comment=dscp_42 disabled=no dst-port=\
    443 new-priority=1 passthrough=yes protocol=tcp
shouldnt that set the ssl to high priority?
 
User avatar
Chupaka
Forum Guru
Forum Guru
Posts: 8709
Joined: Mon Jun 19, 2006 11:15 pm
Location: Minsk, Belarus
Contact:

Re: how to mark SSL with DSCP?

Mon May 30, 2011 11:20 am

that 'priority' is either 802.1p field, or something about wifi and WMM - it's one more field for packet, it does not affect packet processing directly (well, in case of WMM it does :) )
 
hellweiss
newbie
Posts: 35
Joined: Thu Sep 02, 2010 10:36 am

Re: how to mark SSL with DSCP?

Mon May 30, 2011 12:00 pm

i would try this:

/ip firewall mangle
add action=change-dscp chain=prerouting disabled=no dst-port=443 new-dscp=42 \
protocol=tcp

Who is online

Users browsing this forum: BoraHorza, own3r1138, patrikg and 101 guests