i Wanna Know how can i make scripts for measuring packetloss on 8.8.8.8
and when its get result send it to me in URL
any help and tips will appreciated
The way we usully do exactly this on our networks is to use something called “Smokeping”. Go here for more info: http://oss.oetiker.ch/smokeping
Out of the box it would do what you want i.e. monitoring an address, if that suffers XYZ packet loss to alert you via mail/script.
Measuring packet loss of DNS lookups to Google’s 8.8.8.8 server?
You can create two dummy firewall rules that don’t do anything other than count packets.
1 for counting outbound UDP port 53 packets to 8.8.8.8 where action = passthrough
1 for counting inbound udp port 53 packets from 8.8.8.8 where action = passthrough
Mikrotiks already count packets.
Then have a script that runs every x amount of hours. Compare how many DNS requests were sent, how many replies received. There should be one reply per request.
requests - replies = packets lost, send email to yourself. Clear counters for both those rules.