Implementation method based on the In-vehicle networking communication system of IPv6
Technical field
The present invention relates to a kind of implementation method of communication system, in particular a kind of implementation method of the In-vehicle networking communication system based on IPv6.
Background technology
Along with the extensive use of vehicle-mounted net (Vehicular Ad Hoc Network, be called for short VANET) and the development of Next Generation Internet network, VANET and Next Generation Internet are realized the all-IP interconnected inexorable trend that has become future development of communicating by letter.
Along with the continuous growth of user to mobile service demand, next generation all-IP wireless sensor network only provides mobility support well, just can make it obtain application space, larger ground.At present, the existing IPv6 communication technology is applied to and has some problems in VANET, and main cause is as follows:
1) in the IPv6 mobility protocol, mobile sensor node needs a large amount of control information of sending and receiving to guarantee that the communication in moving process is unimpeded, reduce the loss of packet, and control information transmission can consume a large amount of energy, this can significantly reduce the life-span of sensor node;
2) to deliver the time longer in the movement of IPv6 mobility protocol, causes VANET packet loss phenomenon serious, thereby reduce network service quality;
3) to deliver frequency larger in the movement of IPv6 mobility protocol, and the VANET node need to expend the plenty of time and resource realizes handoff functions, thereby cause VANET service quality to descend.
Therefore for setting up a kind of communication means of low expense based on the In-vehicle networking of IPv6.
Summary of the invention
Goal of the invention: technical problem to be solved by this invention is for the deficiencies in the prior art, and a kind of implementation method of the In-vehicle networking communication system based on IPv6 is provided.
Technical scheme: the invention discloses a kind of implementation method of the In-vehicle networking communication system based on IPv6, two category nodes are set: access node and road surface mobile node in described In-vehicle networking; Described In-vehicle networking is made of a plurality of territories, and described territory is the closed area that many roads and a plurality of access node form, and wherein, access node is positioned at the boundary of closed area; An access node is under the jurisdiction of two territories at the most; Access node is connected with the IPv6 the Internet, and the road surface mobile node is linked into the IPv6 the Internet by the access node with its territory, place, communicates by Ad Hoc Routing Protocol between the access node in the territory and between the mobile node of road surface;
The IPv6 address of the node in described In-vehicle networking is comprised of three parts, first is overall route prefix, in territory of an overall route prefix unique identification, territory, the overall route prefix of delivering the IPv6 address of the IPv6 address of all access nodes and all road surface mobile nodes is all identical; Second portion is access node ID, and the access node ID of an access node in access node ID unique identification territory, access node distribute all IPv6 address is identical, and its value equals the access node ID of the IPv6 address of this access node; Third part is road surface mobile node ID, road surface mobile node of its unique identification; The IPv6 address of access node sets in advance, and its road surface mobile node ID is 0.
When the road surface mobile node added In-vehicle networking, it obtained IPv6 address, local from first access node of process, and this access node is the home agent of road surface mobile node, and the territory that the road surface mobile node obtains place, IPv6 address, local is its territory, local; When the road surface mobile node broke away from the territory, local and enters into other territory, its first access node from other territories of process obtains delivered the IPv6 address.
The road surface mobile node is when the territory, local, and it is identical with IPv6 address, local that it delivers the IPv6 address.
In the method for the invention, the road surface mobile node need to move switching when crossing over not same area, and when namely the road surface mobile node was by an access node, it need to switch between two territories that access node is subordinate to, and its handoff procedure is:
Step 301: beginning;
Step 302: after the road surface mobile node enters the communication range of access node, at first send to access node and obtain the request message of delivering the IPv6 address;
Step 303: after access node is received request message, adopt that the state address method of salary distribution is arranged is that the road surface mobile node distributes an IPv6 address, and return to the road surface mobile node by response message;
Step 304: after the road surface mobile node is received response message, this moment it preserve simultaneously original deliver IPv6 address and access node for its distribution deliver the IPv6 address, send binding message to the node of communicating by letter and its home agent simultaneously;
Step 305: after the node of communicating by letter with the road surface mobile node and home agent are received binding message, upgrade accordingly bindings, then to returning to the binding response message to the road surface mobile node respectively, the node of communicating by letter with the road surface mobile node simultaneously with the destination address of follow-up data bag be revised as the road surface mobile node new deliver the IPv6 address;
Step 306: the road surface mobile node receives simultaneously destination address and is the packet of its former IPv6 of delivering address and the newly assigned IPv6 of delivering address during waiting for the binding response message;
Step 307: after the road surface mobile node is received the binding response message, send and discharge the message of delivering the IPv6 address to obtaining the access node of originally delivering the IPv6 address, and with the newly assigned IPv6 of delivering address as the current IPv6 address of delivering;
Step 308: finish.
In the method for the invention, in the mobile handoff procedure of road surface mobile node, with the data communication process of its node CN that is communicating by letter and road surface mobile node be:
Step 501: beginning;
Step 502: whether the node CN that judgement is communicated by letter with the road surface mobile node has the follow-up data bag to send, and if so, carry out step 503, otherwise carry out step 510;
Step 503: whether node CN receives the binding message that the road surface mobile node sends, and if so, carry out step 504, otherwise carry out step 505;
Step 504: node CN upgrades the binding relationship of delivering the IPv6 address of road surface mobile node, carry out step 505;
Step 505: node CN according to the IPv6 address binding relation of delivering of road surface mobile node, the destination address of the packet that sends to the road surface mobile node is its current IPv6 address of delivering;
Step 506: packet through the IPv6 interconnection path by, arrive at last an access node that is under the jurisdiction of territory, mobile node place, road surface;
Step 507: after access node is received packet, look into and see if there is the routed path that arrives purpose road surface mobile node, if so, carry out step 509, otherwise carry out step 508;
Step 508: access node adopts the AODV Routing Protocol to set up to arrive the routed path of purpose road surface mobile node;
Step 509: access node routes a data packet to purpose road surface mobile node by the routed path of having set up;
Step 510: process finishes.
In the method for the invention, road surface mobile node and an access node begin mobile handoff procedure after carrying out link switching, and described mobile handoff procedure comprises to obtain to be delivered the IPv6 address and deliver two subprocess of IPv6 address binding.
In the method for the invention, move at the road surface mobile node and receive simultaneously destination address between transfer period and be the packet of these two addresses, have two to deliver the IPv6 address, namely the neofield of delivering the IPv6 address and entering in territory, original place delivers the IPv6 address.
In the method for the invention, the communication process of the server in road surface mobile node and IPv6 the Internet is:
Step 601: beginning;
Step 602: the road surface mobile node judges whether to arrive the routed path of this territory access node, if so, carry out step 604, otherwise carry out step 603;
Step 603: the road surface mobile node adopts the AODV Routing Protocol to set up the routed path that arrives access node, and wherein, the road surface mobile node obtains the current IPv6 of delivering address from this access node;
Step 604: at first the road surface mobile node sends to access node with requests of packets of data;
Step 605: access node sends to the IPv6 the Internet with requests of packets of data after receiving service request data school bag;
Step 606: requests of packets of data is route in the IPv6 the Internet, finally arrives server;
Step 607: server returns to the road surface mobile node with response data;
Step 608: process finishes.
In the method for the invention, when the access node, it obtains the new IPv6 address of delivering from access node when the road surface mobile node; The access node ID of access node distributes all IPv6 address is identical, its adopts the road surface mobile node ID state have the state assignment mode to preserve to have distributed, be that the road surface mobile node distributes a unappropriated road surface mobile node ID, the new IPv6 address delivered of guaranteeing the road surface mobile node has global uniqueness.
Beneficial effect: the implementation method that the invention provides a kind of In-vehicle networking communication system based on IPv6, described implementation method is in the situation of same distance of travelling, the mobile switching times decrease of road surface mobile node, do not comprise in addition the mobile switching delay of link the mobile switching time of road surface mobile node, shorten the mobile total delay of switching.In addition, the road surface mobile node receives the packet from original territory and neofield simultaneously in mobile handoff procedure, has guaranteed and the continuity of communication node, has reduced bursts dropping ratio.At last, the present invention proposes the IPv6 address structure of road surface mobile node, the road surface mobile node obtains Care-of Address by the access node in a jumping scope of its process, need not to carry out the global uniqueness that duplicate address detection can be guaranteed Care-of Address, therefore reduce mobile switching cost, shortened mobile switching delay.
Description of drawings
Below in conjunction with the drawings and specific embodiments, the present invention is done further illustrating, above-mentioned and/or otherwise advantage of the present invention will become apparent.
Fig. 1 is the structural representation of territory of the present invention, access node and road surface mobile node.
Fig. 2 is the IPv6 address structure schematic diagram of access node of the present invention and road surface mobile node.
Fig. 3 is that road surface of the present invention mobile node moves the switching flow schematic diagram.
Fig. 4 is the data communication flow process schematic diagram of road surface of the present invention mobile node in mobile handoff procedure.
Fig. 5 is the communication process schematic diagram of the server in road surface of the present invention mobile node and IPv6 the Internet.
Embodiment:
The invention provides a kind of implementation method of the In-vehicle networking communication system based on IPv6, in described method, the road surface mobile node in the car network can keep the continuity of communicating by letter in moving process by Realization Method of Communication provided by the present invention.
Fig. 1 is the structural representation of territory of the present invention, access node and road surface mobile node.Two category nodes are set: access node 2 and road surface mobile node 1 in described In-vehicle networking; Described In-vehicle networking is by the part in dotted line frame in a plurality of territory 3(figure) consist of, described territory is the closed area that many roads 4 and a plurality of access node 2 form, wherein, access node 2 is positioned at the boundary of closed area; An access node 2 is under the jurisdiction of two territories 3 at the most; Access node 2 is connected with the IPv6 the Internet, and road surface mobile node 1 is linked into the IPv6 the Internet by the access node with its territory, place, communicates by Ad Hoc Routing Protocol between the access node in the territory or road surface mobile node.
Fig. 2 is the IPv6 address structure schematic diagram of access node of the present invention and road surface mobile node.The IPv6 address of access node and road surface mobile node is comprised of three parts, first is overall route prefix, length is 64 bits, in territory of an overall route prefix unique identification, territory, the overall route prefix of delivering the IPv6 address of the IPv6 address of all access nodes and all road surface mobile nodes is all identical; Second portion is access node ID, length is the i bit, the access node ID of an access node in territory of access node ID unique identification, access node distribute all IPv6 address is identical, and its value equals the access node ID of the IPv6 address of this access node; Third part is road surface mobile node ID, and length is (64-i) bit, road surface mobile node of its unique identification; The IPv6 address of access node sets in advance, and its road surface mobile node ID is 0.The i value arranges according to the scale of vehicle-mounted net.
Fig. 3 is that road surface of the present invention mobile node moves the switching flow schematic diagram.The road surface mobile node need to move switching when crossing over not same area, when namely the road surface mobile node was by an access node, it need to switch between two territories that access node is subordinate to, and its handoff procedure is:
Step 301: beginning;
Step 302: after the road surface mobile node enters the communication range of access node, at first send to access node and obtain the request message of delivering the IPv6 address;
Step 303: after access node is received request message, adopt that the state address method of salary distribution is arranged is that the road surface mobile node distributes an IPv6 address, and return to the road surface mobile node by response message;
Step 304: after the road surface mobile node is received response message, this moment it preserve simultaneously original deliver IPv6 address and access node for its distribution deliver the IPv6 address, send binding message to the node of communicating by letter and its home agent simultaneously;
Step 305: after the node of communicating by letter with the road surface mobile node and home agent are received binding message, upgrade accordingly bindings, then to returning to the binding response message to the road surface mobile node respectively, the node of communicating by letter with the road surface mobile node simultaneously with the destination address of follow-up data bag be revised as the road surface mobile node new deliver the IPv6 address;
Step 306: the road surface mobile node receives simultaneously destination address and is the packet of its former IPv6 of delivering address and the newly assigned IPv6 of delivering address during waiting for the binding response message;
Step 307: after the road surface mobile node is received the binding response message, send and discharge the message of delivering the IPv6 address to obtaining the access node of originally delivering the IPv6 address, and with the newly assigned IPv6 of delivering address as the current IPv6 address of delivering;
Step 308: finish.
Fig. 4 is the data communication flow process schematic diagram of road surface of the present invention mobile node in mobile handoff procedure.In the mobile handoff procedure of road surface mobile node, with the data communication process of its node CN that is communicating by letter and road surface mobile node be:
Step 501: beginning;
Step 502: whether the node CN that judgement is communicated by letter with the road surface mobile node has the follow-up data bag to send, and if so, carry out step 503, otherwise carry out step 510;
Step 503: whether node CN receives the binding message that the road surface mobile node sends, and if so, carry out step 504, otherwise carry out step 505;
Step 504: node CN upgrades the binding relationship of delivering the IPv6 address of road surface mobile node, carry out step 505;
Step 505: node CN according to the IPv6 address binding relation of delivering of road surface mobile node, the destination address of the packet that sends to the road surface mobile node is its current IPv6 address of delivering;
Step 506: packet through the IPv6 interconnection path by, arrive at last an access node that is under the jurisdiction of territory, mobile node place, road surface;
Step 507: after access node is received packet, look into and see if there is the routed path that arrives purpose road surface mobile node, if so, carry out step 509, otherwise carry out step 508;
Step 508: access node adopts the AODV Routing Protocol to set up to arrive the routed path of purpose road surface mobile node;
Step 509: access node routes a data packet to purpose road surface mobile node by the routed path of having set up;
Step 510: process finishes.
Fig. 5 is the communication process schematic diagram of the server in road surface of the present invention mobile node and IPv6 the Internet.The communication process of the server during road surface mobile node and IPv6 are interconnected is:
Step 601: beginning;
Step 602: the road surface mobile node judges whether to arrive the routed path of this territory access node, if so, carry out step 604, otherwise carry out step 603;
Step 603: the road surface mobile node adopts the AODV Routing Protocol to set up the routed path that arrives access node, and wherein, the road surface mobile node obtains the current IPv6 of delivering address from this access node;
Step 604: at first the road surface mobile node sends to access node with requests of packets of data;
Step 605: access node sends to the IPv6 the Internet with requests of packets of data after receiving service request data school bag;
Step 606: requests of packets of data is route in the IPv6 the Internet, finally arrives server;
Step 607: server returns to the road surface mobile node with response data;
Step 608: process finishes.
In sum, the invention provides the implementation method based on the In-vehicle networking communication system of IPv6, technique can be applied to vehicle monitoring and vehicle obtains the fields such as network service, for example, during at road driving, it can obtain Traffic Information by vehicle-mounted net when vehicle, thereby select idle road driving, avoid congestion, in addition, vehicle in the process of moving can the continuous access network service, news information for example, video informations etc., therefore, present technique has very high promotional value.
The invention provides the thinking based on the implementation method of the In-vehicle networking communication system of IPv6; method and the approach of this technical scheme of specific implementation are a lot; the above is only the preferred embodiment of the present invention; should be understood that; for those skilled in the art; under the prerequisite that does not break away from the principle of the invention, can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.In the present embodiment not clear and definite each component part all available prior art realized.