SlideShare a Scribd company logo
1 of 31
Download to read offline
Globalcode – Open4education
Trilha – Containers
Redes em Container
Guilherme Oki
Globalcode – Open4education
Agenda
• Infra Tradicional vs Infra Moderna
• Containers
• Rede
• Padrões de redes em container
• Tipos de rede no docker
• Bridge
• Overlay
• MACVLAN
• Demos
• Redes tradicionais vs SDN
• Drivers de rede
• Flannel
• Calico
Globalcode – Open4education
Quem sou eu?
● IT Automation Engineer na Stone Pagamentos
● Defensor do Open Source
● Entusiasta da cultura e desenvolvimento ágil
● Apaixonado pela cultura devops
Globalcode – Open4education
Livros que estou lendo...
@guilhermeoki
Globalcode – Open4education
Livros muito bons
Site Reliability Engineering: How Google Runs Production Systems
Continuous Delivery - Reliable Software Releases Through Build, Test And Deployment Automation
The Illustrated Network How TCP/IP works in a modern network
The Art of Unix Programming
Linux Kernel Development
Systems Performance Enterprise and the Cloud
Clean Code
The Pragmatic Programmer from journeyman to master
The Linux Programming Interface
The Phoenix Project
The Open Organization igniting passion and performance
Time Management for System Administrators
The Lean Startup
Management 3.0 leading agile developers developing agile leaders
High Output Management
Globalcode – Open4education
Infraestrutura Tradicional
Physical Network
Physical Storage
Physical Compute
VMM
Virtual Machine
Applications
Globalcode – Open4education
Infraestrutura Moderna
Tipo 1
Tipo 2
Virtualization
SaaS
IaaS
PaaS
Storage
Networking
Globalcode – Open4education
Containers
Globalcode – Open4education
Containers
“CONTAINERS ARE NOT A REAL THING” - Jess Frazelle
Cgroups
Namespaces
Filesystem
Virtual Machine
Containers
First Class Objects
Globalcode – Open4education
Container Code
int flags = CLONE_NEWNS | CLONE_NEWCGROUP | CLONE_NEWPID | CLONE_NEWIPC |
CLONE_NEWNET | CLONE_NEWUTS;
child_pid = clone(child, stack + STACK_SIZE, flags | SIGCHLD, &config);
Namespaces
PID UTS IPC NET MNT
Globalcode – Open4education
Redes
Globalcode – Open4education
Redes Layer 2
Source MAC
Destination MAC
VLAN ID
Globalcode – Open4education
Redes - Layer 3
Source MAC
Destination MAC
VLAN ID
Source IP
Destination IP
Globalcode – Open4education
Container Network Standard
Drivers Nativos Outros Drivers
Host
Bridge
Overlay
MACVLAN
None
Calico
Cilium
Weave
Contiv
Kuryr
Globalcode – Open4education
Container Network Standard
IPAM
Globalcode – Open4education
Docker Network - Network Namespaces
“Docker networking is Linux networking” - Docker docs
iptables bridges veths network ns
Globalcode – Open4education
Docker Network - Network Namespaces
Globalcode – Open4education
Docker Network - Bridges
Globalcode – Open4education
DEMO - Linux Bridges
Globalcode – Open4education
Redes - Tradicionais vs SDN
Router
Management Plane
Control Plane
Data Plane
Management Plane
Control Plane
Data Plane
Globalcode – Open4education
Redes - VXLAN
Globalcode – Open4education
Redes - VXLAN
Globalcode – Open4education
Docker Network - Overlay
Globalcode – Open4education
Globalcode – Open4education
DEMO - Docker overlay
Globalcode – Open4education
Network Driver - MACVLAN
Globalcode – Open4education
DEMO - Docker MACVLAN
Globalcode – Open4education
Network Driver -Flannel
Container
10.0.0.2
Container
10.0.1.2
docker0 docker0
flannel0 flannel0
eth0
192.168.1.2
eth0
192.168.1.3
Globalcode – Open4education
Network Driver - Calico
BIRD
Felix
BIRD
Felix
Container Container
iptables
routes
iptables
routes
Globalcode – Open4education
Dúvidas?
Globalcode – Open4education
Obrigado!

More Related Content

Similar to Redes em container

Adventures with acs and odl
Adventures with acs and odlAdventures with acs and odl
Adventures with acs and odl
Hugo Trippaers
 

Similar to Redes em container (20)

TDC2018FLN | Trilha Containers - Redes em containers
TDC2018FLN | Trilha Containers - Redes em containersTDC2018FLN | Trilha Containers - Redes em containers
TDC2018FLN | Trilha Containers - Redes em containers
 
Docker Platform and Ecosystem Nov 2015
Docker Platform and Ecosystem Nov 2015Docker Platform and Ecosystem Nov 2015
Docker Platform and Ecosystem Nov 2015
 
Akka.Net and .Net Core - The Developer Conference 2018 Florianopolis
Akka.Net and .Net Core - The Developer Conference 2018 FlorianopolisAkka.Net and .Net Core - The Developer Conference 2018 Florianopolis
Akka.Net and .Net Core - The Developer Conference 2018 Florianopolis
 
Alex Dias: how to build a docker monitoring solution
Alex Dias: how to build a docker monitoring solution Alex Dias: how to build a docker monitoring solution
Alex Dias: how to build a docker monitoring solution
 
DockerCon SF 2015: Keynote Day 1
DockerCon SF 2015: Keynote Day 1DockerCon SF 2015: Keynote Day 1
DockerCon SF 2015: Keynote Day 1
 
