Wednesday, December 1, 2010

Network Troubleshooting

Troubleshooting,Basics,Linux,MacOSX,Microsoft,Networking,Printing,Mail

2010/03/15

I was helping someone troubleshoot a network problem last week. As it turned out, the problem was very physical: a light fixture had fallen down and loosened some connections to a switch. Both the existence and the location of that switch in relation to the rest of the network had vanished from institutional memory so much of the testing we were doing didn't make sense and was hard to interpret. In fact, it was so puzzling that I drove on-site with more sophisticated testing equipment, only to find that someone had noticed the fallen fixture before I arrived. Problem identified and solved, but it did prompt me to look for a general "Network Troubleshooting" page here and I was a bit surprised not to find one.

Oh, sure, there is a lot here about network problems, troubleshooting and solutions. I also have a chapter in my Unix/Linux Troubleshooting E-book but even that isn't quite what I wanted. This post attempts to provide that resource. It is a general overview with links to more detailed information.

The Basics

If you are going to do network troubleshooting, you need basic knowledge and basic tools. If you don't understand basic TCP/IP communications and routing, that's where you need to start. Here are some articles here that can help:

If you aren't sure of your understanding, you might at least review those articles. You might also want to look at these - if you don't understand them, you need to back up and do some review:

Experience and Expectations

You also need a little real world experience. For example, I was helping someone with a strange problem over the phone. We checked a ping between the two machines - the response time was 300 milliseconds. That's not particularly fast, but it certainly could be possible. However, these two machines were on the same local network - the response time should have been a fraction of a millisecond, not nearly a third of a second! The funny thing about that was that it was so far off that neither of us caught it instantly - because we were expecting something like .319 ms, seeing 300 ms didn't immediately seem wrong.

Slowness, intermittent problems vs. loss of connectivity

Obviously these are very different problems. However, very slow connections can be misinterpreted as no connection - the client or user may give up before the underlying network actually has. A 300 ms delay on a local network could contribute to that.

