Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study One

Problem Overview

  • An example of a network issue where a computer client, after connecting to a wireless network AP, cannot log in to the application process.

Problem Phenomenon

After entering the username and password, the following error is returned:Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study One

Problem Localization

  1. From the error message, it can be seen that the login failed (connection failed. Please confirm the communication status. (500))Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study One

  2. Locating the issue from the error code:HTTP status code 500 indicates “Internal Server Error”, which means the server encountered an unhandled exception or error while trying to process the client request.

  3. Try using another network to obtain a sniffer log of a normal connection to the server for localization purposes.Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study OneBy filtering, we found the server’s IP address, and after filtering, a normal TCP connection was established.

  4. Attempt to capture the air packets of the problematic AP.Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study OneFrom the above sniffer log, it can be seen that after the client attempts to establish a TCP connection, it does not receive an ACK from the server, leading to continuous TCP connection retries. The destination port number for the TCP connection request is 5061, and multiple connection establishment requests were sent, ultimately resulting in failure.

  5. Capture tcpdump packets to see if it is related to the network firewall netfilter.Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study OneFrom the filtered logs, it can be seen that the TCP packets did not pass through the firewall rules, resulting in HTTP connection failure.

  6. Compare firewall rules.Locate through local firewall comparison.Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study OneIt was found that there were differences in port (protocol) filtering.The difference is:Detailed Analysis of Network Issue Localization in Linux WLAN: Case Study One

  7. Set this firewall rule to allow by default, and the problem is resolved.

Leave a Comment