SlideShare una empresa de Scribd logo
1 de 35
Descargar para leer sin conexión
Networking	(Containers)	in	Ultra-
Low-Latency	Environments	
Avi	Deitcher	
avi@atomicinc.com
Who	Am	I?	
Avi	Deitcher		avi@atomicinc.com
Who	Am	I?	
Avi	Deitcher		avi@atomicinc.com
Who	Am	I?	
Avi	Deitcher		avi@atomicinc.com	
(not	24601)
Who	Am	I?	
•  Life	in	tech	business:	
–  10	yrs	large-scale	mission-criKcal	IT	
–  10+	yrs	consulKng	&	training	
–  Some	startups	on	the	way	
•  Avid	(if	not	very	good)	ice	hockey	player	
•  Long-Kme	lover	of	great	engineering….	when	
used	to	make	a	real	difference	
•  Atomic	Inc:		
–  Generalist	pracKKoner	
•  Network	just	one	element	
–  Product	:	engineering	:	operaKons	
Avi	Deitcher		avi@atomicinc.com	
(not	24601)
A	LiVle	History	
Avi	Deitcher		avi@atomicinc.com
A	LiVle	History	
Summer	2015	
•  Fintech	X:	“Containerize	
us!”	
–  Hint:	It	is	harder	than	you	
think…	and	worth	it	
–  Culture/process	>	technology	
•  QuesKon:	Networking?	
•  Answer:	ScienKfic	method	
Avi	Deitcher		avi@atomicinc.com
A	LiVle	History	
Summer	2015	
•  Fintech	X:	“Containerize	
us!”	
–  Hint:	It	is	harder	than	you	
think…	and	worth	it	
–  Culture/process	>	technology	
•  QuesKon:	Networking?	
•  Answer:	ScienKfic	method	
Fall	2016	
	
	
	
•  Good	pracKce	demands:	
1.  Redo	tests	with	new	opKons	
and	versions	
2.  Make	tests	available	
3.  Explain	it	all	well	
Avi	Deitcher		avi@atomicinc.com
What	Is	“Ultra-Low”	Latency?	
Avi	Deitcher		avi@atomicinc.com
What	Is	“Ultra-Low”	Latency?	
1.  hVp://home.blarg.net/%7Eglinden/StanfordDataMining.2006-11-29.ppt	
Avi	Deitcher		avi@atomicinc.com	
“every	100ms	of	delay	costs	1%	of	
sales”[1]
What	Is	“Ultra-Low”	Latency?	
“extra	0.5s	in	search	page	generaKon	
Kme	dropped	traffic	by	20%”[2]	
	
1.  hVp://home.blarg.net/%7Eglinden/StanfordDataMining.2006-11-29.ppt	
2.  hVp://glinden.blogspot.com/2006/11/marissa-mayer-at-web-20.html	
Avi	Deitcher		avi@atomicinc.com	
“every	100ms	of	delay	costs	1%	of	
sales”[1]
What	Is	“Ultra-Low”	Latency?	
“extra	0.5s	in	search	page	generaKon	
Kme	dropped	traffic	by	20%”[2]	
	
1.  hVp://home.blarg.net/%7Eglinden/StanfordDataMining.2006-11-29.ppt	
2.  hVp://glinden.blogspot.com/2006/11/marissa-mayer-at-web-20.html	
Avi	Deitcher		avi@atomicinc.com	
Not.				Even.					Close.	
“every	100ms	of	delay	costs	1%	of	
sales”[1]
Ultra-Low	Latency	
38	messages	in	7	milliseconds	
	
1	message	(avg)	every	184	𝓊-sec!	
Avi	Deitcher		avi@atomicinc.com
Two	Types	of	Networking…	
Direct	
Avi	Deitcher		avi@atomicinc.com
Two	Types	of	Networking…	
Direct	 Fabric+Overlay	
Avi	Deitcher		avi@atomicinc.com
…	maybe	four	
Workload	Awareness		
Avi	Deitcher		avi@atomicinc.com
…	maybe	four	
Workload	Awareness		 Fabric	Awareness	
Avi	Deitcher		avi@atomicinc.com
Networking	OpKons	
Direct	
Metal	
macvlan	
Bridge/vSwitch		
									(no	NAT)	
