文档介绍:
用 Tun/tap 虚拟设备实现数据安全传送的方
法的研究与实现
刘敏,蒋砚军,高占春**
5
10
15
20
(北京邮电大学计算机学院,北京 100876)
摘要:本文以 Tun/tap 为理论基础和技术背景,实现了一种安全传送数据的方法。Tun/tap
驱动不仅实现了网卡驱动而且还实现了字符设备驱动部分,因此 Tun/tap 可以转发数据并保
存到字符设备中,所以理论上可以重新封装字符设备中的数据然后转发从而实现数据的安全
传送,本文围绕该研究点提出解决办法并分析试验结果。
关键词:Tun/tap 虚拟网络设备;数据安全传送;计算机网络
中图分类号:TP39
the Research and Implementation of the Method of
Transmitting Data with Security by Using Tun/tap Virtual
Equipment
Liu Min, Jiang Yanjun, Gao Zhanchun
(Beijing University of Posts and munications, Beijing 100876)
Abstract: In this paper,we implement a secure method of tansmitting data with Tun/tap as the
theoretical foundation and technical background. Tun/tap driver not only own the NIC driver but
also impelement some of the character device,so Tun/tap can save the data and forward it by the
character in theory we can re-encapsulate the data in the character device and then
tansmit it out in order to achieve data security paper focuses on the study point
to propose solutions and analyze test results.
Key words: Tun/tap work device; Transfer data work
25
0 引言
虚拟网卡 Tun/tap 是一个开源项目,支持很多类型的 UNIX 平台,Tun/tap 开源后基于
它实现了许多包封装技术,例如 OpenVPN 和 Vtun[1] [2]。Tun/tap 是操作系统中的虚拟网络设
备,这些虚拟的网络设备全部用软件实现,并运行与操作系统上的软件提供与硬件的网络设
30
35
备完全相同的功能。操作系统可以通过 Tun./tap 设备向绑定该设备的用户空间的程序发送数
据,用户空间程序也可以像操作硬件网络设备那样,通过 Tun/tap 设备发送数据,也就是
TUN/TAP 设备向操作系统的网络栈投递(或“注入”