Jump to content

Recommended Posts

Posted

Имеется CISCO C3750, в который в порт-канал приходит IPTV, и цепочка d-link des3028 которая воткнута в циску. Картинка ТВ ужасно сыпется. Пробовал настраивать по офф мануалам и мануалам интузиастов, но из-за не знания английского языка, а может и из-за кривизны рук ничего настроить так и не получилось.

Прошу помощи.

 

Из конфига циски:

 

mls qos map dscp-mutation IN_IPTV 48 to 32
mls qos map dscp-cos 48 to 4
mls qos map cos-dscp 0 8 16 24 32 40 32 56
mls qos srr-queue output cos-map queue 2 threshold 3 0 1 2 3 5 6 7
mls qos srr-queue output dscp-map queue 2 threshold 3 0 1 2 3 4 5 6 7
mls qos srr-queue output dscp-map queue 2 threshold 3 8 9 10 11 12 13 14 15
mls qos srr-queue output dscp-map queue 2 threshold 3 16 17 18 19 20 21 22 23
mls qos srr-queue output dscp-map queue 2 threshold 3 24 25 26 27 28 29 30 31
mls qos srr-queue output dscp-map queue 2 threshold 3 33 34 35 36 37 38 39 40
mls qos srr-queue output dscp-map queue 2 threshold 3 41 42 43 44 45 46 47 50
mls qos srr-queue output dscp-map queue 2 threshold 3 51 52 53 54 55 56 57 58
mls qos srr-queue output dscp-map queue 2 threshold 3 59 60 61 62 63
mls qos queue-set output 1 threshold 1 3200 3200 20 3200
mls qos queue-set output 1 threshold 2 3200 3200 20 3200
mls qos queue-set output 1 threshold 3 1 1 1 1
mls qos queue-set output 1 threshold 4 1 1 1 1
mls qos

policy-map IPTV
description IPTV
class class-default
set ip dscp cs4


interface Port-channel1
switchport access vlan 100
switchport mode access

 

Порты в порт-канале:

 

interface GigabitEthernet1/0/15
switchport access vlan 100
switchport mode access
mls qos cos 4
mls qos cos override
channel-protocol lacp
channel-group 1 mode active
service-policy input IPTV
!
interface GigabitEthernet1/0/16
switchport access vlan 100
switchport mode access
mls qos cos 4
mls qos cos override
channel-protocol lacp
channel-group 1 mode active
service-policy input IPTV
!
interface GigabitEthernet1/0/17
switchport access vlan 100
switchport mode access
mls qos cos 4
mls qos cos override
channel-protocol lacp
channel-group 1 mode active
service-policy input IPTV
!
interface GigabitEthernet1/0/18
switchport access vlan 100
switchport mode access
mls qos cos 4
mls qos cos override
channel-protocol lacp
channel-group 1 mode active
service-policy input IPTV

 

Порт смотрит в сетку с dlinkами:

 

interface GigabitEthernet1/0/9
switchport trunk encapsulation dot1q
switchport trunk allowed vlan 1,13,100
switchport mode trunk
srr-queue bandwidth share 1 255 1 1
srr-queue bandwidth shape 0 0 0 0
priority-queue out
mls qos cos 4
mls qos trust dscp

 

 

В длинках ACL'ом повышается приоритет к пакетам с метками DSCP 32

 

ТВ судя по статистике приходит с метками DSCP 48:

 

