Chelsio Communications Chelsio T5 Guia do Utilizador Página 262

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
Vista de página 261
XIX. Traffic Management
Chelsio T5/T4 Unified Wire For Linux Page 262
5. Usage
5.1. Non-Offloaded Connections
The following example demonstrates the method to rate limit all TCP connections on class 0 to
a rate of 300 Mbps for Non-offload connections:
1. Load the Network driver in NIC mode.
[root@host]# modprobe cxgb4
2. Bind connections with destination IP address 192.168.5.3 to NIC TX queue 3
[root@host]# tc qdisc add dev eth0 root handle 1: multiq
[root@host]# tc filter add dev eth0 parent 1: protocol ip prio 1 u32 match
ip dst 192.168.5.3 action skbedit queue_mapping 3
3. Bind the NIC TX queue to class 0
[root@host]# cxgbtool eth0 sched-queue 3 0
4. Set the appropriate rule for class 0
[root@host]# cxgbtool eth0 sched-class params type packet level cl-rl
mode class rate-unit bits rate-mode absolute channel 0 class 0 max-rate
300000 pkt-size 1460
5.2. Offloaded Connections
The following example demonstrates the method to rate limit all TCP connections on class 0 to
a rate of 300 Mbps for offloaded connections:
1. Load the Network driver in TOE mode
[root@host]# modprobe t4_tom
Vista de página 261
1 2 ... 257 258 259 260 261 262 263 264 265 266 267 ... 459 460

Comentários a estes Manuais

Sem comentários