Tcpdump Traceroute Ping. A packet tracing tool  Works on various host platforms  Captures packets going through a certain network interface  Shows.

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

Internet Control Protocols Savera Tanwir. Internet Control Protocols ICMP ARP RARP DHCP.
CSCI 4550/8556 Computer Networks Comer, Chapter 23: An Error Reporting Mechanism (ICMP)
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.
1 Internet Networking Spring 2002 Tutorial 4 ICMP (Internet Control Message Protocol)
Network Management And Debugging
Internet Control Message Protocol (ICMP)
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
1 Application Presentation Session Transport Network Datalink Physical OSI model Application IPv4, IPv6 Device Driver Hardware TCPUDP Internet.
ICMP: Ping and Trace CCNA 1 version 3.0 Rick Graziani Spring 2005.
Network Measurement Bandwidth Analysis. Why measure bandwidth? Network congestion has increased tremendously. Network congestion has increased tremendously.
1 K. Salah Module 5.3: Internet Control Message Protocol Why need ICMP? IP and ICMP ICMP Message Format ICMP Error Reporting messages ICMP Query messages.
CISCO NETWORKING ACADEMY Chabot College ELEC ping & traceroute.
1 ICMP – Using Ping and Trace CCNA Semester
CPSC 441 TUTORIAL – MARCH 7, 2012 TA: MARYAM ELAHI NETWORK TOOLS.
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.
1 Linux Networking Lal Paul IP Addressing & Routing By Lal Paul Systems Administrator CIRM, CUSAT IP Addressing & Routing By Lal Paul Systems Administrator.
Traceroute Ping. Shows the path a packet of information takes from your computer to one you specify. Lists all the routers it passes through until it.
CCNA Introduction to Networking 5.0 Rick Graziani Cabrillo College
TCP/IP Protocol Suite 1 Chapter 9 Upon completion you will be able to: Internet Control Message Protocol Be familiar with the ICMP message format Know.
CS 6401 Internet Protocol Outline Introduction to Internet Protocol Header and address formats ICMP Tools.
Fundamental of IP network ~ ping, traceroute ~ Practice 1 Information and Communications Technology Internet Engineering.
Internet Control Message Protocol ICMP. ICMP has two major purposes: –To report erroneous conditions –To diagnose network problems ICMP has two major.
Network Administration
ICMP (Internet Control Message Protocol) Computer Networks By: Saeedeh Zahmatkesh spring.
Internet Control Message Protocol (ICMP)
1 ECE453 – Introduction to Computer Networks Lecture 12 – Network Layer (IV)
Problem Statement Map of OSU Routers Gopi Krishna Tummala Rupam Kundu Graduate Students The Ohio State University.
Shivkumar Kalyanaraman Rensselaer Polytechnic Institute 1 Internet Control Message Protocol (ICMP) Shivkumar Kalyanaraman Rensselaer Polytechnic Institute.
Mr. Mturi Elias University Computing Centre SYSTEMS ADMIN TRAINING WORKSHOP.
ICMP : Internet Control Message Protocol. Introduction ICMP is often considered part of the IP layer. It communicates error messages and other conditions.
21.1 Chapter 21 Network Layer: Address Mapping, Error Reporting, and Multicasting Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction.
1 © 2003, Cisco Systems, Inc. All rights reserved. CCNA 2 Module 8 TCP/IP Suite Error and Control Messages.
IP Forwarding.
POSTECH DP&NM Lab. Internet Traffic Monitoring and Analysis: Methods and Applications (1) 4. Active Monitoring Techniques.
Fall 2005Computer Networks20-1 Chapter 20. Network Layer Protocols: ARP, IPv4, ICMPv4, IPv6, and ICMPv ARP 20.2 IP 20.3 ICMP 20.4 IPv6.
© 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 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.
Error and Control An IP datagram travels from node to node on the way to its destination Each router operates autonomously Failures or problems may occur.
1 Chapter 23 Internetworking Part 3 (Control Messages, Error Handling, ICMP)
Internet Control Message Protocol (ICMP) Chapter 7.
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.
TCP/IP Illustrated, Volume 1: The Protocols Chapter 6. ICMP: Internet Control Message Protocol ( 월 ) 김 철 환
Lecture#6:Connectivity Verification
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Connectivity Verification
Network Tools and Utilities
Hping2.
Internet Control Message Protocol (ICMP)
ICMP ICMP = Internet Control Message Protocol Layer 3
COMPUTER NETWORKS CS610 Lecture-33 Hammad Khalid Khan.
8 Network Layer Part V Computer Networks Tutun Juhana
ICMP – Using Ping and Trace
Part1: Ipconfig ping command Tracert command Getmac command
Lecture#7:Connectivity Verification
Internet Control Message Protocol (ICMP)
ICMP – Using Ping and Trace
Internet Control Message Protocol (ICMP)
Internet Control Message Protocol (ICMP)
Lecture#6:Connectivity Verification
Internet Control Message Protocol
Internet Control Message Protocol
TCP/IP Protocol Suite 1 Chapter 9 Upon completion you will be able to: Internet Control Message Protocol Be familiar with the ICMP message format Know.
Presentation transcript:

Tcpdump Traceroute Ping

A packet tracing tool  Works on various host platforms  Captures packets going through a certain network interface  Shows packet header information 2

General traffic statistics  Traffic volume  Burstiness  Traffic volume by types End-to-end statistics  Connection throughput  Round trip delay  Loss rate 3

tcpdump [ -AdDeflLnNOpqRStuUvxX ] [ -i interface ][ -c count ] [ -w file ] [ -C file_size ] [ -r file ] [ -T type ] [ -s snaplen ] [ -m module ] [ -E algo:secret ] [-y datalinktype] [ -F file ] [ expression ] 4

To read packets from a certain network interface tcpdump –i eth0 5

To read up to count number of packets tcpdump –i eth0 –c 5 6

To write the output to a file Instead of printing to the screen the packet header information tcpdump –i eth0 –c 5 –w tmp.tr 7

To output to files up to file_size million bytes When tmp.tr exceeds file_size MB, tmp.tr2 is opened to continue tracing tcpdump –i eth0 –c 5 –w tmp.tr –C 1 8

To read packets from a file Generated from [ -w file ] tcpdump –r tmp.tr 9

To select packets to be read Types, directions, protocols – [protocol][direction][type] tcpdump –i eth0 –c 5 –w tmp.tr –C 100 \ [expression] 10

Selecting packets of a particular host, particular network, particular port { host, net, port } [{ name, number }] host mango.csd.uoc.gr net port 80 11

Selecting packets of a particular direction, inbound or outbound { src, dst, src or dst, src and dst }[ type ] src or dst host nslab.ee.ntu.edu.tw dst net dst port 80 12

Selecting packets of a particular protocol { ether, ip, ip6, arp, rarp, tcp, udp, … }{ multicast, broadcast } ip src or dst host nslab.ee.ntu.edu.tw arp dst net tcp dst port 80 13

Selecting packets of particular sizes in bytes { greater, less }[ size ] len { >=, <= }[ size ] 14

! or not && or and || or or ip host nslab and \(cc.ee.ntu.edu.tw or \) 15

To load [ expression ] from a file tcpdump –i eth0 –c 5 –w tmp.tr –C 100 –F test.exp 16

# packet captured  All packets going thru the interface # packet received by filter  Packets in tcpdump output # packet dropped by kernel  Packets not in tcpdump output 17 Packets dropped by kernel Packets received by filter Packets captured

