SlideShare a Scribd company logo
Using Iperf



                                       Jon M. Dugan
                                       <jdugan@es.net>

                                       Energy Sciences Network
                                       Lawrence Berkeley National Laboratory


                                       NANOG 43, Brooklyn, NY
                                       June 1, 2008




Networking for the Future of Science
                                                                               1
Outline
• TCP Measurements
• UDP Measurements
• Useful tricks




                               2
Iperf’s notion of clients and servers




Client is the sender



                              Server is the receiver
                                (discard server)




                                                       3
TCP Measurements
• Measures TCP Achievable Bandwidth
  – Measurement includes the end system
  – Sometimes called “memory-to-memory” tests
• Limits of what we can measure
  – TCP is a largely a black box
• Many things can limit TCP throughput
  – Loss
  – Congestion
  – Buffer Starvation
  – Out of order delivery




                                                4
Example Iperf TCP Invocation
Server (receiver):
$ iperf -s
------------------------------------------------------------
Server listening on TCP port 5001
TCP window size: 85.3 KByte (default)
------------------------------------------------------------
[   4] local 10.0.1.5 port 5001 connected with 10.0.1.10 port 60830
[   4]    0.0-10.0 sec     1.09 GBytes       933 Mbits/sec
[   4] local 10.0.1.5 port 5001 connected with 10.0.1.10 port 60831
[   4]    0.0-10.0 sec     1.08 GBytes       931 Mbits/sec
Client (sender):
$ iperf -c 10.0.1.5
------------------------------------------------------------
Client connecting to 10.0.1.5, TCP port 5001
TCP window size:    129 KByte (default)
------------------------------------------------------------
[   3] local 10.0.1.10 port 60830 connected with 10.0.1.5 port 5001
[ ID] Interval          Transfer      Bandwidth
[   3]   0.0-10.2 sec   1.09 GBytes   913 Mbits/sec

                                                                      5
Bandwidth Delay Product
• The amount of “in flight” data allowed for a TCP
 connection
• BDP = bandwidth * round trip time
• Example: 1Gb/s cross country, ~100ms
 1,000,000,000 b/s * .1 s = 100,000,000 bits
 100,000,000 / 8 = 12,500,000 bytes
 12,500,000 bytes / (1024*1024) ~ 12MB
• To get full TCP performance the TCP window needs to be
 large enough to accommodate the Bandwidth Delay
 Product



                                                           6
UDP Measurements
• UDP provides greater transparency
• We can directly measure some additional things:
  – Loss
  – Jitter
  – Out of order delivery




                                                    7
Example Iperf UDP Invocation
Server (receiver):
$ iperf -u -s
------------------------------------------------------------
Server listening on UDP port 5001
Receiving 1470 byte datagrams
UDP buffer size:        107 KByte (default)
------------------------------------------------------------
[   3] local 10.0.1.5 port 5001 connected with 10.0.1.10 port 65299
[   3]   0.0-10.0 sec    1.25 MBytes   1.05 Mbits/sec   0.008 ms   0/   893 (0%)


Client (sender):
$ iperf -u -c 10.0.1.5 -b 1M
------------------------------------------------------------
Client connecting to 10.0.1.5, UDP port 5001
Sending 1470 byte datagrams
UDP buffer size: 9.00 KByte (default)
------------------------------------------------------------
[   3] local 10.0.1.10 port 65300 connected with 10.0.1.5 port 5001
[ ID] Interval           Transfer      Bandwidth
[   3]   0.0-10.0 sec    1.25 MBytes   1.05 Mbits/sec
[   3] Server Report:
[   3]   0.0-10.0 sec    1.25 MBytes   1.05 Mbits/sec   0.003 ms   0/   893 (0%)
[   3] Sent 893 datagrams



                                                                                   8
Adjusting Iperf for performance
• The –w option for Iperf can be used to request a particular
 buffer size. This sets both send and receive buffer size.
  – The OS may need to be tweaked to allow buffers of sufficient
    size.
  – See http://dsd.lbl.gov/TCP-tuning/ and
    http://www.psc.edu/networking/perf_tune.html
• Parallel transfers may help as well, the –P option can be
 used for this




                                                                   9
