SlideShare a Scribd company logo
Network Debugging
Organizational Communications
and Technologies
Prithvi Rao
H. John Heinz III School of Public
Policy and Management
Carnegie Mellon University
Objectives
 Present some examples of debugging tools
Readings
Suggested reading: Class notes
Practical Internetworking with TCP/IP
and UNIX (not required)
Tools for Debugging
 Most tools are available for Unix based systems (most
servers are likely to be UNIX)
 Some tools are freely available (traceroute and dig)
 Some proprietary tools exist (etherfind)
Ping
 Simple yet valuable network debugging tool
 Sends an ICMP echo request message to remote host
 Remote host sends back an ICMP echo and reply message
 Sending an echo is called “pinging”
 Good baseline test of connectivity
 Successful ping implies that IP packets can be exchanged
 Network routing is also tested with ping
Example
% ping unix5.andrew.cmu.edu
unix5.andrew.cmu.edu is alive
Ping
 Variant of first form of ping
Example
% ping -s akasha.tic.com 5
no response from akasha.tic.com
64 bytes from akasha.tic.com (192.12.23.130) icmp_seq = 0, time = 6 ms
64 bytes from akasha.tic.com (192.12.23.130) icmp_seq = 1, time = 5 ms
64 bytes from akasha.tic.com (192.12.23.130) icmp_seq =2, time = 5 ms
In this case command times out after 5 seconds
Ping
 Echo request and echo reply are part of ICMP
 Ping does not rely on application server running on
remote host
 Relies on network interface card to be configured
properly
 Unix host in single-user-mode will respond to ping
commands
Remote Script
 Script that permits running of arbitrary command on
remote machine
 Uses the remote shell (rsh) protocol
Example
% remote uptime –h unix5.andrew.cmu.edu
Host: unix5.andrew.cmu.edu
8:30 am up 5 days <time> <#users> <load average>
Netstat
 Netstat is jack-of-all-trades network tool
 Can display connections, interfaces, routing tables and traffic
statistics
 Active connection display
 Statistics display
 Interfaces
 Routing
Routing: netstat -r
 Displays kernel routing table
Example
% netstat –r
Destination Gateway Flags Refcnt Use Interface
127.0.0.1 127.0.01 UH 12 244870 le0
default 192.12.23.132 UG 0 51 le0
192.12.23.128 192.12.23.129 U 16 8248341 le0
Routing: netstat -r
 Gateway is the IP address of the next hop to which
to send address
 Flags is the status of each route
 Refcnt is the current number of active TCP
connections
 Use is the total number of IP packets sent using
route
 Interface is the logical name of the local interface
Routing: netstat -i
 Can display status of all interfaces
Example
% netstat –i –n
Name MTU Net/Dest Address Ipkts Ierrs Opkts Oerrs Coll
le0 1500 192.12.23.128 192.12.23.129 8141411 0 7902647 0 61
Routing: netstat -i
 Name is logical name of network
 MTU is size in bytes of MTU interface
 Net/Dest IP address of network to which interface is connected
or that of end-point of link
 Address is local IP address of interface
 Ipkts is count of datalink frames received on link since last
bootstrap
 Ierrs is number of datalink frames received with errors and
dropped by interface
 Opkts is datalink frames sent on interface since last boot
 Oerrs count of frames not sent due to output errors
 Coll is count of collisions detected by this interface
Routing: netstat -f
 Permits looking at TCP and UDP packets only
Example
% netstat –f inet
Active internet connections
Proto Rec-Q Req-Q Local Address Foreign Address (state)
tcp 0 4096 kiwilabs.com kia.smtp ESTABLISHED
Routing: netstat -f
 Proto is the protocol (TCP or UDP)
 Recv-Q number of bytes in socket input queue
 Send-Q number of bytes in socket output queue
 Local address set of period separated names
 Foreign address is remote socket address given in
format of local address
 (state) is current state of TCP connection. Field is
always empty for UDP connections
Traceroute
 Traces route an IP packet takes to destination host
 Takes single hostname argument and lists all intermediate router
 Sends three UDP messages encapsulated in an IP packet and
records the round-trip time in milliseconds for each message sent
to intermediate router
 Lost message or router that does not respond is denoted with a “*”
Example
% traceroute unix5.andrew.cmu.edu
ARP: Address Resolution
Protocol
 Arp command permits the examining and modifying
of local ARP cache
Example
% arp -a
Etherfind
 Specific to Sun for tracing Ethernet frames
 Performs functions of a network analyzer
 Output can be piped to other unix tools (grep, awk, sed)
 Can display selective frames
 Mainly useful for TCP/IIP
Example
% etherfind –i le0 –v –t greater 0
nslookup
 Simple tool for querying DNS servers
 Without arguments user is prompted for queries
