Research for ICMPv6Protocol on in-vehicle CAN Node
- Author
- LiJian
- Advisor
- WeiDa
- School
- Jilin University
- Major
- Software Engineering
- Classification
- TP393.04 Communication protocols, communication protocols
- Degree
- Master's thesis
- Year
- 2012
- Downloads
- 25
- Citations
- 0
Abstract
With the development of the car electricity and the widely use in the vehicle mobile network, the cost of the vehicle electricity has a large percentage in the cost of a modern car. And the vehicle mobile electricity has been a kind of standard to measure the technical level of a modern car. As the require to the vehicle safety and the human use increase, beside of the vehicle electrical and mechanical integration product which can effect the car performance, the method to let vehicle mobile system connect to the Internet has make up a large part in the vehicle electricity. By being a part of the mobile Internet, the vehicle network can provide a useful method to exchange the information of the electrical product in the car to the server on the Internet, which can provide a Real‐time maintenance of the product. While how to give a friendly use to the client has been another topic in the vehicle communication.The content of this paper is based on the program named the Based on vehicle system ipv6of the research and industrialize the information system. There are three parts in the project design: the servers design and implement, the in‐vehicle gateway design and implement, and the CAN bus design and implement. For the purpose to implement the use of the Next Internet in the future, the three parts has a IPv6address for each node. Because of the widely use of the IPv4protocol right now, we design a IPv6over IPv4tunnel to achieve this at present. The two network connected by the in‐vehicle gateway has a different architecture to each other. To achieve the communication of the two, we design a structure in the in‐vehicle gateway to record the IPv6address and the node‐index for each CAN node of the CAN bus. By this way, we can implement the information exchange between the CAN node and the server. The CAN node of the CAN bus control the vehicle product, such as the lamp of the car and the lock of the door in the car. By the use of the structure, the command from the server can control the CAN node of the CAN bus.In the communication between the server and the CAN node, when the first UDP packet was sent from the server to the CAN node, the packet should arrive and be routed by the in‐vehicle gateway to the CAN node. When the packet arrive the in‐vehicle gateway, the gateway notes that there is no MAC address for the CAN node which should receive the packet. As the rule of the ICMPv6protocol, the in‐vehicle gateway should product a neighbor solicit packet to the CAN node to get its MAC address to implement the communication and wait for the reply. Because of the limit in the bandwidth of the CAN bus and the restriction in the hardware of the CAN node, the CAN node can’t give a neighbor advertisement to reply the solicit packet sent from the in‐vehicle gateway. So we should design a mechanism to do this for the CAN node. This design include two parts: the Packet MODULE to get the ICMPv6packet sent to the CAN node and the CAN_MODULE to analyse the packet and write a reply to the solicit packet. While each node on the Internet should achieve the ping function because of the IPv6protocol, we should design this part to achieve this. The ping function is implemented by the echo‐request packet and echo‐reply packet. So we design a echo‐reply packet in the in‐vehicle gateway for the CAN node.These designs give a more useful use for the project. And do some expand for it.
Table of contents
Summary 4-6
Abstract 6-10
Chapter 1 Introduction 10-13
1.1 Background and Significance 10-12 the main work of this paper
1.2 organizational structure 12
1.3 article 12-13
Chapter 2 describes the relevant background knowledge 13-22 <br / > advantages 2.1 IPv6 protocol 13-15
2.2 IPv6 protocol introduces 15-17
2.3 Linux kernel stack introduced 17-19
2.4 Netfilter framework introduced 19-21
2.5 CAN bus protocol Profile 21-22
Chapter 3 of the overall project design 22-30
3.1 project Overview detailed design nbsp 22-23
3.2 projects ; 23-30
3.2.1 server design 23-24
3.2.2 wireless network part 24
3.2.3 -vehicle gateway design 24-26
3.2.4 CAN bus design 26-27
3.2.5 -vehicle CAN node virtualization 27-29
3.2.6 car navigation module detailed design 29-30
Chapter 4 ICMPv6 communication and implementation 30-53
4.1 ICMPv6 protocol outlined 30-32
ICMPv6 vehicle CAN node communication scenario analysis 4.2 32-38
4.2.1 neighbor Solicitation and neighbor Advertisement communication scenario analysis 33-37
4.2.2 echo request and echo reply communication scenario analysis 37-38
car gateway 4.3 software design 38-46 <br / > 4.3.1 modular 39-40
4.3.2 network Driver 40-41
4.3.3 network Drive core data structure 41-45
4.3.4 -vehicle gateway module design 45-46
4.4 -vehicle gateway module 46-53
4.4.1 Packet module 46-49
4.4.2 CAN_MODULE module 49-53
Chapter 5 test 53-57
5.1 test content and the environment 53-54
5.2 testing program 54-56
5.2.1 neighbor request and response process neighbor test 54-55
5.2.2 echo request and echo response testing process 55-56
5.3 test results 56-57
Chapter 6 summarizes 57-58
6.1 summary 57
6.2 future 57-58
References 58-60
Thanks 60