CN104219209A - IPv4/IPv6 dual-stack connection network state transition method and device - Google Patents

IPv4/IPv6 dual-stack connection network state transition method and device Download PDF

Info

Publication number
CN104219209A
CN104219209A CN201310216396.9A CN201310216396A CN104219209A CN 104219209 A CN104219209 A CN 104219209A CN 201310216396 A CN201310216396 A CN 201310216396A CN 104219209 A CN104219209 A CN 104219209A
Authority
CN
China
Prior art keywords
ipv4
ipv6
connection
state information
stack
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310216396.9A
Other languages
Chinese (zh)
Inventor
赵永刚
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
ZTE Corp
Original Assignee
ZTE Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by ZTE Corp filed Critical ZTE Corp
Priority to CN201310216396.9A priority Critical patent/CN104219209A/en
Priority to PCT/CN2013/083124 priority patent/WO2014194581A1/en
Publication of CN104219209A publication Critical patent/CN104219209A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L69/00Network arrangements, protocols or services independent of the application payload and not provided for in the other groups of this subclass
    • H04L69/16Implementation or adaptation of Internet protocol [IP], of transmission control protocol [TCP] or of user datagram protocol [UDP]
    • H04L69/167Adaptation for transition between two IP versions, e.g. between IPv4 and IPv6

Abstract

The invention discloses an IPv4/IPv6 dual-stack connection network state transition method. The method includes the steps of receiving IPv4 and IPv6 corresponded connection state information which is reported by a network subsystem and which is generated according to response results triggered by a dual-stack connection network; according to the connection state information, judging whether or not a current connection state needs a transition; if yes, according to the connection state information, updating a current connection state. The invention further discloses an IPv4/IPv6 dual-stack connection network state transition device. According to the scheme, a terminal supporting the IPv4/IPv6 dual-stack connection network is allowed to execute state transition intelligently and automatically and connected to the IPv4/IPv6 dual-stack connection network, changes of a network environment are better adapted to, users need not directly repair the IPv4/IPv6 dual-stack connection network, efficiency of the terminal to connect to the IPv4/IPv6 dual-stack connection network is improved, and usage is facilitated for users.

Description

