I tried again to see if I could prevent the usb based network connection to crash - symptom, the connection is interrupted and changes to the property "sys.usb.config" - including just removing the USB cable - freeze the tablet, which then requires manual power-off and restart.
Of the logs, dmesg and logcat reveal no issue as the network crashes.
I tried limiting the bandwidth on the tablet instead of on the desktop, using `iptables` as Mansour Behabadi teaches (the commands below* are basically the heart of his network bandwidth limiter com.oxplot.bradybound), but still no cigar.
Limiting the bandwidth (to useful / interesting speed rates) seems to delay the crash of the connection, but it does not prevent it.
I cannot understand what makes it crash.
It would already be useful to understand how to restore the network connection after it crashes (without rebooting).
* 12345 in the commands below are the limit imposed to the amount of packets per second.
Code:
iptables -I INPUT 1 -m state --state ESTABLISHED -p 6 -m length --length 30:10000 -m hashlimit --hashlimit-name CSTMLMTR --hashlimit-above 12345/s -j DROP >/dev/null && echo CSTMLMTR
iptables -I FORWARD 1 -d 192.0.0.0/8 -m state --state ESTABLISHED -p 6 -m length --length 30:10000 -m hashlimit --hashlimit-name CSTMLMTR --hashlimit-above 12345/s -j DROP >/dev/null && echo CSTMLMTR