resources associated with networking: network devices, IPv4 and IPv6 protocol stacks, IP routing tables, firewalls, the /proc/net directory, the /sys/class/net directory, port numbers (sockets), and so on. • namespaces(7).
pair to create a tunnel for communication between namespaces. • It always comes in pair, with one end in the root namespace and the other end in a namespace. • The device is created in whatever namespace is current in. • If a device does not belong to the current namespace, it becomes invisible.
stack for all the processes within the namespace which includes: • Network interfaces. • Routing tables. • Iptables rules. • Etc. • From the system’s point of view, when creating a new process via clone() or unshare() syscall, passing the flag CLONE_NEWNET will create a brand-new network namespace into the new process. •/proc/$(container_pid)/ns/net
• Enables DNS resolution with an embedded. • Permits to connect/disconnect running containers from networks without restarting the container. • Network drivers: • Bridge • Overlay • Based on VXLAN. • It needs a key-value store to map vxlan id’s – Etcd/Consul • MacVLAN