net=host	
SR-IOV	
Overlay	
Flannel	
Weave	
Docker	Overlay	
Calico	(IPIP)	
	
	
Workload	Awareness	
Docker	bridge	(NAT)	
Fabric	Awareness	
Calico	(NaKve)	
	
	
	
	
	
	
Avi	Deitcher		avi@atomicinc.com
Our	Tests	
What	We	Tested	
•  netperf	⇒	netserver	
•  UDP	&	TCP	round-robin	
•  Sizes:	300,	500,	1024,	2048	
•  No	orchestraKon	=	complete	
control	
•  50000	iteraKons	
–  Law	of	large	numbers	
•  Latency	(Avg,	%iles),	CPU	
	
•  DifferenQals,	not	absolutes	
How	We	Tested	
•  															.net	
–  Because	it	had	to	be	metal	
–  Wicked	smart	team	
•  Complete	test	run	
–  Network	changes	
–  Hardware	variaKons,	errors	
hVps://github.com/deitch/network-tests		
Avi	Deitcher		avi@atomicinc.com
Local	vs.	Remote	
Avi	Deitcher		avi@atomicinc.com
Avi	Deitcher		avi@atomicinc.com
Avi	Deitcher		avi@atomicinc.com
Avi	Deitcher		avi@atomicinc.com
Local	Networking	Summary	
•  SR-IOV	horrible	latency	but	great	CPU	
–  Hold	that	thought…	
•  net=host	on	par	with	metal	
•  macvlan	closest	virtualized	to	metal		
•  Rest	in	same	range:	
–  Latency:	5-10	𝓊-sec	overhead		
–  CPU:	negligible	difference	
•  Calico	(IPIP	&	naKve)	&	Docker	overlay	slightly	
more	performant	(margin	of	error?)	
•  Watch	out	for	very	large	TCP	packets	
Avi	Deitcher		avi@atomicinc.com
Avi	Deitcher		avi@atomicinc.com
Avi	Deitcher		avi@atomicinc.com
Avi	Deitcher		avi@atomicinc.com
Remote	Networking	Summary	
•  Weave	(sleeve)	adds	latency	and	CPU	
– Reason	for	“fast	datapath”	
•  Again,	macvlan	best	virtualized	
•  All	the	rest:	
– Latency:	within	50	𝓊-sec	of	each	other,	except	SR-
IOV	with	very	large	TCP	packets	
– CPU:	similar,	but	keep	an	eye	on	Flannel	(UDP)	
Avi	Deitcher		avi@atomicinc.com
About	that	SR-IOV	
Type	1:	Intel	I350	1Gbps	
Type	3:	Mellanox	MT27500	ConnectX-3	10Gbps		
Avi	Deitcher		avi@atomicinc.com
SR-IOV	
SR-IOV	does	not	automaQcally	mean	beWer	
•  Switch	in	network	card	
•  Trades	host	CPU	for	card	processor	
•  Quality	varies	drama3cally	
–  Even	Mellanox	far	worse	locally	
•  My	2€:	SR-IOV	falls	further	behind	due	to:	
–  Speed	of	iteraKon	
–  Open-source	
–  Sosware	+	CPU	
Avi	Deitcher		avi@atomicinc.com
What	else	could	we	do?	
Ø  Other	hardware	types	
Ø  Other	network	fabrics	
Ø  Other	network	overlay	versions	(we	have	the	data…)	
Ø  Docker	macvlan	network	driver	
Ø  ipvlan	
Ø  IPv6	
Ø  Kernel	and	network	stack	tuning	
Ø  Distant	networks	
Ø  Other	traffic	paVerns	(mulKcast	vs	unicast)	
Ø  Other	host-to-host	encrypKon		
Ø  Other	kernel	versions	
Ø  Other	OSes	(Illumos-based?)	
Ø  A	whole	lot	more…	
Avi	Deitcher		avi@atomicinc.com
Headaches	(and	Thanks)	
•  Headaches	
–  Weave	SYN-(nothing)	
–  etcd	is	“touchy”	
–  Packet	L3	network	is	powerful	but…	unique	
•  Macvlan,	weave,	flannel:	all	required	pings	for	mac	
•  Sexng	up	bridge	w/o	NAT,	Calico,	macvlan	was	“different”	
–  SR-IOV	is	complicated	and	flaky,	especially	Mellanox	
–  netperf	with	UDP	packets	can	get	stuck	(Calico-ipip)	
–  And	a	whole	lot	more	(ask	me	offline)	
	
•  And	thanks:	
–  Bryan	Boreham,	Adam	Harrison	at	weave.works	
–  Zac	Smith,	Adam,	Aaron,	Andy,	Lucas,	everyone	at	Packet	
Avi	Deitcher		avi@atomicinc.com
Conclusions	
•  SR-IOV:	most	of	the	Kme,	just	not	worth	it	
•  Performance:	
–  Metal	(+	net=host):	always	performs	best	
–  Direct	network++:	macvlan	is	your	friend	
–  Others:		Roughly	similar,	careful	of	Weave	(sleeve)	
	
