Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Monitoring internet connection

Status
Not open for further replies.

Kaleborg

Member level 4
Member level 4
Joined
Nov 2, 2008
Messages
75
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,776
Hello,

Recently I'm having some problems with my internet connection. So I thought that I could maybe I could write some program to monitor the connection and create a report of some sort about connection quality. Could somebody point me into some resources where i could start?? I know Java and C and i'm learning a bit of Perl, my os is linux/ubuntu.

Thanks in advance
 

kak111

Advanced Member level 4
Advanced Member level 4
Joined
Mar 30, 2011
Messages
1,365
Helped
933
Reputation
1,868
Reaction score
907
Trophy points
1,413
Location
Finland
Activity points
10,827
google find lots of different solutions with java

**broken link removed**

**broken link removed**

**broken link removed**
 

aospinas

Member level 2
Member level 2
Joined
Nov 24, 2003
Messages
53
Helped
10
Reputation
20
Reaction score
3
Trophy points
1,288
Activity points
224
Use bash scripting is very easy:

see commands: dig (DNS resolution), ifconfig, ping, crontab

Enjoy
 
Last edited:

Kaleborg

Member level 4
Member level 4
Joined
Nov 2, 2008
Messages
75
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,776
Thanks for the reply.

My LAN set-up is as follows: my PC -> wireles router -> modem -> cloud.
Would it be possible to detect where exactly connection drops?? Is it between my pc and router or between router or modem or modem and cloud??

Regards
 

aospinas

Member level 2
Member level 2
Joined
Nov 24, 2003
Messages
53
Helped
10
Reputation
20
Reaction score
3
Trophy points
1,288
Activity points
224
You can make a script using the ping command and run it every minute scheduled in the crontab to see if internet failure.

ping -c4 router | grep 'received' | awk -F',' '{ print $2}' | awk '{ print $1}'

where router is router ip. For example.

ping -c4 192.168.1.1 | grep 'received' | awk -F',' '{ print $2}' | awk '{ print $1}'

see: h**p://www.cyberciti.biz/tips/simple-linux-and-unix-system-monitoring-with-ping-command-and-scripts.html

enjoy
 
Last edited:

bigdogguru

Administrator
Advanced Member level 7
Joined
Mar 12, 2010
Messages
9,821
Helped
2,350
Reputation
4,694
Reaction score
2,272
Trophy points
1,413
Location
Southwest, USA
Activity points
62,366
It also should be mentioned that many home routers offer a logging service, by which detailed reports of the status of the router and WAN connection can be obtained. All that is required is setting up a freely available syslog server on your PC, select reporting level and point the logging service of the router to your PCs IP and open the necessary ports on your PC.

Using the log reporting feature coupled with the PING technique mentioned by aospinas and you have a fairly detailed status of your LAN and WAN connection.

BigDog
 

Kaleborg

Member level 4
Member level 4
Joined
Nov 2, 2008
Messages
75
Helped
7
Reputation
14
Reaction score
5
Trophy points
1,288
Activity points
1,776
That's great guys, thanks for all the tips.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top