5 Ways to Secure Your Containers for Docker and Beyond
5 Ways to Secure Your Containers for Docker and Beyond5 Ways to Secure Your Containers for Docker and Beyond
5 Ways to Secure Your Containers for Docker and Beyond
 
Adventures with acs and odl
Adventures with acs and odlAdventures with acs and odl
Adventures with acs and odl
 
BPF & Cilium - Turning Linux into a Microservices-aware Operating System
BPF  & Cilium - Turning Linux into a Microservices-aware Operating SystemBPF  & Cilium - Turning Linux into a Microservices-aware Operating System
BPF & Cilium - Turning Linux into a Microservices-aware Operating System
 
Oscon 2017: Build your own container-based system with the Moby project
Oscon 2017: Build your own container-based system with the Moby projectOscon 2017: Build your own container-based system with the Moby project
Oscon 2017: Build your own container-based system with the Moby project
 
Docker Orchestration: Welcome to the Jungle! Devoxx & Docker Meetup Tour Nov ...
Docker Orchestration: Welcome to the Jungle! Devoxx & Docker Meetup Tour Nov ...Docker Orchestration: Welcome to the Jungle! Devoxx & Docker Meetup Tour Nov ...
Docker Orchestration: Welcome to the Jungle! Devoxx & Docker Meetup Tour Nov ...
 
Docker Networking in OpenStack: What you need to know now
Docker Networking in OpenStack: What you need to know nowDocker Networking in OpenStack: What you need to know now
Docker Networking in OpenStack: What you need to know now
 
SDN Demystified, by Dean Pemberton [APNIC 38]
SDN Demystified, by Dean Pemberton [APNIC 38]SDN Demystified, by Dean Pemberton [APNIC 38]
SDN Demystified, by Dean Pemberton [APNIC 38]
 
DockerCon 16 General Session Day 1
DockerCon 16 General Session Day 1DockerCon 16 General Session Day 1
DockerCon 16 General Session Day 1
 
Dockercon 16 Recap
Dockercon 16 RecapDockercon 16 Recap
Dockercon 16 Recap
 
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
ContainerDayVietnam2016: Kubernetes State-of-the-art Container Management Pla...
 
Containers > VMs
Containers > VMsContainers > VMs
Containers > VMs
 
A Summary about Hykes' Keynote on Dockercon 2015
A Summary about Hykes' Keynote on Dockercon 2015A Summary about Hykes' Keynote on Dockercon 2015
A Summary about Hykes' Keynote on Dockercon 2015
 
All Things Open SDN, NFV and Open Daylight
All Things Open SDN, NFV and Open Daylight All Things Open SDN, NFV and Open Daylight
All Things Open SDN, NFV and Open Daylight
 
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
IEEE HPSR 2017 Keynote: Softwarized Dataplanes and the P^3 trade-offs: Progra...
 
Openslava 2017 - Are developers the real emerging technology?
Openslava 2017 - Are developers the real emerging technology?Openslava 2017 - Are developers the real emerging technology?
Openslava 2017 - Are developers the real emerging technology?
 

Recently uploaded

Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
FIDO Alliance
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc
 

Recently uploaded (20)

(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
(Explainable) Data-Centric AI: what are you explaininhg, and to whom?
 
Working together SRE & Platform Engineering
Working together SRE & Platform EngineeringWorking together SRE & Platform Engineering
Working together SRE & Platform Engineering
 
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptxHarnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
Harnessing Passkeys in the Battle Against AI-Powered Cyber Threats.pptx
 
The Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and InsightThe Zero-ETL Approach: Enhancing Data Agility and Insight
The Zero-ETL Approach: Enhancing Data Agility and Insight
 
2024 May Patch Tuesday
2024 May Patch Tuesday2024 May Patch Tuesday
2024 May Patch Tuesday
 
ADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptxADP Passwordless Journey Case Study.pptx
ADP Passwordless Journey Case Study.pptx
 
Syngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdfSyngulon - Selection technology May 2024.pdf
Syngulon - Selection technology May 2024.pdf
 
Overview of Hyperledger Foundation
Overview of Hyperledger FoundationOverview of Hyperledger Foundation
Overview of Hyperledger Foundation
 
State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!State of the Smart Building Startup Landscape 2024!
State of the Smart Building Startup Landscape 2024!
 
Introduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptxIntroduction to FIDO Authentication and Passkeys.pptx
Introduction to FIDO Authentication and Passkeys.pptx
 
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
Human Expert Website Manual WCAG 2.0 2.1 2.2 Audit - Digital Accessibility Au...
 
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
TrustArc Webinar - Unified Trust Center for Privacy, Security, Compliance, an...
 
Google I/O Extended 2024 Warsaw
Google I/O Extended 2024 WarsawGoogle I/O Extended 2024 Warsaw
Google I/O Extended 2024 Warsaw
 
Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024Long journey of Ruby Standard library at RubyKaigi 2024
Long journey of Ruby Standard library at RubyKaigi 2024
 
Generative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdfGenerative AI Use Cases and Applications.pdf
Generative AI Use Cases and Applications.pdf
 
Oauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoftOauth 2.0 Introduction and Flows with MuleSoft
Oauth 2.0 Introduction and Flows with MuleSoft
 
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on ThanabotsContinuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
Continuing Bonds Through AI: A Hermeneutic Reflection on Thanabots
 
TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024TopCryptoSupers 12thReport OrionX May2024
TopCryptoSupers 12thReport OrionX May2024
 
Intro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptxIntro to Passkeys and the State of Passwordless.pptx
Intro to Passkeys and the State of Passwordless.pptx
 
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
Event-Driven Architecture Masterclass: Engineering a Robust, High-performance...
 

Redes em container