Allied Telesis AT-9900 Series Podręcznik funkcji - Strona 14
Przeglądaj online lub pobierz pdf Podręcznik funkcji dla Oprogramowanie Allied Telesis AT-9900 Series. Allied Telesis AT-9900 Series 18 stron. How to set up pppoe between a linux client and access concentrator
Również dla Allied Telesis AT-9900 Series: Jak skonfigurować (9 strony), Jak to zrobić (8 strony)
Example 1: ports 2000-2003
Let's say we want to have a UDP port range of 2000-2003, then the mask we need to have is:
2000
2001
2002
2003
The changed bits from 2000-2003 are bolded. We must now write a L4 mask which will meet
these requirements. The easiest way to do is, we must set the changed bits (between 2000
and 2003) in the mask to 0. In our example, they are the last 2 bits. So our mask should be:
2000
2001
2002
2003
L4 Mask
We must convert the binary number of 11111111 11111100 to hex, which ends in FF FC.
The classifier for UDP destination ports between 2000-2003 should be:
Points to remember
In our first example we choose a starting port number in which the last 2 bits were 0 and
also choose the number of the ports as 4 (power of 2) to simplify the example.
Before going into the complex examples, there are some points to remember for the L4
mask calculation:
if the beginning port is an odd number (last bit 1), to cover a range of ports, you will need
an extra 1 classifier compared to the even-beginning ports.
you can easily calculate the total number of ports in a mask by using the formula 2
x is the number of the 0's at the end of the mask). For example, a mask of
1111111111111000 will cover a range of 2
Divide the total number of the ports you want to cover into a sum of powers of 2. For
example, a range of 77 ports could be divided into:
This shows us that a group of 77 ports could be covered by a minimum of 4 classifiers.
Page 14 | AlliedWare™ OS How To Note: Hardware Filters
=
00010011 10001100
=
00010011 10001101
=
00010011 10001110
=
00010011 10001111
=
00010011 10001100
=
00010011 10001101
=
00010011 10001110
=
00010011 10001111
=
11111111 11111100
Create class=1 udpdp=2000 l4dmask=FFFC
64 + 8 + 4 + 1 =77
Appendix A: How to use the layer 4 mask in classifiers
3
= 8 ports.
x
(where