Switch#sh mls qos interface gi1/0/15 stat
GigabitEthernet1/0/15 (All statistics are in packets)
dscp: incoming
-------------------------------
0 - 4 :         0            0            0            0            0
5 - 9 :         0            0            0            0            0
10 - 14 :         0            0            0            0            0
15 - 19 :         0            0            0            0            0
20 - 24 :         0            0            0            0            0
25 - 29 :         0            0            0            0            0
30 - 34 :         0            0            0            0            0
35 - 39 :         0            0            0            0            0
40 - 44 :         0            0            0            0            0
45 - 49 :         0            0            0     7643572            0
50 - 54 :         0            0            0            0            0
55 - 59 :         0            0            0            0            0
60 - 64 :         0            0            0            0
dscp: outgoing
-------------------------------
0 - 4 :         0            0            0            0            0
5 - 9 :         0            0            0            0            0
10 - 14 :         0            0            0            0            0
15 - 19 :         0            0            0            0            0
20 - 24 :         0            0            0            0            0
25 - 29 :         0            0            0            0            0
30 - 34 :         0            0            0            0            0
35 - 39 :         0            0            0            0            0
40 - 44 :         0            0            0            0            0
45 - 49 :         0            0            0         379            0
50 - 54 :         0            0            0            0            0
55 - 59 :         0            0            0            0            0
60 - 64 :         0            0            0            0
cos: incoming
-------------------------------
0 - 4 :         0            0            0            0     7643940
5 - 7 :         0            0            0
cos: outgoing
-------------------------------
0 - 4 :         0            0            0            0            0
5 - 7 :         0         379            0
output queues enqueued:
queue:    threshold1 threshold2 threshold3
-----------------------------------------------
queue 0:         0         0         0
queue 1:         0         679     18929
queue 2:         0         0         0
queue 3:    20858842         0         0
output queues dropped:
queue:    threshold1 threshold2 threshold3
-----------------------------------------------
queue 0:         0         0         0
queue 1:         0         0         0
queue 2:         0         0         0
queue 3:         0         0         0
Policer: Inprofile:            0 OutofProfile:            0

 

На 9 порту пакеты метятся DSCP 32:

 

Switch#sh mls qos interface gi1/0/9 stat
GigabitEthernet1/0/9 (All statistics are in packets)
dscp: incoming
-------------------------------
0 - 4 :    68459890            0            0            0         1617
5 - 9 :         0            0            0            0            0
10 - 14 :         0            0            0            0            0
15 - 19 :         0            0            0            0            0
20 - 24 :         0            0            0            0            0
25 - 29 :         0            0            0            0            0
30 - 34 :         0            0            0            0            0
35 - 39 :         0            0            0            0            0
40 - 44 :         0            0            0            0            0
45 - 49 :         0            0            0         4688            0
50 - 54 :         0            0            0            0            0
55 - 59 :         0            0            0            0            0
60 - 64 :         0            0            0            0
dscp: outgoing
-------------------------------
0 - 4 :    95979727            0            0            0            0
5 - 9 :         0            0            0            0            0
10 - 14 :         0            0            0            0            0
15 - 19 :         0            0            0            0            0
20 - 24 :         0            0            0            0            0
25 - 29 :         0            0            0            0            0
30 - 34 :         0            0     15890174            0            0
35 - 39 :         0            0            0            0            0
40 - 44 :         0            0            0            0            0
45 - 49 :         0            0            0         615            0
50 - 54 :         0            0            0            0            0
55 - 59 :         0            0            0            0            0
60 - 64 :         0            0            0            0
cos: incoming
-------------------------------
0 - 4 :    68322806            0            0            0            0
5 - 7 :         0         1080     266021
cos: outgoing
-------------------------------
0 - 4 :    96074642            0            0            0     15890178
5 - 7 :         0         614            8
output queues enqueued:
queue:    threshold1 threshold2 threshold3
-----------------------------------------------
queue 0:         0         0         0
queue 1:     66633        1625    96117375
queue 2:         0         0         0
queue 3:    15891258         0     12302
output queues dropped:
queue:    threshold1 threshold2 threshold3
-----------------------------------------------
queue 0:         0         0         0
queue 1:         0         0         0
queue 2:         0         0         0
queue 3:         4         0         0
Policer: Inprofile:            0 OutofProfile:            0

 

Вот только с очередями я не разобрался и не понял.

 

В теории все правильно и картинка не должна сыпаться, но сыпется.

Если с циской все в норме, покажу конфиг длинка.

В длинке для мультика заведен ISM влан.

 

Прошу помощи!

Posted (edited)

У меня на самом верху стоит edge-core. Но у него cisco-like интерейс.

 

 

!
class-map mcast
match vlan 186
!
policy-map mcast
class mcast
set cos 5
set ip dscp 48
exit
!

 

Интерфейс на который приходит мультикаст:

 

Interface Ethernet1/7
service-policy input mcast

 

 

