cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
657
Views
0
Helpful
4
Replies

Traffic priority and NBAR

Boris Krajnc
Level 1
Level 1

Hi guys.

Please se my output below. It is from my router Cisco 2851 with 120 users behind. As you can see I have a lot of bittorrent traffic. I don't wont to block this kind of traffic, I would just  like to see it on the last place. Can anybody help me how to clasify and give the lowest priority for bittorrent traffic? I would like to see RTP voip, RTP video, skype, http on first place....

 

 

 GigabitEthernet0/1.1340

 Last clearing of "show ip nbar protocol-discovery" counters 1w2d


                            Input                    Output
                            -----                    ------
   Protocol                 Packet Count             Packet Count
                            Byte Count               Byte Count
                            5min Bit Rate (bps)      5min Bit Rate (bps)
                            5min Max Bit Rate (bps)  5min Max Bit Rate (bps)
   ------------------------ ------------------------ ------------------------
   bittorrent               302920897                470540833
                            289939750051             250885302620
                            2709000                  2073000
                            10559000                 14623000
   secure-http              141000481                212446460
                            22328903881              275590940591
                            187000                   4085000
                            2479000                  11973000
   http                     102326084                161142496
                            19112767323              227491316133
                            272000                   8634000
                            1976000                  9516000
   skype                    200422234                102689111
                            133722263348             46204189439
                            2680000                  660000
                            5375000                  3895000
   edonkey                  8900504                  1451351
                            878779009                861789631
                            4000                     0
                            410000                   1745000
   dns                      28996011                 30130934
                            2506218937               5037708459
                            3000                     25000
                            1489000                  264000
   h323                     1530324                  1460240
                            692283552                1604664549
                            0                        0
                            987000                   617000
   secure-pop3              94691                    116611
                            7324464                  141398571
                            0                        0
                            67000                    1070000
   secure-imap              205383                   231454
                            25012133                 120620219
                            0                        0
                            72000                    500000
   skinny                   1210                     69507
                            128633                   95643340
                            0                        0
                            3000                     553000
   rtp                      82116                    227164
                            14632471                 93123379
                            0                        0
                            67000                    486000

 

4 Replies 4

Joseph W. Doherty
Hall of Fame
Hall of Fame

What IOS are your running?

Hi Joseph,

I running c2800nm-adventerprisek9-mz.124-20.T1.bin

Disclaimer

The Author of this posting offers the information contained within this posting without consideration and with the reader's understanding that there's no implied or expressed suitability or fitness for any purpose. Information provided is for informational purposes only and should not be construed as rendering professional advice of any kind. Usage of this posting's information is solely at reader's own risk.

Liability Disclaimer

In no event shall Author be liable for any damages whatsoever (including, without limitation, damages for loss of use, data or profit) arising out of the use or inability to use the posting's information even if Author has been advised of the possibility of such damage.

Posting

Ah, first version supporting HQF.

Ok, for egress prioritization, you could use something like:

policy Sample

class real-time

priority percent 33

class HiPriority

bandwidth remaining 81 percent

fair-queue

class LoPriority

bandwidth remaining 1 percent

fair-queue

class class-default

bandwidth remaining 9 percent

fair-queue

Then all you need to do is map your different traffic into a class with the priority it needs.  Most traffic will work fairly well falling into the default class.  So, you only need to worry about traffic that needs to be treated better or worse.  Something like VoIP bearer traffic should be directed to the real-time class.  Something like VoIP signalling traffic might be directed to the HiPriority class.  Something like bittorrent could be directed to the LoPriority class.  NBAR can be used for match, for example:

class-map match-any LoPriority

match protocol bittorrent

Hi Joseph,

 

Thank you for your answer and helpfull explanation. I have similar toughts about how to do this, now I have to put this in configuration and try if this will work.

 

Best regards

Boris

Review Cisco Networking for a $25 gift card