advantages of tcp pacing using fqtcp op’on: fair queuing scheduler (fq) available in linux kernel...

12
Advantages of TCP pacing using FQ Brian Tierney, ESnet bl>[email protected] hBp://fasterdata.es.net

Upload: others

Post on 31-Jul-2020

7 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

AdvantagesofTCPpacingusingFQ

BrianTierney,ESnetbl>[email protected]://fasterdata.es.net

Page 2: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

TCPop'on:FairQueuingScheduler(FQ)AvailableinLinuxkernel3.11(releasedlate2013)orhigher–  availableinFedora20,Debian8,andUbuntu13.10–  Backportedto3.10.0-327kernelinv7.2CentOS/RHEL(Dec2015)

ToenableFairQueuing(whichisoffbydefault),do:–  tcqdiscadddev$ETHrootfqOraddthisto/etc/sysctl.conf:net.core.default_qdisc=fq

Tobothpaceandshapethetraffic:–  tcqdiscadddev$ETHrootfqmaxrateNgbit•  Canreliablypaceuptoamaxrateof32Gbpsonafastprocessors

Canalsodoapplica>onpacingusinga‘setsockopt(SO_MAX_PACING_RATE)’systemcall–  iperf3supportsthisviathe“—bandwidth’flag

Page 3: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

AdvantagesofPacing

•  ThefollowingplotsshowaclearbenefitfrompacingTCP–  ProperpacingofflowscancompletelyeliminateTCP‘sawtooth’

•  Theadvantageisevengreaterwithparallelflows•  WerecommendallDataTransferNodes(DTNs)useFQ-basedpacing

•  Pacingalsohelpswitheliminatepacketlossduetounder-bufferednetworkhardware,andunder-poweredsecuritydevices.

9/30/163

Page 4: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

9/30/164

NewYorktoTexas:WithPacing

Page 5: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

Moreexamplesofpacinghelping

Page 6: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

ParallelStreamTest1LeHside:sumof4streamsRightside:tputofeachstreamStreamsappeartobemuchbeLerbalancedwithFQ,pacingto2.4performedbest

Page 7: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

ParallelStreamTest2LeHside:sumof4streamsRightside:tputofeachstreamStreamsappeartobemuchbeLerbalancedwithFQ

Page 8: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

100GHost,ParallelStreams:nopacingvs20Gpacing

9/30/168

WealsoseeconsistentlossontheLANwith4streams,nopacingPacketlossduetosmallbuffersinDellZ9100switch?

Page 9: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

100GHostto10GHost

9/30/169

Page 10: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

FastHosttoSlowhost

9/30/1610

ThroBledthereceivehostusing‘cpupower’command:/bin/cpupower -c all frequency-set -f 1.2GHz

Page 11: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

FQPacketsaremuchmoreevenlyspacedtcptrace/xplotoutput:FQonleH,StandardTCPonright

11

Page 12: Advantages of TCP pacing using FQTCP op’on: Fair Queuing Scheduler (FQ) Available in Linux kernel 3.11 (released late 2013) or higher – available in Fedora 20, Debian 8, and Ubuntu

Runyourowntests

•  FindaremoteperfSONARhostonapathofinterest–  Mostofthe2000+worldwideperfSONARhostswillaccepttests•  See:hBp://stats.es.net/ServicesDirectory/

•  Runsometests–  bwctl-chostname-t60--parsable>results.json

•  ConvertJSONtognuplotformat:–  hBps://github.com/esnet/iperf/tree/master/contrib