Таким образом, всё что приходит на 7 порт в вилане 186 перемаркировывается в COS 5 и DSCP 48, а нижестоящие свичи всё это наследуют.

Edited by eddy_mut
Posted (edited)

match vlan нету.

 

Switch(config)#cla
Switch(config)#class-map MCAST
Switch(config-cmap)#ma
Switch(config-cmap)#match ?
 access-group     Access group
 input-interface  Select one or more input interfaces to match
 ip               IP specific values

 

указал input iface портканал. в итоге:

 

Switch(config-if)#service-policy input MCAST
QoS: class(MCAST) Unsupported classification [GigabitEthernet1/0/15]

 

если на каждом физическом пробовать, то:

 

%QoS: policy-map MCAST with MATCH INPUT-INTERFACE not allowed on non-SVI interface
Service Policy attachment failed

Edited by lousx
Posted

Switch(config-cmap)#match ?

access-group Access group

input-interface Select one or more input interfaces to match

ip IP specific values

 

попробуйте создать класс, срабатывающий не на вилан, как было у меня, а на access-list с определенной мультикаст-подсетью.

Posted

class-map match-all MCAST
match access-group 12
!
!
policy-map MCAST
description MCAST
class MCAST
 set ip dscp cs4
policy-map IPV

 

В sho mls qos int gi1/0/15 stat и int gi1/0/9 картинка осталась прежней, что и в первом посте.

Posted
Switch(config-pmap-c)#set ? 
 dscp        Set DSCP in IP(v4) and IPv6 packets
 ip          Set IP specific values
 precedence  Set precedence in IP(v4) and IPv6 packets

Switch(config-pmap-c)#set ip
Switch(config-pmap-c)#set ip ?
 dscp        Set IP DSCP (DiffServ CodePoint)
 precedence  Set IP precedence

Posted (edited)

Ошибся в access-list 12 permit any

 

Тем не менее в sh mls ничего не поменялось

 

Было access-list 2 permit any

 

Я чего-то недопонимаю? Почему я создаю access-list, а в class-map казываю access-group? Или там я указываю группу (1 или несколько) access-list?

 

Судя по таблице пакеты все-таки метятся. Может проблема в настройке приоритета и очередей?

Edited by lousx
Posted

Судя по тому что я вижу, оно не хочет классифицировать трафик по признаку vlan, а когда мы пытаемся перемаркировать приоритеты 802.1p то тоже не хочет.

 

по-видимому моя железка умеет, а ваша нет. нужна помощь другого гуру :) Вам бы написать в одну из соседних тем, где больше спецов по cisco.

Posted

Надо разобраться:

 

1. Мультикаст, который к вам поступает, уже маркирован?

2. Если маркирован правильными значениями (у меня это CoS=5 и DSCP=48), то зачем перемаркировать?

3. Если маркирован правильно, маркировать не нужно, но при этом картинка сыпется, надо выяснить почему. Для начала проверить сыпется ли мультикаст на устройстве подключенном непосредственно к Cisco?

Posted

Судя по статистике на одном из портов порт-канала куда приходит тв, пакеты маркируются DSCP 48 COS 4

 

Switch#sh mls qos interface gi1/0/15 stat
GigabitEthernet1/0/15 (All statistics are in packets)

 dscp: incoming
-------------------------------

 0 -  4 :           0            0            0            0            0
 5 -  9 :           0            0            0            0            0
10 - 14 :           0            0            0            0            0
15 - 19 :           0            0            0            0            0
20 - 24 :           0            0            0            0            0
25 - 29 :           0            0            0            0            0
30 - 34 :           0            0            0            0            0
35 - 39 :           0            0            0            0            0
40 - 44 :           0            0            0            0            0
45 - 49 :           0            0            0     16134264            0
50 - 54 :           0            0            0            0            0
55 - 59 :           0            0            0            0            0
60 - 64 :           0            0            0            0
 dscp: outgoing
-------------------------------

 0 -  4 :         130            0            0            0            0
 5 -  9 :           0            0            0            0            0
