A kind of method of vehicle-mounted net access IPv6 network
Technical field
The present invention relates to a kind of method for network access, in particular a kind of method of vehicle-mounted net access IPv6 network.
Background technology
Vehicle-mounted net, as a kind of new vehicle communication network, can realize the multi-hop wireless communication between vehicle and vehicle, between vehicle and roadside infrastructure.Along with the development of vehicle-mounted network technology and continuing to bring out of various new opplication, in the urgent need to vehicle-mounted net can accessing Internet to meet the application demand of user's sharp increase.
Vehicle-mounted net, as a kind of mobile ad hoc network of specific type, has the features such as translational speed is fast, number of nodes is many, area coverage is large.The Internet (hereinafter referred to as IPv6 network) based on IPv6 has the advantages such as the abundant and autgmentability of mobility support, address resource is strong.Therefore, vehicle-mounted net access IPv6 network becomes the ideal solution meeting user's application demand.
Current researcher proposes vehicle-mounted Netcom and crosses access and obtain the pattern of network service based on the Internet of IPv6 and define corresponding protocol stack, but due to the architecture of vehicle-mounted net and IPv6 network obstructed, existing cut-in method has following limitation:
1) address configuration of vehicle-mounted net does not support address duplicate detection.
2) vehicle-mounted net does not support multi-hop communication.
3) vehicle node needs co-located care-of address in mobile handoff process, and because vehicle node is run at high speed, therefore mobile handoff causes the Care-of Address of vehicle node frequently to change frequently, thus causes packet loss to increase, and service quality declines.
Therefore need a kind of method proposing vehicle-mounted net access IPv6 network, thus reduce data loss rate, improve service quality.
Summary of the invention
Goal of the invention: technical problem to be solved by this invention is for the deficiencies in the prior art, provides a kind of method of vehicle-mounted net access IPv6 network.
Technical scheme: a kind of method that the invention discloses vehicle-mounted net access IPv6 network, described vehicle-mounted net comprises couple in router, access node and vehicle node three kinds of nodes; Couple in router connects the routed backbone of IPv6 network, and an access node is connected with two couple in routers simultaneously, and the transmission radius of access node is greater than the transmission radius of vehicle node; The closed area that all access nodes be connected with a couple in router surround is set to car territory; An access node belongs to two car territories simultaneously; Vehicle node has route forwarding function, preserves the routing iinformation arriving the nearest access node in car territory, place, and realizes the communication with IPv6 network by this access node; Use the vehicle node in home address unique identification moving process; Vehicle node in moving process by home address unique identification, without the need to co-located care-of address;
The IPv6 address of vehicle-mounted net node is made up of three parts, Part I is car territory ID, it is overall route prefix, unique identification car territory, in a car territory, the car territory ID of the IPv6 address that all access nodes and vehicle node obtain in this car territory is identical, and car domain id value equals the car territory ID of the couple in router in same car territory; Part II is access node ID, access node ID unique identification access node, and all identical from the access node ID of the vehicle node of the IPv6 address that same access node obtains, its value equals the access node ID of this access node; Part III is vehicle node ID, unique identification vehicle node;
The IPv6 address of couple in router and access node pre-sets, and the access node ID of couple in router and vehicle node ID is 0, and the vehicle node ID of access node is 0;
Access node and vehicle node periodic broadcasting message.
Because vehicle node is run at high speed, mobile handoff causes the Care-of Address of vehicle node frequently to change frequently, thus causes packet loss to increase, and service quality declines.The above-mentioned limitation that the present invention overcomes, vehicle node without the need to co-located care-of address, therefore considerably reduces packet loss in moving process, improves service quality.In addition, the vehicle-mounted net based on car territory effectively reduces mobile handoff frequency and delay, thus improves service quality.
In the method for the invention, after vehicle node X starts, if access node AP1 is within the scope of a jumping of vehicle node X, then vehicle node X obtains IPv6 home address from access node AP1, and idiographic flow is as follows:
Step 101: start;
Step 102: vehicle node X sends address request to access node AP1;
Step 103: the unallocated address space in car territory belonging to access node AP1 detects, selects a sector address space [L, U] to be encapsulated in address response message in the car territory ID that never allocation address space is maximum, sends to vehicle node X;
Step 104: after vehicle node X receives address response message, using address lower limit L as vehicle node ID, combine to the car territory ID of access node AP1 in the IPv6 address in corresponding car territory and access node ID, obtain the IPv6 address with global uniqueness and can allocation address space [L+1, U], simultaneously to access node AP1 return address acknowledge message;
Step 105: after access node AP1 receives Address Confirmation message, is labeled as distribution state by address space [L, U];
Step 106: terminate.
In said process, vehicle node obtains the IPv6 address with uniqueness by neighbours' access node, without the need to address duplicate detection, therefore improve address configuration efficiency, achieves distributed address configuration.
In the method for the invention, after vehicle node X starts, if there is no access node within the scope of a jumping of vehicle node X, then vehicle node X selects to obtain IPv6 home address by the maximum vehicle node Y in allocation address space from the neighbours' vehicle node within the scope of a jumping, if vehicle node Y's can allocation address space be [L+1, U] and L+1<U, vehicle node X are as follows from the idiographic flow of vehicle node Y acquisition IPv6 address:
Step 201: start;
Step 202: vehicle node X sends address request to neighbours vehicle node Y;
Step 203: vehicle node Y is by the half address space of oneself
being encapsulated in address response message and sending to vehicle node X, the address space of oneself is updated to by vehicle node Y simultaneously
Step 204: after vehicle node X receives address response message, will
vehicle node ID is set, combines with the car territory ID of vehicle node Y and access node ID, obtain the IPv6 address with global uniqueness and can allocation address space;
Step 205: terminate.
In said process, can the maximum vehicle node in allocation address space have multiple if vehicle node X mono-jumps in scope, vehicle node X then random selecting vehicle node obtains IPv6 address.Vehicle node obtains the IPv6 address with uniqueness by neighbours' vehicle node, without the need to address duplicate detection, therefore improve address configuration efficiency, achieves distributed address configuration.
In the method for the invention, after vehicle node obtains IPv6 address, the Message Payload of broadcast comprises the IPv6 address of nearest access node and the jumping figure of nearest access node, and it is as follows that vehicle node sets up the routed path arriving nearest access node:
Step 301: start;
Step 302: vehicle node judges whether have access node within the scope of a jumping, if had, then carry out step 303, otherwise carry out step 304;
Step 303: the jumping figure of nearest access node as nearest access node, and is set to 1 by access node by vehicle node, carry out step 310;
Step 304: vehicle node receives and checks the message that neighbours' vehicle node is broadcasted;
Step 305: it is minimum that vehicle node judges whether to only have the jumping figure of a nearest access node of neighbours' vehicle node, if so, carry out step 306, otherwise carry out step 307;
Step 306: vehicle node using apart from minimum neighbours' vehicle node as father node, carry out step 308;
Step 307: from multiple have select neighbours' vehicle node with the maximum link time as father node neighbours' vehicle node of minimum range;
Step 308: the nearest access node of father node is set to the nearest access node of oneself by vehicle node, the simultaneously jumping figure of the nearest access node of recording distance, namely the distance value of father node adds 1;
Step 309: repeat step 304 to step 308, until all vehicle node all obtain the jumping figure of nearest access node and nearest access node in car territory;
Step 310: terminate;
In step 307, Link Time adopts following formulae discovery:
a=v
icosθ
i-v
jcosθ
j
b=x
i-x
j
c=v
isinθ
i-v
jsinθ
j,
d=y
i-y
j
T
ijfor vehicle node V
iwith vehicle node V
jbetween Link Time, (x
i, y
i) and (x
j, y
j) be vehicle node V
iwith vehicle node V
jgeographical coordinate, v
iand v
jfor vehicle node V
iwith vehicle node V
jspeed, θ
iand θ
jfor vehicle node V
iwith vehicle node V
jmove angle, 0≤θ
i<2 π and 0≤θ
j<2 π, r are vehicle node V
iwith vehicle node V
jtransmission radius.
In the method for the invention, after vehicle node obtains nearest access node, the couple in router to car territory, place sends the message that is associated, after couple in router receives the message that is associated, and the incidence relation of registration of vehicle node and nearest access node; The communication process of vehicle node X and IPv6 node is described below:
Step 401: start;
Step 402: vehicle node X by Packet Generation to father node;
Step 403: after father node receives packet, by the father node of Packet Generation to oneself;
Step 404: repeat step 403, until packet finally arrives nearest access node;
Step 405: access node is by the couple in router of Packet Generation to car territory, place recently, and couple in router routes a data packet to object IPv6 node;
Step 406: first the packet that object IPv6 node returns arrives the couple in router in car territory, vehicle node X place, data are sent to the nearest access node of vehicle node X according to the incidence relation set up by couple in router, and access node is to neighbor node forwarding data bag;
Step 407: the neighbours' vehicle node receiving packet judges that whether oneself is vehicle node X, if so, then carry out step 413, otherwise carry out step 408;
Step 408: whether the jumping figure receiving the nearest access node of neighbours' vehicle node judging distance of packet is less than or equal to the jumping figure of the nearest access node of vehicle node of forwarding data bag, if so, carry out step 410, otherwise carry out step 409;
Step 409: the neighbours' vehicle node receiving packet judges whether to comprise vehicle node X in its neighbours' vehicle node and the jumping figure of nearest access node is more than or equal to the jumping figure of the nearest access node of vehicle node X, if, carry out step 410, otherwise carry out step 411;
Step 410: the neighbours' vehicle node packet discard receiving packet, carry out step 413;
Step 411: the neighbours' vehicle node receiving packet continues forwarding data bag;
Step 412: return step 408, until final data bag arrives vehicle node X;
Step 413: terminate.
Vehicle node realizes the multi-hop communication with IPv6 network by the access node that car territory, place is nearest, thus decreases the length of routed path, reduces packet loss.In addition, vehicle node using the parameter of measurement of Link Time as selection next-hop node, thus adds stability and the robustness of routed path.
In the method for the invention, if vehicle node X and vehicle node Y is in a car territory, vehicle node Y is the neighbor node of vehicle node X, the nearest access node of vehicle node Y is different from the nearest access node of vehicle node X, the jumping figure that vehicle node X arrives nearest access node is d1, the jumping figure that vehicle node Y arrives nearest access node is d2, if d1 is greater than d2+2, so vehicle node X performs following operation:
Step 501: start;
Step 502: vehicle node X sends updating message to the couple in router in car territory, place, and Message Payload is the IPv6 address of the nearest access node of vehicle node Y;
Step 503: after updating message arrives couple in router, couple in router upgrades the access node of vehicle nodes X association, then returns renewal acknowledge message to vehicle node X;
Step 504: vehicle node X receives and upgrades after acknowledge message, using vehicle node Y as father node, the nearest access node of vehicle node Y is preserved the jumping figure of nearest access node as the nearest access node of oneself;
Step 505: terminate.
In said process, vehicle node, by home address unique identification, without the need to co-located care-of address in moving process, therefore considerably reduces to move and delivers delay.In addition, network layer handoff link layer switch before carry out, therefore movement deliver delay and packet loss significantly reduce.
In the method for the invention, if vehicle node X and vehicle node Y is in same car territory VD1, vehicle node Y is the father node of vehicle node X, the father node of vehicle node Y is access node AP1, access node AP1 belongs to car territory VD1 and car territory VD2, the couple in router of car territory VD1 is AR1, the couple in router of car territory VD2 is AR2, vehicle node X is from the IPv6 address, acquisition local, car territory at couple in router HAR place, local, if vehicle node X enters the communication range of access node AP1, it then carries out following operation:
Step 601: start;
Step 602: vehicle node X sends updating message to access node AP1, and the destination address of message is the IPv6 address of access node AP1 at car territory VD1;
Step 603: updating message arrives access node AP1 by the forwarding of vehicle node Y, by the destination address of message, access node AP1 judges that vehicle node X and vehicle node Y is in the VD1 of car territory, access node AP1 sends updating message respectively to local couple in router HAR and couple in router AR2, and Message Payload is the IPv6 address of vehicle node X and the IPv6 address of couple in router AR2;
Step 604: after local couple in router HAR receives updating message, the couple in router associated with vehicle node X is updated to couple in router AR2, then returns renewal acknowledge message to access node AP1; After couple in router AR2 receives updating message, set up the incidence relation of vehicle node X and access node AP1, then return renewal acknowledge message to access node AP1;
Step 605: after access node AP1 receives the renewal acknowledge message from local couple in router HAR and couple in router AR2, judges it whether within the scope of a jumping of vehicle node X, if so, carry out step 606, otherwise carry out step 607;
Step 606: access node AP1 sends to vehicle node X and upgrades acknowledge message, and Message Payload is the IPv6 address of access node AP2 place car territory VD2, carry out step 608;
Step 607: access node AP1 preserves the packet that all destination addresses are vehicle node X, after access node AP1 detects that oneself is within the scope of a jumping of vehicle node X, send to vehicle node X the packet that all destination addresses preserved are vehicle node X by renewal acknowledge message simultaneously and be transmitted to vehicle node X;
Step 608: vehicle node X upgrades the IPv6 address of nearest access node and the jumping figure of nearest access node after receiving and upgrading acknowledge message;
Step 609: terminate.
In said process, vehicle node, by home address unique identification, without the need to co-located care-of address in moving process, therefore considerably reduces to move and delivers delay.In addition, network layer handoff link layer switch before carry out, therefore movement deliver delay and packet loss significantly reduce.Vehicle node is in mobile handoff process, and the data before obtaining mobile handoff by same access node and after mobile handoff, because this reducing packet loss, ensure that communication quality.
Beneficial effect: a kind of method that the invention provides vehicle-mounted net access IPv6 network, cut-in method provided by the present invention is crossed by described vehicle-mounted Netcom can obtain the network service that IPv6 network provides, keep the continuity communicated in moving process simultaneously, shorten mobile handoff to postpone, reduce bursts dropping ratio, improve service quality, the present invention can be applicable to the fields such as road conditions monitoring, vehicle management, is with a wide range of applications.
Accompanying drawing explanation
To do the present invention below in conjunction with the drawings and specific embodiments and further illustrate, above-mentioned and/or otherwise advantage of the present invention will become apparent.
Fig. 1 is vehicle-mounted web frame schematic diagram of the present invention.
Fig. 2 is node IP v6 address structure schematic diagram of the present invention.
Fig. 3 is that vehicle node of the present invention obtains the schematic flow sheet of IPv6 address from neighbours' access node.
Fig. 4 is that vehicle node of the present invention obtains the schematic flow sheet of IPv6 address from neighbours' vehicle node.
Fig. 5 is the schematic flow sheet that vehicle node of the present invention sets up route.
Fig. 6 is the schematic flow sheet communicated between vehicle node of the present invention with IPv6 network node.
Fig. 7 is mobile handoff schematic flow sheet in car territory of the present invention.
Fig. 8 is mobile handoff schematic flow sheet between car territory of the present invention.
Embodiment:
The invention provides a kind of method of vehicle-mounted net access IPv6 network, cut-in method provided by the present invention is crossed by described vehicle-mounted Netcom can obtain the network service that IPv6 network provides, keep the continuity communicated in moving process simultaneously, shorten mobile handoff to postpone, reduce bursts dropping ratio, improve service quality, the present invention can be applicable to the fields such as road conditions monitoring, vehicle management, is with a wide range of applications.
Fig. 1 is vehicle-mounted web frame schematic diagram of the present invention.Described vehicle-mounted net comprises couple in router 1, access node 2 and vehicle node 3 three kinds of nodes; Routed backbone 4, access node 2 that couple in router 1 connects IPv6 network is connected with two couple in routers 1 simultaneously, and the transmission radius of access node 2 is greater than the transmission radius of vehicle node 3; The closed area that all access nodes 2 be connected with a couple in router 1 surround is set to car territory 5; An access node 2 belongs to two car territories 5 simultaneously; Vehicle node 3 has route forwarding function, preserves the routing iinformation arriving the nearest access node 2 in car territory, place 5, and realizes the communication with IPv6 network 4 by this access node 2; Use the vehicle node 3 in home address unique identification moving process; Vehicle node 3 in moving process by home address unique identification, without the need to co-located care-of address.
Fig. 2 is node IP v6 address structure schematic diagram of the present invention.The IPv6 address of vehicle-mounted net node is made up of three parts, Part I is car territory ID, it is overall route prefix, unique identification car territory, in a car territory, the car territory ID of the IPv6 address that all access nodes and vehicle node obtain in this car territory is identical, and car domain id value equals the car territory ID of the couple in router in same car territory; Part II is access node ID, access node ID unique identification access node, and all identical from the access node ID of the vehicle node of the IPv6 address that same access node obtains, its value equals the access node ID of this access node; Part III is vehicle node ID, unique identification vehicle node;
The IPv6 address of couple in router and access node pre-sets, and the access node ID of couple in router and vehicle node ID is 0, and the vehicle node ID of access node is 0.Access node and vehicle node periodic broadcasting message.
Fig. 3 is that vehicle node of the present invention obtains the schematic flow sheet of IPv6 address from neighbours' access node.After vehicle node X starts, if access node AP1 is within the scope of a jumping of vehicle node X, then vehicle node X obtains IPv6 home address from access node AP1, and idiographic flow is as follows:
Step 101: start;
Step 102: vehicle node X sends address request to access node AP1;
Step 103: the unallocated address space in car territory belonging to access node AP1 detects, selects a sector address space [L, U] to be encapsulated in address response message in the car territory ID that never allocation address space is maximum, sends to vehicle node X;
Step 104: after vehicle node X receives address response message, using address lower limit L as vehicle node ID, combine to the car territory ID of access node AP1 in the IPv6 address in corresponding car territory and access node ID, obtain the IPv6 address with global uniqueness and can allocation address space [L+1, U], simultaneously to access node AP1 return address acknowledge message;
Step 105: after access node AP1 receives Address Confirmation message, is labeled as distribution state by address space [L, U];
Step 106: terminate.
In said process, vehicle node obtains the IPv6 address with uniqueness by neighbours' access node, without the need to address duplicate detection, therefore improve address configuration efficiency, achieves distributed address configuration.
Fig. 4 is that vehicle node of the present invention obtains the schematic flow sheet of IPv6 address from neighbours' vehicle node.After vehicle node X starts, if there is no access node within the scope of a jumping of vehicle node X, then vehicle node X selects to obtain IPv6 home address by the maximum vehicle node Y in allocation address space from the neighbours' vehicle node within the scope of a jumping, if vehicle node Y's can allocation address space be [L+1, U] and L+1<U, vehicle node X are as follows from the idiographic flow of vehicle node Y acquisition IPv6 address:
Step 201: start;
Step 202: vehicle node X sends address request to neighbours vehicle node Y;
Step 203: vehicle node Y is by the half address space of oneself
being encapsulated in address response message and sending to vehicle node X, the address space of oneself is updated to by vehicle node Y simultaneously
Step 204: after vehicle node X receives address response message, will
vehicle node ID is set, combines with the car territory ID of vehicle node Y and access node ID, obtain the IPv6 address with global uniqueness and can allocation address space;
Step 205: terminate.
In said process, can the maximum vehicle node in allocation address space have multiple if vehicle node X mono-jumps in scope, vehicle node X then random selecting vehicle node obtains IPv6 address.Vehicle node obtains the IPv6 address with uniqueness by neighbours' vehicle node, without the need to address duplicate detection, therefore improve address configuration efficiency, achieves distributed address configuration.
Fig. 5 is the schematic flow sheet that vehicle node of the present invention sets up route.After vehicle node obtains IPv6 address, the Message Payload of broadcast comprises the IPv6 address of nearest access node and the jumping figure of nearest access node, and it is as follows that vehicle node sets up the routed path arriving nearest access node:
Step 301: start;
Step 302: vehicle node judges whether have access node within the scope of a jumping, if had, then carry out step 303, otherwise carry out step 304;
Step 303: the jumping figure of nearest access node as nearest access node, and is set to 1 by access node by vehicle node, carry out step 310;
Step 304: vehicle node receives and checks the message that neighbours' vehicle node is broadcasted;
Step 305: it is minimum that vehicle node judges whether to only have the jumping figure of a nearest access node of neighbours' vehicle node, if so, carry out step 306, otherwise carry out step 307;
Step 306: vehicle node using apart from minimum neighbours' vehicle node as father node, carry out step 308;
Step 307: from multiple have select neighbours' vehicle node with the maximum link time as father node neighbours' vehicle node of minimum range, carry out step 308;
Step 308: the nearest access node of father node is set to the nearest access node of oneself by vehicle node, the simultaneously jumping figure of the nearest access node of recording distance, namely the distance value of father node adds 1;
Step 309: repeat step 304 to step 308, until all vehicle node all obtain the jumping figure of nearest access node and nearest access node in car territory;
Step 310: terminate;
In step 307, Link Time adopts following formulae discovery:
a=v
icosθ
i-v
jcosθ
j
b=x
i-x
j
c=v
isinθ
i-v
jsinθ
j,
d=y
i-y
j
T
ijfor vehicle node V
iwith vehicle node V
jbetween Link Time, (x
i, y
i) and (x
j, y
j) be vehicle node V
iwith vehicle node V
jgeographical coordinate, v
iand v
jfor vehicle node V
iwith vehicle node V
jspeed, θ
iand θ
jfor vehicle node V
iwith vehicle node V
jmove angle, 0≤θ
i<2 π and 0≤θ
j<2 π, r are vehicle node V
iwith vehicle node V
jtransmission radius.
Fig. 6 is the schematic flow sheet communicated between vehicle node of the present invention with IPv6 network node.After vehicle node obtains nearest access node, the couple in router to car territory, place sends the message that is associated, after couple in router receives the message that is associated, and the incidence relation of registration of vehicle node and nearest access node; The communication process of vehicle node X and IPv6 node is described below:
Step 401: start;
Step 402: vehicle node X by Packet Generation to father node;
Step 403: after father node receives packet, by the father node of Packet Generation to oneself;
Step 404: repeat step 403, until packet finally arrives nearest access node;
Step 405: access node is by the couple in router of Packet Generation to car territory, place recently, and couple in router routes a data packet to object IPv6 node;
Step 406: first the packet that object IPv6 node returns arrives the couple in router in car territory, vehicle node X place, data are sent to the nearest access node of vehicle node X according to the incidence relation set up by couple in router, and access node is to neighbor node forwarding data bag;
Step 407: the neighbours' vehicle node receiving packet judges that whether oneself is vehicle node X, if so, then carry out step 413, otherwise carry out step 408;
Step 408: whether the jumping figure receiving the nearest access node of neighbours' vehicle node judging distance of packet is less than or equal to the jumping figure of the nearest access node of vehicle node of forwarding data bag, if so, carry out step 410, otherwise carry out step 409;
Step 409: the neighbours' vehicle node receiving packet judges whether to comprise vehicle node X in its neighbours' vehicle node and the jumping figure of nearest access node is more than or equal to the jumping figure of the nearest access node of vehicle node X, if, carry out step 410, otherwise carry out step 411;
Step 410: the neighbours' vehicle node packet discard receiving packet, carry out step 413;
Step 411: the neighbours' vehicle node receiving packet continues forwarding data bag;
Step 412: return step 408, until final data bag arrives vehicle node X;
Step 413: terminate.
Vehicle node realizes the multi-hop communication with IPv6 network by the access node that car territory, place is nearest, thus decreases the length of routed path, reduces packet loss.In addition, vehicle node using the parameter of measurement of Link Time as selection next-hop node, thus adds stability and the robustness of routed path.
Fig. 7 is mobile handoff schematic flow sheet in car territory of the present invention.If vehicle node X and vehicle node Y is in a car territory, vehicle node Y is the neighbor node of vehicle node X, the nearest access node of vehicle node Y is different from the nearest access node of vehicle node X, the jumping figure that vehicle node X arrives nearest access node is d1, the jumping figure that vehicle node Y arrives nearest access node is d2, if d1 is greater than d2+2, so vehicle node X performs following operation::
Step 501: start;
Step 502: vehicle node X sends updating message to the couple in router in car territory, place, and Message Payload is the IPv6 address of the nearest access node of vehicle node Y;
Step 503: after updating message arrives couple in router, couple in router upgrades the access node of vehicle nodes X association, then returns renewal acknowledge message to vehicle node X;
Step 504: vehicle node X receives and upgrades after acknowledge message, using vehicle node Y as father node, the nearest access node of vehicle node Y is preserved the jumping figure of nearest access node as the nearest access node of oneself;
Step 505: terminate.
In said process, vehicle node, by home address unique identification, without the need to co-located care-of address in moving process, therefore considerably reduces to move and delivers delay.In addition, network layer handoff link layer switch before carry out, therefore movement deliver delay and packet loss significantly reduce.
Fig. 8 is mobile handoff schematic flow sheet between car territory of the present invention.If vehicle node X and vehicle node Y is in same car territory VD1, vehicle node Y is the father node of vehicle node X, the father node of vehicle node Y is access node AP1, access node AP1 belongs to car territory VD1 and car territory VD2, the couple in router of car territory VD1 is AR1, and the couple in router of car territory VD2 is AR2, and vehicle node X is from the IPv6 address, acquisition local, car territory at couple in router HAR place, local, if vehicle node X enters the communication range of access node AP1, it then carries out following operation:
Step 601: start;
Step 602: vehicle node X sends updating message to access node AP1, and the destination address of message is the IPv6 address of access node AP1 at car territory VD1;
Step 603: updating message arrives access node AP1 by the forwarding of vehicle node Y, by the destination address of message, access node AP1 judges that vehicle node X and vehicle node Y is in the VD1 of car territory, access node AP1 sends updating message respectively to local couple in router HAR and couple in router AR2, and Message Payload is the IPv6 address of vehicle node X and the IPv6 address of couple in router AR2;
Step 604: after local couple in router HAR receives updating message, the couple in router associated with vehicle node X is updated to couple in router AR2, then returns renewal acknowledge message to access node AP1; After couple in router AR2 receives updating message, set up the incidence relation of vehicle node X and access node AP1, then return renewal acknowledge message to access node AP1;
Step 605: after access node AP1 receives the renewal acknowledge message from local couple in router HAR and couple in router AR2, judges it whether within the scope of a jumping of vehicle node X, if so, carry out step 606, otherwise carry out step 607;
Step 606: access node AP1 sends to vehicle node X and upgrades acknowledge message, and Message Payload is the IPv6 address of access node AP2 place car territory VD2, carry out step 608;
Step 607: access node AP1 preserves the packet that all destination addresses are vehicle node X, after access node AP1 detects that oneself is within the scope of a jumping of vehicle node X, send to vehicle node X the packet that all destination addresses preserved are vehicle node X by renewal acknowledge message simultaneously and be transmitted to vehicle node X;
Step 608: vehicle node X upgrades the IPv6 address of nearest access node and the jumping figure of nearest access node after receiving and upgrading acknowledge message;
Step 609: terminate.
In said process, vehicle node, by home address unique identification, without the need to co-located care-of address in moving process, therefore considerably reduces to move and delivers delay.In addition, network layer handoff link layer switch before carry out, therefore movement deliver delay and packet loss significantly reduce.Vehicle node is in mobile handoff process, and the data before obtaining mobile handoff by same access node and after mobile handoff, because this reducing packet loss, ensure that communication quality.
The invention provides the thinking of the method for vehicle-mounted net access IPv6 network; the method and access of this technical scheme of specific implementation is 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 premise without departing from the principles 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.The all available prior art of each component part not clear and definite in the present embodiment is realized.