Allied Telesis x900-24 series manual 128, 256, 512, 024, 048, 096, 192, 16,384, 32,768, 65,536

Page 16

Appendix A: How to use the layer 4 mask in classifiers

So our biggest block fits into the range 512-767.

The next second biggest block is 128 in our example … it should fit into 384-511.

...

 

256

- 383

384- 511

...

...

With these 2 blocks, we cover from 384-767. If we keep repeating the same procedure for the other blocks, we get the commands in the following table. In some of the cases, the blocks need to be divided into smaller blocks. In our example, instead of having a single block of 4, we used 2 x 2 blocks: one at the start (classifier 2) and one at the end (classifier 8).

Port range

 

Number of ports

Command

333

 

1

 

create class=1 udpdport=333

334-335

 

2

 

create class=2 udpdport=334 l4dmask=FFFE

336-351

 

16

 

create class=3 udpdport=336 l4dmask=FFF0

352-383

 

32

 

create class=4 udpdport=352 l4dmask=FFE0

384-511

 

128

 

create class=5 udpdport=384 l4dmask=FF80

512-767

 

256

 

create class=6 udpdport=512 l4dmask=FF00

768-775

 

8

 

create class=7 udpdport=768 l4dmask=FFF8

776-777

 

2

 

create class=8 udpdport=776 l4dmask=FFFE

 

 

 

 

 

 

 

 

 

L4 Mask

Number of ports

 

 

 

 

 

 

FFFF

1

 

 

 

 

 

 

FFFE

2

 

 

 

 

 

 

FFFC

4

 

 

 

 

 

 

FFF8

8

 

 

 

 

 

 

FFF0

16

 

 

 

 

 

 

FFEO

32

 

 

 

 

 

 

FFCO

64

 

 

 

 

 

 

FF80

128

 

 

 

 

 

 

FF00

256

 

 

 

 

 

 

FE00

512

 

 

 

 

 

 

FC00

1,024

 

 

 

 

 

 

F800

2,048

 

 

 

 

 

 

F000

4,096

 

 

 

 

 

 

E000

8,192

 

 

 

 

 

 

C000

16,384

 

 

 

 

 

 

8000

32,768

 

 

 

 

 

 

0000

65,536

 

 

 

 

 

 

 

Page 16 AlliedWare™ OS How To Note: Hardware Filters

Image 16
Contents AlliedWareTM OS IntroductionWhat information will you find in this document? This document contains the followingConfiguring packet classification Creating dedicated hardware filtersConfiguring inner parameters for nested VLANs Core port 1st tag 2nd tag Nested VLANs disabledCustomer port 1st tagCreating hardware filters Then, enter the following commandFor example, imagine you have the following set of filters Logic of the operation of the hardware filters Effects of the action parametersHow many filters can you create? Combining hardware filters and QoSFilter rules table Extra rules used when combining QoS and hardware filters Rule Empty Rule tableFollowing figure shows the copies of these rules Profile maskRule Are there enough bytes for your set of filters? Some protocols also use filters, so use some of the length Disabled by defaultOkay length For example, this set of filters would work How to see the current filter resource usage on the switch Appendix a How to use the layer 4 mask in classifiers Default maskBinary 07D0 in hexadecimalExample 1 ports Points to rememberExample 3 ports Example 2 portsNow it is really easy to write the classifiers 128 256512 024Following table shows the port ranges for the largest blocks 65536C613-16058-00 REV C