IKE protocol implementation on Linux systems , and technical analysis on the 2.6 kernel to achieve
- Author
- HouLiQun
- Advisor
- MaoYuMing
- School
- University of Electronic Science and Technology
- Major
- Information and Communication Engineering
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2005
- Downloads
- 159
- Citations
- 0
Abstract
As the development of Internet, the issue of network security has become more and more obvious. IPSec protocol is an effective method to ensure the security of IP data transmission in public network. Internet Key Exchange (IKE) is one of the most important protocols of IPSec protocol family. Its main function is to authenticate identity, negotiate security association and produce shared keys of encryption for two nodes (hosts or routers) which communicate securely with each other. Moreover, IKE also fills data to SADB. Currently, IKE is integrated as a part of IPSec FreeS/WAN, not functions as an independent software, which not only made the IKE difficult to be implemented but also broke the independence of IKE protocol, and prevented the enlargement of functions of IKE itself because it mixed the process of IPsec packet and the implementation of IKE protocols. Linux 2.6 which was issued in 2003 has implemented IPSec process and data encryption and dezcryption, which requires the separation of IKE and IPsec. And Linux kernel 2.6 also supported PF_KEY socket, which made it possible for IKE to be implemented in user space, communicate with the kernel and supply SA of automatic negotiation for IPsec. According to this new situation the IKE protocol needs to be redesigned. In the process of the design and implementation of IKE, the characteristics of the Linux2.6 and the requirements of the IPSEC had been taken into account, which made the design more reasonable, easier to be implemented, comprehended and expanded. In the paper, IKE protocol is analyzed in detail, including the contents of IKE, the format of the IKE message and the negotiating procedure. And then, the possible security attacks of the protocol are analyzed and corresponding scenario to solve the problem is presented, on the basis of which, the implementation of IKE in Linux is discussed deeply. And then a feasible implementation scenario based on Linux 2.6 kernel is presented, and the details of the implementation of event process sub-system and sub-system communicating with the kernel was described. At the end of this paper, the test results are analyzed.
Table of contents
Abstract 4-5
ABSTRACT 5-6
directory 6-9
chart catalog 9-11
shrink little word table 11-12
Chapter Introduction 12-15
1.1 background and significance topics 12-13
1.2 I completed the main work 13
1.3 chapters of this arrangement 13-15
Chapter IKE protocol research 15-35
2.1 IKE protocol consisting 15-16
2.2 basic Concepts 16-18
2.2.1 security Association 16
2.2.2 security Parameter Index 16
2.2.3 perfect Forward Secrecy 16
2.2.4 Diffie-Hellman exchange 16-17
2.2.5 RSA 17-18
2.3 IKE message format 18-24
2.3.1 ISAKMP header format 18-19
2.3.2 generic payload header 19-20
2.3 .3 data Properties 20-21
2.3.4 payload type 21-24
2.4 IKE negotiation 24-32
2.4.1 IKE negotiation stage and pattern 24-25
2.4.2 phase one consultation 25-29
2.4.3 stage two consultation 29-30
2.4. 4 key generation 30-32
2.5 IKE protocol security research 32-35
2.5.1 IKE protocol security mechanisms 32-33
2.5.2 IKE protocol security deficiencies and improvement 33-35
Chapter IKE implementation on Linux systems technical analysis 35-48
3.1 FreeS / WAN in IKE system 35-36
3.2 Linux 2.6 kernel code analysis 36-42
3.2.1 Linux 2.6 kernel and the kernel SADB IKE communication between system processes 38-39
3.2.2 IKE system add to the kernel SA 39-40
3.2.3 kernel to IKE system sends the \> 3.2.4 kernel notice of a SA expires 41-42
3.2.5 analysis Conclusion 42
3.3 Linux 2.6 kernel IKE system implementation 42-48
3.3.1 system management subsystem functions implemented 45-46
3.3.2 event processing subsystem functions implemented 46
3.3.3 IKE negotiation process subsystem functions implemented 46-47
3.3.4 subsystems interact with the kernel function 47-48
Chapter event processing subsystem design 48-58
4.1 event-handling subsystem structure 48-49
4.2 monitoring module 49-50
4.3 management message module 50 - 51
4.4 consultations message module 51-54
4.5 clock event module 54-55
4.6 event-handling subsystem external interface definitions and data structure design 55-58
Chapter event processing subsystem implementation 58-63
5.1 monitor module processing 58-59
5.2 management message processing 59-60
5.3 consultations message processing 60-61
5.4 clock event processing 61-63
Chapter interact with the kernel subsystem realization 63-65
6.1 send a message to the kernel 63
6.2 read messages from the kernel 63-65
Chapter IKE system testing and result analysis 65-71
7.1 IKE system test experimental platform to introduce 65
7.2 IKE system startup test 65-67
7.2.1 configurations host A security policy database 65-66
7.2.2 configure Host B 's security policy repository 66-67
7.2.3 IKE negotiation system startup 67
7.3 negotiate security associations generated 67-69
7.4 transfer packet encryption test 69-70
7.5 experimental analysis Summary 70-71 <br / > Chapter Summary 71-72
References 72-73
Thanks 73-74
biographical 74 < br /> during the research master's degree and incentive 74
Related dissertations
- The design and implementation of SCPS-SP/IPSec protocol conversion
- Analytical Improvement and Implementation for Internet Key Exchange Protocol
- The Router’s Internet Key Exchange Based on Digital Certificate
- Research on Security Handover Technology of Hierarchical Mobile IPv6
- NAT-Traversal with UDP Encapsulation
- IPv6 Security (IPSec) study
- Research on the IPSec and Its Realization on the General Access Router
- Analysis and Improvement and Realization of IKE Protocol for IPSEC
- Research and Implementation of Secure VPN Gateway Based on IPSec
- IPSec protocol analysis systems theory and VPN based on IPSec Protocol Implementation and formation
- The Research for VPN System Based on IPSec and Improved Implement of IKE Protocol
- IPSec-based end to end secure communication technology research and implementation
- Principle and Implementation of IPSec VPN and its application in Networked Manufacturing
- Research and Application of IPSec-based Virtual Private Network
- Study of Virtual Private Network Based on IPSec
- Research and Implementation of IKE protocol
- The Study of Internet Key Exchange Protocol Based on Linux
- Research on Virtual Private Network and Implement of the System
- Research and Practice of next-generation networks in IPSec
- Design and implementation of ISAKMP VPN gateway , client