The Role of Container Networks
Container Networks…
…built from standard networking components.
<app>
IEEE 802.3-x
10/100/1000/10GBASE-T
CSMA/CD
eth0: Link encap:Ethernet
inet addr: 10.0.0.32
inet6 addr: fe80::... 10.0.0.32 resolv.conf
UP BROADCAST MULTICAST
<app>
Connect to service
IEEE 802.3-x
10/100/1000/10GBASE-T
CSMA/CD
eth0: Link encap:Ethernet
inet addr: 10.0.0.32
inet6 addr: fe80::... 10.0.0.32 resolv.conf
UP BROADCAST MULTICAST
Up Next:
Container Network Model and Architecture
Container Network Model and Architecture
</>
CNM Libnetwork Plugin drivers
Design spec Implementation Network topology
Container Network Model (CNM)
- eth0
- IP
- DNS config
- Routing table
- ports
Sandbox Endpoint Network
net namespace veth pair
Container (collection of namespaces) Namespace
Container Network Model (CNM)
Sandbox (network namespace) Endpoint (Ethernet interface) Network (collection of sandbox/endpoints)
</>
CNM Libnetwork Plugins
Design spec Implements CNM Network topology
VXLAN overlay = multi-host networking MACVLAN = connect to corporate VLANs
</>
CNM Libnetwork Plugins
Design spec Implements CNM Network topology
VXLAN overlay = multi-host networking MACVLAN = connect to corporate VLANs
10.0.0.9
802.1d bridge (a.k.a. layer 2 switch)
IP range: 10.0.0.1/24
…
veth port pair
10.0.0.8 10.0.0.9 10.0.0.10
802.1d bridge (a.k.a. layer 2 switch)
IP range: 10.0.0.1/24
…
veth port pair
10.10.10.12 10.10.10.30 10.10.10.99
802.1d bridge (a.k.a. layer 2 switch) 802.1d bridge (a.k.a. layer 2 switch)
IP range: 10.0.0.0/24 IP range: 10.10.10.0/24
… …