preview

The Linux Network Name Space Essay

Better Essays

Contents
Linux Network Name Spaces 2
Overview 2
Linux Name Spaces 2
Linux Network Name Space 2
Network Name Space Use Cases 2
Network Name Space Example 2
Summary 2
References 3

Linux Network Name Spaces

Overview
In this paper we will discuss the Linux Network Name Space. First, the concept of namespaces will be described along with an overview of the default name spaces available in the Linux operating system. The Linux Network Name Space is a key enabler for some high profile virtualization technologies including OpenStack and Docker.
Linux Name Spaces
Linux consists of the following six namespaces:
Network – Network Namespace
PID – Process Namespace
Mount – Filesystem Namespace
User – User Namespace
IPC – Interprocess Communication Namespace
UTS – Host and NIS Namespace

Linux namespaces can be traced back to early UNIX technologies called chroot, process jails controlled where access is controlled with cgroups. The concept of a namespace is to isolate processes from other processes on the system. This concept evolved into namespaces that are created with clone() system call and manipulated with the setns() and unshare() system calls. The clone() system call is used when creating child namespace from a parent or root namespace. As the name would suggest this creates a clone of an existing stack. The setns() system call is used to join a namespace. The unshare() system call is used for moving processes into a namespace, as the name suggests the process

Get Access