The method and apparatus of IPv4/IPv6 dual stack interconnection network transition between states
Technical field
The present invention relates to network communications technology field, especially relate to the method and apparatus of a kind of IPv4/IPv6 dual stack interconnection network transition between states.
Background technology
In the Internet of global extensive use, take IPv4 agreement at present as basis, and IP address is with 32 byte representations, and nearly 4,000,000,000 in theory, in fact because various restrictions only have half address and can use; And, consider the development of the 3G terminal coming years, Internet protocol (IP) phone, home network etc., the demand of IP address can significantly be increased, so IPv6 arises at the historic moment.IPv6 address adopts 128 bit address length, almost can provide without restriction address, except solving the problem of IPv4 number of addresses deficiency, the automatic equipment allocative abilities that IPv6 agreement provides automatically access network identification new equipment and can automatically configure, for the user of mobile or wireless access, be very important; In IPv6 protocol suite, support many new security functions, for example, system is to the authentication operation of system, data transmission based on encrypting etc.; In IPv6 agreement, the definition of packet-priority can be supported real-time application better; Multi-casting communication mechanism in IPv6 agreement can provide point-to-multipoint communication process making full use of under Internet resources prerequisite.
Known by above trend, IPv6 is the developing direction of network.And in view of the current extensive use of IPv4 technology, in the short time, can't be banned by IPv6 comprehensively.Within the quite a long time, the long-term co-existence of IPv4/IPv6 network, answers in contrast, and the network terminal need to support with network operator the application that the two stacks of IPv4 and IPv6 are connected.Terminal in carrying out the dialing procedure of IPv4/IPv6 dual stack interconnection network, one of them of IPv4 and the IPv6 failure of likely dialling, two stacks only have a protocol stack to set up data to connect in connecting; Or setting up under the prerequisite of IPv4/IPv6 dual stack connection, even owing to also may occurring in complexity user's use procedure of network environment that one of them connecting link disconnects two stacks and connects situation about disconnecting.Require domestic consumer from protocol layer, to obtain PDP and activate message, and in to find out the reason that protocol stack data connect to disconnect be unpractical, if connecting fault, processed by domestic consumer on these networks, this can increase user's operation easier undoubtedly, and be difficult to adopt an effective measure and recover dual-stack network connection, thereby reduce the efficiency of terminal interconnection network and affect user, experience.
Summary of the invention
Main purpose of the present invention is to provide the method and apparatus of a kind of IPv4/IPv6 dual stack interconnection network transition between states, make to support the terminal of IPv4/IPv6 dual stack interconnection network can automatically carry out the transition of connection status, adapt to the variation of network environment, keep two stack connection status.
To achieve these objectives, the invention provides the method for a kind of IPv4/IPv6 dual stack interconnection network transition between states, the method comprising the steps of:
IPv4 and connection state information corresponding to IPv6 that the response results activating according to two stack interconnection networks that reception network subsystem reports generates;
According to described connection state information, judge whether current connection status to carry out transition; If carry out connection status transition, according to described connection state information, upgrade current connection status.
Preferably, before the step of the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that described reception network subsystem reports generates and IPv6 are corresponding, also comprise:
Receive dialing instruction, according to preset dialing parameters, send the two stack activation requests of PDP, set up IPv4/IPv6 dual stack and connect.
Preferably, the response results activating according to two stack interconnection networks generates IPv4 and connection state information corresponding to IPv6 comprises:
If the equal successful connection of IPv4 and IPv6, connection state information is that two stacks connect foundation;
If the equal connection failure of IPv4 and IPv6, connection state information is that two stacks connect disconnection;
If IPv4 or IPv6 successful connection, connection state information is that single stack connects foundation.
Preferably, described according to connection state information, the step of upgrading current connection status comprises:
When connection state information is, when two stacks connections disconnect or the connection of single stack is set up, to re-establish pair stacks and connect;
When connection state information is set up for two stacks connect, current connection status is updated to two stack successful connection states.
Preferably, describedly for two stacks connect, disconnect or single stack connects while setting up when connection state information, re-establish the step that two stacks connect and comprise:
When connection state information is two stacks connection disconnection, by IPv4 link and IPv6 link circuit deleting; Re-establishing IPv4 connection is connected with IPv6; As successful connection, recover two stacks and connect;
When connection state information is that single stack connects while setting up, by the link circuit deleting disconnecting; Re-establish the connection of disconnection; As successful connection, recover two stacks and connect.
The present invention also provides the device of a kind of IPv4/IPv6 dual stack interconnection network transition between states, and this device comprises:
Information receiving module, for receiving dialing instruction and receiving IPv4 and connection state information corresponding to IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates;
State machine processing module, for according to described connection state information, judges whether current connection status to carry out transition; If carry out connection status transition, according to described connection state information, upgrade current connection status.
Preferably, the device of IPv4/IPv6 dual stack interconnection network transition between states also comprises:
Network connecting module, for receiving dialing instruction, according to preset dialing parameters, sends two stack PDP activation requests, sets up IPv4/IPv6 dual stack and connects.
Preferably, the response results that the two stack interconnection networks of described basis activate generates IPv4 and connection state information corresponding to IPv6 comprises:
If the equal successful connection of IPv4 and IPv6, connection state information is that two stacks connect foundation;
If the equal connection failure of IPv4 and IPv6, connection state information is that two stacks connect disconnection;
If IPv4 or IPv6 successful connection, connection state information is that single stack connects foundation.
Preferably, described state machine processing module comprises:
The first processing module, for disconnecting for two stacks connect when connection state information or single stack connects while setting up, re-establishes two stacks and connects;
The second processing module, for when connection state information is set up for two stacks connect, is updated to two stack successful connection states by current connection status.
Preferably, described the first processing module specifically for:
When connection state information is two stacks connection disconnection, by IPv4 link and IPv6 link circuit deleting; Re-establishing IPv4 connection is connected with IPv6; As successful connection, recover two stacks and connect;
When connection state information is that single stack connects while setting up, by the link circuit deleting disconnecting; Re-establish the connection of disconnection; As successful connection, recover two stacks and connect.
When the present invention is connected by the two stacks of the foundation of dialling at IPv4 and IPv6, receive after the connection state information that IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates and IPv6 are corresponding, judge whether current connection status to carry out transition, if, according to connection state information, automatically upgrade current connection status.Make to support the terminal of IPv4 and the two stack interconnection networks of IPv6 can carry out intelligent, automatically transition between states, be connected to IPv4 and IPv6 dual-stack network, adapted to better the variation of network environment, and make user without participating directly in the work of repairing IPv4/IPv6 dual stack interconnection network, thereby improved the efficiency of terminal IPv4/IPv6 dual stack interconnection network, convenient for users to use.
Accompanying drawing explanation
Fig. 1 is the schematic flow sheet of method one embodiment of IPv4/IPv6 dual stack interconnection network of the present invention transition between states;
Fig. 2 upgrades the schematic flow sheet of current connection status in the method for IPv4/IPv6 dual stack interconnection network of the present invention transition between states;
Fig. 3 is the schematic flow sheet of the another embodiment of method of IPv4/IPv6 dual stack interconnection network of the present invention transition between states;
Fig. 4 is the structural representation of device one embodiment of IPv4/IPv6 dual stack interconnection network of the present invention transition between states;
Fig. 5 is the structural representation of state machine processing module in the device of IPv4/IPv6 dual stack interconnection network of the present invention transition between states;
Fig. 6 is the structural representation of the another embodiment of device of IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
The realization of the object of the invention, functional characteristics and advantage, in connection with embodiment, are described further with reference to accompanying drawing.
Embodiment
Should be appreciated that specific embodiment described herein, only in order to explain the present invention, is not intended to limit the present invention.
The invention provides the method for a kind of IPv4/IPv6 dual stack interconnection network transition between states.
The embodiment of the present invention provides a kind of data processing equipment, and to realize the method for IPv4/IPv6 dual stack interconnection network transition between states, this data processing equipment can be computer, panel computer, mobile phone, router or other any suitable terminals.
Data processing equipment can provide human-computer interaction interface for user, for user, inputs PDP Profile information before dialing, comprises the information such as APN, authentication.User can input many PDP Profile information to adapt to different network environments, but while carrying out dial-up connection, can only enable a PDP Profile at every turn, in addition, also need to input default preset configuration parameter d efault Profile, to guarantee, in the situation that user does not input new PDP Profile information, by data processing equipment, also can normally carry out dial-up connection network.Connection state information when in addition, data processing equipment can also be exported the transition between states of IPv4/IPv6 dual stack interconnection network.
With reference to Fig. 1, Fig. 1 is the schematic flow sheet of method one embodiment of IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
The method of the IPv4/IPv6 dual stack interconnection network transition between states that the present embodiment provides, comprising:
Step S10, IPv4 and connection state information corresponding to IPv6 that the response results activating according to two stack interconnection networks that reception network subsystem reports generates;
In the present embodiment, the response results that two stack interconnection networks activate has following three kinds of situations: 1, the equal successful connection of IPv4 and IPv6; 2, the equal connection failure of IPv4 and IPv6; 3, IPv4 or IPv6 successful connection; And the IPv4 that the response results that network subsystem reports activates according to two stack interconnection networks the generates connection state information corresponding with IPv6 respectively: 1, two stacks are connected foundation; 2, two stacks connect disconnection; 3, single stack connects foundation.In the IPv4/IPv6 dual stack network use procedure of having set up, variation because of network environment, even there will be one of them link to disconnect two situations that link all disconnects, now, the response results activating according to two stack interconnection networks of reception network subsystem real-time report generates IPv4 and connection state information corresponding to IPv6.
Step S20, according to connection state information, judges whether current connection status to carry out transition, if so, performs step S21;
Step S21, according to connection state information, upgrades current connection status.
Receive after the connection state information that network subsystem reports, according to this connection state information, judge whether the connection status of current dual-stack network to carry out transition, judge whether to carry out to process corresponding connection, in this way, according to corresponding connection state information, the corresponding connection status of upgrading current dual-stack network, reconnects or maintains the processing of connection to IPv4 and/or IPv6.
With reference to Fig. 2, Fig. 2 upgrades the schematic flow sheet of current connection status in the method for IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
In the present embodiment, step S21 specifically comprises the steps:
Step S211, when connection state information is, when two stacks connections disconnect or the connection of single stack is set up, to re-establish pair stacks and connect;
Step S212, when connection state information is set up for two stacks connect, is updated to two stack successful connection states by current connection status.
Further, in the present embodiment, step S211 specifically comprises step:
When connection state information is two stacks connection disconnection, by IPv4 link and IPv6 link circuit deleting; Re-establishing IPv4 connection is connected with IPv6; As successful connection, recover two stacks and connect;
When connection state information is that single stack connects while setting up, by the link circuit deleting disconnecting; Re-establish the connection of disconnection; As successful connection, recover two stacks and connect.
The connection status of dual-stack network can be divided into nine kinds, stacks as two in IPv4IPv6_DOWN(connect the state of not setting up), the two stacks of IPv4IPv6_COMMING_UP(connect state in foundation), the two stacks of IPv4IPv6_UP(connect the state of setting up), the mono-stack connection status of IPv4_ONLY(IPv4), the mono-stack connection status of IPv6_ONLY(IPv6), the two stacks of IPv4IPv6_COMMING_DOWN(connect state in disconnection), IPv4IPv6_RECOVERY_v4(recovers IPv4 connection status), IPv4IPv6_RECOVERY_v6(recovers IPv6 connection status), IPv4IPv6_RECOVERY_ v4v6(recovers two stack connection status), it is emphasized that, in other embodiments of the invention, connection status can also be divided into other any kind.
In the present embodiment, minute following two kinds of situations are set forth the process of connection status transition:
One, carrying out IPv4/IPv6 dual stack connects in the process of dialing;
Under initial condition, connection status is IPv4IPv6_DOWN, represents not have dialing or IPv4/IPv6 dual stack to connect the state disconnecting.While receiving dialing instruction, connection status transits to IPv4IPv6_COMMING_UP from IPv4IPv6_DOWN, in the process of this connection status transition, sends two stack PDP activation requests, sets up two stacks and connects.
When if the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 is set up for two stacks are connected, connection status transits to IPv4IPv6_UP from IPv4IPv6_COMMING_UP, represent that two stacks connect dial-up success, and two stacks connection dial-up success and current connection state information are reported to user.
When if the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 disconnects for two stacks are connected, connection status transits to IPv4IPv6_DOWN from IPv4IPv6_COMMING_UP, representing that the two stacks of IPv4 and IPv6 are connected dials unsuccessfully, current network is unavailable, and two stacks connections are dialled and unsuccessfully reported user with current connection state information, inform that user is current and cannot carry out dial-up connection, prompting user manually repairs after network connects fault and carries out dial-up connection again.
If being single stack, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates be connected while setting up, connection status transits to IPv4_ONLY or IPv6_ONLY from IPv4IPv6_COMMING_UP, one of them is connected dial-up success to represent IPv4 and IPv6, and single stack is connected to dial-up success and current connection state information report of user.
Two, in the use procedure of IPv4/IPv6 dual stack network.
By dial-up connection, set up after IPv4/IPv6 dual stack network, even user often runs into one of them connecting link in the process of using IPv4/IPv6 dual stack network, disconnect two situations that connecting link all disconnects.
In the present embodiment, in the use procedure of IPv4/IPv6 dual stack network, when if the connection state information connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 is set up for two stacks are connected, maintaining current connection status is IPv4IPv6_UP, and current connection status is updated to two stack successful connection states.Under this connection status, two links of IPv4/IPv6 dual stack network all keep normal connection status, and current network is supported user's application with maximum capacity.
When if the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 disconnects for two stacks are connected, connection status transits to IPv4IPv6_RECOVERY_v4v6 from IPv4IPv6_UP, now enter in the process that re-establishes two stacks connections, by the IPv4 and the IPv6 link circuit deleting that disconnect, according to preset dialing parameters, re-start dialing, send two stack PDP activation requests, attempt recovering two stacks and connect.Then, the IPv4 that response results generated activating according to the two stack interconnection networks connection state information two stacks corresponding with IPv6 that network subsystem reports as received are connected foundation, connection status transits to IPv4IPv6_UP from Pv4IPv6_RECOVERY_v4v6, again add IPv4 and IPv6 link, recover two stacks and connect; And the IPv4 that response results the generated connection state information corresponding with IPv6 activating according to two stack interconnection networks that network subsystem reports as received is that single stack is connected foundation, connection status transits to IPv4_ONLY or IPv6_ONLY from IPv4IPv6_RECOVERY_v4v6, again add IPv4 or IPv6 link, return back to the mono-stack of IPv4 or IPv6 and connect.
In the present embodiment, the maximum times preferably automatically dialling is 3, trial is set up IPv4/IPv6 dual stack and is connected, if carry out after 3 dialing, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates is still that two stacks are connected disconnection, connection status transits to IPv4IPv6_COMMING_DOWN from IPv4IPv6_RECOVERY_v4v6, the procedural representation of this connection status transition recovers two stack connection failures, enter two stacks and connect state in disconnection, if now do not receive, user's associative operation is (if user is according to the connection state information obtaining, current connection status is carried out to manual intervention, reset dialing parameters and dial), connection status transits to IPv4IPv6_DOWN from IPv4IPv6_COMMING_DOWN, the device of IPv4/IPv6 dual stack interconnection network transition between states is failed automatically to repair the network disconnecting and is connected, prompting user carries out associative operation, recovering two stacks connects.
If being single stack, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates be connected while setting up, when IPv4 link disconnects, connection status transits to IPv4IPv6_RECOVERY_v4 from IPv4IPv6_UP; When IPv6 link disconnects, connection status transits to IPv4IPv6_RECOVERY_v6 from IPv4IPv6_UP.In the process of this connection status transition, by the IPv4 having disconnected or IPv6 link circuit deleting, according to preset dialing parameters, re-start dialing, send corresponding single stack PDP activation request, attempt recovering IPv4 or IPv6 connection.Then, if the two stacks of the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that the network subsystem receiving reports generates is corresponding with IPv6 are connected foundation, connection status transits to IPv4IPv6_UP from Pv4IPv6_RECOVERY_v4 or IPv4IPv6_RECOVERY_v6, again add IPv4 or IPv6 link, recover two stacks and connect.
In the present embodiment, the maximum times preferably automatically dialling is 3, attempting setting up the IPv4 or the mono-stack of IPv6 that have disconnected connects, if after carrying out 3 dialing, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates is still that single stack is connected while setting up, and connection status transits to IPv4_ONLY or transits to IPv6_ONLY from IPv4IPv6_RECOVERY_v6 from IPv4IPv6_RECOVERY_v4.
When the present embodiment is connected by the two stacks of the foundation of dialling at IPv4 and IPv6, receive after the connection state information that IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates and IPv6 are corresponding, judge whether current connection status to carry out transition, if, according to connection state information, automatically upgrade current connection status.Make to support the terminal of IPv4 and the two stack interconnection networks of IPv6 can carry out intelligent, automatically transition between states, be connected to IPv4 and IPv6 dual-stack network, adapted to better the variation of network environment, and make user without participating directly in the work of repairing IPv4/IPv6 dual stack interconnection network, thereby improved the efficiency of terminal IPv4/IPv6 dual stack interconnection network, convenient for users to use.
With reference to Fig. 3, Fig. 3 is the schematic flow sheet of the another embodiment of method of IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
On the basis of method one embodiment of IPv4/IPv6 dual stack interconnection network of the present invention transition between states, before execution step S10, the method also comprises:
Step S30, receives dialing instruction, according to preset dialing parameters, sends the two stack activation requests of PDP, sets up IPv4/IPv6 dual stack and connects.
In the present embodiment, the human-computer interaction interface that user provides according to data processing equipment, input comprises the PDP Profile information of the information such as APN, authentication, and sets in advance dialing parameters default Profile.Before carrying out IPv4/IPv6 dual stack connection, receive after dialing instruction, first according to preset dialing parameters, send two stack PDP activation requests, connection status is transitted to IPv4IPv6_COMMING_UP from IPv4IPv6_DOWN, set up IPv4/IPv6 dual stack and connect, and connect in the process of setting up at two stacks, the response results that network subsystem can activate according to two stack interconnection networks generates IPv4 and connection state information corresponding to IPv6, and real-time report.
The present invention also provides the device of a kind of IPv4/IPv6 dual stack interconnection network transition between states.
With reference to Fig. 4, Fig. 4 is the structural representation of device one embodiment of IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
The device of the IPv4/IPv6 dual stack interconnection network transition between states that the present embodiment provides, comprising:
Information receiving module 10, for receiving dialing instruction and receiving IPv4 and connection state information corresponding to IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates;
State machine processing module 20, for according to connection state information, judges whether current connection status to carry out transition; If carry out connection status transition, according to connection state information, upgrade current connection status.
In the present embodiment, the response results that two stack interconnection networks activate has following three kinds of situations: 1, the equal successful connection of IPv4 and IPv6; 2, the equal connection failure of IPv4 and IPv6; 3, IPv4 or IPv6 successful connection; And the IPv4 that the response results that network subsystem reports activates according to two stack interconnection networks the generates connection state information corresponding with IPv6 respectively: 1, two stacks are connected foundation; 2, two stacks connect disconnection; 3, single stack connects foundation.In the IPv4/IPv6 dual stack network use procedure of having set up, variation because of network environment, even there will be one of them link to disconnect two situations that link all disconnects, now, by information receiving module 10, receive IPv4 and connection state information corresponding to IPv6 that the response results activating according to two stack interconnection networks of network subsystem real-time report generates.
Receive after the connection state information that network subsystem reports, state machine processing module 20 is according to this connection state information, judge whether the connection status of current dual-stack network to carry out transition, judge whether to carry out to process corresponding connection, in this way, according to corresponding connection state information, the corresponding connection status of upgrading current dual-stack network, reconnects or maintains the processing of connection to IPv4 and/or IPv6.
With reference to Fig. 5, Fig. 5 is the structural representation of state machine processing module in the device of IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
In the present embodiment, state machine processing module 20 further comprises:
The first processing module 21, for disconnecting for two stacks connect when connection state information or single stack connects while setting up, re-establishes two stacks and connects;
The second processing module 22, for when connection state information is set up for two stacks connect, is updated to two stack successful connection states by current connection status.
Further, in the present embodiment, the first processing module 21 specifically for:
When connection state information is two stacks connection disconnection, by IPv4 link and IPv6 link circuit deleting; Re-establishing IPv4 connection is connected with IPv6; As successful connection, recover two stacks and connect;
When connection state information is that single stack connects while setting up, by the link circuit deleting disconnecting; Re-establish the connection of disconnection; As successful connection, recover two stacks and connect.
The connection status of dual-stack network can be divided into nine kinds, stacks as two in IPv4IPv6_DOWN(connect the state of not setting up), the two stacks of IPv4IPv6_COMMING_UP(connect state in foundation), the two stacks of IPv4IPv6_UP(connect the state of setting up), the mono-stack connection status of IPv4_ONLY(IPv4), the mono-stack connection status of IPv6_ONLY(IPv6), the two stacks of IPv4IPv6_COMMING_DOWN(connect state in disconnection), IPv4IPv6_RECOVERY_v4(recovers IPv4 connection status), IPv4IPv6_RECOVERY_v6(recovers IPv6 connection status), IPv4IPv6_RECOVERY_ v4v6(recovers two stack connection status), it is emphasized that, in other embodiments of the invention, connection status can also be divided into other any kind.
In the present embodiment, minute following two kinds of situations are set forth the process of connection status transition:
One, carrying out IPv4/IPv6 dual stack connects in the process of dialing;
Under initial condition, connection status is IPv4IPv6_DOWN, represents not have dialing or IPv4/IPv6 dual stack to connect the state disconnecting.While receiving dialing instruction, connection status transits to IPv4IPv6_COMMING_UP from IPv4IPv6_DOWN, in the process of this connection status transition, sends two stack PDP activation requests, sets up two stacks and connects.
When if the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 is set up for two stacks are connected, connection status transits to IPv4IPv6_UP from IPv4IPv6_COMMING_UP, represent that two stacks connect dial-up success, and two stacks connection dial-up success and current connection state information are reported to user.
When if the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 disconnects for two stacks are connected, connection status transits to IPv4IPv6_DOWN from IPv4IPv6_COMMING_UP, representing that the two stacks of IPv4 and IPv6 are connected dials unsuccessfully, current network is unavailable, and two stacks connections are dialled and unsuccessfully reported user with current connection state information, inform that user is current and cannot carry out dial-up connection, prompting user manually repairs after network connects fault and carries out dial-up connection again.
If being single stack, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates be connected while setting up, connection status transits to IPv4_ONLY or IPv6_ONLY from IPv4IPv6_COMMING_UP, one of them is connected dial-up success to represent IPv4 and IPv6, and single stack is connected to dial-up success and current connection state information report of user.
Two, in the use procedure of IPv4/IPv6 dual stack network.
By dial-up connection, set up after IPv4/IPv6 dual stack network, even user often runs into one of them connecting link in the process of using IPv4/IPv6 dual stack network, disconnect two situations that connecting link all disconnects.
In the present embodiment, in the use procedure of IPv4/IPv6 dual stack network, when if the connection state information connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 is set up for two stacks are connected, maintaining current connection status is IPv4IPv6_UP, and by the second processing module 22, current connection status is updated to two stack successful connection states.Under this connection status, two links of IPv4/IPv6 dual stack network all keep normal connection status, and current network is supported user's application with maximum capacity.
When if the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates is corresponding with IPv6 disconnects for two stacks are connected, connection status transits to IPv4IPv6_RECOVERY_v4v6 from IPv4IPv6_UP, now, by the first processing module 21, enter in the process that re-establishes two stacks connections, by the IPv4 and the IPv6 link circuit deleting that disconnect, according to preset dialing parameters, re-start dialing, send two stack PDP activation requests, attempt recovering two stacks and connect.Then, the IPv4 that response results generated activating according to the two stack interconnection networks connection state information two stacks corresponding with IPv6 that network subsystem reports as received are connected foundation, connection status transits to IPv4IPv6_UP from Pv4IPv6_RECOVERY_v4v6, again add IPv4 and IPv6 link, recover two stacks and connect; And the IPv4 that response results the generated connection state information corresponding with IPv6 activating according to two stack interconnection networks that network subsystem reports as received is that single stack is connected foundation, connection status transits to IPv4_ONLY or IPv6_ONLY from IPv4IPv6_RECOVERY_v4v6, again add IPv4 or IPv6 link, return back to the mono-stack of IPv4 or IPv6 and connect.
In the present embodiment, the maximum times preferably automatically dialling is 3, trial is set up IPv4/IPv6 dual stack and is connected, if carry out after 3 dialing, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates is still that two stacks are connected disconnection, connection status transits to IPv4IPv6_COMMING_DOWN from IPv4IPv6_RECOVERY_v4v6, the procedural representation of this connection status transition recovers two stack connection failures, enter two stacks and connect state in disconnection, if now do not receive, user's associative operation is (if user is according to the connection state information obtaining, current connection status is carried out to manual intervention, reset dialing parameters and dial), connection status transits to IPv4IPv6_DOWN from IPv4IPv6_COMMING_DOWN, the device of IPv4/IPv6 dual stack interconnection network transition between states is failed automatically to repair the network disconnecting and is connected, prompting user carries out associative operation, recovering two stacks connects.
If being single stack, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates be connected while setting up, when IPv4 link disconnects, connection status transits to IPv4IPv6_RECOVERY_v4 from IPv4IPv6_UP; When IPv6 link disconnects, connection status transits to IPv4IPv6_RECOVERY_v6 from IPv4IPv6_UP.In the process of this connection status transition, by the IPv4 having disconnected or IPv6 link circuit deleting, the first processing module 21 re-starts dialing according to preset dialing parameters, sends corresponding single stack PDP activation request, attempts recovering IPv4 or IPv6 connection.Then, if the two stacks of the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that the network subsystem receiving reports generates is corresponding with IPv6 are connected foundation, connection status transits to IPv4IPv6_UP from Pv4IPv6_RECOVERY_v4 or IPv4IPv6_RECOVERY_v6, again add IPv4 or IPv6 link, recover two stacks and connect.
In the present embodiment, the maximum times preferably automatically dialling is 3, attempting setting up the IPv4 or the mono-stack of IPv6 that have disconnected connects, if after carrying out 3 dialing, the IPv4 connection state information corresponding with IPv6 that the response results activating according to two stack interconnection networks that network subsystem reports generates is still that single stack is connected while setting up, and connection status transits to IPv4_ONLY or transits to IPv6_ONLY from IPv4IPv6_RECOVERY_v6 from IPv4IPv6_RECOVERY_v4.
When the present embodiment is connected by the two stacks of the foundation of dialling at IPv4 and IPv6, receive after the connection state information that IPv4 that the response results activating according to two stack interconnection networks that network subsystem reports generates and IPv6 are corresponding, judge whether current connection status to carry out transition, if, according to connection state information, automatically upgrade current connection status.Make to support the terminal of IPv4 and the two stack interconnection networks of IPv6 can carry out intelligent, automatically transition between states, be connected to IPv4 and IPv6 dual-stack network, adapted to better the variation of network environment, and make user without participating directly in the work of repairing IPv4/IPv6 dual stack interconnection network, thereby improved the efficiency of terminal IPv4/IPv6 dual stack interconnection network, convenient for users to use.
With reference to Fig. 6, Fig. 6 is the structural representation of the another embodiment of device of IPv4/IPv6 dual stack interconnection network of the present invention transition between states.
On the basis of device one embodiment of IPv4/IPv6 dual stack interconnection network of the present invention transition between states, this device also comprises:
Network connecting module 30, for receiving dialing instruction, according to preset dialing parameters, sends two stack PDP activation requests, sets up IPv4/IPv6 dual stack and connects.
In the present embodiment, the human-computer interaction interface that user provides according to data processing equipment, input comprises the PDP Profile information of the information such as APN, authentication, and sets in advance dialing parameters default Profile.Before carrying out IPv4/IPv6 dual stack connection, receive after dialing instruction, network connecting module 30 is first according to preset dialing parameters, send two stack PDP activation requests, connection status is transitted to IPv4IPv6_COMMING_UP from IPv4IPv6_DOWN, set up IPv4/IPv6 dual stack and connect, and connect in the process of setting up at two stacks, the response results that network subsystem can activate according to two stack interconnection networks generates IPv4 and connection state information corresponding to IPv6, and real-time report.
Should be understood that; these are only the preferred embodiments of the present invention; can not therefore limit the scope of the claims of the present invention; every equivalent structure or conversion of equivalent flow process that utilizes specification of the present invention and accompanying drawing content to do; or be directly or indirectly used in other relevant technical fields, be all in like manner included in scope of patent protection of the present invention.