Example
% nslookup <unix5>
> unix5
> ls kiwilabs.com
> set type = pttr
> set type = any
Summary
 Presented examples of network debugging tools
 Discussed the use of these tools for various purposes

More Related Content

PPTX
PPTX
98 366 mva slides lesson 5
PPT
Linux networking
PPT
Day2
PPT
dokumen.tips_linux-networking-commands.ppt
DOCX
PDF
nwlab-ex1.pdf
PPTX
linux networking laboratory presentation .pptx
98 366 mva slides lesson 5
Linux networking
Day2
dokumen.tips_linux-networking-commands.ppt
nwlab-ex1.pdf
linux networking laboratory presentation .pptx

Similar to NW_Tools.ppt (20)

PPTX
Commands.pptx
PPTX
Troubleshooting Network and Network Utilities
PDF
Linux network tools (Maarten Blomme)
PPTX
SOFTWARE TOOLS(Bhavik).pptx
PPTX
14 network tools
PPTX
Wireshark, Tcpdump and Network Performance tools
PDF
Chapter 3 footprinting
PDF
Linuxnetworkingcommands
PPT
Wireshark Basics
PDF
Internet Technology Practical (Mumbai University) -2017
PPT
Linux Networking Commands
DOC
Simple network troubleshooting
PPT
Networking session-4-final by aravind.R
PPT
TCP troubleshooting-prnt.ppt
DOCX
HS1011 Data Communication and Networks 13 August 2015 HS101.docx
PDF
Handy Networking Tools and How to Use Them
PDF
Network Security Fundamentals Final.pptx
PDF
packet traveling (pre cloud)
PDF
Network commands
PDF
Top 10 Network Troubleshooting Commands.pdf
Commands.pptx
Troubleshooting Network and Network Utilities
Linux network tools (Maarten Blomme)
SOFTWARE TOOLS(Bhavik).pptx
14 network tools
Wireshark, Tcpdump and Network Performance tools
Chapter 3 footprinting
Linuxnetworkingcommands
Wireshark Basics
Internet Technology Practical (Mumbai University) -2017
Linux Networking Commands
Simple network troubleshooting
Networking session-4-final by aravind.R
TCP troubleshooting-prnt.ppt
HS1011 Data Communication and Networks 13 August 2015 HS101.docx
Handy Networking Tools and How to Use Them
Network Security Fundamentals Final.pptx
packet traveling (pre cloud)
Network commands
Top 10 Network Troubleshooting Commands.pdf

More from jaba kumar (6)

PPT
Python-review1.ppt
PPT
blood donation camp.ppt
PPTX
SQL Data types and Constarints.pptx
PPT
2.Introduction to Network Devices.ppt
PPT
Python - Module 1.ppt
DOC
FDS-CS8393 BME MODEL QP2.doc
Python-review1.ppt
blood donation camp.ppt
SQL Data types and Constarints.pptx
2.Introduction to Network Devices.ppt
Python - Module 1.ppt
FDS-CS8393 BME MODEL QP2.doc

Recently uploaded (20)

PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PPTX
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
DOCX
573137875-Attendance-Management-System-original
PPT
Project quality management in manufacturing
PPTX
additive manufacturing of ss316l using mig welding
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PDF
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
PPTX
bas. eng. economics group 4 presentation 1.pptx
PDF
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PPTX
Construction Project Organization Group 2.pptx
PPTX
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
PDF
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
PPTX
Current and future trends in Computer Vision.pptx
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Internet of Things (IOT) - A guide to understanding
DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PDF
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
PDF
R24 SURVEYING LAB MANUAL for civil enggi
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
MET 305 2019 SCHEME MODULE 2 COMPLETE.pptx
573137875-Attendance-Management-System-original
Project quality management in manufacturing
additive manufacturing of ss316l using mig welding
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
BIO-INSPIRED HORMONAL MODULATION AND ADAPTIVE ORCHESTRATION IN S-AI-GPT
bas. eng. economics group 4 presentation 1.pptx
Evaluating the Democratization of the Turkish Armed Forces from a Normative P...
Foundation to blockchain - A guide to Blockchain Tech
Construction Project Organization Group 2.pptx
M Tech Sem 1 Civil Engineering Environmental Sciences.pptx
Human-AI Collaboration: Balancing Agentic AI and Autonomy in Hybrid Systems
Current and future trends in Computer Vision.pptx
Embodied AI: Ushering in the Next Era of Intelligent Systems
Internet of Things (IOT) - A guide to understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
Unit I ESSENTIAL OF DIGITAL MARKETING.pdf
PREDICTION OF DIABETES FROM ELECTRONIC HEALTH RECORDS
R24 SURVEYING LAB MANUAL for civil enggi