•  What’s	your	use	case?	
–  ULL:	Metal/net=host	>	macvlan	>	calico	>	overlay	
–  Everything	else:	Focus	on	your	architecture	and	skills	
	
Pick	intelligently:	easier,	not	simple	
Avi	Deitcher		avi@atomicinc.com
Conclusions	
•  SR-IOV:	most	of	the	Kme,	just	not	worth	it	
•  Performance:	
–  Metal	(+	net=host):	always	performs	best	
–  Direct	network++:	macvlan	is	your	friend	
–  Others:		Roughly	similar,	careful	of	Weave	(sleeve)	
	
•  What’s	your	use	case?	
–  ULL:	Metal/net=host	>	macvlan	>	calico	>	overlay	
–  Everything	else:	Focus	on	your	architecture	and	skills	
	
Pick	intelligently:	easier,	not	simple	
Avi	Deitcher		avi@atomicinc.com
QuesKons	and	help:	
@avideitcher							avi@atomicinc.com

Más contenido relacionado

Destacado

Good and bad examples of e-commerce websites
Good and bad examples of e-commerce websitesGood and bad examples of e-commerce websites
Good and bad examples of e-commerce websites
seng
 
Top 10 Most Expensive Cars
Top 10 Most Expensive CarsTop 10 Most Expensive Cars
Top 10 Most Expensive Cars
Peter Bouchard
 
The evolution of the automobile
The evolution of the automobileThe evolution of the automobile
The evolution of the automobile
josephdesilva
 
Ppt on automobile industry
Ppt on automobile industryPpt on automobile industry
Ppt on automobile industry
Priya Tiwari
 
Gehirnentwicklung und Sprache
Gehirnentwicklung und SpracheGehirnentwicklung und Sprache
Gehirnentwicklung und Sprache
luja9
 
E commerce business models
E commerce business modelsE commerce business models
E commerce business models
Vikram g b
 

Destacado (15)

Famous british cars
Famous british carsFamous british cars
Famous british cars
 
Good and bad examples of e-commerce websites
Good and bad examples of e-commerce websitesGood and bad examples of e-commerce websites
Good and bad examples of e-commerce websites
 
Top 10 Most Expensive Cars
Top 10 Most Expensive CarsTop 10 Most Expensive Cars
Top 10 Most Expensive Cars
 
The evolution of the automobile
The evolution of the automobileThe evolution of the automobile
The evolution of the automobile
 
E business models
E business modelsE business models
E business models
 
Ppt on automobile industry
Ppt on automobile industryPpt on automobile industry
Ppt on automobile industry
 
Cars ppt.
Cars ppt.Cars ppt.
Cars ppt.
 
Google driverless cars
Google driverless carsGoogle driverless cars
Google driverless cars
 
Gehirnentwicklung und Sprache
Gehirnentwicklung und SpracheGehirnentwicklung und Sprache
Gehirnentwicklung und Sprache
 
E Commerce Presentation
E  Commerce  PresentationE  Commerce  Presentation
E Commerce Presentation
 
The Automotive Industry Through the lens of social
The Automotive Industry Through the lens of socialThe Automotive Industry Through the lens of social
The Automotive Industry Through the lens of social
 
E-Commerce PPT
E-Commerce PPTE-Commerce PPT
E-Commerce PPT
 
25 Cars Worth Waiting For 2016–2019
25 Cars Worth Waiting For 2016–201925 Cars Worth Waiting For 2016–2019
25 Cars Worth Waiting For 2016–2019
 
E commerce business models
E commerce business modelsE commerce business models
E commerce business models
 
Most Reliable Cars
Most Reliable CarsMost Reliable Cars
Most Reliable Cars
 

Similar a Linux con berlin-2016-presentation-deitchera

Atf 3 q15-1 - introduction
Atf 3 q15-1 - introductionAtf 3 q15-1 - introduction
Atf 3 q15-1 - introduction
Mason Mei
 
Surveying the Open Quantum Landscape: Open source tools for quantum computing
Surveying the Open Quantum Landscape: Open source tools for quantum computingSurveying the Open Quantum Landscape: Open source tools for quantum computing
Surveying the Open Quantum Landscape: Open source tools for quantum computing
All Things Open
 

Similar a Linux con berlin-2016-presentation-deitchera (20)

Kube Apps in action
Kube Apps in actionKube Apps in action
Kube Apps in action
 
2013-06-26: Meet The Blinky Tape
2013-06-26: Meet The Blinky Tape2013-06-26: Meet The Blinky Tape
2013-06-26: Meet The Blinky Tape
 
IoT Workshop Cincinnati
IoT Workshop CincinnatiIoT Workshop Cincinnati
IoT Workshop Cincinnati
 
Stream Data into the Cloud with Raspberry Pi and Windows 10 IoT Core
Stream Data into the Cloud with Raspberry Pi and Windows 10 IoT CoreStream Data into the Cloud with Raspberry Pi and Windows 10 IoT Core
Stream Data into the Cloud with Raspberry Pi and Windows 10 IoT Core
 
IoT Workshop Indianapolis
IoT Workshop IndianapolisIoT Workshop Indianapolis
IoT Workshop Indianapolis
 
Atf 3 q15-1 - introduction
Atf 3 q15-1 - introductionAtf 3 q15-1 - introduction
Atf 3 q15-1 - introduction
 
Serverless Toronto helps Startups
Serverless Toronto helps StartupsServerless Toronto helps Startups
Serverless Toronto helps Startups
 
UTOUG Training Days 2019 Voyage to Visual Builder Cloud Service
UTOUG Training Days 2019 Voyage to Visual Builder Cloud ServiceUTOUG Training Days 2019 Voyage to Visual Builder Cloud Service
UTOUG Training Days 2019 Voyage to Visual Builder Cloud Service
 
Surveying the Open Quantum Landscape: Open source tools for quantum computing
Surveying the Open Quantum Landscape: Open source tools for quantum computingSurveying the Open Quantum Landscape: Open source tools for quantum computing
Surveying the Open Quantum Landscape: Open source tools for quantum computing
 
KiZAN IoT Workshop - Memphis
KiZAN IoT Workshop - MemphisKiZAN IoT Workshop - Memphis
KiZAN IoT Workshop - Memphis
 
IoT Workshop - Waukesha
IoT Workshop - WaukeshaIoT Workshop - Waukesha
IoT Workshop - Waukesha
 
IoT Workshop Chicago
IoT Workshop ChicagoIoT Workshop Chicago
IoT Workshop Chicago
 
Netflix in the Cloud
Netflix in the CloudNetflix in the Cloud
Netflix in the Cloud
 
The Four Pillars of PCB Design for Creating a Successful IoT Product
The Four Pillars of PCB Design for Creating a Successful IoT ProductThe Four Pillars of PCB Design for Creating a Successful IoT Product
The Four Pillars of PCB Design for Creating a Successful IoT Product
 
IoT Workshop Nashville
IoT Workshop NashvilleIoT Workshop Nashville
IoT Workshop Nashville
 
Monolith to Micro-Services
Monolith to Micro-ServicesMonolith to Micro-Services
Monolith to Micro-Services
 
Technical Debt - SOTR14 - Clarkie
Technical Debt -  SOTR14 - ClarkieTechnical Debt -  SOTR14 - Clarkie
Technical Debt - SOTR14 - Clarkie
 
Migrate the Mission Critical Application to AWS Cloud
Migrate the Mission Critical Application to AWS CloudMigrate the Mission Critical Application to AWS Cloud
Migrate the Mission Critical Application to AWS Cloud
 
OAC - From Cloud Entry to Data Engineering to Data Science
OAC - From Cloud Entry to Data Engineering to Data ScienceOAC - From Cloud Entry to Data Engineering to Data Science
OAC - From Cloud Entry to Data Engineering to Data Science
 
00 introduction
00 introduction00 introduction
00 introduction
 

Último

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 

Último (20)

Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdfUnderstanding Discord NSFW Servers A Guide for Responsible Users.pdf
Understanding Discord NSFW Servers A Guide for Responsible Users.pdf
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)Powerful Google developer tools for immediate impact! (2023-24 C)
Powerful Google developer tools for immediate impact! (2023-24 C)
 
Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...Driving Behavioral Change for Information Management through Data-Driven Gree...
Driving Behavioral Change for Information Management through Data-Driven Gree...
 
Exploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone ProcessorsExploring the Future Potential of AI-Enabled Smartphone Processors
Exploring the Future Potential of AI-Enabled Smartphone Processors
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...Workshop - Best of Both Worlds_ Combine  KG and Vector search for  enhanced R...
Workshop - Best of Both Worlds_ Combine KG and Vector search for enhanced R...
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
Automating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps ScriptAutomating Google Workspace (GWS) & more with Apps Script
Automating Google Workspace (GWS) & more with Apps Script
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 

Linux con berlin-2016-presentation-deitchera