Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
en:dpi:dpi_options:opt_shaping:shaping_session:start [2023/11/09 15:15] – created 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** | ||
- | ===== 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 with connected 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 | ||
- | </ |