NW_Tools.ppt

  • 1. Network Debugging Organizational Communications and Technologies Prithvi Rao H. John Heinz III School of Public Policy and Management Carnegie Mellon University
  • 2. Objectives  Present some examples of debugging tools
  • 3. Readings Suggested reading: Class notes Practical Internetworking with TCP/IP and UNIX (not required)
  • 4. Tools for Debugging  Most tools are available for Unix based systems (most servers are likely to be UNIX)  Some tools are freely available (traceroute and dig)  Some proprietary tools exist (etherfind)
  • 5. Ping  Simple yet valuable network debugging tool  Sends an ICMP echo request message to remote host  Remote host sends back an ICMP echo and reply message  Sending an echo is called “pinging”  Good baseline test of connectivity  Successful ping implies that IP packets can be exchanged  Network routing is also tested with ping Example % ping unix5.andrew.cmu.edu unix5.andrew.cmu.edu is alive
  • 6. Ping  Variant of first form of ping Example % ping -s akasha.tic.com 5 no response from akasha.tic.com 64 bytes from akasha.tic.com (192.12.23.130) icmp_seq = 0, time = 6 ms 64 bytes from akasha.tic.com (192.12.23.130) icmp_seq = 1, time = 5 ms 64 bytes from akasha.tic.com (192.12.23.130) icmp_seq =2, time = 5 ms In this case command times out after 5 seconds
  • 7. Ping  Echo request and echo reply are part of ICMP  Ping does not rely on application server running on remote host  Relies on network interface card to be configured properly  Unix host in single-user-mode will respond to ping commands
  • 8. Remote Script  Script that permits running of arbitrary command on remote machine  Uses the remote shell (rsh) protocol Example % remote uptime –h unix5.andrew.cmu.edu Host: unix5.andrew.cmu.edu 8:30 am up 5 days <time> <#users> <load average>
  • 9. Netstat  Netstat is jack-of-all-trades network tool  Can display connections, interfaces, routing tables and traffic statistics  Active connection display  Statistics display  Interfaces  Routing
  • 10. Routing: netstat -r  Displays kernel routing table Example % netstat –r Destination Gateway Flags Refcnt Use Interface 127.0.0.1 127.0.01 UH 12 244870 le0 default 192.12.23.132 UG 0 51 le0 192.12.23.128 192.12.23.129 U 16 8248341 le0
  • 11. Routing: netstat -r  Gateway is the IP address of the next hop to which to send address  Flags is the status of each route  Refcnt is the current number of active TCP connections  Use is the total number of IP packets sent using route  Interface is the logical name of the local interface
  • 12. Routing: netstat -i  Can display status of all interfaces Example % netstat –i –n Name MTU Net/Dest Address Ipkts Ierrs Opkts Oerrs Coll le0 1500 192.12.23.128 192.12.23.129 8141411 0 7902647 0 61
  • 13. Routing: netstat -i  Name is logical name of network  MTU is size in bytes of MTU interface  Net/Dest IP address of network to which interface is connected or that of end-point of link  Address is local IP address of interface  Ipkts is count of datalink frames received on link since last bootstrap  Ierrs is number of datalink frames received with errors and dropped by interface  Opkts is datalink frames sent on interface since last boot  Oerrs count of frames not sent due to output errors  Coll is count of collisions detected by this interface
  • 14. Routing: netstat -f  Permits looking at TCP and UDP packets only Example % netstat –f inet Active internet connections Proto Rec-Q Req-Q Local Address Foreign Address (state) tcp 0 4096 kiwilabs.com kia.smtp ESTABLISHED
  • 15. Routing: netstat -f  Proto is the protocol (TCP or UDP)  Recv-Q number of bytes in socket input queue  Send-Q number of bytes in socket output queue  Local address set of period separated names  Foreign address is remote socket address given in format of local address  (state) is current state of TCP connection. Field is always empty for UDP connections
  • 16. Traceroute  Traces route an IP packet takes to destination host  Takes single hostname argument and lists all intermediate router  Sends three UDP messages encapsulated in an IP packet and records the round-trip time in milliseconds for each message sent to intermediate router  Lost message or router that does not respond is denoted with a “*” Example % traceroute unix5.andrew.cmu.edu
  • 17. ARP: Address Resolution Protocol  Arp command permits the examining and modifying of local ARP cache Example % arp -a
  • 18. Etherfind  Specific to Sun for tracing Ethernet frames  Performs functions of a network analyzer  Output can be piped to other unix tools (grep, awk, sed)  Can display selective frames  Mainly useful for TCP/IIP Example % etherfind –i le0 –v –t greater 0
  • 19. nslookup  Simple tool for querying DNS servers  Without arguments user is prompted for queries Example % nslookup <unix5> > unix5 > ls kiwilabs.com > set type = pttr > set type = any
  • 20. Summary  Presented examples of network debugging tools  Discussed the use of these tools for various purposes