Claims (10)

1. a method for IPv4/IPv6 dual stack interconnection network transition between states, is characterized in that, the method comprising the steps of:
IPv4 and connection state information corresponding to IPv6 that the response results activating according to two stack interconnection networks that reception network subsystem reports generates;
According to described connection state information, judge whether current connection status to carry out transition; If carry out connection status transition, according to described connection state information, upgrade current connection status.
2. the method for IPv4/IPv6 dual stack interconnection network according to claim 1 transition between states, it is characterized in that, before the step of the connection state information that the IPv4 that the response results activating according to two stack interconnection networks that described reception network subsystem reports generates and IPv6 are corresponding, also comprise:
Receive dialing instruction, according to preset dialing parameters, send two stack PDP activation requests, set up IPv4/IPv6 dual stack and connect.
3. the method for IPv4/IPv6 dual stack interconnection network according to claim 1 transition between states, is characterized in that, the response results activating according to two stack interconnection networks generates IPv4 and connection state information corresponding to IPv6 comprises:
If the equal successful connection of IPv4 and IPv6, connection state information is that two stacks connect foundation;
If the equal connection failure of IPv4 and IPv6, connection state information is that two stacks connect disconnection;
If IPv4 or IPv6 successful connection, connection state information is that single stack connects foundation.
4. the method for IPv4/IPv6 dual stack interconnection network according to claim 1 transition between states, is characterized in that, described according to connection state information, and the step of upgrading current connection status comprises:
When connection state information is, when two stacks connections disconnect or the connection of single stack is set up, to re-establish pair stacks and connect;
When connection state information is set up for two stacks connect, current connection status is updated to two stack successful connection states.
5. the method for IPv4/IPv6 dual stack interconnection network according to claim 4 transition between states, is characterized in that, describedly for two stacks connect, disconnects or single stack connects while setting up when connection state information, re-establishes the step that two stacks connect and comprises:
When connection state information is two stacks connection disconnection, by IPv4 link and IPv6 link circuit deleting; Re-establishing IPv4 connection is connected with IPv6; As successful connection, recover two stacks and connect;
When connection state information is that single stack connects while setting up, by the link circuit deleting disconnecting; Re-establish the connection of disconnection; As successful connection, recover two stacks and connect.
6. a device for IPv4/IPv6 dual stack interconnection network transition between states, is characterized in that, this device comprises:
Information receiving module, the IPv4 and connection state information corresponding to IPv6 that for receiving the response results activating according to two stack interconnection networks that network subsystem reports, generate;
State machine processing module, for according to described connection state information, judges whether current connection status to carry out transition; If carry out connection status transition, according to described connection state information, upgrade current connection status.
7. the device of IPv4/IPv6 dual stack interconnection network according to claim 6 transition between states, is characterized in that, also comprises:
Network connecting module, for receiving dialing instruction, according to preset dialing parameters, sends two stack PDP activation requests, sets up IPv4/IPv6 dual stack and connects.
8. the device of IPv4/IPv6 dual stack interconnection network according to claim 6 transition between states, is characterized in that, the response results that the two stack interconnection networks of described basis activate generates IPv4 and connection state information corresponding to IPv6 comprises:
If the equal successful connection of IPv4 and IPv6, connection state information is that two stacks connect foundation;
If the equal connection failure of IPv4 and IPv6, connection state information is that two stacks connect disconnection;
If IPv4 or IPv6 successful connection, connection state information is that single stack connects foundation.
9. the device of IPv4/IPv6 dual stack interconnection network according to claim 6 transition between states, is characterized in that, described state machine processing module comprises:
The first processing module, for disconnecting for two stacks connect when connection state information or single stack connects while setting up, re-establishes two stacks and connects;
The second processing module, for when connection state information is set up for two stacks connect, is updated to two stack successful connection states by current connection status.
10. the device of IPv4/IPv6 dual stack interconnection network according to claim 9 transition between states, is characterized in that, described the first processing module specifically for:
When connection state information is two stacks connection disconnection, by IPv4 link and IPv6 link circuit deleting; Re-establishing IPv4 connection is connected with IPv6; As successful connection, recover two stacks and connect;
When connection state information is that single stack connects while setting up, by the link circuit deleting disconnecting; Re-establish the connection of disconnection; As successful connection, recover two stacks and connect.
CN201310216396.9A 2013-06-03 2013-06-03 IPv4/IPv6 dual-stack connection network state transition method and device Pending CN104219209A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310216396.9A CN104219209A (en) 2013-06-03 2013-06-03 IPv4/IPv6 dual-stack connection network state transition method and device
PCT/CN2013/083124 WO2014194581A1 (en) 2013-06-03 2013-09-09 Method and device for performing state transition on ipv4/ipv6 dual-stack connection network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310216396.9A CN104219209A (en) 2013-06-03 2013-06-03 IPv4/IPv6 dual-stack connection network state transition method and device

