Pagina 1 di 1

QOS,QOS,QOS....

Inviato: ven 26 mar , 2010 11:35 pm
da zot
Ho letto i post,ho studiato documentazione in rete,mi sono comprato "End-to-End QOS network design" di cisco press....perche' cavolo non ci riesco!!!!!!!???????

Codice: Seleziona tutto

ilmondoemio#sh ver
Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.4(22)T1, RELEASE SOFTWARE (fc5)


ROM: System Bootstrap, Version 12.3(8r)YI4, RELEASE SOFTWARE

ilmondoemio uptime is 2 weeks, 3 days, 9 hours, 23 minutes
System returned to ROM by power-on
System restarted at 14:20:43 CET Tue Mar 9 2010
System image file is "flash:c870-advipservicesk9-mz.124-22.T1.bin"

................

Cisco 877 (MPC8272) processor (revision 0x300) with 236544K/25600K bytes of memory.
Processor board ID FCZ1240122S
MPC8272 CPU Rev: Part Number 0xC, Mask Number 0x10
4 FastEthernet interfaces
1 ATM interface
128K bytes of non-volatile configuration memory.
53248K bytes of processor board System flash (Intel Strataflash)

Configuration register is 0x2102

Codice: Seleziona tutto

!
ip cef
!
class-map match-all VOIP
 description VOIP-DATA
 match protocol rtp
 match  dscp ef
 match ip precedence 5
 match protocol rtcp
 match protocol rtsp
 match ip dscp ef
 match access-group 110
 match protocol sip
class-map match-all P2P
 match protocol directconnect
 match protocol bittorrent
 match protocol gnutella
 match protocol kazaa2
 match protocol edonkey
 match protocol fasttrack
class-map match-all WEB
 match protocol http
 match protocol dns
 match protocol pop3
 match protocol smtp
 match protocol ftp
!
!
policy-map QOS
 class P2P
    priority percent 10
 class VOIP
    bandwidth percent 50
 class WEB
    priority percent 30
!
interface Dialer0
 bandwidth 480
 ip nbar protocol-discovery
 service-policy output QOS
!
access-list 110 remark ***VOIP-DATA***
access-list 110 permit udp any any range 5004 5010
access-list 110 permit udp any any dscp ef

Codice: Seleziona tutto

ilmondoemio#sh ip nbar protocol-discovery

 Dialer0

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


                            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)
   ------------------------ ------------------------ ------------------------
   http                     424019                   0
                            539345068                0
                            12000                    0
                            1881000                  0
   ipsec                    25738                    0
                            15209788                 0
                            0                        0
                            259000                   0
   secure-http              41917                    0
                            22778290                 0
                            0                        0
                            99000                    0
   rtp                      327326                   0
                            66165880                 0
                            0                        0
                            81000                    0
   secure-pop3              1845                     0
                            1426072                  0
                            0                        0
                            44000                    0
   ssh                      19765                    0
                            1664367                  0
                            0                        0
                            30000                    0
   dns                      9372                     0
                            1323854                  0
                            0                        0
                            5000                     0
   sip                      1123                     0
                            817124                   0
                            0                        0
                            3000                     0
   ntp                      51152                    0

Codice: Seleziona tutto

