The OpenNET Project / Index page

[ новости /+++ | форум | теги | ]




Версия для распечатки Пред. тема | След. тема
Новые ответы [ Отслеживать ]
шейпер на порту, !*! Chuck Robbins, 19-Сен-15, 14:53  [смотреть все]
Бодрый день

Имеется вот такой каталист:

Cisco IOS Software, Catalyst 4500 L3 Switch Software (cat4500-ENTSERVICESK9-M), Version 15.0(2)SG7, RELEASE SOFTWARE (fc2)

ROM: 12.2(31r)SGA4
Pod Revision 0, Force Revision 31, Gill Revision 20

sw uptime is 4 weeks, 2 days, 6 hours, 5 minutes
System returned to ROM by reload
System image file is "bootflash:cat4500-entservicesk9-mz.150-2.SG7.bin"

cisco WS-C4948-10GE (MPC8540) processor (revision 5) with 262144K bytes of memory.
Processor board ID FOX1225GYWY
MPC8540 CPU at 667Mhz, Fixed Module
Last reset from Reload
2 Virtual Ethernet interfaces
48 Gigabit Ethernet interfaces
2 Ten Gigabit Ethernet interfaces
511K bytes of non-volatile configuration memory.

На одном из порту которого возникла необходимость настроить шейпер в 10мбит/с
Судя по фич-навигатору и даташиту по WS-C4948-10GE в этом модуле присутствует поддержка GTS (Generic Traffic Shaper)

Даже в документации написано как его настраивать.
Однако по факту при попытке задать значение bandwidth'a в полиси-мапе, я натыкаюсь на то, что команды shape попросту нету в задаваемом классе.

Дока гласит следующее:
http://www.cisco.com/en/US/docs/switches/lan/catalyst4500/12...

Switch# configure terminal
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap-c)# shape average 256000

Но в моем случае это выглядит так:

Switch# configure terminal
Switch(config)# policy-map policy1
Switch(config-pmap)# class class1
Switch(config-pmap)# ?

Policy-map class configuration commands:

  dbl              Dynamic buffer limiting
  exit             Exit from QoS class action configuration mode
  netflow-sampler  NetFlow action
  no               Negate or set default values of a command
  police           Police traffic matching current class
  service-policy   Configure QoS Service Policy
  set              Set QoS values
  trust            Set trust value for the class


Собственно вот здесь товарищ посетовал на то же самое: https://supportforums.cisco.com/discussion/12010841/cisco-ws...

и ему сообщили:
After further research, On 4948 platform, traffic shaping is not available with the policy maps.
It is not possible to use the shape command in policy-map. The QOS on the switch is performed in hardware so there are platform limitations because of which certain commands are not supported. Class based traffic shaping is available on next generation catalysts equipped with a Sup6-E engine or higher like Sup7-E.

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


В общем, не получив возможности шейпить трафик на порту, я решил пойти другим путем и наткнулся вот на это:
http://www.cisco.com/c/en/us/support/docs/switches/catalyst-...

Traffic Shaping
Catalyst 4000 Supervisor III and IV support other traffic shaping features besides the policing feature. Shaping features can be configured per transmit queue on FastEthernet as well as Gigabit Ethernet. Shaping limits the bandwidth transmitted per queue per second to the configured maximum value configurable from 16 Kbps to 1 Gbps (100 Mbps for FastEthernet port). The shaping has very low variance from the configured value as the decision to transmit a packet from a specific queue is made per packet.
Switch#show run interface FastEthernet 5/9
interface FastEthernet5/9
no switchport
no snmp trap link-status
ip address 10.1.1.1 255.255.255.0
tx-queue 1
   shape 50 mbps
tx-queue 2
   shape 35 mbps
tx-queue 3
   priority high
   shape 5 mbps
tx-queue 4
   shape 10 mbps
  
Switch#show qos interface FastEthernet 5/9

QoS is enabled globally
Port QoS is enabled
Port Trust State: 'untrusted'
Default DSCP: 0 Default CoS: 0
tx-Queue Bandwidth ShapeRate Priority QueueSize
       (BPS)     (BPS)           (packets)
  1         N/A    50000000     N/A     240
  2         N/A    35000000     N/A     240
  3         N/A     5000000     high     240
  4         N/A    10000000     N/A     240


Но настроив это у себя на порту, я так и не получил желаемого эффекта в получении 10мбит скорости на серваке, воткнутый в этот свитч. Сервак как качал со скоростью 300мбит , так и продолжает качать.

Что я делаю не так? И есть ли еще какие-либо способы шейпить трафик на портах этого каталиста?


Вот  мой конфиг:
sw#sh run | b 1/19

interface GigabitEthernet1/19
description K-adminstation s-150825-1
switchport access vlan 5
switchport mode access
tx-queue 1
  bandwidth 10 mbps
  shape 10 mbps
tx-queue 2
  bandwidth 10 mbps
  shape 10 mbps
tx-queue 3
  bandwidth 10 mbps
  shape 10 mbps
tx-queue 4
  bandwidth 10 mbps
  shape 10 mbps
!

  • шейпер на порту, !*! pavlinux, 16:26 , 21-Сен-15 (1)
    > [многа букав]

    Чот мне уже жалко цискариков :)


    # tc qdisc add dev eth111 root handle 1: cbq avpkt 1000 bandwidth 10mbit;


    • шейпер на порту, !*! Chuck Robbins, 11:03 , 22-Сен-15 (2)
      >> [многа букав]
      > Чот мне уже жалко цискариков :)
      > # tc qdisc add dev eth111 root handle 1: cbq avpkt 1000
      > bandwidth 10mbit;

      в общем сделал по другому:

      !
      class-map match-any TRAFFIC_POLICER
      match any
      !
      policy-map POLICE-10MBIT
      class TRAFFIC_POLICER
      police 10 mbps 1 mbyte conform-action transmit exceed-action drop
      class class-default
      police 10 mbps 1 mbyte conform-action transmit exceed-action drop
      !
      interface GigabitEthernet1/19
      service-policy input POLICE-10MBIT
      service-policy output POLICE-10MBIT
      !


      правда оно тоже не работало до тех пор, пока не до меня не доперло, что надо включить qos на каталисте командой mls qos




Партнёры:
PostgresPro
Inferno Solutions
Hosting by Hoster.ru
Хостинг:

Закладки на сайте
Проследить за страницей
Created 1996-2024 by Maxim Chirkov
Добавить, Поддержать, Вебмастеру