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

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