Znyx-networks bh5700 Manuel d'utilisateur Page 115

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 359
  • Table des matières
  • DEPANNAGE
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 114
handle 100:0 Defines the handle for the queuing discipline. This handle may be used to
reference the pfifo queue. Note that the handle is included with the output of
the qdisc ls command. (100:0 and 100: are equivalent in tc.) The choice of
handle is significant for zqosd.
root
Tells tc that this is the base queuing discipline for the device, not a child of
another queuing discipline.
pfifo limit 32 Specifies a packet-limited FIFO queue with an upper bound of 32 packets.
Now, delete the queuing discipline from zhp0 and confirm that it has been removed:
tc qdisc del dev zhp0 root
tc qdisc ls
Fifo Qdiscs
The length of the queues for each port may need to be limited to avoid filling the available
memory with packets which cannot be transmitted as fast as they are received. To limit the
length of a particular queue, a bfifo qdisc is defined.
tc qdisc add dev zre5 parent 105:1 bfifo limit 5kb
This limits queue 0 on zre5 to no more than 5k bytes of data.
Using Filters to Direct Packets to a COS Queue
Once the queues are defined for a port, filters can be added to direct the desired packets into the
queue. The target queue is identified by the classid parameter, which is the same as the
handle of the cos queue. For example, to send unicast packets with a destination IP address of
10.91.100.5 to cos queue 3 created above, the filter is:
tc filter add dev zre5 parent 105: protocol ip u32 match ip dst
10.91.100.5/32 classid 105:4
Protocol ip
The u32 filter allows matching many fields of the IP packet, including: ip src, ip dst,
ip tos, ip protocol, ip sport, ip dport, ip icmp_type and ip
icmp_code. Each field to match except the IP addresses is specified as:
match <field name> <value> <mask>
where <value> and <mask> are numerical values. The ip tos field is an 8 bit field, with the
ip precedence in the upper 3 bits, the type of service in the next 3 bits, and the ecn bits in the
lower 2 bits. The same field can be selected as dsfiled followed by the DSCP in the upper six bits
and the ecn in the remaining two bits. The mask specifies which bits are to match, so
Ethernet Switch Blade User's Guide release 3.2.2j page 115
Vue de la page 114
1 2 ... 110 111 112 113 114 115 116 117 118 119 120 ... 358 359

Commentaires sur ces manuels

Pas de commentaire