SlideShare uma empresa Scribd logo
1 de 38
Baixar para ler offline
Networking	(Containers)	in	Ultra-
Low-Latency	Environments	
Avi	Deitcher	
avi@atomicinc.com
‫אכסניא‬
Avi	Deitcher		avi@atomicinc.com
‫אכסניא‬
Akh-san-ya	?aksnaja? n.	(ancient	Aramaic,	
from	Ancient	Greek	xénos)	1:	Hospitality,	
lodging;	2:	Host.	
	
Avi	Deitcher		avi@atomicinc.com
‫אכסניא‬
Akh-san-ya	?aksnaja? n.	(ancient	Aramaic,	
from	Ancient	Greek	xénos)	1:	Hospitality,	
lodging;	2:	Host.	
	
		:‫אכסניא‬ ‫בכבוד‬ ‫פותחים‬
Ancient	Jewish	custom	to	begin	public	speaking	
by	honouring	or	thanking	the	hosts.	
	
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	financial	services	IT	
–  10+	yrs	consulWng	&	training	
–  Some	startups	on	the	way	
•  Avid	(if	not	very	good)	ice	hockey	player	
•  Long-Wme	lover	of	great	engineering….	when	
used	to	make	a	real	difference	
•  Atomic	Inc:		
–  ConsulWng	
–  Training	
Avi	Deitcher		avi@atomicinc.com	
(not	24601)
A	Lile	History	
Avi	Deitcher		avi@atomicinc.com
A	Lile	History	
Summer	2015	
•  Fintech	X:	“Help	us	
containerize!”	
–  Hint:	It	is	harder	than	you	
think…	and	worth	it	
–  Culture/process	>	technology	
•  QuesWon:	Networking?	
•  Answer:	ScienWfic	method	
Avi	Deitcher		avi@atomicinc.com
A	Lile	History	
Summer	2015	
•  Fintech	X:	“Help	us	
containerize!”	
–  Hint:	It	is	harder	than	you	
think…	and	worth	it	
–  Culture/process	>	technology	
•  QuesWon:	Networking?	
•  Answer:	ScienWfic	method	
Summer	2016	
	
	
	
•  Good	pracWce	demands:	
1.  Redo	tests	with	new	opWons	
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.  hp://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	generaWon	
Wme	dropped	traffic	by	20%”[2]	
	
1.  hp://home.blarg.net/%7Eglinden/StanfordDataMining.2006-11-29.ppt	
2.  hp://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	generaWon	
Wme	dropped	traffic	by	20%”[2]	
	
1.  hp://home.blarg.net/%7Eglinden/StanfordDataMining.2006-11-29.ppt	
2.  hp://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
Networking	Workloads	
•  Networked	Workloads:	
	“things	that	do	work	and	must	talk”	
•  Same	principles	for	all	workloads:	
– VMs	
– Cloud	
– Serverless	
– Containers	
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	OpWons	
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	(NaWve)	
	
	
	
	
	
	
Avi	Deitcher		avi@atomicinc.com
Our	Tests	
What	We	Tested	
•  netperf	⇒	netserver	
•  UDP	&	TCP	round-robin	
•  Sizes:	300,	500,	1024,	2048	
•  No	orchestraWon	=	complete	
control	
•  50000	iteraWons	
–  Law	of	large	numbers	
•  Latency	(Avg,	%iles),	CPU	
	
•  DifferenRals,	not	absolutes	
How	We	Tested	
•  															.net	
–  Because	it	had	to	be	metal	
–  Wicked	smart	team	
•  Complete	test	run	
–  Network	changes	
–  Hardware	variaWons,	errors	
hps://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	&	naWve)	&	Docker	overlay	slightly	
more	performant	
•  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	automaRcally	mean	beXer	
•  Switch	in	network	card	
•  Trades	host	CPU	for	card	processor	
•  Quality	varies	drama5cally	
–  Even	Mellanox	far	worse	locally	
•  My	2¥:	SR-IOV	falls	further	behind	due	to:	
–  Speed	of	iteraWon	
–  Open-source	
–  Sowware	+	CPU	
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	
•  Se{ng	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
What	else	could	we	do?	
Ø Other	hardware	types	
Ø Other	network	fabrics	
Ø Docker	macvlan	network	driver	(experimental)	
Ø Ipvlan	
Ø Other	packet	sizes	
Ø Kernel	and	network	stack	tuning	
Ø Distant	(and	VPN)	networks	
Ø Other	traffic	paerns	
Ø Other	host-to-host	encrypWon		
Ø A	whole	lot	more…	
Avi	Deitcher		avi@atomicinc.com
Conclusions	
•  SR-IOV:	most	of	the	Wme,	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	Wme,	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
QuesWons	and	help:	
@avideitcher							avi@atomicinc.com

Mais conteúdo relacionado

Último

Último (20)

Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
Apidays New York 2024 - The Good, the Bad and the Governed by David O'Neill, ...
 
Cyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdfCyberprint. Dark Pink Apt Group [EN].pdf
Cyberprint. Dark Pink Apt Group [EN].pdf
 
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin WoodPolkadot JAM Slides - Token2049 - By Dr. Gavin Wood
Polkadot JAM Slides - Token2049 - By Dr. Gavin Wood
 
FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024FWD Group - Insurer Innovation Award 2024
FWD Group - Insurer Innovation Award 2024
 
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
Navigating the Deluge_ Dubai Floods and the Resilience of Dubai International...
 
Exploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with MilvusExploring Multimodal Embeddings with Milvus
Exploring Multimodal Embeddings with Milvus
 
Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024Axa Assurance Maroc - Insurer Innovation Award 2024
Axa Assurance Maroc - Insurer Innovation Award 2024
 
Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024Manulife - Insurer Transformation Award 2024
Manulife - Insurer Transformation Award 2024
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
CNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In PakistanCNIC Information System with Pakdata Cf In Pakistan
CNIC Information System with Pakdata Cf In Pakistan
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 
Artificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : UncertaintyArtificial Intelligence Chap.5 : Uncertainty
Artificial Intelligence Chap.5 : Uncertainty
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Ransomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdfRansomware_Q4_2023. The report. [EN].pdf
Ransomware_Q4_2023. The report. [EN].pdf
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
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
 

Destaque

Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
Kurio // The Social Media Age(ncy)
 

Destaque (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

LinuxCon/ContainerCon Japan 2016 "Networking Containers in Ultra-Low Latency Environments"