Transcript Introduction to OWAMP
Connectivity Test
802.16 IP Telephone Lab
1
Outline
• Ping & ICMP • Fast Ping (fping) & AutoStatus • One-Way Ping
802.16 IP Telephone Lab
2
802.16 IP Telephone Lab
Ping
• Pinging 163.22.20.115 with 32 bytes of data: • Reply from 163.22.20.115: bytes=32 time<1ms TTL=64 • Reply from 163.22.20.115: bytes=32 time<1ms TTL=64 • Reply from 163.22.20.115: bytes=32 time<1ms TTL=64 • Reply from 163.22.20.115: bytes=32 time<1ms TTL=64 • • Ping statistics for 163.22.20.115: • Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), • Approximate round trip times in milli-seconds: Minimum = 0ms, Maximum = 0ms, Average = 0ms 3
802.16 IP Telephone Lab
ICMP Packet Format
• RFC 792 – Internet Control Message Protocol
0 0 0 1 0 2 0 3 0 4 0 5 0 6 0 7 0 8 0 9 1 0 1 1 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 2 0 2 1 2 2 2 3 2 4 2 5 2 6 2 7 2 8 2 9 3 0 3 1 Type Code Checksum unused Identifier Sequence Number Data
4
Probing Packets
802.16 IP Telephone Lab
5
802.16 IP Telephone Lab
Round-Trip Time
Server Client request 0.000 ms reply 9.952 ms 1006.122 ms request reply 1017.039 ms 6
166ms to Berkeley
802.16 IP Telephone Lab
• Pinging www.berkeley.edu [169.229.131.81] with 32 bytes of data: • Reply from 169.229.131.81: bytes=32 time=166ms TTL=46 • Reply from 169.229.131.81: bytes=32 time=166ms TTL=46 • Reply from 169.229.131.81: bytes=32 time=166ms TTL=46 • Reply from 169.229.131.81: bytes=32 time=166ms TTL=46 • • Ping statistics for 169.229.131.81: • Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), • Approximate round trip times in milli-seconds: Minimum = 166ms, Maximum = 166ms, Average = 166ms 7
802.16 IP Telephone Lab
8
330ms to France
802.16 IP Telephone Lab
• Pinging www.it-sudparis.eu [157.159.11.8] with 32 bytes of data: • Reply from 157.159.11.8: bytes=32 time=330ms TTL=39 • Reply from 157.159.11.8: bytes=32 time=330ms TTL=39 • Reply from 157.159.11.8: bytes=32 time=330ms TTL=39 • Reply from 157.159.11.8: bytes=32 time=330ms TTL=39 • • Ping statistics for 157.159.11.8: • Packets: Sent = 4, Received = 4, Lost = 0 (0% loss), • Approximate round trip times in milli-seconds: Minimum = 330ms, Maximum = 330ms, Average = 330ms 9
802.16 IP Telephone Lab
10
802.16 IP Telephone Lab
Looking Glass Server
• Reverse traceroute • http://www.six-de.net/lg/ 11
802.16 IP Telephone Lab
HW 1
• Find a website which provides the reverse traceroute service.
• Mail the following information to voip [email protected]
.
– URL of the service – Is it dual-stack or IPv4-only?
– What interesting services (in addition to ping and traceroute) did you find?
• Due: 2009.9.29 (Tue) 13:00 12
802.16 IP Telephone Lab
fping
• fping < FILENAME • fping -g 163.22.20.0/24 – A class C subnet is scanned in 30 seconds.
13
802.16 IP Telephone Lab
14
AutoStatus
802.16 IP Telephone Lab
15
802.16 IP Telephone Lab
AutoStatus
• Use “fping” to check whether servers are on-line.
• Use “tcp_check.c” to check that services are running.
– If the FTP server is listening at TCP port 21, the attempt to establish a connection at ftp.ncnu.edu.tw:21 will succeed.
• No way to check UDP services!
16
802.16 IP Telephone Lab
HW 2
• Query an IP phone with the OPTIONS method. • Write a SIPp script or a sipcheck.c (similar to the tcpcheck.c in AutoStatus) • Return -1 on failure; 0 on success.
• Try to integrate this tool to AutoStatus – You may need to modify AutoStatus so that its “hosts” configuration file can specify the UDP port.
17
Tools Presentation
802.16 IP Telephone Lab
• Two independent speakers for each tool: – SIPp – Cacti – BWCTL – perfSONAR 18