Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

my first real attemp at QOS

Status
Not open for further replies.

imbadatthis

Technical User
Aug 16, 2009
404
0
0
CA
Network setup :

PC / voip phone / wireless router --> C3550 -->(fa0/1-vlans) 2621xm -->(fa0/0) internet

the vonage box responsible for voip takes around 25kB (i have a fxs on order.... but for now thats the bandwidth i need) .
the wirless users are just http services, and dont really use alot of bandwidth.

I wanted my PC to be able to download / upload as much as it can, unless there is a voice call which in that case voice should get the priority bandwidth. Same with if a wireless user need bandwidth they would get priority over my PC.

PC wise, I wanted to cut the traffic to two classes:
1) HTTP / HTTPs
2) torrent traffic
where option 1 has higher priority over option 2.

I tackled the task using priority command for the voice class. And figured if i assigned precedent values to PC traffic (3 and 4 ) I could then use random detect to drop the torrent traffic.

This was my first attempt at QoS and I believed I have boshed it badly .

as always I appreciate your input and assistance.
a quick note to ISPKing - if you are going to be rude kindly keep in mind that i didn't actually ask you to click this link,

Below are the configs:



class maps:
class-map match-all WIRELESS
match dscp cs1
class-map match-all DATA-prec-fa0/1-http
match protocol http
class-map match-all DATA-prec-fa0/1-torr
match protocol fasttrack
class-map match-all DATA
match access-group 2
class-map match-all DATA-prec-fa0/1
match dscp af11

policy-maps:
policy-map masterv4
class voice
priority 200 160000
class WIRELESS
priority 100 160000
class DATA
bandwidth remaining percent 75
random-detect
random-detect precedence 3 80 200 150
random-detect precedence 4 30 80 40
policy-map DATA-prec-fa0/1v2
class DATA-prec-fa0/1-http
set precedence 4
class DATA
set precedence 3
policy-map DATA-prec-fa0/0-in-v3
class DATA-prec-fa0/1-http
set precedence 4
class DATA-prec-fa0/1-torr
set precedence 3

interfaces:
interface FastEthernet0/0
description $FW_OUTSIDE$
bandwidth 400
ip address dhcp hostname ISEEDEADPACKETS
ip access-group 101 in
no ip proxy-arp
ip accounting precedence input
ip nbar protocol-discovery
ip nat outside
ip nat enable
ip ips sdm_ips_rule in
ip ips sdm_ips_rule out
ip virtual-reassembly
duplex auto
speed auto
no keepalive
service-policy input DATA-prec-fa0/0-in-v3
service-policy output masterv4
!
!
interface FastEthernet0/1.3
description $FW_DMZ$
encapsulation dot1Q 3
ip address 10.100.100.1 255.255.255.252
ip accounting precedence input
ip accounting precedence output
ip nbar protocol-discovery
ip nat inside
ip nat enable
ip ips sdm_ips_rule in
ip virtual-reassembly
service-policy input DATA-prec-fa0/0-in-v3
service-policy output DATA-prec-fa0/0-in-v3
==============================
access-list 2 permit 10.100.100.2
==============================
show policy-map fa0/0
Elgrey-Hot#sh policy-map interface fa0/0
FastEthernet0/0

Service-policy input: DATA-prec-fa0/0-in-v3

Class-map: DATA-prec-fa0/1-http (match-all)
118474 packets, 154810200 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: protocol http
QoS Set
precedence 4
Packets marked 118474

Class-map: DATA-prec-fa0/1-torr (match-all)
3932424 packets, 1520401920 bytes
5 minute offered rate 6000 bps, drop rate 0 bps
Match: protocol fasttrack
QoS Set
precedence 3
Packets marked 3932424

Class-map: class-default (match-any)
1776823 packets, 477157475 bytes
5 minute offered rate 2000 bps, drop rate 0 bps
Match: any

Service-policy output: masterv4

Class-map: voice (match-all)
31428 packets, 9031916 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: dscp ef (46)
Queueing
Strict Priority
Output Queue: Conversation 136
Bandwidth 200 (kbps) Burst 160000 (Bytes)
(pkts matched/bytes matched) 4540/3286996
(total drops/bytes drops) 0/0

