11-28-2020 11:30 PM
Dear Community,
i need little help with qos settings,
class-map match-any VIDEO
match dscp cs4
match dscp af41
class-map match-any DATA
match protocol tcp
policy-map QOS_OUT
class DATA
priority percent 50
class VIDEO
priority percent 25
class class-default
fair-queue
random-detect
int fa0/0
service-policy QOS_OUT out
are these settings correct?
data qos should be internet surfing and so on, but somehow it not works,
please advice
thanks
11-29-2020 01:32 AM
I would suggest reserving only for video or voice since that is sensitive application rest use automatically for data.
So simplify config as below to work as expected. ( in your example used only 50 and 25, what about rest ?)
So lets start with basic and add more option as it working.
class-map match-any VIDEO
match dscp cs4
match dscp af41
policy-map QOS_OUT
class VIDEO
priority percent 25
class class-default
fair-queue
random-detect
interface FastEthernet0/0
service-policy QOS_OUT out
test and advise, if not working post complete config
along with below output :
show policy-map interface FastEthernet 0/0
11-29-2020 02:28 AM
Hi Sir,
how to delete the existing class maps
if i type no
it shows class-map being used
thanks for help
11-29-2020 03:23 AM
hello sir
here is the output
C1111#show policy-map interface Gi0/0/0
GigabitEthernet0/0/0
Service-policy output: QOS_OUT
queue stats for all priority classes:
Queueing
queue limit 512 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 0/0
Class-map: VIDEO (match-any)
0 packets, 0 bytes
5 minute offered rate 0000 bps, drop rate 0000 bps
Match: dscp cs4 (32)
Match: dscp af41 (34)
Priority: 25% (250000 kbps), burst bytes 6250000, b/w exceed drops: 0
Class-map: class-default (match-any)
2034694 packets, 2988370235 bytes
5 minute offered rate 52559000 bps, drop rate 0000 bps
Match: any
Queueing
queue limit 4166 packets
(queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0
(pkts output/bytes output) 2034673/2988361535
Fair-queue: per-flow queue limit 1041 packets
Exp-weight-constant: 9 (1/512)
Mean queue depth: 0 packets
class Transmitted Random drop Tail/Flow drop Minimum Maximum Mark
pkts/bytes pkts/bytes pkts/bytes thresh thresh prob
0 2034647/2988359711 0/0 0/0 1041 2083 1/10
1 10/540 0/0 0/0 1171 2083 1/10
2 1/54 0/0 0/0 1301 2083 1/10
3 0/0 0/0 0/0 1431 2083 1/10
4 0/0 0/0 0/0 1561 2083 1/10
5 0/0 0/0 0/0 1691 2083 1/10
6 15/1230 0/0 0/0 1821 2083 1/10
7 0/0 0/0 0/0 1951 2083 1/10
C1111#
C1111#show policy-map interface Gi0/0/0 GigabitEthernet0/0/0 Service-policy output: QOS_OUT queue stats for all priority classes: Queueing queue limit 512 packets (queue depth/total drops/no-buffer drops) 0/0/0 (pkts output/bytes output) 0/0 Class-map: VIDEO (match-any) 0 packets, 0 bytes 5 minute offered rate 0000 bps, drop rate 0000 bps Match: dscp cs4 (32) Match: dscp af41 (34) Priority: 25% (250000 kbps), burst bytes 6250000, b/w exceed drops: 0 Class-map: class-default (match-any) 2034694 packets, 2988370235 bytes 5 minute offered rate 52559000 bps, drop rate 0000 bps Match: any Queueing queue limit 4166 packets (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0 (pkts output/bytes output) 2034673/2988361535 Fair-queue: per-flow queue limit 1041 packets Exp-weight-constant: 9 (1/512) Mean queue depth: 0 packets class Transmitted Random drop Tail/Flow drop Minimum Maximum Mark pkts/bytes pkts/bytes pkts/bytes thresh thresh prob 0 2034647/2988359711 0/0 0/0 1041 2083 1/10 1 10/540 0/0 0/0 1171 2083 1/10 2 1/54 0/0 0/0 1301 2083 1/10 3 0/0 0/0 0/0 1431 2083 1/10 4 0/0 0/0 0/0 1561 2083 1/10 5 0/0 0/0 0/0 1691 2083 1/10 6 15/1230 0/0 0/0 1821 2083 1/10 7 0/0 0/0 0/0 1951 2083 1/10 C1111#
11-29-2020 03:05 AM
you need to follow below steps :
1. Remove the policy-map from the interface with the interface command no service-policy in|out
2. remove class map from Policy map
3. then make a change and re-apply.
11-29-2020 03:23 AM - edited 11-29-2020 03:24 AM
Hello
Can you elaborate the match on TCP as I think that isn't a valid classification and do you really require LLQ for that class?
Also suggest you apply some rate limiting on the wan interface so as not to exceed your committed access rate you have with your ISP and possibility adjust the rate limit that you apply to account for L2 overhead on the qos policy
class-map match-any DATA
match protocl tcp <---??
policy-map QOS_OUT
class VIDEO
priority percent 25
class DATA
priority percent 50 <-- or bandwidth remaining percent 50 ?
class class-default
fair-queuerandom-detect
policy-map QOS_OUT_parent
class class-default
shape average xx (minus 5-10% for l2 overhead)
service-policy QOS_OUT
11-29-2020 03:30 AM
C1111#show policy-map interface Gi0/0/0 GigabitEthernet0/0/0 Service-policy output: QOS_OUT queue stats for all priority classes: Queueing queue limit 512 packets (queue depth/total drops/no-buffer drops) 0/0/0 (pkts output/bytes output) 0/0 Class-map: VIDEO (match-any) 0 packets, 0 bytes 5 minute offered rate 0000 bps, drop rate 0000 bps Match: dscp cs4 (32) Match: dscp af41 (34) Priority: 25% (250000 kbps), burst bytes 6250000, b/w exceed drops: 0 Class-map: class-default (match-any) 2034694 packets, 2988370235 bytes 5 minute offered rate 52559000 bps, drop rate 0000 bps Match: any Queueing queue limit 4166 packets (queue depth/total drops/no-buffer drops/flowdrops) 0/0/0/0 (pkts output/bytes output) 2034673/2988361535 Fair-queue: per-flow queue limit 1041 packets Exp-weight-constant: 9 (1/512) Mean queue depth: 0 packets class Transmitted Random drop Tail/Flow drop Minimum Maximum Mark pkts/bytes pkts/bytes pkts/bytes thresh thresh prob 0 2034647/2988359711 0/0 0/0 1041 2083 1/10 1 10/540 0/0 0/0 1171 2083 1/10 2 1/54 0/0 0/0 1301 2083 1/10 3 0/0 0/0 0/0 1431 2083 1/10 4 0/0 0/0 0/0 1561 2083 1/10 5 0/0 0/0 0/0 1691 2083 1/10 6 15/1230 0/0 0/0 1821 2083 1/10 7 0/0 0/0 0/0 1951 2083 1/10 C1111#
11-29-2020 04:00 AM
i do see the matching in default - do you have any VOICE or Video device to test?
11-29-2020 04:10 AM
Hello Sir,
no have voip phones.
video i can only iptv. Does that work?
my main goal is, that web application work smooth, all the users have fair policy.
so no packages get lost.
low latency que or whatever is called.
thanks for help sir
11-29-2020 12:50 PM - edited 11-29-2020 12:50 PM
"are these settings correct? "
Answer depends on your QoS requirements. That said, your policy it (ahem) unusual.
From what you posted in a later post, re-guarding QoS goals, something like this might be more suitable.
class-map match-any VIDEO
match dscp cs4
match dscp af41
policy-map QOS_OUT
class VIDEO
bandwidth percent 25
class class-default
bandwidth percent 75
fair-queue
int fa0/0
service-policy QOS_OUT out
If you video is "streaming" (you noted IPTV), you'll want to guarantee it a little more than its "average" video bandwidth requirement. If you see drops, try increasing its bandwidth allocation in very small increments and/or increase the queue depth in that class.
BTW - I removed WRED as I highly recommend against using it unless you're an QoS expert.
FQ in class-default may handle most of your QoS needs. I.e. you shouldn't need another class.
BTW, you can remove class maps w/o removing the whole policy. The "trick" is you must remove it first from the policy.
e.g.:
conf t
policy-map QOS_OUT
no class DATA
exit
no
class-map match-any DATA
end
I.e. you can also "edit" changes in the policy map and/or class maps.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide