Performance Metrics & Basic Tools

Similar documents
TCP Labs. WACREN Network Monitoring and Measurement Workshop Antoine Delvaux perfsonar developer

Monitoring Android Apps using the logcat and iperf tools. 22 May 2015

Network testing with iperf

Iperf Tutorial. Jon Dugan Summer JointTechs 2010, Columbus, OH

Troubleshooting Tools

Procedure: You can find the problem sheet on Drive D: of the lab PCs. 1. IP address for this host computer 2. Subnet mask 3. Default gateway address

WiFiPerf User Guide 1.5

Visualizations and Correlations in Troubleshooting

Avaya ExpertNet Lite Assessment Tool

Measuring Wireless Network Performance: Data Rates vs. Signal Strength

IP addressing and forwarding Network layer

Network Monitoring. Sebastian Büttrich, NSRC / IT University of Copenhagen Last edit: February 2012, ICTP Trieste

Performance and Bandwidth Testing for Data Circuits

Application Note. Windows 2000/XP TCP Tuning for High Bandwidth Networks. mguard smart mguard PCI mguard blade

Globus Striped GridFTP Framework and Server. Raj Kettimuthu, ANL and U. Chicago

Lecture 8 Performance Measurements and Metrics. Performance Metrics. Outline. Performance Metrics. Performance Metrics Performance Measurements

Master s Thesis Evaluation and implementation of a network performance measurement tool for analyzing network performance under heavy workloads

perfsonar: End-to-End Network Performance Verification

Linux MPS Firewall Supplement

CHAPTER 1 PRINCIPLES OF NETWORK MONITORING

Frequently Asked Questions

Measure wireless network performance using testing tool iperf

Using IPM to Measure Network Performance

Smart Tips. Enabling WAN Load Balancing. Key Features. Network Diagram. Overview. Featured Products. WAN Failover. Enabling WAN Load Balancing Page 1

Linux MDS Firewall Supplement

ITL Lab 5 - Performance Measurements and SNMP Monitoring 1. Purpose

Network Management and Debugging. Jing Zhou

Transport Layer Protocols

Subnetting,Supernetting, VLSM & CIDR

IP SLAs Overview. Finding Feature Information. Information About IP SLAs. IP SLAs Technology Overview

Internet Infrastructure Measurement: Challenges and Tools

Voice over IP. Demonstration 1: VoIP Protocols. Network Environment

Homework 3 TCP/IP Network Monitoring and Management

Technical Support Information Belkin internal use only

IP - The Internet Protocol

Overview of Network Measurement Tools

Monitoring and analyzing audio, video, and multimedia traffic on the network

IP Network Layer. Datagram ID FLAG Fragment Offset. IP Datagrams. IP Addresses. IP Addresses. CSCE 515: Computer Network Programming TCP/IP

Internet Firewall CSIS Packet Filtering. Internet Firewall. Examples. Spring 2011 CSIS net15 1. Routers can implement packet filtering

Internet Protocol: IP packet headers. vendredi 18 octobre 13

Performance Measurement of Wireless LAN Using Open Source

TEIN2 Measurement and Monitoring Workshop.

Performance Analysis of IPv4 v/s IPv6 in Virtual Environment Using UBUNTU

Interconnection of Heterogeneous Networks. Internetworking. Service model. Addressing Address mapping Automatic host configuration

Internet Control Protocols Reading: Chapter 3

Guideline for setting up a functional VPN

TFTP TRIVIAL FILE TRANSFER PROTOCOL OVERVIEW OF TFTP, A VERY SIMPLE FILE TRANSFER PROTOCOL FOR SIMPLE AND CONSTRAINED DEVICES

Policy Based Forwarding

Instructor Notes for Lab 3

NETWORK LAYER/INTERNET PROTOCOLS

Компјутерски Мрежи NAT & ICMP

CREW - FP7 - GA No Cognitive Radio Experimentation World. Project Deliverable D7.5.4 Showcase of experiment ready (Demonstrator)

IPv6 Diagnostic and Troubleshooting

Question: 3 When using Application Intelligence, Server Time may be defined as.

Network Troubleshooting

Hands On Activities: TCP/IP Network Monitoring and Management

Network Configuration Example

Using TrueSpeed VNF to Test TCP Throughput in a Call Center Environment

RARP: Reverse Address Resolution Protocol

CSE 473 Introduction to Computer Networks. Exam 2 Solutions. Your name: 10/31/2013

Configuring Static and Dynamic NAT Simultaneously

Guide to Network Defense and Countermeasures Third Edition. Chapter 2 TCP/IP

Chapter 11. User Datagram Protocol (UDP)

Measuring IP Performance. Geoff Huston Telstra

Firewall Stateful Inspection of ICMP

Firewall Stateful Inspection of ICMP

Internet Firewall CSIS Internet Firewall. Spring 2012 CSIS net13 1. Firewalls. Stateless Packet Filtering

z/os V1R11 Communications Server system management and monitoring

Guide to TCP/IP, Third Edition. Chapter 3: Data Link and Network Layer TCP/IP Protocols

March 10 th 2011, OSG All Hands Workshop Network Performance Jason Zurawski, Internet2. Performance Measurement Tools

1000Mbps Ethernet Performance Test Report

PANDORA FMS NETWORK DEVICES MONITORING

D. SamKnows Methodology 20 Each deployed Whitebox performs the following tests: Primary measure(s)

Assignment #3 Routing and Network Analysis. CIS3210 Computer Networks. University of Guelph

COMP 3331/9331: Computer Networks and Applications. Lab Exercise 3: TCP and UDP (Solutions)

NAT & IP Masquerade. Internet NETWORK ADDRESS TRANSLATION INTRODUCTION. NAT & IP Masquerade Page 1 of 5. Internal PC

WHITE PAPER September CA Nimsoft For Network Monitoring

Network Layer: Network Layer and IP Protocol

Computer Networks I Laboratory Exercise 1

8.2 The Internet Protocol

Network Performance - Theory

An Introduction to VoIP Protocols

TOE2-IP FTP Server Demo Reference Design Manual Rev1.0 9-Jan-15

Network performance monitoring Insight into perfsonar

Zarząd (7 osób) F inanse (13 osób) M arketing (7 osób) S przedaż (16 osób) K adry (15 osób)

Unix System Administration

First Midterm for ECE374 03/09/12 Solution!!

PANDORA FMS NETWORK DEVICE MONITORING

High-Speed TCP Performance Characterization under Various Operating Systems

Understanding Slow Start

File Transfer Protocol (FTP) Throughput Testing by Rachel Weiss

Sage ERP Accpac Online

Network layer: Overview. Network layer functions IP Routing and forwarding

Sage 300 ERP Online. Mac Resource Guide. (Formerly Sage ERP Accpac Online) Updated June 1, Page 1

Computer Networks/DV2 Lab

ICOM : Computer Networks Chapter 6: The Transport Layer. By Dr Yi Qian Department of Electronic and Computer Engineering Fall 2006 UPRM

Gary Hecht Computer Networking (IP Addressing, Subnet Masks, and Packets)

WHITE PAPER OCTOBER CA Unified Infrastructure Management for Networks

Configuring Voice Quality Monitoring in AOS

Test Methodology White Paper. Author: SamKnows Limited

Transcription:

Performance Metrics & Basic Tools Robert Stoy, DFN EGI TF, Madrid September 2013

Basic network performance metrics Ø Packet Loss Ø One Way Delay / OWD Variation Ø Path-MTU Ø TCP throughput 2

Basic Tools Ø Two-Way Delay (Round Trip Time) : Ping Ø High Packet Loss ( > 1 %) : Ping Ø Path Finding Ø Path-MTU : Traceroute : Ping, Iperf Ø TCP Throughput, UDP Packet Loss : Iperf (or Nuttcp) Ø Central control of Iperf (or Nuttcp) : BWCTL 3

Delay : Ping (1) Ø How it works Source host A sends ICMP echo-request packets to a target, waits for a given time, default 1 second. Target host B replies with ICMP echo-reply packet Ø Measurements using multiple packets provide statistics on RTT (min,mean,max) and Packet Loss (%) Round Trip Time of packets: = Packet processing time in hosts A and B, + round trip time (RTT) on nework path on both directions A->B, B->A. Lost Packets: Packets that do not arrive after timeout parameter 4

Delay : Ping (2) Ø Command Line Switch, Examples Ø Typical sequence in order to measure Ø RTT and Loss statistics and pattern on path Number of packets to send Waiting time [seconds Packet size (Payload) stoy@host:~$ ping -c 100 -i 0.3 -s 1492 deneb PING host.mydomain.de (10.10.76.9) 1492(1520) bytes of data. 1500 bytes from host.mydomain.de (10.10.76.9): icmp_req=1 ttl=245 time=22.6 ms 1500 bytes from host.mydomain.de (10.10.76.9): icmp_req=2 ttl=245 time=22.5 ms 1500 bytes from host.mydomain.de (10.10.76.9): icmp_req=3 ttl=245 time=22.6 ms... 1480 bytes from host.mydomain.de (10.10.76.9): icmp_req=99 ttl=246 time=21.5 ms 1480 bytes from host.mydomain.de (10.10.76.9): icmp_req=100 ttl=246 time=21.5 ms --- host.mydomain.de ping statistics --- 100 packets transmitted, 100 received, 0% packet loss, time 29778ms rtt min/avg/max/mdev = 21.442/21.877/22.648/0.515 ms!!! 5

Delay : Ping (3) Ø Flood ping get fast results on packet loss requires root privileges Number of packets to send Flood mode (don t wait) Packet Payload size [Byte] root@host:~# ping -c 100 -f -s 1492 deneb PING host.mydomain.de (10.10.76.9) 1492(1520) bytes of data. --- host.mydomain.de ping statistics --- 100 packets transmitted, 100 received, 0% packet loss, time 1107ms rtt min/avg/max/mdev = 22.525/22.633/22.698/0.204 ms, pipe 3, ipg/ewma 11.186/22.628 ms!! 6

Delay : Ping, Usability Ø Fast check of connectivity Ø If remote endsystem is maintained on stable, low load level: Detects packet loss on path from 1% upwards Delay changes indicate path changes Delay variation indicate load on the path Scheduled measurements get statistics to be correlated over time with other statistics: path changes load on network links 7

Delay, Loss : Ping, Statistics Graph Ø Scheduled pings Output as graph 8

Path Finding : Traceroute, How it works Ø Source host sends UDP or ICMP Packets with increasing TTL values, starting at 1, to destination host. Ø Routers on network do: count TTL value down by 1 if packet comes in if TTL value > 0 : packet is forwarded, if TTL value = 0 :discard packet, and send back to source host a ICMP time-to-live-exceed packet. Ø Traceroute program on source hosts analyses packets coming back, and displays result. 9

Path Finding : Traceroute, How it works stoy@host:~$ traceroute host.mydomain.de traceroute to host.mydomain.de (10.10.76.9), 30 hops max, 60 byte packets 1 kr-sgs1.sgs.dfn.de (193.174.247.1) 0.412 ms 0.569 ms 0.727 ms 2 xr-fzk1-ge8-2-301.x-win.dfn.de (188.1.159.249) 2.094 ms 2.236 ms 2.381 ms 3 xr-stu1-te2-3.x-win.dfn.de (188.1.145.130) 20.263 ms 20.325 ms 20.324 ms 4 xr-gar1-te2-4.x-win.dfn.de (188.1.144.229) 21.483 ms * * 5 xr-aug1-te1-1.x-win.dfn.de (188.1.144.110) 21.641 ms 21.774 ms 21.901 ms 6 cr-erl1-te0-0-0-7.x-win.dfn.de (188.1.144.149) 22.348 ms 22.809 ms 22.784 ms 7 cr-tub1-hundredgige0-1-0-0-7.x-win.dfn.de (188.1.144.185) 22.951 ms 22.006 ms 22.034 ms 8 xr-tub2-vlan50.x-win.dfn.de (188.1.144.158) 22.393 ms 21.681 ms 21.946 ms 9 xr-hub1-ge3-11-1170.x-win.dfn.de (188.1.159.245) 22.630 ms 22.433 ms 22.560 ms 10 kr-dfnbln5-0.x-win.dfn.de (188.1.159.246) 22.764 ms 22.887 ms 22.746 ms 11 host.mydomain.de (10.10.76.9) 21.316 ms 21.313 ms 21.260 ms stoy@host:~$ Ø Sender-Default: 3 packets on each TTL value Ø Result: List of Routers along the path Round Trip Time between source host and router, 3 values on each hop 10

Path Finding : Traceroute, Points to consider (I) Ø Path is shown only between Layer 3 devices, -> Path changes on lower layers not visible in hop list. Ø Path is shown only in one direction. -> traceroute required from both end systems Ø Measurement Timestamp not in output, but required -> do a unix date separately. 11

Path Finding : Traceroute, Points to consider (II) Ø Network providers support traceroute, but keep in mind: " Processing load and -time on routers is higher as with answering to pings (because of ICMP time-to-live-exeed generation) " Usually routers treat TTL=0 packets with low priority " Router protection mechanisms could prevent generation of ICMP time-to-live-exceed packets. " => * in traceroute output could occur although there s no problem on forwarding path " => RTT could show high values, although delay on path is lower. Ø Firewall administrators an WAN/LAN Borders sometimes prevent traceroute 12

TCP Throughput : Iperf How it works Ø Data Transfer between memory on local and remote host through end systems TCP/IP-Stack and network Ø One program, two roles : Server (Receiver) & Client (Sender) Ø Two modes: TCP, UDP Ø Best practise: Interactive session on both sides Take result from Server (Receiver) 13

TCP Throughput : Iperf Example TCP-Mode stoy@mp-sitea:~$ iperf -B 10.10.12.186 -c 10.10.23.194 -m -i 1 -t 10 ------------------------------------------------------------ Client connecting to 10.10.23.194, TCP port 5001 Binding to local address 10.10.12.186 TCP window size: 128 KByte (default) ------------------------------------------------------------ [ 3] local 10.10.12.186 port 5001 connected with 10.10.23.194 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-1.0 sec 81.4 MBytes 683 Mbits/sec [ 3] 1.0-2.0 sec 114 MBytes 956 Mbits/sec [ 3] 2.0-3.0 sec 111 MBytes 930 Mbits/sec [ 3] 3.0-4.0 sec 111 MBytes 934 Mbits/sec [ 3] 4.0-5.0 sec 111 MBytes 933 Mbits/sec [ 3] 5.0-6.0 sec 111 MBytes 932 Mbits/sec [ 3] 6.0-7.0 sec 113 MBytes 949 Mbits/sec [ 3] 7.0-8.0 sec 115 MBytes 963 Mbits/sec [ 3] 8.0-9.0 sec 111 MBytes 932 Mbits/sec [ 3] 9.0-10.0 sec 111 MBytes 933 Mbits/sec [ 3] 0.0-10.0 sec 1.06 GBytes 911 Mbits/sec [ 3] MSS size 1448 bytes (MTU 1500 bytes, ethernet) stoy@mp-siteb:~$ iperf -s -B 10.10.23.194 -m -i 1 ----------------------------------------------------------- - Server listening on TCP port 5001 Binding to local address 10.10.23.194 TCP window size: 128 KByte (default) ----------------------------------------------------------- - [ 4] local 10.10.23.194 port 5001 connected with 10.10.12.186 port 5001 [ ID] Interval Transfer Bandwidth [ 4] 0.0-1.0 sec 72.8 MBytes 611 Mbits/sec [ 4] 1.0-2.0 sec 112 MBytes 937 Mbits/sec [ 4] 2.0-3.0 sec 112 MBytes 937 Mbits/sec [ 4] 3.0-4.0 sec 112 MBytes 937 Mbits/sec [ 4] 4.0-5.0 sec 112 MBytes 937 Mbits/sec [ 4] 5.0-6.0 sec 112 MBytes 937 Mbits/sec [ 4] 6.0-7.0 sec 112 MBytes 937 Mbits/sec [ 4] 7.0-8.0 sec 112 MBytes 936 Mbits/sec [ 4] 8.0-9.0 sec 112 MBytes 937 Mbits/sec [ 4] 9.0-10.0 sec 112 MBytes 937 Mbits/sec [ 4] 0.0-10.1 sec 1.06 GBytes 904 Mbits/sec [ 4] MSS size 1448 bytes connect (MTU 1500 communicate bytes, ethernet) collaborate 14

TCP Throughput : Iperf Example UDP-Mode stoy@mp-sitea:~$ iperf -u -B 10.10.12.186 -c 10.10.23.194 -i 1 -t 10 -b 100M ------------------------------------------------------------ Client connecting to 10.10.23.194, UDP port 5001 Binding to local address 10.10.12.186 Sending 1470 byte datagrams UDP buffer size: 160 KByte (default) ------------------------------------------------------------ [ 3] local 10.10.12.186 port 5001 connected with 10.10.23.194 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-1.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 1.0-2.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 2.0-3.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 3.0-4.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 4.0-5.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 5.0-6.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 6.0-7.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 7.0-8.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 8.0-9.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 9.0-10.0 sec 12.0 MBytes 101 Mbits/sec [ 3] 0.0-10.0 sec 120 MBytes 101 Mbits/sec [ 3] Sent 85471 datagrams [ 3] Server Report: [ 3] 0.0-10.0 sec 120 MBytes 101 Mbits/sec 0.016 ms 0/85470 (0%) [ 3] 0.0-10.0 sec 1 datagrams received out-of-order stoy@mp-siteb:~$ iperf -u -s -B 10.10.23.194 -i 1 ------------------------------------------------------------ Server listening on UDP port 5001 Binding to local address 10.10.23.194 Receiving 1470 byte datagrams UDP buffer size: 160 KByte (default) ------------------------------------------------------------ [ 3] local 10.10.23.194 port 5001 connected with 10.10.12.186 port 5001 [ ID] Interval Transfer Bandwidth Jitter Lost/Total Datagrams [ 3] 0.0-1.0 sec 12.0 MBytes 101 Mbits/sec 0.016 ms 0/ 8547 (0%) [ 3] 1.0-2.0 sec 12.0 MBytes 101 Mbits/sec 0.018 ms 0/ 8547 (0%) [ 3] 2.0-3.0 sec 12.0 MBytes 101 Mbits/sec 0.016 ms 0/ 8547 (0%) [ 3] 3.0-4.0 sec 12.0 MBytes 101 Mbits/sec 0.022 ms 0/ 8547 (0%) [ 3] 4.0-5.0 sec 12.0 MBytes 101 Mbits/sec 0.018 ms 0/ 8547 (0%) [ 3] 5.0-6.0 sec 12.0 MBytes 101 Mbits/sec 0.016 ms 0/ 8547 (0%) [ 3] 6.0-7.0 sec 12.0 MBytes 101 Mbits/sec 0.016 ms 0/ 8547 (0%) [ 3] 7.0-8.0 sec 12.0 MBytes 101 Mbits/sec 0.016 ms 0/ 8547 (0%) [ 3] 8.0-9.0 sec 12.0 MBytes 101 Mbits/sec 0.017 ms 0/ 8547 (0%) [ 3] 9.0-10.0 sec 12.0 MBytes 101 Mbits/sec 0.016 ms 0/ 8547 (0%) [ 3] 0.0-10.0 sec 120 MBytes 101 Mbits/sec 0.017 ms 0/85470 (0%) [ 3] 0.0-10.0 sec 1 datagrams received out-of-order 15

Iperf : Points to consider Ø UDP measurements: Dangerous: Could cause packet loss on other data streams on the network Use only in controlled environment keep as much as local, typical: Check a link between routers only small data rates only short duration Ø Recommended Version: Iperf v 2.0.5 Ø Linux: Packages for Debian and Redhat based distributions 16

BWCTL, Centrally Controlled Iperf Measurements (I) bwctl-server with user access-ctrl bwctl-server with user access-ctrl bwctl-server with user access-ctrl Client Server architecture, allows control on Iperf Measurements Protocol relies on NTP synchronised servers and clients Allows enforcement of client user access control Max. number of simultaneous measurement flows Limits on measurement parameters per user group Servers are started once with configured usage policy Logging on servers supported by posthook script interface On demand measurement, simply from a client CLI bwctl-client 17

BWCTL, Centrally Controlled Iperf Measurements (II) bwctl-server with user access-ctrl bwctl-server with user access-ctrl stoy@localhost :~$ /bwctl -A A AESKEY stoy /etc/bwctl/bwctld.keys -T iperf -l 128k -i 1 -t 10 -s mp-tub -c mp-stu bwctl: 18 seconds until test results available RECEIVER START bwctl: exec_line: /usr/bin/iperf -B mp-stu -s -f b -l 131072 -m -p 5004 -t 10 -i 1 bwctl: start_tool: 3588256214.259536 ------------------------------------------------------------ Server listening on TCP port 5004 Binding to local address mp-stu TCP window size: 131072 Byte (default) ------------------------------------------------------------ [ 15] local mp-stu port 5004 connected with mp-tub port 5004 [ ID] Interval Transfer Bandwidth [ 15] 0.0-1.0 sec 82052368 Bytes 656418944 bits/sec [ 15] 1.0-2.0 sec 117065008 Bytes 936520064 bits/sec [ 15] 2.0-3.0 sec 117096864 Bytes 936774912 bits/sec [ 15] 3.0-4.0 sec 117066456 Bytes 936531648 bits/sec [ 15] 8.0-9.0 sec 117066456 Bytes 936531648 bits/sec [ 15] 9.0-10.0 sec 117095416 Bytes 936763328 bits/sec [ 15] 0.0-10.1 sec 1146617856 Bytes 908849978 bits/sec [ 15] MSS size 1448 bytes (MTU 1500 bytes, ethernet) bwctl: stop_exec: 3588256230.789755 RECEIVER END bwctl-client 18

BWCTL, Centrally Controlled Iperf Measurements (III) Ø Further option: control of Nuttcp-Measurements " Supports output of CPU load on measurement node Ø Deployment " Linux: Server and Client Packages for Debian and RedHat based Systems available " Source Code and Handbook @ Internet2 Ø Room for improvement " Results are sent to the client, but not stored, -> no history " Used network path not known, traceroute feature is missing " User authentication and authorisation not really strong " No graphical output => Evolution towards PerfSonar 19