Windows IT Pro is the authoritative and independent resource for windows nt, windows 2000, windows 2003, windows xp. Features a collection of resources and magazines for windows IT professionals.
  
  
  Advanced Search 


April 16, 2002

Troubleshooting Network Connections


RSS
Subscribe to Windows IT Pro | See More Domain Name System (DNS) Articles Here | Reprints | Or get the Monthly Online Pass—only $5.95 a month!

Troubleshooting Network Connections
With little news in the Windows 2000 bug and hotfix space this week, I decided to share some simple network troubleshooting techniques. I spent most of the past 2 weeks troubleshooting network connectivity and mail access problems on my network and for a client, and you can use the same tools and procedures to diagnose these problems on your networks. Most people don't realize that a network is a fluid, ever-changing structure with millions of parts, and that network connectivity, whether local or through the Internet, undergoes multiple daily hiccups (outages) that last a few minutes to an hour or more. Most of the hiccups are transitory—they’re caused by a link that’s down because a network administrator is rebooting, replacing, or reconfiguring a box that your message or request requires to identify or locate its destination. A network infrastructure is similar to our road system: When a cone zone (outage) pops up, we either wait until the cones come down, or we take a detour to get to our destination.

Only a few reasons exist for why you might be unable to connect to a Web, mail, or VPN server on your corporate network or on the Internet: Your system must be able to translate a DNS name, the destination must be operational, an open path must exist between your system and the destination, and you must have appropriate permissions.

Most of us use names to identify our destination of choice, so we visit http://www.travelocity.com or http://www.winnetmag.com, or pick up mail from pop3.denver.qwest.com. However, each name is simply an alias that must translate into a valid, registered TCP/IP address to uniquely identify the destination. When messages hit the network, they carry source and destination information as TCP/IP addresses, not the corresponding names. Windows uses either DNS or WINS to translate names into addresses. DNS is the naming standard for TCP/IP networking on corporate networks and the Internet, and WINS is a Microsoft-proprietary naming standard we use to resolve resources such as \\vpnserver\laserjet or \\broadway\officeadmin into TCP/IP addresses. After you successfully change a name into an address, your message or request must have an open path to its destination.

To identify the most likely source of a specific connectivity problem, you must first display your system’s TCP/IP configuration; second, verify that you have the correct name and that the name has a valid TCP/IP address; and third, verify that you can reach your destination by its address. To help you perform these actions, I compiled the following list of command-line tools. If using these commands indicates that you can translate a DNS name, that the destination is operational, and that an open path exists between your system and the destination, your access problem is most likely related to authentication or permission issues.

Network Connectivity Command-line Tools
To identify the most likely source of a specific connectivity problem, you must first display your system’s TCP/IP configuration; second, verify that you have the correct name and that the name has a valid TCP/IP address; and third, verify that you can reach your destination by its address. To help you perform these actions, I compiled the following list of command-line tools. If using these commands indicates that you can translate a DNS name, that the destination is operational, and that an open path exists between your system and the destination, your access problem is most likely related to authentication or permission issues.

  • Ipconfig /all displays your machine's TCP/IP settings. The two most important settings are Default Gateway and DNS server.
  • Nslookup translates a TCP/IP name into a TCP/IP address. This command is analogous to using an online phone book to look up an individual’s name (the TCP/IP name) and telephone number (the TCP/IP address). By default, when you type Nslookup at a command prompt, your request goes to the DNS server that you or your ISP defines in your TCP/IP settings. If the DNS server is not functional, you’ll get a "DNS request timed out" error message, which means the network administrator is most likely working on the DNS server. If the DNS server is operational, it responds with a greater than sign (>) and waits for you to type the name you're trying to reach. If the DNS server replies with the name followed by a TCP/IP address, you know you have the correct name for your destination.
  • Ping asks a specific network destination whether it's online and available. You can ping a system by name or address. This command is like saying hello on the telephone and waiting for the person you called to respond with a "hi." If the person you called replies, you know you can have a conversation. When you ping a destination such as http://www.google.com, and Google responds with four replies, you know you can resolve the name and that the system is operational. A nonoperational destination doesn't reply; instead, you see the error message "Request timed out." The "timed out" reply has three likely causes: The name is incorrect, the DNS server can't translate the name, or the system you're attempting to access is out of service. One scenario in which an operational system doesn't respond to a Ping request occurs when a network administrator—for security reasons—specifically disables the system’s ability to reply.
  • Tracert shows you all the stopping points between your system and a specific destination. You can trace a system by name or by address. This command is akin to mapping the turns you need to make in your car to arrive at your destination. This command is the easiest way to verify that your request has an open path to its destination. Tracert responds with a list of systems, one line at a time, that are required to route your message or request to the destination. If a key component on this path is unavailable, Tracert replaces the timing and name data with asterisks and the error message "Request timed out." If you can’t trace a route to the destination, you’ll need to wait until the missing piece is operational or someone provides an alternative path. The first system in Tracert’s output should be the same system that appears in the Default Gateway field of your system’s TCP/IP configuration.

  • Netmon is a sophisticated packet sniffer that records detailed information about every message your system sends or receives. When the above commands indicate you have network connectivity, but you’re still having trouble, Netmon is the tool of last resort. Although reading network traces is nerdy beyond belief, you can almost always identify the cause of the communication breakdown.

