Il 25 ottobre 2010 19:58, Aldo Marino <[email protected]> ha scritto: > Ciao a tutti, > > volevo chiedere il vostro parere in merito alla configurazione del QoS per > questa tipologia di architettura. > > Io ho due sedi, geograficamente distribuite, collegate tra loro da un link a > 200Mbit, ogni switch Cisco 3560 ha un interfaccia Wan in Fibra e tre > interfacce rivolte verso tre Lan distinte. > > La mia necessita' e' di garantire, in caso di saturazione, 100Mbit ad una > Lan e il restante alle altre due Lan. > > Quindi ho ragionato in questo modo: > > interface GigabitEthernet0/1 > description LAN 1 > switchport trunk encapsulation dot1q > switchport trunk allowed vlan 1 > switchport mode trunk > mls qos cos 2 > ! > interface GigabitEthernet0/2 > description LAN 2 > switchport trunk encapsulation dot1q > switchport trunk allowed vlan 2 > switchport mode trunk > mls qos cos 1 > ! > interface GigabitEthernet0/3 > description LAN 3 > switchport trunk encapsulation dot1q > switchport trunk allowed vlan 3 > switchport mode trunk > mls qos cos 1 > > Marco il pacchetto con un cos 2 per la prima LAN e con un cos 1 per le altre > due. > > Poi abilito il QoS a livello globale: > > mls qos > > E mappo le code srr-queue come segue: > > mls qos srr-queue output cos-map queue 1 threshold 3 2 > mls qos srr-queue output cos-map queue 2 threshold 2 1 > mls qos srr-queue output cos-map queue 3 threshold 1 0 4 6 7 > > Poi sull'interfaccia Wan configuro quanto segue: > > interface GigabitEthernet0/25 > description Wan Link 200Mb > switchport trunk encapsulation dot1q > switchport trunk allowed vlan 1-3 > switchport mode trunk > speed nonegotiate > srr-queue bandwidth share 50 30 10 10 > srr-queue bandwidth limit 20 > mls qos trust cos > > A questo punto mi sono venuti molti dubbi... la mia configurazione e' giusta > ? Ottengo quello che volevo ? > > Grazie per chi ha voglia di darmi conferme/smentite. > > Saluti, > Aldo Marino > > P.S. > Le vlan... riportate sono solo esempi.
Ciao Aldo, sui trunk in ingresso nelle 3 lan dovrai usare anche il comando "mls qos cos override", in questo modo sui trunk ti viene sovrascritto il cos esistente. ad es: > interface GigabitEthernet0/1 > description LAN 1 > switchport trunk encapsulation dot1q > switchport trunk allowed vlan 1 > switchport mode trunk > mls qos cos 2 mls qos cos override non mi e' chiarissimo pero' come hai scelto i threshold nella mappatura cos->queue: > mls qos srr-queue output cos-map queue 1 threshold 3 2 > mls qos srr-queue output cos-map queue 2 threshold 2 1 > mls qos srr-queue output cos-map queue 3 threshold 1 0 4 6 7 tieni presente che il bandwidth limit non e' molto preciso, la documentazione dice "These values are not exact because the hardware adjusts the line rate in increments of six." http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_46_se/configuration/guide/swqos.html#wp1253412 provando la configurazione con i tuoi parametri, purtroppo non ottengo il risultato voluto (ho fatto le prove mettendo uno switch con le porte fisse a 10Mbps...) Io personalmente userei: -queue-set 2, applicandolo solo alla interfaccia lato wan, -threshold 100/100 su tutte le queue -buffers 0 50 50 0 , poiche' usi solo la queue 2 e 3 -srr bandwidth-share 1 49 49 1 , lasciando invariata la map cos-output-q dovresti ottenere un risultato circa esatto tra i due cos. In poche parole: mls qos queue-set output 2 threshold 2 100 100 50 400 mls qos queue-set output 2 buffers 0 50 50 0 > interface GigabitEthernet0/25 > description Wan Link 200Mb > switchport trunk encapsulation dot1q > switchport trunk allowed vlan 1-3 > switchport mode trunk > speed nonegotiate srr-queue bandwidth share 1 49 49 1 srr-queue bandwidth limit 20 queue-set 2 mls qos trust cos mantenendo la cos-output-q di default: Switch(config)#do sh mls qos map cos-output-q Cos-outputq-threshold map: cos: 0 1 2 3 4 5 6 7 ------------------------------------ queue-threshold: 2-1 2-1 3-1 3-1 4-1 1-1 4-1 4-1 Hai un queue set 2 con due code (queue 2 e 3) sostanzialmente uguali e con tutto il buffer disponibile: Switch(config)#do sh mls qos queue-set 2 Queueset: 2 Queue : 1 2 3 4 ---------------------------------------------- buffers : 0 50 50 0 threshold1: 100 100 100 100 threshold2: 100 100 100 100 reserved : 50 50 50 50 maximum : 400 400 400 400 applicato alla tua interfaccia Switch(config)#do sh mls qos int g 0/25 queueing GigabitEthernet0/25 Egress Priority Queue : disabled Shaped queue weights (absolute) : 25 0 0 0 Shared queue weights : 1 49 49 1 The port bandwidth limit : 20 (Operational Bandwidth:20.0) The port is mapped to qset : 2 avrai CIRCA il risultato che volevi, il trunk che stai marcando a cos 2 avra' il 49% di banda a disposizione in caso di congestione, gli altri due trunk che marchi a cos 1 avranno un altro 49% da condividere, sempre in caso di congestione. Nota che il rewrite del cos fatto in questo modo non e' affatto routing/voice friendly, tutta la marcatura eventualmente presente in precedenza viene persa, mi auguro che questo non sia un problema nel tuo scenario. Per approfondimenti: http://www.cisco.com/en/US/docs/switches/lan/catalyst3560/software/release/12.2_46_se/configuration/guide/swqos.html#wp1162303 HTH Marco Rizzi -=-=-=- http://rizzitech.blogspot.com _______________________________________________ http://www.areanetworking.it http://www.areanetworking.it/blog [email protected] http://ml.areanetworking.it/mailman/listinfo/cug