Publications (1)

Publication Number Publication Date
CN104219209A true CN104219209A (en) 2014-12-17

Family

ID=52007462

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310216396.9A Pending CN104219209A (en) 2013-06-03 2013-06-03 IPv4/IPv6 dual-stack connection network state transition method and device

Country Status (2)

Country Link
CN (1) CN104219209A (en)
WO (1) WO2014194581A1 (en)

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100005158A1 (en) * 2008-07-03 2010-01-07 Teemu Ilmari Savolainen Network address assignment
CN101997934A (en) * 2009-08-21 2011-03-30 中国移动通信集团公司 Method and system for accessing addresses, mobile terminal and application method thereof
CN102368789A (en) * 2010-06-25 2012-03-07 中兴通讯股份有限公司 Method and system for connecting dual-stack terminal to network
US8151325B1 (en) * 2009-01-29 2012-04-03 Sprint Communications Company L.P. Optimizing device authentication by discovering internet protocol version authorizations
CN102421201A (en) * 2011-11-22 2012-04-18 中兴通讯股份有限公司 Method for rapidly establishing dual-stack wireless connection and wireless terminal equipment
CN102469176A (en) * 2010-11-18 2012-05-23 中国移动通信集团公司 Method and equipment for distributing IP (Internet protocol) addresses
CN102625283A (en) * 2012-03-21 2012-08-01 中兴通讯股份有限公司 Dial-up connection method and system and mobile terminal
CN102685854A (en) * 2012-04-25 2012-09-19 中兴通讯股份有限公司 Dial-up connection control method, wireless terminal and dial-up connection control system
CN102685118A (en) * 2012-05-02 2012-09-19 中兴通讯股份有限公司 Method and system for single-PDP (packet data protocol) and dual-stack serial dialing
CN102710629A (en) * 2012-05-28 2012-10-03 中兴通讯股份有限公司 Network connection method and system
CN102724714A (en) * 2012-05-18 2012-10-10 中兴通讯股份有限公司 Method and device for automatically correcting IP type
CN102938940A (en) * 2012-11-02 2013-02-20 中兴通讯股份有限公司 Wireless data terminal and method for supporting internet protocol version 4 (IPv4)/internet protocol version 6 (IPV6) double stacks

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100005158A1 (en) * 2008-07-03 2010-01-07 Teemu Ilmari Savolainen Network address assignment
US8151325B1 (en) * 2009-01-29 2012-04-03 Sprint Communications Company L.P. Optimizing device authentication by discovering internet protocol version authorizations
CN101997934A (en) * 2009-08-21 2011-03-30 中国移动通信集团公司 Method and system for accessing addresses, mobile terminal and application method thereof
CN102368789A (en) * 2010-06-25 2012-03-07 中兴通讯股份有限公司 Method and system for connecting dual-stack terminal to network
CN102469176A (en) * 2010-11-18 2012-05-23 中国移动通信集团公司 Method and equipment for distributing IP (Internet protocol) addresses
CN102421201A (en) * 2011-11-22 2012-04-18 中兴通讯股份有限公司 Method for rapidly establishing dual-stack wireless connection and wireless terminal equipment
CN102625283A (en) * 2012-03-21 2012-08-01 中兴通讯股份有限公司 Dial-up connection method and system and mobile terminal
CN102685854A (en) * 2012-04-25 2012-09-19 中兴通讯股份有限公司 Dial-up connection control method, wireless terminal and dial-up connection control system
CN102685118A (en) * 2012-05-02 2012-09-19 中兴通讯股份有限公司 Method and system for single-PDP (packet data protocol) and dual-stack serial dialing
CN102724714A (en) * 2012-05-18 2012-10-10 中兴通讯股份有限公司 Method and device for automatically correcting IP type
CN102710629A (en) * 2012-05-28 2012-10-03 中兴通讯股份有限公司 Network connection method and system
CN102938940A (en) * 2012-11-02 2013-02-20 中兴通讯股份有限公司 Wireless data terminal and method for supporting internet protocol version 4 (IPv4)/internet protocol version 6 (IPV6) double stacks