End of Article



Reader Comments
This article solved my problem . Thanks

Don Culp April 22, 2002


I found the material well written and very understandable. So much of these little details are not explained well or misunderstood ... it is great to stand back and see the big picture of how it all fits in together. Thank you.

John Sell February 10, 2004


You must log on before posting a comment.

If you don't have a username & password, please register now.




Top Viewed ArticlesView all articles
PsExec

This freeware utility lets you execute processes on a remote system and redirect output to the local system. ...

Ballmer: Xbox 360 'an Unqualified Success'

It's a product line that has consumed tens of billions of dollars of R&D, money that can never be recouped. The most recent version of the product is so endemically buggy that it has suffered from an historic product recall whose value exceeds $1 billion ...

More fun TechEd 2005 Resources

Kevin points out some more TechEd resources ...


Windows OSs Whitepapers Why SaaS is the Right Solution for Log Management

Are You Satisfied?

A Preliminary Look at Deployment Plans for Microsoft Windows Vista

Related Events Check out our list of Free Email Newsletters!

Windows OSs eBooks Understanding and Leveraging Code Signing Technologies

A Guide to Windows Certification and Public Keys

SQL Server Administration for Oracle DBAs

Related Windows OSs Resources Become a VIP member of the Windows IT Pro community!
Get it all with the VIP CD and VIP access. A $500+ value for only $279!

Subscribe to Windows IT Pro!
Solve your toughest technical problems with our experts and access 10,000 + articles online. 30% off

Monthly Online Pass - Only $5.95!
Get instant access to 10,000+ articles from Windows IT Pro Magazine!

TechNet Virtual Labs
Evaluate and test Microsoft's newest products.

Job Openings in IT


ADS BY GOOGLE SPONSORED LINKS FEATURED LINKS

Microsoft Exchange & Windows Connections event returns to Las Vegas Nov 10 - 13
Connections returns to Las Vegas for this exciting event where each attendee will receive SQL Server 2008 standard with 1 CAL. Co-located with Microsoft ASP.NET, SQL Server, and SharePoint Connections with over 250 in-depth sessions.

Free Online Event! Virtualization:Get the Facts!
Register now and attend this free, live in-depth online conference on November 13 and 20, 2008, produced by Windows IT Pro. All registrants are eligible to receive a complimentary one-year digital subscription to Windows IT Pro (a $49.95 value)!

Check Out Hyper-V Video on ITTV
Watch Karen Forster's interview on Hyper-V's performance on ITTV.net.

Ease Your Scripting Pains with the Flexibility of PowerShell!
Join MVP Paul Robichaux on December 11, 2008 at 11:00 AM EDT as he equips you with PowerShell basics in 3 introductory lessons, each followed by a live Q&A session—all on your own computer!

PASS Community Summit 2008 in Seattle on Nov 18-21
The don’t-miss event for Microsoft SQL Server Professionals. Register now and you’ll enjoy top-notch Microsoft and Community speakers and more.



Speed Up Your PC!
Try Diskeeper 2008 with InvisiTasking Free Now!

Get Protected -- Data Protection Manager 2007
Protect your virtualized environment with Data Protection Manager

Agent-less Remote Backup Service, Free 30 Day Trial
Award winning remote backup service at a competitive price with no min GB/month. Sign up Now!

ScriptLogic Cartoon Caption Contest
Submit your caption and you will be entered to win $198.42

Order Your SQL Fundamentals CD Today!
Learn how to use SQL Server, understand Office integration techniques and dive into the essentials of SQL Express and Visual Basic with this free SQL Fundamentals CD.

List Your Products in Our Technology Resource Directory
Don't miss the chance to post your free listing in this comprehensive directory for IT and developer professionals, powered by Windows IT Pro. But hurry! Deadline ends Oct. 9.
Windows IT Pro Home Register FAQ for Windows WinInfo News
Europe Edition About Us Contact Us/Customer Service Media Kit Affiliates / Licensing  
SQL Server Magazine Office & SharePoint Pro Windows Dev Pro IT Job Hound ITTV
IT Library Technology Resource Directory Connected Home Windows Excavator Windows SuperSite 
 
 Windows IT Pro is a Division of Penton Media Inc.
 Copyright © 2008 Penton Media, Inc., All rights reserved. Terms and Use | Privacy Statement | Reprints and Licensing