10 - 14 :           0            0            0            0            0
15 - 19 :           0            0            0            0            0
20 - 24 :           0            0            0            0            0
25 - 29 :           0            0            0            0            0
30 - 34 :           0            0            0            0            0
35 - 39 :           0            0            0            0            0
40 - 44 :           0            0            0            0            0
45 - 49 :           0            0            0          699            0
50 - 54 :           0            0            0            0            0
55 - 59 :           0            0            0            0            0
60 - 64 :           0            0            0            0
 cos: incoming
-------------------------------

 0 -  4 :           0            0            0            0     16136315
 5 -  7 :           0            0            0
 cos: outgoing
-------------------------------

 0 -  4 :         130            0            0            0            0
 5 -  7 :           0          699            0
 output queues enqueued:
queue:    threshold1   threshold2   threshold3
-----------------------------------------------
queue 0:           0           0           0
queue 1:           0        2128      104755
queue 2:           0           0           0
queue 3:    61361375           0           0

 output queues dropped:
queue:    threshold1   threshold2   threshold3
-----------------------------------------------
queue 0:           0           0           0
queue 1:           0           0           0
queue 2:           0           0           0
queue 3:           0           0           0

Policer: Inprofile:            0 OutofProfile:            0

 

Если у Вас не сыпется - покажите очередя, cos-dscp dscp-cos map и т.д. Может что интересного увижу.

Спасибо.

Posted

могу сказать только что у меня приходит немаркированный, а уже я маркирую в те же значения что и у вас. попробуйте выяснить с какого места в сети начинает сыпаться.

Posted

Сыпаться начинает еще в циске. Не то что бы сыпется, но моментами заикается и сыпется. Бывает что раз в 1-5 минут заикнется, бывает что смотреть невозможно.

Posted

Тогда есть о чем задуматься.

 

А в port-channel, в котором приходит мультикаст, что-нибудь еще приходит? Если это ваш аплинк, через который приходит так же и внешний интернет, возможно, придется маркировать трафик уровнем выше - на стороне поставщика.

Posted

tv в отдельно физическом и отдельном влане.

Перенастроил. Пакеты пришедшые сбрасываются в 0. Уходят в сеть дсцп 32 кос 6.

Posted

Если оно приходит в отдельном физическом канале, попробуйте настроить отдельный коммутатор, подключите к нему компьютер и погоняйте в VLC потоки что-бы понять где начинаются рассыпания.

Posted

eddy_mut, вроде более менее поставили все на место. Покажите Ваш конфиг, конкретно очередя и кос, вобщем все, что касается мультикаста и коса.

Posted

Очереди и маппинг поумолчанию?

Типа:

mls qos map dscp-mutation IN_IPTV 48 to 32
mls qos map dscp-cos 48 to 4
mls qos map cos-dscp 0 8 16 24 32 40 32 56
mls qos srr-queue output cos-map queue 2 threshold 3 0 1 2 3 5 6 7
mls qos srr-queue output dscp-map queue 2 threshold 3 0 1 2 3 4 5 6 7
mls qos srr-queue output dscp-map queue 2 threshold 3 8 9 10 11 12 13 14 15
mls qos srr-queue output dscp-map queue 2 threshold 3 16 17 18 19 20 21 22 23
mls qos srr-queue output dscp-map queue 2 threshold 3 24 25 26 27 28 29 30 31
mls qos srr-queue output dscp-map queue 2 threshold 3 33 34 35 36 37 38 39 40
mls qos srr-queue output dscp-map queue 2 threshold 3 41 42 43 44 45 46 47 50
mls qos srr-queue output dscp-map queue 2 threshold 3 51 52 53 54 55 56 57 58
mls qos srr-queue output dscp-map queue 2 threshold 3 59 60 61 62 63
mls qos queue-set output 1 threshold 1 3200 3200 20 3200
mls qos queue-set output 1 threshold 2 3200 3200 20 3200
mls qos queue-set output 1 threshold 3 1 1 1 1
mls qos queue-set output 1 threshold 4 1 1 1 1
mls qos

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...
На сайте используются файлы cookie и сервисы аналитики для корректной работы форума и улучшения качества обслуживания. Продолжая использовать сайт, вы соглашаетесь с использованием файлов cookie и с Политикой конфиденциальности.