Shows the path a packet of information takes from your computer to one you specify. Lists all the routers it passes through until it reaches its destination, or fails to and is discarded. Tells you how long each 'hop' from router to router takes. It is widely used  Diagnosis of connectivity problems  Inferrence of network properties  Internet maps 18

 traceroute to achilles.noc.ntua.gr ( ), 64 hops max, 40 byte packets  1 dsldevice.lan ( ) 62 ms 97 ms 100 ms  2 bbras-llu-her-01L0.forthnet.gr ( ) 32 ms 32 ms 32 ms  3 core-her-01G0-3-0.forthnet.gr ( ) 33 ms 32 ms 33 ms  4 core-kln-05Gi0-0-2.forthnet.gr ( ) 39 ms 40 ms 39 ms  5 core-kln-01.forthnet.gr ( ) 40 ms 40 ms 40 ms  6 core-ath-08G4-0-0.forthnet.gr ( ) [MPLS: Label Exp 0] 40 ms 40 ms 42 ms  7 grix.forthnet.gr ( ) 39 ms 40 ms 40 ms  8 grnet.gr-ix.gr ( ) 39 ms 40 ms 40 ms  9 athens3-to-eie2.backbone.grnet.gr ( ) 42 ms 40 ms 41 ms  10 clientRouter.ntua-primary.athens-3.access-link.gr ( ) 41 ms 41 ms 40 ms  11 achilles.noc.ntua.gr ( ) 41 ms 40 ms 41 ms 19

 traceroute to ( ), 64 hops max, 40 byte packets  1 dsldevice.lan ( ) 87 ms 97 ms 100 ms  2 bbras-llu-her-01L0.forthnet.gr ( ) 32 ms 32 ms 32 ms  3 core-her-01G0-3-0.forthnet.gr ( ) 32 ms 33 ms 32 ms  4 core-kln-05Gi0-0-2.forthnet.gr ( ) 39 ms 41 ms 40 ms  5 core-kln-01.forthnet.gr ( ) 40 ms 40 ms 39 ms  6 core-ath-08G4-0-0.forthnet.gr ( ) [MPLS: Label Exp 0] 40 ms 40 ms 39 ms  7 core-ath-03.forthnet.gr ( ) 40 ms 40 ms 39 ms  8 pal9-forthnet-1.pal.seabone.net ( ) 56 ms 56 ms 57 ms  9 mil53-mil26-racc2.mil.seabone.net ( ) 157 ms 158 ms 158 ms  ( ) 105 ms * 108 ms  11 * ( ) 95 ms (TOS=128!) ( ) 115 ms  ( ) [MPLS: Label Exp 4] 88 ms ( ) 135 ms 199 ms  ( ) [MPLS: Label Exp 4] 102 ms ( ) [MPLS: Label Exp 4] 138 ms ( ) [MPLS: Label Exp 4] 115 ms  ( ) 118 ms ( ) 118 ms 118 ms  ( ) 118 ms 117 ms ( ) 106 ms  ( ) 114 ms ( ) 106 ms 109 ms  17 ww-in-f104.google.com ( ) 106 ms (TOS=0!) 104 ms 105 ms 20

Used to test the reachability of a host Measures the round-trip time for messages sent from the originating host to a destination computer The sender of the ping, transmits an ICMP message, “Echo Request” The ip address (destination) of the ping, returns the ICMP message, “Echo Reply” 21

23 ping PING ixion.csd.uoc.gr ( ) 56(84) bytes of data. 64 bytes from ixion.csd.uoc.gr ( ): icmp_seq=1 ttl=53 time=34.7 ms 64 bytes from ixion.csd.uoc.gr ( ): icmp_seq=2 ttl=53 time=33.9 ms 64 bytes from ixion.csd.uoc.gr ( ): icmp_seq=3 ttl=53 time=33.2 ms 64 bytes from ixion.csd.uoc.gr ( ): icmp_seq=4 ttl=53 time=33.7 ms 64 bytes from ixion.csd.uoc.gr ( ): icmp_seq=5 ttl=53 time=33.2 ms ^C --- ixion.csd.uoc.gr ping statistics packets transmitted, 5 received, 0% packet loss, time 4004ms rtt min/avg/max/mdev = /33.790/34.786/0.579 ms