In the world of TUN/TAP, there is a great diversity of approaches, ideas and opinions that can generate an extremely enriching exchange of knowledge. This is why it is crucial to delve deeper into the different aspects surrounding this topic, in order to understand its impact on today's society. From its origins to its future implications, TUN/TAP has become a point of interest for academics, professionals and the general public. Through this article, we will seek to explore the various facets of TUN/TAP and its relevance in the contemporary world, offering new perspectives and reflections that contribute to the enrichment of the debate around this transcendental topic.
![]() | This article has multiple issues. Please help improve it or discuss these issues on the talk page. (Learn how and when to remove these messages)
|
In computer networking, TUN and TAP are kernel virtual network devices. Being network devices supported entirely in software, they differ from ordinary network devices which are backed by physical network adapters.
The Universal TUN/TAP Driver originated in 2000 as a merger of the corresponding drivers in Solaris, Linux and BSD.[1] The driver continues to be maintained as part of the Linux[2] and FreeBSD[3][4][5] kernels.
Though both are for tunneling purposes, TUN and TAP cannot be used together because they transmit and receive packets at different layers of the network stack. TUN, namely network TUNnel, simulates a network layer device and operates in layer 3 carrying IP packets. TAP, namely network TAP, simulates a link layer device and operates in layer 2 carrying Ethernet frames. TUN is used with routing. TAP can be used to create a user space network bridge.[2]
Packets sent by an operating system via a TUN/TAP device are delivered to a user space program which attaches itself to the device. A user space program may also pass packets into a TUN/TAP device. In this case the TUN/TAP device delivers (or "injects") these packets to the operating-system network stack thus emulating their reception from an external source.[2]
Virtual-machine networking
Connecting real machines with network simulation
NAT
Platforms with TUN/TAP drivers include: