Network Debugging Organizational Communications and Technologies Prithvi Rao H. John Heinz III School of Public Policy and Management Carnegie Mellon University.

Slides:



Advertisements
Similar presentations
Computer Networks21-1 Chapter 21. Network Layer: Address Mapping, Error Reporting, and Multicasting 21.1 Address Mapping 21.2 ICMP 21.3 IGMP 21.4 ICMPv6.
Advertisements

21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
SYSTEM ADMINISTRATION Chapter 19
Chapter 13: Troubleshooting network connectivity Unit objectives Identify TCP/IP troubleshooting tools Discuss the Telnet utility and its functions Discuss.
MCDST : Supporting Users and Troubleshooting a Microsoft Windows XP Operating System Chapter 13: Troubleshoot TCP/IP.
CSCE 515: Computer Network Programming Chin-Tser Huang University of South Carolina.
Internet Control Message Protocol (ICMP)
CPSC 441 Tutorial - Network Tools 1 Network Tools CPSC 441 – Computer Communications Tutorial.
Network Management And Debugging
IP Routing: an Introduction. Quiz
ICMP: Ping and Trace CCNA 1 version 3.0 Rick Graziani Spring 2005.
CISCO NETWORKING ACADEMY Chabot College ELEC ping & traceroute.
1 ICMP – Using Ping and Trace CCNA Semester
TCP/IP Tools Lesson 5. Objectives Skills/ConceptsObjective Domain Description Objective Domain Number Using basic TCP/IP commands Understanding TCP/IP3.6.
Click to edit Master subtitle style Chapter 17: Troubleshooting Tools Instructor:
CS 356 Systems Security Spring Dr. Indrajit Ray
Lecture 8 Modeling & Simulation of Communication Networks.
Linux Networking Commands
IST 228\Ch3\IP Addressing1 TCP/IP and DoD Model (TCP/IP Model)
1 ICMP : Internet Control Message Protocol Computer Network System Sirak Kaewjamnong.
SUSE Linux Enterprise Server Administration (Course 3037) Chapter 7 Connect the SUSE Linux Enterprise Server to the Network.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Module 1: Reviewing the Suite of TCP/IP Protocols.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
Internet Control Message Protocol ICMP. ICMP has two major purposes: –To report erroneous conditions –To diagnose network problems ICMP has two major.
Petrozavodsk State University, Alex Moschevikin, 2003NET TECHNOLOGIES Internet Control Message Protocol ICMP author -- J. Postel, September The purpose.
58 Troubleshooting Network Connectivity Version A.01 H3065S Module 6 Slides.
Network Administration
TCP/IP Protocol Suite 1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 9 Internet Control Message.
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Herramientas para diagnósticos. Ping USO: Ping nombre.dominio o dirección IP Options: -t Ping the specifed host until interrupted. -a Resolve addresses.
Mr. Mturi Elias University Computing Centre SYSTEMS ADMIN TRAINING WORKSHOP.
Exploring the Packet Delivery Process Chapter
ICMP : Internet Control Message Protocol. Introduction ICMP is often considered part of the IP layer. It communicates error messages and other conditions.
1 IP: putting it all together Part 2 G53ACC Chris Greenhalgh.
Network Tools TCP/IP interface configuration query - MAC (HW) address and IP address – Linux - /sbin/ifconfig – MS Windows – ipconfig/all 1.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
PA3: Router Junxian (Jim) Huang EECS 489 W11 /
Examining TCP/IP.
TCP/IP and the Internet ARPANET (1969) –R&D network funded by DARPA. –Packet Switching Survive nuclear war. –Experimental to operational (1975). –Not suitable.
IP Forwarding.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 9 Basic Router Troubleshooting.
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 ICMP: A helper protocol to IP The Internet Control Message Protocol (ICMP) is the protocol used for error.
1 Internet Tool Practice 한두균 송정환
1 Internet Control Message Protocol (ICMP) Used to send error and control messages. It is a necessary part of the TCP/IP suite. It is above the IP module.
Internet Protocols. Address Resolution IP Addresses are not recognized by hardware. If we know the IP address of a host, how do we find out the hardware.
Basic IP Protocol Natawut Nupairoj, Ph.D. Department of Computer Engineering Chulalongkorn University.
IP network tools & troubleshooting AFCHIX 2010 Nairobi, Kenya October 2010.
Internet Control Message Protocol (ICMP) Chapter 7.
1 Bus topology network. 2 Data is sent to all computers, but only the destination computer accepts 02608c
Linux Operations and Administration Chapter Eight Network Communications.
© 2007 Cisco Systems, Inc. All rights reserved.ICND1 v1.0—4-1 LAN Connections Exploring the Packet Delivery Process.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
Network Layer: Address Mapping, Error Reporting, and Multicasting
1 Connectivity with ARP and RARP. 2 There needs to be a mapping between the layer 2 and layer 3 addresses (i.e. IP to Ethernet). Mapping should be dynamic.
© Jörg Liebeherr (modified by M. Veeraraghavan) 1 ICMP The PING Tool Traceroute program IGMP.
IP Internet Protocol. IP TCP UDP ICMPIGMP ARP PPP Ethernet.
Cisco Routers Routers collectively provide the main feature of the network layer—the capability to forward packets end-to-end through a network. routers.
Lecture#6:Connectivity Verification
Behrouz A. Forouzan TCP/IP Protocol Suite, 3rd Ed.
Connectivity Verification
Network Commands 2 Linux Ubuntu A.S.
Network Tools and Utilities
ICMP ICMP = Internet Control Message Protocol Layer 3
8 Network Layer Part V Computer Networks Tutun Juhana
Lecture#7:Connectivity Verification
IP network tools & troubleshooting
Lecture#6:Connectivity Verification
Internet Control Message Protocol
Presentation transcript:

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 ( ) icmp_seq = 0, time = 6 ms 64 bytes from akasha.tic.com ( ) icmp_seq = 1, time = 5 ms 64 bytes from akasha.tic.com ( ) 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

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 UH le0 default UG 0 51 le U 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 le

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 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 > 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