Class-map: WIRELESS (match-all)
58860 packets, 12733119 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: dscp cs1 (8)
Queueing
Strict Priority
Output Queue: Conversation 136
Bandwidth 100 (kbps) Burst 160000 (Bytes)
(pkts matched/bytes matched) 14607/2270046
(total drops/bytes drops) 23/30786

Class-map: DATA (match-all)
12101 packets, 13302957 bytes
5 minute offered rate 0 bps, drop rate 0 bps
Match: access-group 2
Queueing
Output Queue: Conversation 137
Bandwidth remaining 75 (%)
(pkts matched/bytes matched) 1679/2083571
(depth/total drops/no-buffer drops) 0/0/0
exponential weight: 9
mean queue depth: 0

class Transmitted Random drop Tail drop Minimum Maximum Mark
pkts/bytes pkts/bytes pkts/bytes thresh thresh prob
0 0/0 0/0 0/0 20 40 1/10
1 12101/13302957 0/0 0/0 22 40 1/10
2 0/0 0/0 0/0 24 40 1/10
3 0/0 0/0 0/0 80 200 1/150
4 0/0 0/0 0/0 30 80 1/40
5 0/0 0/0 0/0 30 40 1/10
6 0/0 0/0 0/0 32 40 1/10
7 0/0 0/0 0/0 34 40 1/10
rsvp 0/0 0/0 0/0 36 40 1/10


Class-map: class-default (match-any)
7013301 packets, 4277801946 bytes
5 minute offered rate 182000 bps, drop rate 0 bps
Match: any
=============================================
I see that the packets are being marked.
but what I dont see under the sh policy-map interface command is anything under the 3 and 4 columns...




We must go always forward, not backward
always up, not down and always twirling twirling towards infinity.
 
Hello
Your'e setting the precedence 3 and 4 for (Inbound) download traffic from the Internet.But the (outbound) upload traffic to the Internet isn't being mark with precedence 3 a 4.
Why are you putting the wireless packets in a priority queue.Note that they will fight with the voice packets because 2 priority queue's use the FIFO logic.
No offense,but it would be better the post more accurate conf's,this will make troubleshooting easier for use.The class for the voice is missing,the access-list isn't the correct output.There's an un-used policy-map in the conf:

policy-map DATA-prec-fa0/1v2
class DATA-prec-fa0/1-http
set precedence 4
class DATA


Regards

 
no offence taken, your trying to help :D

so the service-policy applied to fa0/1.3 where my PC packets enter the router is not enough to mark them as prec 3 and 4 ?
interface FastEthernet0/1.3
description $FW_DMZ$
encapsulation dot1Q 3
ip address 10.100.100.1 255.255.255.252
ip accounting precedence input
ip accounting precedence output
ip nbar protocol-discovery
ip nat inside
ip nat enable
ip ips sdm_ips_rule in
ip virtual-reassembly
service-policy input DATA-prec-fa0/0-in-v3
service-policy output DATA-prec-fa0/0-in-v3

the ACL is for matching DATA packets i believe coming from 10.100.100.2 (my pc - as you can see from fa0/1.3 config, its on a point to point link with its gateway).


as for the voice-class, ooops forgot,
its matching dscp ef:

class-map match-all voice
match dscp ef

im setting the packets coming directly from the vonage box on the 3550 to dscp ef.


thanks for taking the time going through my horrible config,

cheers,



We must go always forward, not backward
always up, not down and always twirling twirling towards infinity.
 
Hello
To explain myself better.The policy-map on Fa0/0 "service-policy output masterv4" is not seeing precedence 4&5,because the policy doesn't have a match for those TOS.

Regards
 
k can you help me with that part please then i have :
policy-maps:
policy-map masterv4
class voice
priority 200 160000
class WIRELESS
priority 100 160000
class DATA
bandwidth remaining percent 75
random-detect
random-detect precedence 3 80 200 150
random-detect precedence 4 30 80 40

How should i be defining this ?


We must go always forward, not backward
always up, not down and always twirling twirling towards infinity.
 
Hello
This may not be the best way being your network design isn't clear to me.But you could kill the "match access-group 2" and replace it with (please pay attention to the match-any):

class-map match-any DATA
match ip precedence 3
match ip precedence 4

The "match access-group 2"seems redundant being that your computer is already generating the Fasttrack and HTTP traffic.If there's a specific reason why your'e classifiying your computer's traffic separtely let me know, and we can find a work around.

Regards
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top