If you had no idea that 300 ms is ridiculous, you would have missed something important here. You obviously (I hope it's obvious) have to know the local infrastructure too - is this wireless, 10Mbs, 100 Mbs or gigabit? If you don't know, you can't tell if ping responses are at least in the ballpark.

If ping does seem odd, what does traceroute (Windows "tracerte") show? It might show an unexpected packet path (that's what was happening with the 300 ms pings).

Ping is ICMP, not TCP. Ping can work when TCP protocols do not and vice versa. You may want to test transferring files (especially if transferring files is what brought up the idea that we have a network problem). Again, you have to have some idea of how fast data should travel. It's hard to be precise (too many variables), but tools like this download calculator or charts such as found at Explaining Network Speeds can be helpful.

You might have a physical problem. Test for a bad port on a switch by swapping patch cables or swapping out the whole switch. Wires in the wall can be chewed, burned, stretched or just badly done to start with. This is where you need some inexpensive testing equipment.

ethernet tester

That tester on the left cost me a few hundred dollars, but you don't need to get quite that fancy. You need to be able to verify that the ends are properly wired and it's good to have at least minimal length testing capability. You don't need great accuracy; if you know a cable should be about 20 feet long, if your tester says it's 150, you have a problem.

A tone generator is very inexpensive and very helpful for tracing wiring.

If you don't have a tester, a visual inspection can sometimes spot gross errors. If you take a properly made CAT-5 ethernet cable and hold both ends of it so the plugs are side by side, all the colors should run the same left to right. If they run in opposite directions, that's a crossover cable - not what you usually want unless you are connecting two computers to each other.

Straight-thru cable

Incomplete or very wrong wiring is all too common, even from professional installers.

Cross-over cable

Because we often have mixed 10/100/1000 networks, it's possible for two devices to misnegotiate their connection. See I don't understand all this half/full duplex negotiation stuff for an introduction and overview.

In addition to all of the reasons mentioned so far, we have to add bad NIC hardware and faulty drivers. In addition to outright "bad", I'd also like to mention "cheap": it astonishes me when I see a server loaded with ram, sporting the biggest and fastest cpu and drives, protected with dual power supplies, extra fans and anything else you can think of - and the NIC card is a $10 piece of junk! I've solved many a network problem by replacing junk.

Take advantage of the blinking lights. Every network device has them. If the lights are out or it has orange or red lights, it is possible that either the device is bad, not connected properly, or is not receiving a signal from the network.

Every system, Windows or Linux, has tools that can help you diagnose network problems. Here are the basics you should know about:

Ping: (Windows and Unix/Linux). Note that by default, Unix/Linux ping doesn't stop - you need to either tell it only to do so many pings or interrupt it (usually CTRL-C but often Delete on SCO Unix).

Netstat: (W and U/L). Note that Windows netstat has a "-b" flag which will display the executable responsible for each connection. If you add "-v", it "will display sequence of components involved in creating the connection or listening port for all executables. Before switches were common, we'd be looking for collisions and any other errors and wouldn't be at all surprised to see at least a few. Today, we wouldn't expect to see anything

Netsh:(W) http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/netsh.mspx. This is both a command line tool and a (weak) GUI tool that can be very helpful if you don't have Unix tools available. See Introduction to Netsh .

ifconfig (U/L), ipconfig (W) (also see Mac OS X ipconfig). Win 95/98: winipcfg.

traceroute (U/L), tracerte (W) (also see Windows "pathping").

nslookup(W, UL), dig, host (U/L). See Dig and Host.

arp(W,U/L) arp, Dealing with Duplicate IP addresses.

lsof (U/L) Specifically, "lsof -i:25" would show you processes using TCP port 25. The -b switch to Windows netstat gives similar information. Although Mark Russinovich's Windows Process Explorer is a more general purpose tool, but it can be useful for network issues; see, for example, The Case of the Slow Logons.

telnet (W, U/L). First, don't confuse using telnet to test networks with running a telnet daemon. Telnet is available even when you are NOT accepting telnet connections (but see the Vista/Win 7 note below). You can use telnet to test network problems:

Special note on Vista and Win 7: Microsoft disables the telnet client on these operating systems. To correct that stupidity:

  • Open Control Panel -> Programs.
  • Click "Turn windows features on or off" . On the list that appears, check the box "Telnet Client".
  • Click OK. You now have "telnet"

Special note on testing ssh, scp, telnet, rcp, ftp and similar protocols: I see people fighting this type of problem often. The very first thing you should do is test to see if it works locally. If you can't ssh to a server that you do have keyboard access to, the first thing you should test is "ssh localhost" ( or "ftp localhost", etc.). If you can't do that, there's no point in looking for firewall or security configuration issues.

If the protocol doesn't have diagnostics like "ssh -v", using "telnet" to the port can tell you whether it is blocked outright or something within the protocol is blocking you. For example. if "telnet somebox 21" returns

 Trying x.x.x.x Connect to somebox Escape character is '^]'. 220 (vsFTPd 2.0.5) 

you are NOT being blocked by a firewall.

Network printer issues can be approached the same way. LPD/LPR runs on port 515, IPP is port 631, HP is 9100, and some other devices are listed at Print Server Port Numbers

Don't confuse DNS resolver issues with actual network problems. Don't confuse application problems with network problems.

Special note on DNS caching:

ipconfig /flushdns (Windows)
dscacheutil -flushcache (OS X)
/etc/init.d/nscd restart (Linux)

(Note: Unix systems running "bind" are also cacheing DNS)

Timeout problems

There are conflicting desires here: some things time out too quickly, some don't time out quickly enough. See Keep in touch (tcp keepalives etc.) for a discussion/

Packet tracing

All of the above is basic and simple. Unfortunately, not all networking problems can be found that easily. Sometimes, you need to get down and examine network packets. See, for example, Lan sniffing with a DualComm port mirroring switch, tcpdump and Windump.

As I said at the beginning, this is meant to be a page that will guide you to the things you need to understand to be successful. Troubleshooting is mostly common sense, though apparently it's not all that common. Most troubleshooting failures come from ignorance: you don't know how the arp cache works, you don't undertand DNS, basic subnets, routing or something equally basic. It's rare for problems to require esoteric knowledge - it happens, but it is rare.

I hope this helped get you started with whatever newtworking problem is vexing you. Please feel free to leave comments with suggestions or questions.

You might also be interested in another article I wrote about basic TCP/IP troubleshotting.

Comments: Click Here.

Want to showcase your product to our audience? Check our advertising options.



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them.

I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. If you have any question, please do feel free to contact me.


Source: http://feedproxy.google.com/~r/aplawrence/DOLL/~3/r7PgP3ZOGnc/network_troubleshooting.html

ipad iphone Lindsay Lohan maksim chmerkovskiy colt brennan accident

EXCLUSIVE: Pending Lawsuit Against Donny and Marie Osmond Resolved

Source: http://feedproxy.google.com/~r/ETMusic/~3/aGdzL9HYTUw/index.html

iphone Lindsay Lohan maksim chmerkovskiy colt brennan accident cell phone

Venue Pro makes brief appearance on Dell's website: $150 on-contract, December 14th launch?

There's no sign left of it now, but it looks like none other than the Venue Pro made a brief appearance on Dell's website earlier today, complete with a few key details about the device. Namely, that it will apparently run $150 on a two-year contract or $500 off-contract (which is a bit different than the asking price was at Microsoft stores), and that it will start shipping on December 14th. Of course, it's entirely possible that Dell pulled the page in order to make some changes to those details -- and considering the Venue Pro launch so far, that might even be likely.

Venue Pro makes brief appearance on Dell's website: $150 on-contract, December 14th launch? originally appeared on Engadget on Tue, 30 Nov 2010 17:39:00 EDT. Please see our terms for use of feeds.

Permalink Electronista  |  sourcePocket Now, Dell (inactive)  | Email this | Comments

Source: http://www.engadget.com/2010/11/30/venue-pro-makes-brief-appearance-on-dells-website-150-on-cont/

cell phone eva longoria ipad iphone Lindsay Lohan

Lindsay Lohan's Probation Revoked, Bench Warrant Issued

Source: http://feedproxy.google.com/~r/ETCelebrities/~3/L9diKuohjOM/index.html

iphone Lindsay Lohan maksim chmerkovskiy colt brennan accident cell phone

Dane Cook Talks 'Very Strange' Taylor Swift Tattoo

'The minute it went to commercial, she goes, 'What the f--- was that?' ' comedian jokes about Swift's reaction to 'Tonight Show' tribute.
By Jocelyn Vena, with reporting by Matt Elias


Dane Cook
Photo: MTV News

Dane Cook shocked Taylor Swift with an original song when both were guests on "The Tonight Show With Jay Leno" last week. Cook sang a tune about how much he loves Swift and it was a moment made more comical because he performed it shirtless with a portrait of Swift and her name tattooed on his chest.

"You're speaking of the Taylor Swift 'Tonight Show' viral sensation, which is burning up the Internet charts. Well, that was years of planning," Cook joked to MTV News when we met up to talk about his new album, I Did My Best - Greatest Hits.

"It's a real tattoo, so I had to do it over three stages of nine months ... either that version of the story [about how it happened or] it took about 15 minutes the night before to write the little ditty.

"I have a friend who's a tattoo artist [and] I came off the tour, slopped that on there and I can't get it off," he continued. "I've tried rubbing alcohol. I've tried abrasive toothpaste, and it freaks me out. I looked in the mirror after my shower, like, 'Taylor Swift's face is staring back at me, very strange.' "

Cook admitted that Swift had a great sense of humor about the whole thing.

"You know, she comes across as very sweet but the minute it went to commercial she looked at me and she goes, 'What the f--- was that?' No, I'm kidding," he said. "She actually was really super sweet. We did get to talk a little bit and she thought it was really a very, very nice moment and then afterwards we took some pictures. We're fast friends. We're Twitter friends now so, you know, once you're on Twitter with somebody it's a camaraderie that can never be broken."

So what will the comedian do if he can't get that tattoo off? "I figure, date really beautiful blondes and change the name — just keep getting that removed," he joked.

What did you think of Dane's musical tribute to Taylor? Tell us in the comments!

Related Artists

Source: http://www.mtv.com/news/articles/1653269/20101130/swift__taylor.jhtml

Lindsay Lohan maksim chmerkovskiy colt brennan accident cell phone eva longoria

Thinking iPad for Xmas?

iPad,MacOSX

2010/10/13

If you are thinking that an iPad would make a great Xmas present (giving or receiving), apparently you are not alone. Target, Walmart and Best Buy are all stocking up to sell iPads this season.

Even Kindle owners are planning to buy iPads. No, I don't think most of them are giving up their Kindles (although some may); the iPad is for other uses and for technical manuals and other books with pictures or diagrams where the Kindle doesn't compete well.

One confusion continues to come up: people think they need a monthly data plan if they purchase the 3G version. This is simply not true, but if you read AT&T's site too quickly, you could certainly get that impression.

The plans HAVE changed, but if you read carefully, you will see that the AT&T page sill says "iPad customers will continue to pre-pay for their wireless data plan and no contract is required.". All that is changed is that there is no longer an "Unlimited" plan.

This means that you can sail along with no 3G plan until you need it and cancel it when you don't need it. All you need to do is remember to cancel the automatic plan renewal and that is done right from your iPad. Signing up again is very quick - if you had a plan less than 60 days ago, they still have your credit card on file and you'll be on 3G almost instantly. If not, you'll need to type in your info, but you'll still be using 3G within a very few minutes. NO CONTRACT IS REQUIRED.

That's why I suggest buying the 3G model. If you think you EVER might want it - might ever NEED it in an emergency - , it's worth the extra money.

So, should you be jumping to buy?

Maybe. I really do think the iPad is the perfect second computer. On the other hand, Apple is rumored to be releasing a new version soon, so this older model may see significant price drops and of course whatever the new version is, it may be something you would prefer offer what is available now.

We can't ignore that other companies are or will be offering similar devices. Some of them miss the mark by far too much: a three or four hour battery life is pointless. Others seem to be confused by the size issue - if someone wants something that fits in their pocket, they'll buy an iPhone or an Android.

Then there is open vs. closed. The iPad is a closed programming environment. Apple will give you the development tools for free, but any app developed has to be approved by Apple to be sold or even given away to more than a handful of people. Presumably this scrutiny will help protect against viruses and other malware.

Android apps requite no such approval process and, by logic, there will surely be some bad actors providing trojan horse apps. Will this become a serious enough problem to dissuade the use of this platform or require a change to a closed system? Only time will answer that question.

So, are you tempted? Thinking about it? Want one but hesitating? I would love to have your thoughts.

Comments: Click Here.

Want to showcase your product to our audience? Check our advertising options.



Many of the products and books I review are things I purchased for my own use. Some were given to me specifically for the purpose of reviewing them.

I resell or can earn commissions from the sale of some of these items. Links within these pages may be affiliate links that pay me for referring you to them. That's mostly insignificant amounts of money; whenever it is not I have made my relationship plain. If you have any question, please do feel free to contact me.


Source: http://aplawrence.com/MacOSX/ipad_xmas.html

colt brennan accident cell phone eva longoria ipad iphone

Reese Witherspoon: Sexually Confident


Reese Witherspoon is quite confident in her sexuality.

Similarly, we have no doubts about Reese's sexuality.

"I think as a woman, you get older, you feel more confident in your sexuality," she tells the January issue of Glamour. "You’re not as intimidated by it."

Reese Witherspoon in Glamour

"Sexuality and femininity is an accumulation of age and wisdom and comfort in your own skin. I feel so much better now than I ever did in my 20s."

Ooh, that one hurts, Ryan Phillippe.

Says the Oscar-winning actress, "I am calmer; I know who I am. And as a result, I feel much sexier. There’s always going to be somebody younger or sexier."

"That’s why I like to say, and it’s become my famous line, ‘Funny doesn’t sag.’”

Speaking of funny, the woman loves her some romantic comedies.

"I watch them all the time. I love all my fellow female romantic comedy queens, like Jennifer Aniston, Jennifer Garner and Katie Heigl," Reese says. "I also think the questions romantic comedies ask about men and women are universal.”

As for her own love life, Witherspoon, who dated Jake Gyllenhaal before he began dating Taylor Swift, is happier than ever these days with boyfriend Jim Toth. The mother of Ava, 11, and Deacon, 7, might even consider having more kids.

"I would love to have more kids," she says. "Kids are the best part of my day. I don’t wake up to make movies. I wake up to hang out with my family.”

Source: http://www.thehollywoodgossip.com/2010/11/reese-witherspoon-sexually-confident/

iphone Lindsay Lohan maksim chmerkovskiy colt brennan accident cell phone