ilmondoemio#show policy-map interface Dialer0
 Dialer0

  Service-policy output: QOS

    queue stats for all priority classes:

      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 0/0

    Class-map: P2P (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol directconnect
      Match: protocol bittorrent
      Match: protocol gnutella
      Match: protocol kazaa2
      Match: protocol edonkey
      Match: protocol fasttrack
      Priority: 10% (48 kbps), burst bytes 1500, b/w exceed drops: 0


    Class-map: VOIP (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol rtp
      Match:  dscp ef (46)
      Match: ip precedence 5
      Match: protocol rtcp
      Match: protocol rtsp
      Match: ip dscp ef (46)
      Match: access-group 110
      Match: protocol sip
      Queueing
      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 0/0
      bandwidth 50% (240 kbps)

    Class-map: WEB (match-all)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol http
      Match: protocol dns
      Match: protocol pop3
      Match: protocol smtp
      Match: protocol ftp
      Priority: 30% (144 kbps), burst bytes 3600, b/w exceed drops: 0


    Class-map: class-default (match-any)
      548044 packets, 80991599 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: any

      queue limit 64 packets
      (queue depth/total drops/no-buffer drops) 0/0/0
      (pkts output/bytes output) 0/0
Aiutatemi prima che inizi a spaccare tutto!!!!
:evil:

Inviato: sab 27 mar , 2010 3:33 pm
da rinux
Ciao,
non ho feedback circa il QOS su Dialer e comunque alcune versioni che ho in giro non riconoscono il P2P... questo è un esempio sul 877...

Codice: Seleziona tutto

ip cef
!
!
class-map match-any PT
 match protocol ssh
 match protocol telnet
 match protocol dns
 match  dscp cs2
class-map match-any RT
 match  dscp ef
class-map match-any MC
 match  dscp cs4
!
!
policy-map QOS
 class RT
  priority 56
 class MC
  bandwidth 32
 class PT
  bandwidth 16
 class class-default
  fair-queue
!
!
interface ATM0.1 point-to-point
 pvc 8/35
  vbr-rt 320 272
  tx-ring-limit 3
  oam-pvc manage
  oam retry 2 4 15
  encapsulation aal5snap
  service-policy output QOS
!
L'IOS è Cisco IOS Software, C870 Software (C870-ADVIPSERVICESK9-M), Version 12.4(15)T5

Ecco un show....

Codice: Seleziona tutto

sh policy-map int atm0.1
 ATM0.1: VC 8/35 -

  Service-policy output: QOS

    Class-map: RT (match-any)
      325 packets, 68900 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match:  dscp ef (46)
        325 packets, 68900 bytes
        5 minute rate 0 bps
      Queueing
        Strict Priority
        Output Queue: Conversation 40
        Bandwidth 56 (kbps) Burst 1400 (Bytes)
        (pkts matched/bytes matched) 0/0
        (total drops/bytes drops) 0/0

    Class-map: MC (match-any)
      0 packets, 0 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match:  dscp cs4 (32)
        0 packets, 0 bytes
        5 minute rate 0 bps
      Queueing
        Output Queue: Conversation 41
        Bandwidth 32 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 0/0
        (depth/total drops/no-buffer drops) 0/0/0

    Class-map: PT (match-any)
      283434 packets, 28329976 bytes
      5 minute offered rate 0 bps, drop rate 0 bps
      Match: protocol ssh
        263930 packets, 26323895 bytes
        5 minute rate 0 bps
      Match: protocol telnet
        1125 packets, 58500 bytes
        5 minute rate 0 bps
      Match: protocol dns
        18379 packets, 1947581 bytes
        5 minute rate 0 bps
      Match:  dscp cs2 (16)
        0 packets, 0 bytes
        5 minute rate 0 bps
      Queueing
        Output Queue: Conversation 42
        Bandwidth 16 (kbps)Max Threshold 64 (packets)
        (pkts matched/bytes matched) 194199/10876420
        (depth/total drops/no-buffer drops) 0/0/0

    Class-map: class-default (match-any)
      2048912 packets, 260350254 bytes
      5 minute offered rate 2000 bps, drop rate 0 bps
      Match: any
      Queueing
        Flow Based Fair Queueing
        Maximum Number of Hashed Queues 32
        (total queued/total drops/no-buffer drops) 0/1419/0

NB:

Vedi che su class-map puoi utilizzare:

Codice: Seleziona tutto

match-all    Logical-AND all matching statements under this classmap
oppure

Codice: Seleziona tutto

match-any  Logical-OR all matching statements under this classmap

73
Arturo

Auto QOS

Inviato: sab 27 mar , 2010 3:57 pm
da rinux
Da testare cosa viene fuori utilizzando l'auto QOS, ho tolto la policy sull'interfaccia ed ho attivato auto QOS voip ma non ho fatto partire alcuna telefonata... ....ottengo subito le seguenti info ma la linea è down:

Codice: Seleziona tutto

prompt> sh auto qos int atm0.1

ATM0.1: PVC 8/35 -
 !
 interface ATM0.1 point-to-point
  pvc 8/35
   tx-ring-limit 3
   encapsulation aal5mux ppp Virtual-Template200
 !
 interface Virtual-Template200
  bandwidth 272
  ip address aa.bb.cc.dd 255.255.255.0
  ppp multilink
  ppp multilink interleave
  ppp multilink fragment delay 10
  service-policy output AutoQoS-Policy-UnTrust
73
Arturo

Inviato: sab 27 mar , 2010 7:05 pm
da Gianremo.Smisek
zot, anche io sono un po' a digiuno di QoS quindi scusa se mi permetto, pero' tu usi match-all nelle classi. Un pacchetto che viene confrontato "against" una qualsiasi classe, puo' appartenere ad una sola condizione! Per es. un pacchetto non puo' far parte di gnutella ed allo stesso tempo di bittorent. Io, fossi in te, proverei match-any..

ciao!


*EDIT*

sorry, non avevo letto che la stessa cosa l'ha detta anche Arturo prima, pardon :)

Inviato: dom 28 mar , 2010 1:23 am
da zot
Grazie mille raga match-any e funzia tutto!!! :D