
Network Troubleshooting Methodology: วิธี Troubleshoot Network อย่างเป็นระบบ
Network Troubleshooting เป็นทักษะที่สำคัญที่สุดของ network engineer เมื่อเกิดปัญหา network ผู้ใช้ต้องการให้แก้ไขเร็วที่สุด การมี methodology ที่เป็นระบบทำให้หาสาเหตุได้เร็ว ไม่ต้องลองผิดลองถูก และไม่ทำให้ปัญหาแย่ลง
network engineer หลายคน กระโดดไปแก้ปัญหาทันที โดยไม่วิเคราะห์ก่อน ผลคือเสียเวลามาก หรือแก้ผิดจุดทำให้ปัญหาแย่ลง บทความนี้จะสอน troubleshooting methodology ที่เป็นระบบ พร้อมเครื่องมือและเทคนิค
Troubleshooting Methodology
7 Steps
Step 1 – Define the Problem: ถามผู้แจ้งปัญหาให้ชัดเจน: อะไรไม่ทำงาน? เมื่อไหร่เริ่มมีปัญหา? กระทบใครบ้าง? มีอะไรเปลี่ยนแปลงก่อนเกิดปัญหา? Step 2 – Gather Information: เก็บข้อมูล: logs, show commands, monitoring data, topology diagram Step 3 – Analyze Information: วิเคราะห์ข้อมูลที่เก็บได้ เปรียบเทียบกับ baseline (ปกติเป็นอย่างไร) Step 4 – Eliminate Possibilities: ตัดสาเหตุที่เป็นไปไม่ได้ออก จำกัดสาเหตุให้แคบลง Step 5 – Propose Hypothesis: ตั้งสมมติฐานว่าสาเหตุน่าจะเป็นอะไร Step 6 – Test Hypothesis: ทดสอบสมมติฐาน (ทำ change 1 อย่างต่อครั้ง) Step 7 – Solve and Document: แก้ไขปัญหา + บันทึก root cause + solution สำหรับอ้างอิงในอนาคต
Troubleshooting Approaches
| Approach | วิธี | เหมาะกับ |
|---|---|---|
| Top-Down | เริ่มจาก Layer 7 ลงมา Layer 1 | Application issues (ผู้ใช้ใช้ app ไม่ได้) |
| Bottom-Up | เริ่มจาก Layer 1 ขึ้นไป Layer 7 | Physical issues (สายหลุด, port down) |
| Divide and Conquer | เริ่มจาก Layer กลาง (L3) แล้วขยาย | ไม่แน่ใจว่าปัญหาอยู่ layer ไหน (แนะนำ) |
| Follow the Path | trace traffic path จาก source ไป destination | Connectivity issues |
| Compare Config | เทียบ config กับอุปกรณ์ที่ทำงานปกติ | Config change issues |
Layer-by-Layer Troubleshooting
Layer 1 (Physical)
| ตรวจสอบ | เครื่องมือ | ปัญหาที่พบบ่อย |
|---|---|---|
| สาย LAN เสียบแน่น? | ตาเปล่า, link light | สายหลุด, สายเสีย |
| Link light สว่าง? | Switch port LED | Port disabled, speed mismatch |
| สาย LAN ดี? | Cable tester, Fluke | สายขาด, crimping ไม่ดี |
| SFP/optic ดี? | show interfaces, optical power | SFP เสีย, dirty connector |
Layer 2 (Data Link)
| ตรวจสอบ | Commands | ปัญหาที่พบบ่อย |
|---|---|---|
| VLAN ถูกต้อง? | show vlan brief | Port อยู่ผิด VLAN |
| MAC address เรียนรู้? | show mac address-table | MAC ไม่มี = L1 issue |
| STP blocking? | show spanning-tree | Port ถูก block โดย STP |
| Trunk ทำงาน? | show interfaces trunk | Trunk down, native VLAN mismatch |
| Port security? | show port-security | Port ถูก shutdown เพราะ violation |
Layer 3 (Network)
| ตรวจสอบ | Commands | ปัญหาที่พบบ่อย |
|---|---|---|
| IP address ถูกต้อง? | ipconfig (Win), ip addr (Linux) | IP ผิด, DHCP fail |
| Ping gateway ได้? | ping [gateway IP] | Gateway down, wrong gateway |
| Ping destination ได้? | ping [dest IP] | Routing issue, ACL block |
| Routing table ถูก? | show ip route | Missing route, wrong next-hop |
| ACL block? | show access-lists | ACL deny traffic ที่ต้องการ |
Layer 4-7 (Transport/Application)
| ตรวจสอบ | Commands | ปัญหาที่พบบ่อย |
|---|---|---|
| Port เปิด? | telnet [IP] [port], nmap | Firewall block, service down |
| DNS resolve ได้? | nslookup [domain] | DNS server down, wrong DNS |
| Service running? | systemctl status, netstat | Service crashed, port conflict |
| Certificate valid? | openssl s_client, browser | Expired cert, wrong hostname |
Essential Tools
| Tool | ใช้ทำอะไร |
|---|---|
| ping | ตรวจ connectivity (L3) |
| traceroute/tracert | trace path ไป destination |
| nslookup/dig | ตรวจ DNS resolution |
| Wireshark | Capture + analyze packets (deep analysis) |
| iperf3 | ทดสอบ bandwidth/throughput |
| MTR | ping + traceroute combined (real-time) |
| SNMP monitoring | ดู interface errors, utilization, CPU/memory |
Common Mistakes
ทำ Change หลายอย่างพร้อมกัน
อย่าเปลี่ยนหลายอย่างพร้อมกัน ทำ 1 change ต่อครั้ง ทดสอบ ถ้าไม่ได้ผล rollback แล้วลองอย่างอื่น ถ้าเปลี่ยนหลายอย่างพร้อมกัน จะไม่รู้ว่าอะไรแก้ปัญหา (หรืออะไรทำให้แย่ลง)
ไม่ Document
เมื่อแก้ปัญหาได้แล้ว ต้องบันทึก: root cause, symptoms, solution, prevention เก็บใน knowledge base (Confluence, wiki) เพื่อให้ทีมอ้างอิงได้ ปัญหาเดียวกันอาจเกิดซ้ำ ไม่ต้อง troubleshoot ใหม่ตั้งแต่ต้น
ทิ้งท้าย: Methodology สำคัญกว่า Tools
Troubleshooting ที่ดีไม่ได้อยู่ที่มีเครื่องมือดี แต่อยู่ที่ methodology ที่เป็นระบบ Define → Gather → Analyze → Eliminate → Hypothesize → Test → Solve ทำ 1 change ต่อครั้ง document ทุกครั้ง
อ่านเพิ่มเติมเกี่ยวกับ Wireshark Tutorial และ Syslog Server Graylog ที่ siamlancard.com หรือจาก icafeforex.com และ siam2r.com