04-27-2013 04:42 AM - edited 03-07-2019 01:04 PM
hi ,
i want to ask , how to match youtube in my qos
i want to give youtube the best priority in the rush hour .
currently im using an acl that match the ips of youtube but i think its not sufficeitt :
plz help me how to match the youtube traffic in my qos .
regards
04-27-2013 05:03 AM
You can also use NBAR. See below an example that drops You Tube traffic but you can modify it to suit your needs
http://blog.ine.com/2008/05/08/using-nbar-for-application-filtering/
Don't forget to rate helpful posts
04-27-2013 06:40 AM
hi ,
i did it , but it seem not matching youtube well !!!!
i mean it just making 6 M it its matching ???!!!
when i was matching youtube ips by acl
====================================================
7200Gateway#sh ip access-lists youtube
Extended IP access list youtube
10 permit ip 173.194.0.0 0.0.255.255 any (510768283 matches)
20 permit ip 213.57.0.0 0.0.255.255 any (1870712 matches)
30 permit ip 208.117.0.0 0.0.255.255 any (322458 matches)
7200Gateway#
======================================================================
i was mtaching about 50 M !!!
are you sure that matching youtube with the method above is well ???
regards
04-27-2013 06:41 AM
here is result of policymap of youtube :
Class-map: YOUTUBE (match-all)
24390 packets, 21832290 bytes
30 second offered rate 494000 bps, drop rate 0 bps
Match: protocol http host "*youtube.com*"
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 24390/21832290
bandwidth 40% (226000 kbps)
as u see . its only making traffic 494000 bps
04-28-2013 12:23 PM
Can you post the policy-map configuration
show run policy-map
show policy-map interface
04-29-2013 04:34 AM
7200Gateway#sh run
7200Gateway#sh running-config polic
7200Gateway#sh running-config policy-map
Building configuration...
Current configuration : 187 bytes
!
policy-map qos
class WEB_SENSTIVE
bandwidth percent 40
class MANAGMENT
bandwidth percent 1
class ICMP
bandwidth percent 1
class youtube
bandwidth percent 40
!
end
7200Gateway#sh ru
7200Gateway#sh run
7200Gateway#sh running-config class
7200Gateway#sh running-config class-map
Building configuration...
Current configuration : 869 bytes
!
class-map match-any WEB_SENSTIVE
match protocol http mime "text*"
match protocol http mime "image*"
match protocol http mime "application/x-javascript"
match protocol http mime "application/javascript"
match protocol http mime "application/xml"
class-map match-all ICMP
match protocol icmp
class-map match-all P2P
match protocol bittorrent
match protocol kazaa2
match protocol fasttrack
match protocol gnutella
match protocol edonkey
class-map match-all YOUTUBE
match protocol http host "*youtube.com*"
class-map match-any VIDEO
match protocol http mime "video*"
class-map match-any MANAGMENT
match protocol snmp
match protocol telnet
match protocol ssh
match protocol ospf
match protocol bgp
match protocol dns
class-map match-all rate-limit
match access-group name rate-limit
class-map match-all youtube
match access-group name youtube
!
end
7200Gateway#sh ru
7200Gateway#sh run
7200Gateway#sh running-config inte
7200Gateway#sh running-config interface gi
7200Gateway#sh running-config interface gigabitEthernet 0/1
Building configuration...
Current configuration : 254 bytes
!
interface GigabitEthernet0/1
description 7200to7600
bandwidth 565000
ip address 172.30.40.1 255.255.255.252
ip policy route-map wifi
load-interval 30
duplex auto
speed auto
media-type rj45
negotiation auto
service-policy output qos
end
7200Gateway#sh inte
7200Gateway#sh polic
7200Gateway#sh policy-map
7200Gateway#sh policy-map inte
7200Gateway#sh policy-map interface gi
7200Gateway#sh policy-map interface gigabitEthernet 0/1
GigabitEthernet0/1
Service-policy output: qos
Class-map: WEB_SENSTIVE (match-any)
1034050655 packets, 1290166313347 bytes
30 second offered rate 42882000 bps, drop rate 0 bps
Match: protocol http mime "text*"
434337833 packets, 526795551439 bytes
30 second rate 16005000 bps
Match: protocol http mime "image*"
487843265 packets, 657555432299 bytes
30 second rate 24318000 bps
Match: protocol http mime "application/x-javascript"
97808914 packets, 89045636266 bytes
30 second rate 2274000 bps
Match: protocol http mime "application/javascript"
9260405 packets, 11271431451 bytes
30 second rate 230000 bps
Match: protocol http mime "application/xml"
4800219 packets, 5498229703 bytes
30 second rate 56000 bps
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 1034047133/1290162991316
bandwidth 40% (226000 kbps)
Class-map: MANAGMENT (match-any)
114047893 packets, 66106032313 bytes
30 second offered rate 2192000 bps, drop rate 0 bps
Match: protocol snmp
1585132 packets, 189757975 bytes
30 second rate 0 bps
Match: protocol telnet
547019 packets, 35825290 bytes
30 second rate 1000 bps
Match: protocol ssh
6291717 packets, 2205784134 bytes
30 second rate 2000 bps
Match: protocol ospf
0 packets, 0 bytes
30 second rate 0 bps
Match: protocol bgp
30831432 packets, 36433800376 bytes
30 second rate 160000 bps
Match: protocol dns
74792606 packets, 27240866049 bytes
30 second rate 2027000 bps
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 114047606/66107332663
bandwidth 1% (5650 kbps)
Class-map: ICMP (match-all)
17124268 packets, 1984388770 bytes
30 second offered rate 43000 bps, drop rate 0 bps
Match: protocol icmp
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 17124207/2002731951
bandwidth 1% (5650 kbps)
Class-map: youtube (match-all)
718916152 packets, 910698455973 bytes
30 second offered rate 45551000 bps, drop rate 0 bps
Match: access-group name youtube
Queueing
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/0/0
(pkts output/bytes output) 718899085/910676798888
bandwidth 40% (226000 kbps)
Class-map: class-default (match-any)
9822541993 packets, 9659048180351 bytes
30 second offered rate 286234000 bps, drop rate 0 bps
Match: any
queue limit 64 packets
(queue depth/total drops/no-buffer drops) 0/582/0
(pkts output/bytes output) 1232552555/9676221895109
7200Gateway#sh ip access-lists rate-limit
Extended IP access list rate-limit
10 permit ip any x.x.x.0 0.0.0.31 (47190755 matches)
7200Gateway#
here is the ACL that im depending on it in youtube traffic :
7200Gateway#sh ip access-list youtube
Extended IP access list youtube
10 permit ip 173.194.0.0 0.0.255.255 any (930225663 matches)
20 permit ip 213.57.0.0 0.0.255.255 any (121616245 matches)
30 permit ip 208.117.0.0 0.0.255.255 any (180748436 matches)
7200Gateway#
====================================================
but its only matching abiut 45 M yoyutube and im givving to youtube aout 220 M !!!!
can you help me in correcting youtube traffic ???
another question
the same issue form http browsing , i may be forgetting something about http macthing its only matching small valuse in http traffic !!!!??
note that the default class is the being the largest bw consuming which is an indication that policymap matching is not working well.
Class-map: class-default (match-any)
9822541993 packets, 9659048180351 bytes
30 second offered rate 286234000 bps, drop rate 0 bps
Match: any
wish to help
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