V
V
Vladimir Pilipchuk2013-09-25 23:05:30
Cisco
Vladimir Pilipchuk, 2013-09-25 23:05:30

How to properly prioritize IPTV on a router

Habravchyan-networkers, I ask for help setting up QoS on the router.
There is a Cisco 1812 router. In addition to the Internet, the provider provides IPTV service.
There are several critical services passing through the router - telephony (sip / iax), ssh, http and IPTV
. I managed to file everything except iptv. I want to either raise the priority or reserve part of the channel for it, but that's bad luck - incoming traffic.
Policy-map hangs on the GIN interface.

match access-group на extended ACL - не работает по понятным причинам, только при permit udp any any, что не желательно. При указании непосредственно вещщающей сети через standsrd ACL - "матча" нет почему-то, следовательно траффик  не попадает в класс


When watching TV from several devices, telephony sometimes starts to “gurgle”, which is unacceptable.
How to make traffic interesting so that it falls into the class, namely multicast, igmp, udp from the broadcasting subnet (conditionally 10.1.2.0/24)?

What's up now
class-map match-any ADM-CLASS
 match protocol ssh
 match protocol telnet
 match protocol tftp
class-map match-any VOICE-CLASS
 match protocol skype
 match protocol sip
class-map match-any P2P-CLASS
 match protocol bittorrent
class-map match-any IPTV-CLASS
 match <b>{чего-то рабочее}</b>
!         
!
policy-map QoS
 class VOICE-CLASS
  priority 2000
 class P2P-CLASS
  priority 5000
 class IPTV-CLASS
  priority 7000
 class class-default
  random-detect
  fair-queue

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vladimir Pilipchuk, 2013-09-26
@SLIDERWEB

I solved the problem by figuring out the rate-limit.
There are no mls on routers so CoS cannot be used. Service-policy is also not suitable because it only works with outgoing traffic.
It remains to cut the traffic on the interface.
Actually, we are talking about the interface of the router, which it looks at on the LAN (with a bandwidth limit of 16 megabits)

rate-limit input access-group 20 16000000 3000000 6000000 conform-action transmit exceed-action drop
rate-limit output access-group 20 16000000 3000000 6000000 conform-action transmit exceed-action drop

our access-list is standard numbered and contains the broadcast network, 239.0.0.0/8 and 224.0.0.0/8
16000000 is the specified channel width in bps (CAR)
3000000 and 6000000 - Norm and Max burst bytes and the upper limit of the average throughput, how!) which are calculated from CAR according to the formulas
Nb = CAR x (1/8) x 1.5
Eb = 2 x Nb
Но с шагом CAR в 8 bit

Next, we set the rule for what to do with traffic. In particular, here I allow traffic as long as it does not exceed 16Mbit. Then we start dropping packets.
The solution, of course, is not very good, especially for IPTV, but I did not find another way to regulate incoming traffic, with the “computer -> gateway” topology.

T
tgz, 2013-09-26
@tgz

You should ask to make QoS on the side of the operator. You have QoS'ite packets in the direction of the uplink, they have a downlink. Everyone is happy.

V
Vladimir Pilipchuk, 2013-09-26
@SLIDERWEB

You probably didn’t understand - I get 2 VLANs from them on port - one with the Internet, the second with the “TV”. All this comes to the router. It goes from the router to a switch with five clients.
the problem is that, for example, when talking on the phone, the wife turns on the TV, and after a while I hear gurgling in the receiver, sometimes the connection breaks completely. At the same time, the load on the router is not very large, the utilization of the interface is always somewhere around 75-80%.
To solve this, I need to prioritize INCOMING traffic on the internal interface.
I'm thinking about the rate-limit, but after reading the official docks - now the porridge is in my head.
If I'm wrong - poke a stupid nose in where it's right.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question