Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
en:dpi:dpi_options:opt_shaping:shaping_session:start [2024/04/10 15:18] – [Configuring Policing by Session] elena.krasnobryzh | en:dpi:dpi_options:opt_shaping:shaping_session:start [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Policing by session and overriding traffic classes ====== | ||
- | {{indexmenu_n> | ||
- | < | ||
- | |||
- | Policing by session and traffic class override is implemented using connection 18 services for Subscriber and Virtual Channel (vChannel). | ||
- | The service extends the possibilities of policing by determining the traffic rate for a particular session. It is also possible to override the traffic class for a specific Subscriber or Virtual Channel. | ||
- | Recall that global traffic class markup is described in [[en: | ||
- | Important: Directional priority overrides protocol priority, so if traffic already has [[en: | ||
- | ===== SSG Configuration ===== | ||
- | The service **requires additional RAM** (compared to standard requirements), | ||
- | <code bash> | ||
- | To apply the settings, you must restart the service: **service fastdpi restart** | ||
- | |||
- | <note important> | ||
- | ===== Setting up and managing the service ===== | ||
- | ==== Configuring Policing by Session ==== | ||
- | It is necessary to create a file describing the speed for a particular protocol and convert it using the lst2tbf utility. | ||
- | * rate - session polysing rate for outgoing traffic | ||
- | * inbound.rate - polysing rate by session for incoming traffic | ||
- | * burst - short-term excess rate | ||
- | * inbound.burst - short-term excess inbound.rate | ||
- | <code bash> | ||
- | speedtest tbf rate 16mbit inbound.rate 16mbit | ||
- | bittorrent tbf rate 8Mbit | ||
- | TCP Unknown tbf rate 8Mbit burst 1Mbit inbound.rate 8Mbit inbound.burst 1Mbit | ||
- | cat tbf_prof_1.txt|lst2tbf / | ||
- | </ | ||
- | |||
- | < | ||
- | |||
- | Reverse conversion tbf2lst / | ||
- | |||
- | ==== Configuring traffic class overrides ==== | ||
- | It is necessary to create a file describing traffic classes using the lst2dscp utility. | ||
- | <note important> | ||
- | The DSCP value is specified [[dpi: | ||
- | The key word means: | ||
- | * drop - packets should not be transmitted further (they should be discarded)\\ | ||
- | * keep - the priority value should not be changed, i.e. keep its current value (usually 0).\\ | ||
- | * default - means "for all other protocols" | ||
- | |||
- | File creation procedure '' | ||
- | <code bash> | ||
- | speedtest cs1 | ||
- | default keep | ||
- | cat dscp_prof_1.txt|lst2dscp / | ||
- | </ | ||
- | Reverse conversion: '' | ||
- | ==== Creating a service profile ==== | ||
- | <code bash> | ||
- | fdpi_ctrl load profile --service 18 --profile.name test_dscp --profile.json '{ " | ||
- | </ | ||
- | <note important> | ||
- | ==== Connecting a service profile ==== | ||
- | For the subscriber: | ||
- | <code bash> | ||
- | fdpi_ctrl load --service 18 --profile.name test_dscp --ip 10.10.10.10 | ||
- | fdpi_ctrl load --service 18 --profile.name test_dscp --login DEMO | ||
- | </ | ||
- | |||
- | For a virtual channel (vChannel): | ||
- | <code bash> | ||
- | fdpi_ctrl load --service 18 --profile.name test_dscp --vchannel 1 | ||
- | </ | ||
- | |||
- | ==== Deleting a service profile ==== | ||
- | For the subscriber: | ||
- | <code bash> | ||
- | fdpi_ctrl del --service 18 --profile.name test_dscp --ip 10.10.10.10 | ||
- | fdpi_ctrl del --service 18 --profile.name test_dscp --login DEMO | ||
- | </ | ||
- | |||
- | For a virtual channel (vChannel): | ||
- | <code bash> | ||
- | fdpi_ctrl del --service 18 --profile.name test_dscp --vchannel 1 | ||
- | </ | ||
- | |||
- | ==== Display of information on service profiles ==== | ||
- | Get a list of IP addresses connected to the 18 service | ||
- | <code bash> | ||
- | fdpi_ctrl list all --service 18 | ||
- | </ | ||
- | |||
- | Get information on a specific IP/ | ||
- | <code bash> | ||
- | fdpi_ctrl list --service 18 --ip 192.168.0.1 | ||
- | fdpi_ctrl list --service 18 --login DEMO | ||
- | fdpi_ctrl list --service 18 --vchannel 1 | ||
- | </ | ||
- | |||
- | Get a list of all profiles of 18 services | ||
- | <code bash> | ||
- | fdpi_ctrl list all profile --service 18 | ||
- | </ | ||
- | ==== Increasing the number of profiles ==== | ||
- | An error occurs when the limit on the number of profiles is reached: | ||
- | <code bash> | ||
- | ierr_code=5 (too many profiles) : ' | ||
- | </ | ||
- | |||
- | To increase the number of available profiles, you must set the following parameter in the DPI configuration: | ||
- | <code bash> | ||
- | max_profiles_serv18=< | ||
- | </ |