Useful Iperf Invocations
• UDP and TCP:
    • -i n report status every n seconds
    • -d do bidirectional test simultaneously
    • -r do bidirectional test one after another




                                                   10
Using Iperf to generate high rate streams
• UDP doesn’t require a receiver
• If you have good counters on your switches & routers
 those can be used to measure
• Turns out UDP reception can be very resource intensive
 resulting in drops at the NIC at high rates (8-9 Gb/s)




                                                           11
Never do this
• Need to generate 10 Gb/s but only have a 1 Gb/s host?
 Iperf UDP
   1 Gb/s
 Destined for
  10.1.1.1

                                10.0.1.1        10.0.1.2
            Static route:                                     Static route:
         10.1.1.1/32 10.0.1.2                              10.1.1.1/32 10.0.1.1




             Use the –T option to Iperf to control
            the number of times the traffic loops
  Can also use firewall filters to discard a certain TTL range.
            Other filters may be prudent as well.
                                                                                  12
Iperf Development
• Primarily in maintenance mode
  – Accepting and apply patches
  – Fixing bugs and documentation as time allows


• Future Directions
  – libiperf




                                                   13
More Information



   http://iperf.sourceforge.net


iperf-users@lists.sourceforge.net




      You can reach me at:
  Jon Dugan <jdugan@es.net>



                                    14

More Related Content

What's hot

Packet core network basics
Packet core network basicsPacket core network basics
Packet core network basics
Mustafa Golam
 
Introduction to Diameter Protocol - Part1
Introduction to Diameter Protocol - Part1Introduction to Diameter Protocol - Part1
Introduction to Diameter Protocol - Part1
Basim Aly (JNCIP-SP, JNCIP-ENT)
 
Lte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkxLte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkx
tharinduwije
 
Big ip f5 ltm load balancing methods
Big ip f5 ltm load balancing methodsBig ip f5 ltm load balancing methods
Big ip f5 ltm load balancing methods
Utpal Sinha
 
Ieee 1588 ptp
Ieee 1588 ptpIeee 1588 ptp
Ieee 1588 ptp
Tasuka Hsu
 
End to End volte ims sip call flow Guide - Mobile originating and Mobile term...
End to End volte ims sip call flow Guide - Mobile originating and Mobile term...End to End volte ims sip call flow Guide - Mobile originating and Mobile term...
End to End volte ims sip call flow Guide - Mobile originating and Mobile term...
Vikas Shokeen
 
5G RAN fundamentals
5G RAN fundamentals5G RAN fundamentals
5G RAN fundamentals
Ravi Sharma
 
Inter-AS MPLS VPN Deployment
Inter-AS MPLS VPN DeploymentInter-AS MPLS VPN Deployment
Inter-AS MPLS VPN Deployment
Bangladesh Network Operators Group
 
4g interview-question
4g interview-question4g interview-question
4g interview-question
Manpreet Singh
 
How to dimension user traffic in LTE
How to dimension user traffic in LTEHow to dimension user traffic in LTE
How to dimension user traffic in LTE
Althaf Hussain
 
5G NR parameters
5G NR parameters5G NR parameters
5G NR parameters
Sasi Reddy
 
PCRF-Policy Charging System-Functional Analysis
PCRF-Policy Charging System-Functional AnalysisPCRF-Policy Charging System-Functional Analysis
PCRF-Policy Charging System-Functional Analysis
Biju M R
 
Simplified Call Flow Signaling: Registration - The Attach Procedure
Simplified Call Flow Signaling: Registration - The Attach ProcedureSimplified Call Flow Signaling: Registration - The Attach Procedure
Simplified Call Flow Signaling: Registration - The Attach Procedure
3G4G
 
Diameter Presentation
Diameter PresentationDiameter Presentation
Diameter Presentation
Beny Haddad
 
IMS Core Elements
IMS Core ElementsIMS Core Elements
IMS Core Elements
Kent Loh
 
Agile 5G Deployment
Agile 5G DeploymentAgile 5G Deployment
Agile 5G Deployment
Ericsson
 
Wired equivalent privacy (wep)
Wired equivalent privacy (wep)Wired equivalent privacy (wep)
Wired equivalent privacy (wep)
akruthi k
 
5G Network Architecture and Design
5G Network Architecture and Design5G Network Architecture and Design
5G Network Architecture and Design
3G4G
 
5G Network Slicing
5G Network Slicing5G Network Slicing
5G Network Slicing
Sridhar Bhaskaran
 

What's hot (20)

Packet core network basics
Packet core network basicsPacket core network basics
Packet core network basics
 
Introduction to Diameter Protocol - Part1
Introduction to Diameter Protocol - Part1Introduction to Diameter Protocol - Part1
Introduction to Diameter Protocol - Part1
 
Lte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkxLte ue initial attach & detach from networkx
Lte ue initial attach & detach from networkx
 
Big ip f5 ltm load balancing methods
Big ip f5 ltm load balancing methodsBig ip f5 ltm load balancing methods
Big ip f5 ltm load balancing methods
 
Ieee 1588 ptp
Ieee 1588 ptpIeee 1588 ptp
Ieee 1588 ptp
 
End to End volte ims sip call flow Guide - Mobile originating and Mobile term...
End to End volte ims sip call flow Guide - Mobile originating and Mobile term...End to End volte ims sip call flow Guide - Mobile originating and Mobile term...
End to End volte ims sip call flow Guide - Mobile originating and Mobile term...
 
5G RAN fundamentals
5G RAN fundamentals5G RAN fundamentals
5G RAN fundamentals
 
Ip ran v1.1
Ip ran v1.1Ip ran v1.1
Ip ran v1.1
 
Inter-AS MPLS VPN Deployment
Inter-AS MPLS VPN DeploymentInter-AS MPLS VPN Deployment
Inter-AS MPLS VPN Deployment
 
4g interview-question
4g interview-question4g interview-question
4g interview-question
 
How to dimension user traffic in LTE
How to dimension user traffic in LTEHow to dimension user traffic in LTE
How to dimension user traffic in LTE
 
5G NR parameters
5G NR parameters5G NR parameters
5G NR parameters
 
PCRF-Policy Charging System-Functional Analysis
PCRF-Policy Charging System-Functional AnalysisPCRF-Policy Charging System-Functional Analysis
PCRF-Policy Charging System-Functional Analysis
 
Simplified Call Flow Signaling: Registration - The Attach Procedure
Simplified Call Flow Signaling: Registration - The Attach ProcedureSimplified Call Flow Signaling: Registration - The Attach Procedure
Simplified Call Flow Signaling: Registration - The Attach Procedure
 
Diameter Presentation
Diameter PresentationDiameter Presentation
Diameter Presentation
 
IMS Core Elements
IMS Core ElementsIMS Core Elements
IMS Core Elements
 
Agile 5G Deployment
Agile 5G DeploymentAgile 5G Deployment
Agile 5G Deployment
 
Wired equivalent privacy (wep)
Wired equivalent privacy (wep)Wired equivalent privacy (wep)
Wired equivalent privacy (wep)
 
5G Network Architecture and Design
5G Network Architecture and Design5G Network Architecture and Design
5G Network Architecture and Design
 
5G Network Slicing
5G Network Slicing5G Network Slicing
5G Network Slicing
 

Viewers also liked

Nokia lte advanced evolution white_paper
Nokia lte advanced evolution white_paperNokia lte advanced evolution white_paper
Nokia lte advanced evolution white_paper
ssk
 
Tutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Tutorial: Internet Resource Management by Champika Wijayatunga, APNICTutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Tutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Febrian ‎
 
Cisco academy procedure cust
Cisco academy procedure custCisco academy procedure cust
Cisco academy procedure custFebrian ‎
 
Nord Sec Mob Slides Students&Scholar 01102008
Nord Sec Mob Slides Students&Scholar 01102008Nord Sec Mob Slides Students&Scholar 01102008
Nord Sec Mob Slides Students&Scholar 01102008Febrian ‎
 
Inter as vpn option c
Inter as vpn option c Inter as vpn option c
Inter as vpn option c
Goerge Micheal Gerges
 
Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...
Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...
Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...
Principled Technologies
 
IPv6 Theory by Cisco
IPv6 Theory by CiscoIPv6 Theory by Cisco
IPv6 Theory by CiscoFebrian ‎
 
The Value of network performance
The Value of network performanceThe Value of network performance
The Value of network performance
Ericsson
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2
Febrian ‎
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliFebrian ‎
 
Iperf Suite
Iperf SuiteIperf Suite
Iperf Suite
kestasj
 
Juniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by IrzanJuniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by IrzanFebrian ‎
 
Module 1: Intro to Radio Basics -- for Trainers
Module 1: Intro to Radio Basics -- for TrainersModule 1: Intro to Radio Basics -- for Trainers
Module 1: Intro to Radio Basics -- for Trainersbkoch
 
lte advanced
lte advancedlte advanced
lte advanced
Vikas Gandhi
 
MPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by KhatriMPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by KhatriFebrian ‎
 
Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...
Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...
Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...Dani Indra Kumara
 
Performance test
Performance testPerformance test
Performance test
Tony Fortunato
 
Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Febrian ‎
 

Viewers also liked (20)

IPCRF presentation
IPCRF presentationIPCRF presentation
IPCRF presentation
 
Nokia lte advanced evolution white_paper
Nokia lte advanced evolution white_paperNokia lte advanced evolution white_paper
Nokia lte advanced evolution white_paper
 
Tutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Tutorial: Internet Resource Management by Champika Wijayatunga, APNICTutorial: Internet Resource Management by Champika Wijayatunga, APNIC
Tutorial: Internet Resource Management by Champika Wijayatunga, APNIC
 
Cisco academy procedure cust
Cisco academy procedure custCisco academy procedure cust
Cisco academy procedure cust
 
Nord Sec Mob Slides Students&Scholar 01102008
Nord Sec Mob Slides Students&Scholar 01102008Nord Sec Mob Slides Students&Scholar 01102008
Nord Sec Mob Slides Students&Scholar 01102008
 
IPv6 by APNIC
IPv6 by APNICIPv6 by APNIC
IPv6 by APNIC
 
Inter as vpn option c
Inter as vpn option c Inter as vpn option c
Inter as vpn option c
 
Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...
Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...
Comparing network performance: Red Hat Enterprise Linux 6 vs. Microsoft Windo...
 
IPv6 Theory by Cisco
IPv6 Theory by CiscoIPv6 Theory by Cisco
IPv6 Theory by Cisco
 
The Value of network performance
The Value of network performanceThe Value of network performance
The Value of network performance
 
Juniper mpls best practice part 2
Juniper mpls best practice   part 2Juniper mpls best practice   part 2
Juniper mpls best practice part 2
 
Juniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by SoricelliJuniper MPLS Tutorial by Soricelli
Juniper MPLS Tutorial by Soricelli
 
Iperf Suite
Iperf SuiteIperf Suite
Iperf Suite
 
Juniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by IrzanJuniper IPv6 Workshop by Irzan
Juniper IPv6 Workshop by Irzan
 
Module 1: Intro to Radio Basics -- for Trainers
Module 1: Intro to Radio Basics -- for TrainersModule 1: Intro to Radio Basics -- for Trainers
Module 1: Intro to Radio Basics -- for Trainers
 
lte advanced
lte advancedlte advanced
lte advanced
 
MPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by KhatriMPLS-based Metro Ethernet Networks Tutorial by Khatri
MPLS-based Metro Ethernet Networks Tutorial by Khatri
 
Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...
Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...
Wcdma rno handover algorithm analysis and parameter configurtaion guidance 20...
 
Performance test
Performance testPerformance test
Performance test
 
Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010Deploying IP/MPLS VPN - Cisco Networkers 2010
Deploying IP/MPLS VPN - Cisco Networkers 2010
 

Similar to Iperf Tutorial

Duganiperfn43 120911020533-phpapp02
Duganiperfn43 120911020533-phpapp02Duganiperfn43 120911020533-phpapp02
Duganiperfn43 120911020533-phpapp02Jamil Jamil
 
Janet-hosted test tools
Janet-hosted test toolsJanet-hosted test tools
Janet-hosted test tools
Jisc
 
Transport layer
Transport layerTransport layer
Transport layer
SreeRamTech
 
High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3
Seung-Bum Lee
 
PLNOG 9: Emil Gągała - Fast Service Restoration
PLNOG 9: Emil Gągała - Fast Service Restoration PLNOG 9: Emil Gągała - Fast Service Restoration
PLNOG 9: Emil Gągała - Fast Service Restoration
PROIDEA
 
ddsf-student-presentation_756205.pptx
ddsf-student-presentation_756205.pptxddsf-student-presentation_756205.pptx
ddsf-student-presentation_756205.pptx
ssuser498be2
 
OpenKilda: Stream Processing Meets Openflow
OpenKilda: Stream Processing Meets OpenflowOpenKilda: Stream Processing Meets Openflow
OpenKilda: Stream Processing Meets Openflow
APNIC
 
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitchDPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
Jim St. Leger
 
Tonyfortunatoiperfquickstart 1212633021928769-8
Tonyfortunatoiperfquickstart 1212633021928769-8Tonyfortunatoiperfquickstart 1212633021928769-8
Tonyfortunatoiperfquickstart 1212633021928769-8
Jamil Jamil
 
µIP (micro IP)
µIP (micro IP)µIP (micro IP)
µIP (micro IP)
Md. Ariful Hoque
 
Dccp evaluation for sip signaling ict4 m
Dccp evaluation for sip signaling   ict4 m Dccp evaluation for sip signaling   ict4 m
Dccp evaluation for sip signaling ict4 m
Agus Awaludin
 
Martin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -finalMartin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -final
PacSecJP
 
Performance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPerformance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdf
Phcng785014
 
Tech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentationTech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentation
Jisc
 
cFrame framework slides
cFrame framework slidescFrame framework slides
cFrame framework slides
kestasj
 
Tech 2 Tech: Network performance
Tech 2 Tech: Network performanceTech 2 Tech: Network performance
Tech 2 Tech: Network performance
Jisc
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OpenvSwitch
 
A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...
A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...
A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...
Communication Systems & Networks
 
Exp3mq
Exp3mqExp3mq
Exp3mq
ARCFIRE ICT
 
More Efficient Object Replication in OpenStack Summit Juno
More Efficient Object Replication in OpenStack Summit JunoMore Efficient Object Replication in OpenStack Summit Juno
More Efficient Object Replication in OpenStack Summit Juno
Kota Tsuyuzaki
 

Similar to Iperf Tutorial (20)

Duganiperfn43 120911020533-phpapp02
Duganiperfn43 120911020533-phpapp02Duganiperfn43 120911020533-phpapp02
Duganiperfn43 120911020533-phpapp02
 
Janet-hosted test tools
Janet-hosted test toolsJanet-hosted test tools
Janet-hosted test tools
 
Transport layer
Transport layerTransport layer
Transport layer
 
High performance browser networking ch1,2,3
High performance browser networking ch1,2,3High performance browser networking ch1,2,3
High performance browser networking ch1,2,3
 
PLNOG 9: Emil Gągała - Fast Service Restoration
PLNOG 9: Emil Gągała - Fast Service Restoration PLNOG 9: Emil Gągała - Fast Service Restoration
PLNOG 9: Emil Gągała - Fast Service Restoration
 
ddsf-student-presentation_756205.pptx
ddsf-student-presentation_756205.pptxddsf-student-presentation_756205.pptx
ddsf-student-presentation_756205.pptx
 
OpenKilda: Stream Processing Meets Openflow
OpenKilda: Stream Processing Meets OpenflowOpenKilda: Stream Processing Meets Openflow
OpenKilda: Stream Processing Meets Openflow
 
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitchDPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
DPDK Summit - 08 Sept 2014 - NTT - High Performance vSwitch
 
Tonyfortunatoiperfquickstart 1212633021928769-8
Tonyfortunatoiperfquickstart 1212633021928769-8Tonyfortunatoiperfquickstart 1212633021928769-8
Tonyfortunatoiperfquickstart 1212633021928769-8
 
µIP (micro IP)
µIP (micro IP)µIP (micro IP)
µIP (micro IP)
 
Dccp evaluation for sip signaling ict4 m
Dccp evaluation for sip signaling   ict4 m Dccp evaluation for sip signaling   ict4 m
Dccp evaluation for sip signaling ict4 m
 
Martin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -finalMartin Zeiser, Universal Pwn n Play - pacsec -final
Martin Zeiser, Universal Pwn n Play - pacsec -final
 
Performance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdfPerformance & Monitoring Performance.pdf
Performance & Monitoring Performance.pdf
 
Tech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentationTech 2 tech low latency networking on Janet presentation
Tech 2 tech low latency networking on Janet presentation
 
cFrame framework slides
cFrame framework slidescFrame framework slides
cFrame framework slides
 
Tech 2 Tech: Network performance
Tech 2 Tech: Network performanceTech 2 Tech: Network performance
Tech 2 Tech: Network performance
 
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecasesLF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
LF_OVS_17_OVS/OVS-DPDK connection tracking for Mobile usecases
 
A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...
A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...
A Study on MPTCP for Tolerating Packet Reordering and Path Heterogeneity in W...
 
Exp3mq
Exp3mqExp3mq
Exp3mq
 
More Efficient Object Replication in OpenStack Summit Juno
More Efficient Object Replication in OpenStack Summit JunoMore Efficient Object Replication in OpenStack Summit Juno
More Efficient Object Replication in OpenStack Summit Juno
 

More from Febrian ‎

QoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.netQoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.netFebrian ‎
 
ipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grosseteteipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick GrosseteteFebrian ‎
 
Juniper mpls best practice part 1
Juniper mpls best practice   part 1Juniper mpls best practice   part 1
Juniper mpls best practice part 1
Febrian ‎
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesFebrian ‎
 
Cisco IPv6 Tutorial by Hinwoto
Cisco IPv6 Tutorial by HinwotoCisco IPv6 Tutorial by Hinwoto
Cisco IPv6 Tutorial by Hinwoto
Febrian ‎
 
Passion
PassionPassion
Passion
Febrian ‎
 
OnMobile Global Limited
OnMobile Global Limited OnMobile Global Limited
OnMobile Global Limited
Febrian ‎
 
Neso Newsletter Feb09
Neso Newsletter Feb09Neso Newsletter Feb09
Neso Newsletter Feb09Febrian ‎
 
bti asia salary guide
bti asia salary guidebti asia salary guide
bti asia salary guideFebrian ‎
 
Nps2 Fe
Nps2 FeNps2 Fe
Nps2 Fe
Febrian ‎
 
Wrt54gl
Wrt54glWrt54gl
Wrt54gl
Febrian ‎
 
I Phone101
I Phone101I Phone101
I Phone101
Febrian ‎
 
Emanate Issue 1 Final
Emanate Issue 1 FinalEmanate Issue 1 Final
Emanate Issue 1 FinalFebrian ‎
 

More from Febrian ‎ (20)

QoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.netQoS Cheatsheet by packetlife.net
QoS Cheatsheet by packetlife.net
 
ipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grosseteteipv6 mpls by Patrick Grossetete
ipv6 mpls by Patrick Grossetete
 
Juniper mpls best practice part 1
Juniper mpls best practice   part 1Juniper mpls best practice   part 1
Juniper mpls best practice part 1
 
BGP Advance Technique by Steven & James
BGP Advance Technique by Steven & JamesBGP Advance Technique by Steven & James
BGP Advance Technique by Steven & James
 
Cisco IPv6 Tutorial by Hinwoto
Cisco IPv6 Tutorial by HinwotoCisco IPv6 Tutorial by Hinwoto
Cisco IPv6 Tutorial by Hinwoto
 
Internet Market
Internet MarketInternet Market
Internet Market
 
MyJalah200905
MyJalah200905MyJalah200905
MyJalah200905
 
Passion
PassionPassion
Passion
 
OnMobile Global Limited
OnMobile Global Limited OnMobile Global Limited
OnMobile Global Limited
 
Nps320
Nps320Nps320
Nps320
 
My Jalah200904
My Jalah200904My Jalah200904
My Jalah200904
 
Neso Newsletter Feb09
Neso Newsletter Feb09Neso Newsletter Feb09
Neso Newsletter Feb09
 
bti asia salary guide
bti asia salary guidebti asia salary guide
bti asia salary guide
 
Nps2 Fe
Nps2 FeNps2 Fe
Nps2 Fe
 
Wrt54gl
Wrt54glWrt54gl
Wrt54gl
 
I Phone101
I Phone101I Phone101
I Phone101
 
Nsm Brochure
Nsm BrochureNsm Brochure
Nsm Brochure
 
LTE vs WiMax
LTE vs WiMaxLTE vs WiMax
LTE vs WiMax
 
Em Anate Issue2
Em Anate Issue2Em Anate Issue2
Em Anate Issue2
 
Emanate Issue 1 Final
Emanate Issue 1 FinalEmanate Issue 1 Final
Emanate Issue 1 Final
 

Recently uploaded

SOCIOLOGY PPT. SOCIAL SECURITY POWER POINT
SOCIOLOGY PPT. SOCIAL SECURITY POWER POINTSOCIOLOGY PPT. SOCIAL SECURITY POWER POINT
SOCIOLOGY PPT. SOCIAL SECURITY POWER POINT
ssuser8d5e2d1
 
ÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docx
ÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docxÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docx
ÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docx
ngochaavk33a
 
UNIVERSAL HUMAN VALUES- Harmony in the Nature
UNIVERSAL HUMAN VALUES- Harmony in the NatureUNIVERSAL HUMAN VALUES- Harmony in the Nature
UNIVERSAL HUMAN VALUES- Harmony in the Nature
Chandrakant Divate
 
Program Your Destiny eBook - Destiny University.pdf
Program Your Destiny eBook - Destiny University.pdfProgram Your Destiny eBook - Destiny University.pdf
Program Your Destiny eBook - Destiny University.pdf
Michael Herlache, MBA
 
Ethical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptx
Ethical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptxEthical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptx
Ethical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptx
TANMAYJAIN511570
 
Collocation thường gặp trong đề thi THPT Quốc gia.pdf
Collocation thường gặp trong đề thi THPT Quốc gia.pdfCollocation thường gặp trong đề thi THPT Quốc gia.pdf
Collocation thường gặp trong đề thi THPT Quốc gia.pdf
ngochaavk33a
 
CHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docx
CHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docxCHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docx
CHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docx
ngochaavk33a
 

Recently uploaded (7)

SOCIOLOGY PPT. SOCIAL SECURITY POWER POINT
SOCIOLOGY PPT. SOCIAL SECURITY POWER POINTSOCIOLOGY PPT. SOCIAL SECURITY POWER POINT
SOCIOLOGY PPT. SOCIAL SECURITY POWER POINT
 
ÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docx
ÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docxÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docx
ÔN TẬP CỤM THÀNH NGỮ TIẾNG ANH CỰC HAY.docx
 
UNIVERSAL HUMAN VALUES- Harmony in the Nature
UNIVERSAL HUMAN VALUES- Harmony in the NatureUNIVERSAL HUMAN VALUES- Harmony in the Nature
UNIVERSAL HUMAN VALUES- Harmony in the Nature
 
Program Your Destiny eBook - Destiny University.pdf
Program Your Destiny eBook - Destiny University.pdfProgram Your Destiny eBook - Destiny University.pdf
Program Your Destiny eBook - Destiny University.pdf
 
Ethical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptx
Ethical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptxEthical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptx
Ethical_dilemmas_MDI_Gurgaon-Business Ethics Case 1.pptx
 
Collocation thường gặp trong đề thi THPT Quốc gia.pdf
Collocation thường gặp trong đề thi THPT Quốc gia.pdfCollocation thường gặp trong đề thi THPT Quốc gia.pdf
Collocation thường gặp trong đề thi THPT Quốc gia.pdf
 
CHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docx
CHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docxCHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docx
CHUYÊN ĐỀ READING ÔN THI HSG THPT HAY.docx
 

Iperf Tutorial

  • 1. Using Iperf Jon M. Dugan <jdugan@es.net> Energy Sciences Network Lawrence Berkeley National Laboratory NANOG 43, Brooklyn, NY June 1, 2008 Networking for the Future of Science 1
  • 2. Outline • TCP Measurements • UDP Measurements • Useful tricks 2
  • 3. Iperf’s notion of clients and servers Client is the sender Server is the receiver (discard server) 3
  • 4. TCP Measurements • Measures TCP Achievable Bandwidth – Measurement includes the end system – Sometimes called “memory-to-memory” tests • Limits of what we can measure – TCP is a largely a black box • Many things can limit TCP throughput – Loss – Congestion – Buffer Starvation – Out of order delivery 4
  • 5. Example Iperf TCP Invocation Server (receiver): $ iperf -s ------------------------------------------------------------ Server listening on TCP port 5001 TCP window size: 85.3 KByte (default) ------------------------------------------------------------ [ 4] local 10.0.1.5 port 5001 connected with 10.0.1.10 port 60830 [ 4] 0.0-10.0 sec 1.09 GBytes 933 Mbits/sec [ 4] local 10.0.1.5 port 5001 connected with 10.0.1.10 port 60831 [ 4] 0.0-10.0 sec 1.08 GBytes 931 Mbits/sec Client (sender): $ iperf -c 10.0.1.5 ------------------------------------------------------------ Client connecting to 10.0.1.5, TCP port 5001 TCP window size: 129 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.1.10 port 60830 connected with 10.0.1.5 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.2 sec 1.09 GBytes 913 Mbits/sec 5
  • 6. Bandwidth Delay Product • The amount of “in flight” data allowed for a TCP connection • BDP = bandwidth * round trip time • Example: 1Gb/s cross country, ~100ms 1,000,000,000 b/s * .1 s = 100,000,000 bits 100,000,000 / 8 = 12,500,000 bytes 12,500,000 bytes / (1024*1024) ~ 12MB • To get full TCP performance the TCP window needs to be large enough to accommodate the Bandwidth Delay Product 6
  • 7. UDP Measurements • UDP provides greater transparency • We can directly measure some additional things: – Loss – Jitter – Out of order delivery 7
  • 8. Example Iperf UDP Invocation Server (receiver): $ iperf -u -s ------------------------------------------------------------ Server listening on UDP port 5001 Receiving 1470 byte datagrams UDP buffer size: 107 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.1.5 port 5001 connected with 10.0.1.10 port 65299 [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.008 ms 0/ 893 (0%) Client (sender): $ iperf -u -c 10.0.1.5 -b 1M ------------------------------------------------------------ Client connecting to 10.0.1.5, UDP port 5001 Sending 1470 byte datagrams UDP buffer size: 9.00 KByte (default) ------------------------------------------------------------ [ 3] local 10.0.1.10 port 65300 connected with 10.0.1.5 port 5001 [ ID] Interval Transfer Bandwidth [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec [ 3] Server Report: [ 3] 0.0-10.0 sec 1.25 MBytes 1.05 Mbits/sec 0.003 ms 0/ 893 (0%) [ 3] Sent 893 datagrams 8
  • 9. Adjusting Iperf for performance • The –w option for Iperf can be used to request a particular buffer size. This sets both send and receive buffer size. – The OS may need to be tweaked to allow buffers of sufficient size. – See http://dsd.lbl.gov/TCP-tuning/ and http://www.psc.edu/networking/perf_tune.html • Parallel transfers may help as well, the –P option can be used for this 9
  • 10. Useful Iperf Invocations • UDP and TCP: • -i n report status every n seconds • -d do bidirectional test simultaneously • -r do bidirectional test one after another 10
  • 11. Using Iperf to generate high rate streams • UDP doesn’t require a receiver • If you have good counters on your switches & routers those can be used to measure • Turns out UDP reception can be very resource intensive resulting in drops at the NIC at high rates (8-9 Gb/s) 11
  • 12. Never do this • Need to generate 10 Gb/s but only have a 1 Gb/s host? Iperf UDP 1 Gb/s Destined for 10.1.1.1 10.0.1.1 10.0.1.2 Static route: Static route: 10.1.1.1/32 10.0.1.2 10.1.1.1/32 10.0.1.1 Use the –T option to Iperf to control the number of times the traffic loops Can also use firewall filters to discard a certain TTL range. Other filters may be prudent as well. 12
  • 13. Iperf Development • Primarily in maintenance mode – Accepting and apply patches – Fixing bugs and documentation as time allows • Future Directions – libiperf 13
  • 14. More Information http://iperf.sourceforge.net iperf-users@lists.sourceforge.net You can reach me at: Jon Dugan <jdugan@es.net> 14