A workstation can ping the company's application server. Its network adapter is active, it has a valid IP address, and the default gateway responds normally. Yet the employee still cannot open the business application. The network technician restarts the workstation. Nothing changes. Someone suggests replacing the Ethernet cable, while another employee recommends changing the DNS settings. A third person wants to disable the firewall temporarily. Each suggestion might address a particular type of failure, but none is supported by the evidence collected so far. The most important skill in TCP/IP troubleshooting is not knowing dozens of commands. It is knowing which part of the communication process each command tests—and what its result actually proves. A successful ping does not guarantee that a web server is accepting TCP connections. A completed TCP connection does not guarantee that TLS negotiation will succeed. Correct DNS resolution does not mean an application is healthy. These distinctions help engineers identify problems without making unnecessary configuration changes. In this guide, we'll investigate seven common TCP/IP networking problems, compare diagnostic commands for Windows and Linux, and build a local troubleshooting lab that demonstrates the difference between IP reachability and application availability. We'll also follow a fictional office network incident from its initial symptoms to the final verification. Why TCP/IP Troubleshooting Requires More Than Ping TCP/IP is a collection of protocols that allow computers and applications to communicate across interconnected networks. The commonly used four-layer TCP/IP model helps organize these responsibilities. TCP/IP Layer Responsibility Examples Application Application communication and network services HTTP, DNS, DHCP Transport Communication between endpoints TCP, UDP Internet Addressing and routing packets IPv4, IPv6, ICMP Network Access Communication over local network connections Ethernet, Wi-Fi A web application request may depend on several layers working correctly. The computer needs an operational network connection and appropriate addressing. It needs a route toward the destination and may need DNS to translate the application's hostname into an IP address. For a conventional HTTPS connection over TCP, it also needs to establish a connection to the appropriate destination port. TLS negotiation and application processing follow. Modern HTTPS may also use HTTP/3 over QUIC, which runs over UDP. Therefore, the exact transport tests must match the application and protocol being investigated. The important point is that each stage can fail independently. Think of Troubleshooting as a Series of Questions A useful investigation follows the communication path: The application is unavailable | v Is the network interface operational? | v Does the device have valid IP configuration? | v Is there a usable route to the destination? | v Does the expected hostname resolve? | v Can the required transport connection succeed? | v Does the application respond correctly? | v Is performance acceptable? This is a diagnostic model rather than a rule that every investigation must follow exactly this order. If an application provides a clear database authentication error, an engineer may begin with that evidence instead of repeating basic cable checks. The purpose is to isolate the failing component and avoid confusing one symptom with another. 1. Network Interface Failures: When Communication Cannot Start The first category involves the local network connection. A workstation may have an unplugged Ethernet cable, a disabled adapter, incorrect switch-port configuration, or a wireless connection problem. The result may be a completely unavailable connection or intermittent communication. Symptoms Worth Investigating A device may report that its network is disconnected. The operating system might show an inactive adapter, or the connection may repeatedly disappear. Sometimes a physical link exists, but the device still cannot communicate because of an incorrect VLAN or related network-access configuration. Check the Interface on Windows Open PowerShell and run: Get-NetAdapter This displays the available network adapters and their reported operational status. You can also inspect the network configuration: ipconfig /all The second command provides addressing information, but it does not replace a direct examination of the adapter and underlying connection. Check the Interface on Linux Run: ip -br link For additional information: ip link show On systems with the appropriate utility installed, ethtool can provide further details about supported Ethernet connections. Example: An Apparently Connected Workstation Suppose a desktop computer cannot communicate with other devices. The operating system reports that the Ethernet link is unavailable. The engineer checks the physical connection and finds that the cable is not properly connected. After correcting the connection, the link becomes operational. The next step is to verify that IP communication and the required application also work. A restored link does not automatically prove that every higher-layer problem has been resolved. Diagnostic principle: Verify that the local connection is functioning before changing routes, DNS settings, or application configuration. 2. Incorrect IP Configuration: When the Addressing Does Not Match the Network A device can have an active network interface but still lack a usable IP configuration. Common problems include incorrect IPv4 addresses, subnet masks, gateways, and duplicate address assignments. These problems can affect local communication or prevent the device from reaching remote networks. Understanding the Network Prefix Consider this configuration: IPv4 Address: 192.168.10.25 Subnet Mask: 255.255.255.0 Network Prefix: 192.168.10.0/24 Default Gateway: 192.168.10.1 With a /24 prefix, the ordinary local subnet contains addresses in the 192.168.10.0/24 network. The default gateway is also located in that subnet. Now imagine a workstation configured with: IPv4 Address: 192.168.20.25 Subnet Mask: 255.255.255.0 Default Gateway: 192.168.10.1 The configured address and gateway are not within the same directly connected /24 network. Without an additional suitable route or specialized configuration, the workstation may be unable to reach its intended gateway. Diagnose Addressing on Windows Run: ipconfig /all Review the assigned address, subnet mask, default gateway, and DNS configuration. Compare these values with the intended addressing plan. Diagnose Addressing on Linux Run: ip -br address ip route The first command shows the interface addresses. The second displays the installed routes. What About Duplicate IP Addresses? Two devices using the same IPv4 address on the same network may experience unstable connectivity. Symptoms can include intermittent communication, conflicting neighbor information, and unexpected changes in reachability. Engineers should examine address assignments and relevant ARP information before changing configuration. Assigning random replacement addresses can introduce additional conflicts. IPv6 Considerations IPv6 uses different address formats and prefix conventions. A link-local address beginning with fe80:: is normal on IPv6 interfaces and should not automatically be treated as evidence of failure. For IPv6 connectivity, verify the relevant addresses, prefixes, neighbor discovery, and routes. Diagnostic principle: The existence of an IP address does not prove that it is correct for the network. 3. DHCP Failures: When Devices Cannot Obtain the Expected Configuration Dynamic Host Configuration Protocol provides automatic network configuration. In many IPv4 environments, DHCP supplies an address, subnet mask, default gateway, and DNS server information. This reduces the need to configure every workstation manually. Understanding the DHCP Process A typical DHCPv4 assignment follows four messages: Client DHCP Server | | |-------- DHCP Discover -------->| || || || | | Connection established The handshake is defined in the IETF's Transmission Control Protocol specification, RFC 9293. A completed handshake establishes a TCP connection. It does not guarantee that the higher-level application will process a request successfully. Test a TCP Port on Windows Open PowerShell: Test-NetConnection example.com -Port 443 The result includes information about TCP connectivity to the selected destination. The test helps distinguish a port-connectivity problem from basic ICMP reachability. Test on Linux If Netcat is installed: nc -vz example.com 443 For a supported HTTPS service: curl -I https://example.com The first command attempts to establish a TCP connection. The second performs a higher-level HTTPS request for response headers, involving additional protocol processing. Use these commands only against approved destinations. Interpret Common Outcomes Observation Possible Interpretation TCP connection refused The connection was rejected, possibly because no service accepts it TCP connection timed out Filtering, routing, or destination availability may be involved TCP connection succeeds The selected transport endpoint is reachable TCP succeeds but TLS fails Certificate or TLS configuration requires investigation HTTPS returns HTTP 500 The server handled the request but encountered an application-side error A timeout is not conclusive proof of a firewall problem. A connection refused response can also be generated by devices other than the intended server. Why Disabling the Firewall Is Usually the Wrong First Move If a TCP connection fails, the engineer should examine the required service port, the listening process, routing, and applicable filtering rules. Disabling an entire firewall can create unnecessary exposure and may conceal the actual configuration mistake. A safer approach is to identify the specific rule responsible and evaluate an appropriately scoped correction. Diagnostic principle: Ping tests selected network reachability. A TCP connection test examines a different condition. Neither, by itself, guarantees that an application works. 7. Packet Loss, Latency, and MTU: When the Connection Works but Performance Doesn't Not every TCP/IP problem results in a complete outage. Some applications connect successfully but become slow, freeze intermittently, or fail during larger transfers. These symptoms may involve congestion, packet loss, latency, interface problems, or packet-size handling. Packet Loss Packet loss occurs when packets fail to reach their intended destination. Possible causes include network congestion, faulty interfaces, wireless interference, filtering, and overloaded systems. TCP provides retransmission mechanisms to recover from certain lost data. However, retransmissions can increase delays and reduce effective performance. Latency Latency describes the delay involved in communication. High latency can affect interactive applications, remote sessions, and request-response workflows. Jitter Jitter refers to variation in packet delay. It is particularly relevant to real-time voice and video communication. What Is MTU? Maximum Transmission Unit describes a maximum packet size associated with a network link or interface, depending on the technology. A network path may contain links with different MTU values. If packets exceed the supported size and the necessary mechanisms do not operate correctly, communication may be affected. The VPN Example Suppose employees connect through a VPN. They can authenticate and open a web application, but large file transfers repeatedly stall. The VPN adds encapsulation overhead, which can affect the effective packet size available for traffic. The problem might involve MTU configuration or Path MTU Discovery. However, the symptoms alone do not prove that MTU is the root cause. Engineers should review packet behavior, interface statistics, path characteristics, and applicable configuration. Why ICMPv6 Matters For IPv6, ICMPv6 Packet Too Big messages play an important role in standard Path MTU Discovery. Blocking necessary control messages can cause connections to stall when larger packets are transmitted. This illustrates why broadly blocking diagnostic or control protocols can create unintended network problems. Basic Packet-Loss Tests On Windows: ping -n 10 192.168.10.1 On Linux: ping -c 10 192.168.10.1 These commands send a limited number of ICMP probes to the example gateway. Their results can provide useful evidence, but some devices rate-limit or restrict ICMP responses. A short ping test is not sufficient to characterize every application performance problem. Inspecting TCP Retransmissions When an authorized packet capture is available, Wireshark can help examine TCP behavior. One useful display filter is: tcp.analysis.retransmission Retransmissions can indicate that acknowledgments or data were not received as expected. They do not automatically identify which device or link caused the problem. Diagnostic principle: When applications stall or perform poorly, investigate packet behavior and path characteristics rather than assuming that more bandwidth is the only solution. A Decision Matrix for TCP/IP Troubleshooting The seven categories can be organized into a practical diagnostic reference. Reported Symptom Useful Starting Test What to Investigate Network disconnected Get-NetAdapter or ip link Adapter, cable, Wi-Fi, switch port Wrong local IP address ipconfig /all or ip address Address, subnet, assignment Unexpected 169.254.x.x address DHCP settings and logs DHCP server, pool, VLAN, relay Local network works, remote fails route print or ip route Gateway, destination and return routes Hostname cannot resolve nslookup or getent Resolver, zone, DNS record Server responds to ping, app fails TCP port and application test Firewall, service, TLS, application Large transfers stall Capture and performance analysis Loss, MTU, Path MTU Discovery The table does not identify the root cause automatically. It identifies the next area where useful evidence can be collected. Real incidents may involve more than one problem, so the investigation must remain adaptable. Hands-On Lab: Prove That Ping Success Does Not Mean a Web Server Is Running This exercise demonstrates an important TCP/IP principle using a temporary local HTTP server. It requires Python 3 and a terminal. You will run the service on your own computer using the IPv4 loopback address 127.0.0.1. The exercise does not require scanning or changing a corporate network. Lab Objective Start a local HTTP server, verify access, stop the server, and compare the results of IP reachability and application-level tests. Step 1: Prepare a Test Directory Create a folder named: tcpip-troubleshooting-lab Inside that folder, create a file named index.html: TCP/IP Lab Local Web Server The HTTP service is running. This provides a simple page for the web server to return. Step 2: Start the Web Server Open a terminal in the folder. On Windows, where the Python launcher is available: py -m http.server 8000 --bind 127.0.0.1 On Linux: python3 -m http.server 8000 --bind 127.0.0.1 The server listens on TCP port 8000. Binding it to the loopback interface limits access to the local machine under normal operating conditions. Keep this terminal open. Step 3: Test Loopback IP Reachability Open a second terminal. On Windows: ping 127.0.0.1 On Linux: ping -c 2 127.0.0.1 The loopback address should normally respond. This shows that the local host can process the selected ICMP traffic. It does not establish that the web server is running. Step 4: Test the HTTP Application Open the following address in a browser: http://127.0.0.1:8000/ You should see the test page. On Linux, or any environment where the standard curl executable is available, run: curl -I http://127.0.0.1:8000/ On Windows, you can use: curl.exe -I http://127.0.0.1:8000/ With the server running correctly, the request should return HTTP response headers. Step 5: Test the TCP Port on Windows Open PowerShell and run: Test-NetConnection 127.0.0.1 -Port 8000 The TCP test should report success while the local server is accepting connections. This confirms that the selected TCP endpoint is reachable. Step 6: Stop the Server Return to the terminal running the Python HTTP server. Press: Ctrl+C This stops the server process. Step 7: Repeat the Same Tests First, ping the loopback address again. The ping test should normally continue to work. Now repeat the HTTP request: curl -I http://127.0.0.1:8000/ The request should fail if no other service is listening on port 8000. On Windows, repeating the PowerShell TCP test should also indicate that the connection is unsuccessful. Step 8: Compare the Expected Results Test Server Running Server Stopped Loopback ICMP test Normally succeeds Normally succeeds TCP connection to port 8000 Succeeds Fails HTTP request Returns a response Fails These are expected outcomes for the described environment. They are not fabricated results from an independently performed live test. If another process uses port 8000 or local security settings differ, your observed results may not match the table exactly. What the Lab Proves Stopping the server does not normally disable the local IP stack. The computer can still respond to ICMP traffic while no process accepts connections on the application port. This is a useful troubleshooting distinction. An engineer should never conclude that a business application is operational merely because its host responds to ping. Following an Office Outage From Symptom to Root Cause Let's apply the same reasoning to a larger fictional environment. A company has 60 employees connected through several office network segments. Its internal web application is hosted on a different subnet. One morning, employees in a particular office area report that they cannot open the application. First Observation: Only One Network Segment Is Affected The technician confirms that employees in other office areas can access the application. This suggests that the investigation should focus on components or configurations shared by the affected users. However, the scope alone does not identify the failure. Second Observation: Physical Links Are Working The affected workstations show active network interfaces. The technician finds no immediate evidence of disconnected cables or unavailable switch ports. This reduces the likelihood of a simple link failure. Third Observation: IP Addressing Is Correct The workstations have IP addresses and subnet masks consistent with the intended network. Their default gateway configuration also matches the approved addressing plan. Fourth Observation: The Gateway Responds The affected computers can reach their local default gateway using permitted diagnostic traffic. This provides evidence that local IP connectivity is functioning. It does not prove that remote application traffic is reaching its destination. Fifth Observation: The Remote Path Is Incorrect The technician examines the routing configuration. The relevant router does not contain the expected route toward the application subnet. The engineer checks the routing design and confirms that the missing route is necessary for the intended communication path. The return route is also examined. Sixth Observation: Application Security Rules Are Appropriate The team reviews the intended firewall policy. The required application traffic is permitted through the relevant controls. The evidence points to routing rather than a firewall configuration error. Seventh Observation: The Route Is Corrected An authorized network engineer applies the appropriate routing change using the organization's change-management process. The team repeats the original application test. The affected users can now access the application. Final Verification The engineer checks the resulting routing information and confirms that the expected communication path works. The incident is documented with its symptoms, evidence, confirmed cause, correction, and verification results. This fictional scenario demonstrates a disciplined process rather than a specific real-world outage. Its value is the reasoning. The first symptom was an unavailable application, but the underlying problem was a missing route. Changing DNS servers, replacing cables, or broadly disabling firewalls would not have addressed the confirmed cause. Essential Windows and Linux Commands for Network Troubleshooting Different operating systems provide tools for examining similar problems. Diagnostic Task Windows Linux Inspect network interfaces Get-NetAdapter ip link show Review IP addresses ipconfig /all ip address show Examine routes route print ip route Check reachability ping ping Examine network path tracert traceroute Check DNS Resolve-DnsName getent ahosts Test a TCP port Test-NetConnection nc Examine neighbor information arp -a ip neigh Inspect connections Get-NetTCPConnection ss -tuna Analyze packets Wireshark Wireshark or tcpdump Some commands require additional packages, appropriate permissions, or platform-specific options. Knowing what a command measures is more important than memorizing the complete list. For example, ip route shows routing information, while ss can help examine sockets and connection states. Neither replaces application logs when the underlying failure is inside the application itself. TCP/IP Troubleshooting Practices That Prevent Bigger Problems Collect Evidence Before Changing Configuration Record the error, affected systems, relevant addresses, and observed behavior. A change made before collecting evidence may temporarily hide the problem without identifying its cause. Compare a Working and Failing Device If one workstation succeeds and another fails, compare their configurations and network paths. This can reveal differences in DNS settings, gateway information, access policies, or application behavior. Avoid Changing Several Variables at Once Changing routes, firewall rules, and DNS settings simultaneously makes it difficult to identify which change resolved the issue. Where practical, make one controlled correction and verify the result. Don't Use ICMP as the Only Test A failed ping does not necessarily mean that the destination application is unavailable. A successful ping does not prove that a TCP port or HTTP service is working. Choose tests that match the actual user-facing service. Consider IPv4 and IPv6 Modern environments may support both address families. A problem might affect one protocol family while the other continues working. Check the application's actual destination addresses and selected network path. Protect Remote Administrative Sessions Renewing IP configuration, disabling interfaces, or changing routes can disconnect a remote session. Perform potentially disruptive actions only with authorization and suitable recovery procedures. Document the Root Cause A useful incident report should explain what failed, which evidence supported the diagnosis, which correction was made, and how normal behavior was verified. Documentation makes future investigations more efficient. A Four-Week TCP/IP Troubleshooting Learning Roadmap A structured learning plan can help beginners turn protocol knowledge into practical investigation skills. Week Learning Focus Practical Exercise 1 Network access and IP addressing Inspect interfaces, addresses, and routes 2 DHCP, DNS, and routing Diagnose incorrect configurations 3 TCP connections and packet behavior Complete the Python HTTP server lab 4 Integrated troubleshooting Introduce controlled faults in a network lab Week 1: Understand Basic Connectivity Study Ethernet, IPv4, IPv6, TCP, UDP, and the TCP/IP model. Practice identifying whether a problem concerns the local connection or a higher networking layer. Week 2: Investigate Configuration Problems Use sample addressing plans, routing tables, DHCP settings, and DNS records. Practice identifying differences between intended and actual configurations. Week 3: Understand Application Connectivity Study the TCP handshake and common connection failures. Run the local web-server exercise and compare ICMP, TCP, and HTTP test results. Week 4: Combine the Skills Build a small network in an authorized lab environment. Introduce one fault at a time, such as an incorrect subnet mask, missing default route, or unavailable DNS resolver. Collect evidence, identify the cause, restore the working configuration, and document the result. The four-week schedule is a learning framework, not a guarantee of professional-level troubleshooting competence. Why TCP/IP Troubleshooting Still Matters in Cloud and Security Roles TCP/IP troubleshooting is not limited to traditional network engineers. Systems administrators need it to investigate server connectivity and network services. Cloud engineers use the same principles when diagnosing virtual networks, routes, private endpoints, DNS, and application dependencies. Cybersecurity analysts examine TCP connections, network flows, DNS activity, and suspicious communication patterns. Software developers also benefit from understanding the difference between network connectivity and application behavior. For example, a cloud-hosted application can fail because of a missing route, an incorrectly scoped security rule, an unavailable service, or an application authorization error. Each problem requires different evidence. The underlying principles remain useful even as organizations introduce more automation and managed networking services. AI-assisted troubleshooting tools may suggest commands or possible explanations, but engineers still need to validate those suggestions against actual results. Closing: Troubleshoot the Failure, Not the Symptom TCP/IP networking problems can produce similar user complaints even when their causes are completely different. A disconnected network adapter prevents communication at the local connection level. Incorrect addressing or DHCP configuration can stop a device from using the intended network. Routing problems can prevent packets from reaching remote destinations, while DNS failures can stop users from resolving application names. Firewall restrictions and unavailable services can prevent transport connections even when a host responds to ping. Packet loss, latency, and MTU problems can produce slow or intermittent behavior that requires deeper analysis. These seven categories demonstrate why effective troubleshooting should be systematic. The local Python lab illustrates a particularly important distinction: the IP stack can remain functional while an application service is unavailable. The fictional office outage shows the same principle at a larger scale. The network's local connections and IP configuration were correct, but a missing route prevented the application from being reached. Both examples emphasize the importance of evidence. The goal of TCP/IP troubleshooting is not to find a command that makes an error disappear. It is to identify the point where expected communication differs from actual behavior, explain why that difference exists, and verify that the correction restores the required service. That approach remains useful across network engineering, systems administration, cybersecurity, cloud infrastructure, and software operations.
7 TCP/IP Networking Problems and How to Diagnose Them Without Guessing
Full Article
Original Source
Read the full article at Hackernoon →KhanList aggregates and links to publicly available news content. We do not host full articles from third-party sources. Always verify important information with original sources.