How to know uptime ,downtime with timestamps of all connections of
ifconfig. For my case they are three eth0,wlan0 and ppp0.
Some of the information you are requesting can be gleaned from /var/log/syslog, e.g:
But the usefulness of that information also depends on how you are network connecting; dhcp or static network connections, etc.