Porting of Mobile IPv6Open Source from User Space to Kernel
- Author
- LinShengJie
- Advisor
- LiuYanMing
- School
- Xi'an University of Electronic Science and Technology
- Major
- Communication and Information System
- Classification
- TP316.81
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 13
- Citations
- 0
Abstract
With the rapid development of mobile Internet, mobile IPv6will be widely used in the future. But, currently, mobile IPv6protocol implementations mostly run in the user space of Linux operating system. Not only the efficiency of running is lower, but also they cannot run in the Android or other Linux kernel based operating systems. To resolve these two problems, this paper ports the mobile IPv6implementation from user space to kernel. So that most Linux kernel based operating systems can use the implementation more effective and directly, and avoid duplication of development.According to the general steps of software porting, this paper firstly analyses the feasibility of porting considering of the feature of Linux network protocol stack and the differences between Linux user space and Linux kernel. The distinction of user space programs and kernel programs includes several aspects, such as boot mode, system interface, support functions and some others. And In the kernel there are some similar mechanisms or functions to replace the ones in the user space. And so we can know, that the porting is feasible.Secondly, this paper analyses the mobile IPv6open source(UMIP)’s software architecture and implementation. Then divide the code which needs to be ported into four types. Different types use different porting strategies.Then, according to the porting strategies, this paper describes the specific methods and processes from four aspects, namely boot mode, GLIB library, Linux system interface and some others. Porting of GLIB library includes the porting of file manipulation functions, multi-threads functions, mutex, etc; porting of Linux system interface includes the porting of sysctl file system, ioctl interface, Netlink socketand some other interfaces; the porting of rest styles includes the porting of reading ways of configuration file, etc.At the completion of the porting, this paper introduces how to add the code which has been ported into the Linux kernel source. Then compileand debug the code. Because of the debugging workload is much bigger, the debugging work is not over yet. The next step is to complete the debugging and testing, and then release the new implementation.
Table of contents
Summary 3-4
Abstract 4-7
first chapter 7-11
1.1 Background and Significance 7 - 8
1.2 software migration process 8-9
1.3 This work 9-11
the second chapter analyzes the feasibility of transplantation and transplant strategy design 11-25
2.1 transplant feasibility analysis 11-17
different nbsp 2.1.1 startup mode ; 11-13
2.1.2 system call interface different 13-15
2.1.3 supports different libraries 15
2.1.4 Linux IPv6 network protocol stack structure 15-17
2.1.5 feasibility analysis concluded 17
2.2 migration strategy designed 17-23
2.2.1 UMIP program structure analysis 17-22
2.2.2 UMIP migration strategy designed 22-23
2.3 Summary 23-25 ??
Chapter III of Mobile IPv6 source code specific transplantation 25-65
3.1 start porting process 25
3.2 GLIB library functions transplant 25-41
3.2.1 file manipulation functions transplant 26-27
3.2.2 multithreading function transplant 27-31
3.2.3 denounced signal transplant 31-36
3.2.4 to get the device name ( index number ) 36-38
3.2.5 to obtain address information 38-40
3.2.6 Get system time 40-41
3.2.7 memory allocation 41
3.3 Linux system interface graft 41-60
3.3.1 sysctl file system migration 41-43
3.3.2 ioctl porting interface 43-50
3.3.3 socket socket transplant 50-56
3.3.4 Netlink socket transplant 56-59
3.3.5 other system calls 59-60
3.4 other types of transplant 60-64
3.4.1 configuration file read transplant 60-63
3.4.2 operation transplant list 63-64
3.5 Summary 64-65
Chapter transplant after compiling and debugging code code compilation 65-69
4.1 after transplantation 65-66
4.2 debug code after transplantation 66-68
4.2.1 printk Print debugging 66
4.2.2 kprobes debugger 66-68
4.3 summary 68-69
Chapter summary and Outlook 69-71
5.1 This article summarizes 69
5.2 The next step 69-71
Thanks 71-73
Appendix A: the audit patch sysctl interface to add umip directory 73-75
References 75-77
research 77
Related dissertations
- Research on Cache Strategy for Distributed Object-Based File System
- Research on Path Capacity and Mobility for IPv6Networks
- Study on Patent Portfolio of Mobile IPv6 Based on the Technology of Patent Map
- The Design of Industrial Control Panel Base on the ARM9under Linux System
- Implementation of Address Handoff in In-vehicle Gateway Based on IPv6
- A Research on the Solution of Access Habits Based Mobile IPv6Network Access
- The IPv6Technology Research of the Next-generation Internet
- Research on Cross-layer Handover Technology for Ad Hoc Network Based on Mobile Ipv6
- An Efficient Vertical Handoff Approach for All-IP-based Heterogeneous Network
- Research and Implementation of Flow Mobility in Mobile IPv6
- Research on the Security of Mobile IPv6and the Implement of Test System
- Vertical Handoff between WWAN and WLAN Decision Method and Its Optimization Mechanism
- Research and Simulation of switching method of mobile IPv6
- Current research on mobility management in heterogeneous network based on DSMIPv6
- The Research of Fast Handoff Technology of MIPv6Based on IEEE802.11
- Security Addressing and Communication Technology Research for Vehicle Network
- Research and Design of Mobile IPv6Handover Scheme Based on Dual Network Inetrfaces
- Research on Optimization for Technology of Handover in Mobile IPv6
- Research on Key Techniques of Mobile IPv6 in Heterogeneous Networks
- Mobility Management on the Next Generation Internet