作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

›› 1999, Vol. 25 ›› Issue (S1): 70-72.

• 论文 • 上一篇    下一篇

用Microsoft VC++6.0的套接字实现一个VPN

丁岳伟,王景寅,施雪松   

  1. 上海理工大学计算机工程学院 上海,200093,上海理工大学计算机工程学院 上海,200093,上海理工大学计算机工程学院 上海,200093
  • 发布日期:1999-12-29

Fulfillment of a VPN with Microsoft Visual C++6.0 Socket

Ding Yuewei, Wang Jingyin, Shi Xuesong   

  1. (Department of Computer Engineering, University of Shanghai for Science and Technology, Shanghai 200093)
  • Published:1999-12-29

摘要: 主要讲述网络安全的解决方案-VPN(virtualprivatenetwork),即虚拟专用网。它用Internet代替租赁专线实现不同地点网络的安全互联。对于在世界各地拥有许多分支机构的企业来说,VPN是一个较理想的解决方案。首先介绍了VPN的两个关键技术,然后提供了一个VPN实现的框架。在MicrosoftVC++6.0环境下的VPN程序则展现了VPN的实际工作过程。在VPN的程序中,用到了MFC的CAsyncsocket类。通过套按字成员函数的调用,完成向对方发送和接收数据的工作。数据的传输均经过非对称会话密银交换和TEA加/解密算法处理。

关键词: 虚拟专用网, 因特网, 加密/解密算法, IPsec, IP隧道, Windows套接字

Abstract: This article focuses on their solutions. VPN, virtual private network, can securely interconnect networks at diffeTent places withInternet instead of leased lines, which is a good solution to enterPrises distributed around the world. Firstly, the article introduces two keytechniques of VPM-cryptographic principles and IPsec. Secondly, the article provides a VPN backbone. Furthermore, a VPN program underMicrosoft VC++6.0 shows the actual sequence as VPNs work. In these codes, MFC'S CAyncsocket class is used. Through calling socketfunctions, it sends and Teceives data from peer. And before data is sent (received), it is encrypted (decrypted) with TEA encryption algorithmand simple asymmetric exchange about session key.

中图分类号: