How to systematically find culprit behind loss of internet in linux?
I do know
that to to download files/access webpage/use ssh/etc , there are several layers of communication made: application,transport,internet,link ( wikipedia )
I don't know
- How each of these layers (excluding
applicationlayer) map to programs/components in linux? - How to check each of these components efficiently - if they are working correctly?
- In which order to check them
My goal is
to have (reasonably) simple system for tracking down the problem. In pseudo code it would look something like
for(component in A..Z) // from hardwarefailure,missing drivers to configuration in /etc/network/interfaces
{
if cmd_to_check(component).output == _OK_
then continue // problem is 100% not here, continue with next item
else break // problem is 100% with current component
}
do_adhoc_reseach_on(item)
fix(item)
I want to focus here on problems which happens on MY machine, not problems with remote or intermediary servers
Notes
If there are differences
- between distributions, debian is preferred
- between wire vs wireless then wire is preferred
- between any other aspect, then most standard is preferred
If available free resources would be preferred
Thanks in advance for any answers and/or references