Also Published As

Publication number Publication date
WO2014194581A1 (en) 2014-12-11

Similar Documents

Publication Publication Date Title
CN104469789A (en) Connection configuration method and system for intelligent household appliance
CN112543468B (en) Disaster recovery method for gateway equipment and communication equipment
AU2010244906A1 (en) Method and System for Provisioning Terminal Parameters and Terminal Management Apparatus
CN103747459A (en) Configuration method of web camera and web camera
CN105471983A (en) Method and system for establishing internet-of-things communication
CN102437943B (en) Method and device for surfing Internet based on 3G ( 3rd Generation Telecommunication) data card
CN104104661A (en) Client, server, and remote user dialing authentication capability negotiation method and system
CN105072149A (en) Method and device for building remote communication through proxy gateway
CN102111728B (en) Network connection management module and method of mobile terminal
EP4096294A1 (en) Route advertising method, network elements, system, and device
CN103220283B (en) The method of network share, equipment and system
CN111194035A (en) Network connection method, device and storage medium
CN102710629B (en) Method for connecting network and system
CN103546352A (en) Remote control method and device based on wireless login
US7756010B2 (en) Method and system for preventing data packet loss in a redundant PDSN environment
CN105072148B (en) Method and device for establishing connection with terminal
CN105430319A (en) Video communication termination method and device
CN104954591A (en) Telephone communication method and device
CN102625283B (en) A kind of dial-up connection method, system and mobile terminal
US9654369B2 (en) Mobile terminal network port management method and device
CN103987017A (en) Method and system for establishing service access in WLAN
CN104219209A (en) IPv4/IPv6 dual-stack connection network state transition method and device
CN102387073B (en) Method and system for realizing mixed connecting manner of bridge and router of user equipment
EP3001729B1 (en) Method and apparatus for selecting an ip type during roaming
CN103873594A (en) Service switching method and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20141217

WD01 Invention patent application deemed withdrawn after publication