SlideShare a Scribd company logo
1 of 20
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

Similar to NW_Tools.ppt

ip net basic understanding slide show ppt
ip net basic understanding slide show pptip net basic understanding slide show ppt
ip net basic understanding slide show ppt
lolo749806
 
Chapter 01 - Overview
Chapter 01 - OverviewChapter 01 - Overview
Chapter 01 - Overview
phanleson
 
1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf
1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf
1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf
eyebolloptics
 

Similar to NW_Tools.ppt (20)

Commands.pptx
Commands.pptxCommands.pptx
Commands.pptx
 
Internet protocols
Internet protocolsInternet protocols
Internet protocols
 
Chapter_3_Networking.ppt
Chapter_3_Networking.pptChapter_3_Networking.ppt
Chapter_3_Networking.ppt
 
Chapter_3_Networking.ppt
Chapter_3_Networking.pptChapter_3_Networking.ppt
Chapter_3_Networking.ppt
 
ip-basics.ppt
ip-basics.pptip-basics.ppt
ip-basics.ppt
 
ip net basic understanding slide show ppt
ip net basic understanding slide show pptip net basic understanding slide show ppt
ip net basic understanding slide show ppt
 
Chapter 01 - Overview
Chapter 01 - OverviewChapter 01 - Overview
Chapter 01 - Overview
 
CNF.Chap.5.pptx
CNF.Chap.5.pptxCNF.Chap.5.pptx
CNF.Chap.5.pptx
 
16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)16.) layer 3 (basic tcp ip routing)
16.) layer 3 (basic tcp ip routing)
 
CCNA Interview.pdf
CCNA Interview.pdfCCNA Interview.pdf
CCNA Interview.pdf
 
TCP Model
TCP ModelTCP Model
TCP Model
 
1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf
1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf
1)Please explain the commands ifconfig, ping, traceroute, netstat, d.pdf
 
Ethical hacking Chapter 2 - TCP/IP - Eric Vanderburg
Ethical hacking   Chapter 2 - TCP/IP - Eric VanderburgEthical hacking   Chapter 2 - TCP/IP - Eric Vanderburg
Ethical hacking Chapter 2 - TCP/IP - Eric Vanderburg
 
Lecture 01
Lecture 01Lecture 01
Lecture 01
 
Mod5
Mod5Mod5
Mod5
 
Internet protocol (ip) ppt
Internet protocol (ip) pptInternet protocol (ip) ppt
Internet protocol (ip) ppt
 
TCP-IP NETWORKING FOR WIRELESS SYSTEMS
TCP-IP NETWORKING FOR WIRELESS SYSTEMS TCP-IP NETWORKING FOR WIRELESS SYSTEMS
TCP-IP NETWORKING FOR WIRELESS SYSTEMS
 
IP Utilites
IP UtilitesIP Utilites
IP Utilites
 
transport protocols
transport protocolstransport protocols
transport protocols
 
OSI layer by cisco
OSI layer by ciscoOSI layer by cisco
OSI layer by cisco
 

More from jaba kumar (6)

Python-review1.ppt
Python-review1.pptPython-review1.ppt
Python-review1.ppt
 
blood donation camp.ppt
blood donation camp.pptblood donation camp.ppt
blood donation camp.ppt
 
SQL Data types and Constarints.pptx
SQL Data types and Constarints.pptxSQL Data types and Constarints.pptx
SQL Data types and Constarints.pptx
 
2.Introduction to Network Devices.ppt
2.Introduction to Network Devices.ppt2.Introduction to Network Devices.ppt
2.Introduction to Network Devices.ppt
 
Python - Module 1.ppt
Python - Module 1.pptPython - Module 1.ppt
Python - Module 1.ppt
 
FDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.docFDS-CS8393 BME MODEL QP2.doc
FDS-CS8393 BME MODEL QP2.doc
 

Recently uploaded

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
ssuser89054b
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
Neometrix_Engineering_Pvt_Ltd
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
MayuraD1
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
mphochane1998
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
MsecMca
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
jaanualu31
 

Recently uploaded (20)

Computer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to ComputersComputer Lecture 01.pptxIntroduction to Computers
Computer Lecture 01.pptxIntroduction to Computers
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 
Integrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - NeometrixIntegrated Test Rig For HTFE-25 - Neometrix
Integrated Test Rig For HTFE-25 - Neometrix
 
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
COST-EFFETIVE  and Energy Efficient BUILDINGS ptxCOST-EFFETIVE  and Energy Efficient BUILDINGS ptx
COST-EFFETIVE and Energy Efficient BUILDINGS ptx
 
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptxA CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
A CASE STUDY ON CERAMIC INDUSTRY OF BANGLADESH.pptx
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
Bhubaneswar🌹Call Girls Bhubaneswar ❤Komal 9777949614 💟 Full Trusted CALL GIRL...
 
DeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakesDeepFakes presentation : brief idea of DeepFakes
DeepFakes presentation : brief idea of DeepFakes
 
Learn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic MarksLearn the concepts of Thermodynamics on Magic Marks
Learn the concepts of Thermodynamics on Magic Marks
 
Engineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planesEngineering Drawing focus on projection of planes
Engineering Drawing focus on projection of planes
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments""Lesotho Leaps Forward: A Chronicle of Transformative Developments"
"Lesotho Leaps Forward: A Chronicle of Transformative Developments"
 
notes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.pptnotes on Evolution Of Analytic Scalability.ppt
notes on Evolution Of Analytic Scalability.ppt
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills KuwaitKuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
Kuwait City MTP kit ((+919101817206)) Buy Abortion Pills Kuwait
 
Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 

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