Community discussions

 
ip9studio
just joined
Topic Author
Posts: 2
Joined: Tue Jun 12, 2018 12:51 pm

Determining the speed of data transmission in the subnet by means of scripts or rules

Tue Jun 12, 2018 1:11 pm

Hello! Sorry for my bad english. The question is: Is it possible for Microtics (scripts and / or rules) to determine that a specific IP address on the local network is currently loading data from the WAN, for example, at a speed of 50Mbps and write this src-ip in the address list. The task is to monitor the connection speed of each ip address to the subnet and when it reaches the threshold value of the download speed, place it in a special addressist for several minutes. Strictly speaking, this is not necessary to limit its speed, but to redirect it to WAN2, thus freeing WAN1 from the load. Waiting for clarifying questions.
P.S. maybe I can use Torch?
 
User avatar
dasiu
Trainer
Trainer
Posts: 199
Joined: Fri Jan 30, 2009 11:41 am
Location: Reading, UK
Contact:

Re: Determining the speed of data transmission in the subnet by means of scripts or rules

Wed Jun 13, 2018 7:14 pm

You can't use torch with scripts (i.e. can't read the torch readings from a script).
What you can do is to have a /queue simple - one entry for each IP from LAN. Then your script can just get the "rate" parameter for each queue entry and check upload or download (need some parsing to split up/down and separate bps/kbps/Mbps unit from the number)
 
ip9studio
just joined
Topic Author
Posts: 2
Joined: Tue Jun 12, 2018 12:51 pm

Re: Determining the speed of data transmission in the subnet by means of scripts or rules

Wed Jun 13, 2018 8:18 pm

You can't use torch with scripts (i.e. can't read the torch readings from a script).
What you can do is to have a /queue simple - one entry for each IP from LAN. Then your script can just get the "rate" parameter for each queue entry and check upload or download (need some parsing to split up/down and separate bps/kbps/Mbps unit from the number)
Thank you! Now it is clear where to start.

Who is online

Users browsing this forum: sjobbe and 1 guest