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_bandwidth_mgmt:bandwidth_troubleshooting:start [2023/08/30 09:55] – elena.krasnobryzh | en:dpi:dpi_options:opt_bandwidth_mgmt:bandwidth_troubleshooting:start [2024/07/29 12:52] (current) – removed elena.krasnobryzh | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Troubleshooting ====== | ||
- | {{indexmenu_n> | ||
- | |||
- | ==== How to apply another tariff plan to a set of subscribers? | ||
- | |||
- | If you have used a named profile to set a tariff plan, it's enough to change the tariff plan settings in this profile and they will be automatically applied to all subscribers within the given tariff plan name | ||
- | |||
- | fdpi_ctrl load profile --policing rate_10_night.cfg --profile.name tariff_plan_10 | ||
- | |||
- | In case of anonymous policing profiles (without a name) you have to change the tariff plan as follows, an example for rate10.cfg bp discussed in [[qs_diagnostics|Managing the subscriber' | ||
- | |||
- | fdpi_ctrl list all --policing | grep ' | ||
- | |||
- | or in case you have previously prepared list: | ||
- | |||
- | fdpi_ctrl load --policing policing.htb.cng --file my_rate10_ip.lst | ||
- | |||
- | here my_rate10_ip.lst file contains the list of IPs, such as follows: | ||
- | # cat my_rate10_ip.lst | ||
- | 10.64.66.110 | ||
- | 10.64.66.112 | ||
- | 10.64.66.114 | ||
- | |||
- | ==== How to troubleshoot the subscriber bandwidth allocation? ==== | ||
- | |||
- | The absence of bandwidth restrictions indicates there is a problem to solve. | ||
- | |||
- | Add the following option to the / | ||
- | plc_trace_ip=109.234.130.131 | ||
- | | ||
- | Reload fastDPI service: | ||
- | |||
- | service fastdpi reload | ||
- | |||
- | Reload the bandwidth constraints rules: | ||
- | fdpi_ctrl load --policing rat_HTB.cfg --ip 109.234.130.131 | ||
- | |||
- | Check all the fastDPI policing settings: | ||
- | fdpi_ctrl list all --policing | ||
- | Autodetected fastdpi params : dev=' | ||
- | connecting 217.74.168.149: | ||
- | |||
- | 109.234.130.131 HTB | ||
- | rrate=500000(4.00mbit) | ||
- | rcburst=250000(2.00mbit) | ||
- | ceil1=1.00mbit | ||
- | ceil3=1.00mbit | ||
- | ceil5=1.00mbit | ||
- | ceil7=1.00mbit | ||
- | rburst=125000(1.00mbit) rceil=375000(3.00mbit) \\ | ||
- | rcburst=187500(1.50mbit) | ||
- | ceil1=1.00mbit | ||
- | ceil3=1.00mbit | ||
- | ceil5=1.00mbit | ||
- | |||
- | The rules are loaded successfully. | ||
- | |||
- | Check the statistics log for the given IP. Not empty log indicates the presence of the traffic, otherwise it indicates that the traffic is not routed through the Stingray Service Gateway or the interfaces are not configured properly(in_dev should be oriented towards the subscribers). Let's analyse the stat.log (using the grep output) for the given IP: | ||
- | |||
- | grep -A 7 " | ||
- | |||
- | The outgoing traffic: | ||
- | [STAT ][2014/ | ||
- | DSCP_actual stats Rcvd: [358187060 bytes][47.73 Mbit/sec] | ||
- | [232589 pkts ][3' | ||
- | Drop: [354236960 bytes][98.90 %] | ||
- | [230024 pkts ][98.90 %] | ||
- | Send: [0 bytes][0.00 Mbit/sec] | ||
- | [0 pkts ][0.00 pkt/sec] | ||
- | Esnd: [0 err_pkts][0.00 %] | ||
- | The incoming traffic > 0: | ||
- | [STAT ][2014/ | ||
- | DSCP_actual stats Rcvd: [1018 bytes][0.00 Mbit/sec] | ||
- | [10 pkts ][0.17 pkt/sec] | ||
- | Drop: [0 bytes][0.00 %] | ||
- | [0 pkts ][0.00 %] | ||
- | Send: [828 bytes][0.00 Mbit/sec] | ||
- | [9 pkts ][0.15 pkt/sec] | ||
- | Esnd: [0 err_pkts][0.00 %] | ||
- | |||
- | [STAT ][2014/ | ||
- | DSCP_actual stats Rcvd: [0 bytes][0.00 Mbit/sec] | ||
- | [0 pkts ][0.00 pkt/sec] | ||
- | Drop: [0 bytes][0.00 %] | ||
- | [0 pkts ][0.00 %] | ||
- | Send: [3950100 bytes][0.53 Mbit/sec] | ||
- | [2565 pkts ][42.72 pkt/sec] | ||
- | Esnd: [0 err_pkts][0.00 %] | ||
- | |||
- | Therefore, the outgoing traffic is limited, it is indicated by the non zero Drop entries, so the incoming traffic is routed alternatively and does not fall under the rules loaded in the Stingray Service Gateway. | ||