Summary of the invention
The embodiment of the invention provides a kind of method for processing business and equipment, can effectively improve service transmission quality and resource
Utilization rate.
The first aspect of the embodiment of the present invention provides a kind of method for processing business, establishes between the first equipment and the second equipment
There is the first session based on first network, which comprises when first equipment is set by the second network with described second
When standby connection,
First equipment sends request message to second equipment;The request message is based on institute for requesting to establish
The second session of the second network is stated, the request message includes the first cooperative information, and first cooperative information is for indicating institute
It states the second session and first session corresponds to same business;
First equipment receives the response message that second equipment is responded according to the request message, and the response disappears
Breath is for indicating that second equipment receives to establish second session with first equipment;
First equipment establishes second session according to the response message and second equipment.
In conjunction with the embodiment of the present invention in a first aspect, the first implementation of the first aspect in the embodiment of the present invention
In,
First equipment sends request message to second equipment specifically:
The ASP of first equipment sends request message to the ASP of second equipment;
First equipment receives the response message that second equipment is responded according to the request message specifically:
The ASP of first equipment receives the response message that the ASP of second equipment is responded according to the request message;
First equipment is established second session with second equipment according to the response message and is specifically included:
The ASP of first equipment establishes second session according to the ASP of the response message and second equipment.
In conjunction with the first implementation of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In second of implementation, institute is established according to the ASP of the response message and second equipment in the ASP of first equipment
After stating the second session further include:
The ASP of first equipment sends the first report message to the service module of the first equipment, and first report message is used
Second session has been had built up between instruction first equipment and second equipment.
In conjunction with the first or second of implementation of the first aspect of the embodiment of the present invention, the of the embodiment of the present invention
In the third implementation of one side,
Before the ASP of first equipment sends request message to the ASP of second equipment further include:
The ASP of first equipment sends the second report message, second report to the service module of first equipment
Message is accused to be used to report first equipment that can be based on second equipment foundation to the service module of first equipment
Second session of second network, second report message include the second cooperative information, and second cooperative information is used for
Indicate that second session and first session correspond to same business;
What the service module that the ASP of first equipment receives first equipment was sent according to second report message
First instruction message, first instruction message is used to indicate first equipment and second equipment establishes second meeting
Words;
The ASP of first equipment receives the response message that the ASP of second equipment is responded according to the request message
Include:
The ASP that the ASP of first equipment receives second equipment is carried out according to the request message in the second equipment
The response message responded after pre-treatment operation;The pre-treatment operation are as follows: the ASP of second equipment is according to the request message
Third report message is sent to the service module of second equipment, the third report message is used for second equipment
Service module asks whether receive to establish second session with first equipment for instructions, and the third report message is assisted comprising third
Make information, the third cooperative information is for indicating that second session and first session correspond to same business;It is described
The service module that the ASP of second equipment receives second equipment disappears according to the second instruction that the third report message is sent
Breath, the ASP that second instruction message is used to indicate second equipment respond the response message to the ASP of the first equipment.
In conjunction with the first aspect of the embodiment of the present invention, the first aspect of the embodiment of the present invention the first to the third realization
Any one in mode, in the 4th kind of implementation of the first aspect of the embodiment of the present invention, first cooperative information
Including address information of first equipment in the first network, the session identification of first session and first identifier letter
One or more of breath, wherein the first identifier information is the ground according to first equipment in the first network
The information that location information and/or the session identification of first session obtain after being calculated.
In conjunction with the 4th kind of implementation of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In 5th kind of implementation, second cooperative information include address information of second equipment in the first network,
One or more of the session identification of first session and second identifier information, wherein the second identifier information is root
According to second equipment after the session identification of address information and/or first session in the first network is calculated
Obtained information;The third cooperative information includes address information of first equipment in the first network, described
One or more of the session identification of one session and first identifier information, wherein the first identifier information is according to
What the first equipment obtained after the session identification of address information and/or first session in the first network is calculated
Information.
The first in conjunction with the first aspect of the embodiment of the present invention, the first aspect of the embodiment of the present invention is realized to the 5th kind
Any one in mode, in the 6th kind of implementation of the first aspect of the embodiment of the present invention, the method also includes:
When meeting preset first switching condition, first equipment is made business corresponding to first session
Session switches to second session by first session, so that business corresponding to first session is according to
Second session carries out business transmission.
In conjunction with the 6th kind of implementation of the first aspect of the embodiment of the present invention, in the first aspect of the embodiment of the present invention
In 7th kind of implementation, preset first switching condition includes:
The signal quality of the first network is unsatisfactory for the signal quality of preset requirement or second network better than described
The signal quality of first network.
The second aspect of the embodiment of the present invention provides a kind of method for processing business, establishes between the first equipment and the second equipment
There is the first session based on first network, when first equipment, which also passes through the second network, to be connect with second equipment, institute
The method of stating includes:
Second equipment receives the request message that first equipment is sent;The request message establishes base for requesting
In the second session of second network, the request message includes the first cooperative information, and first cooperative information is used for table
Show that second session and first session correspond to same business;
Second equipment responds response message to first equipment according to the request message, and the response message is used
Receive to establish second session with first equipment in expression second equipment;
Second equipment and first equipment establish second session.
In conjunction with the second aspect of the embodiment of the present invention, in the first implementation of the second aspect of the embodiment of the present invention
In,
Second equipment receives the request message that first equipment is sent specifically:
The ASP of second equipment receives the request message that the ASP of first equipment is sent;
Second equipment responds response message to the first equipment according to the request message specifically:
The ASP of second equipment responds response message to the ASP of the first equipment according to the request message;
Second equipment is established second session with first equipment according to the response message and is specifically included:
The ASP of second equipment and the ASP of first equipment establish second session.
In conjunction with the first implementation of the second aspect of the embodiment of the present invention, in the second aspect of the embodiment of the present invention
In second of implementation, after the ASP of second equipment and the ASP of first equipment establish second session also
Include:
The ASP of second equipment sends the first report message to the service module of the second equipment, and first report message is used
Second session has been had built up between instruction second equipment and first equipment.
In conjunction with the first or second of implementation of the second aspect of the embodiment of the present invention, the of the embodiment of the present invention
In the third implementation of two aspects,
Second equipment receives the request message that first equipment is sent specifically:
The ASP that the ASP of second equipment receives first equipment is sent after the first equipment carries out pretreatment operation
Request message;The pretreatment operation are as follows: the ASP of first equipment sends second to the service module of first equipment
Report message, second report message are used to report first equipment can be with institute to the service module of first equipment
It states the second equipment and establishes the second session based on second network, second report message includes the second cooperative information, institute
The second cooperative information is stated for indicating that second session and first session correspond to same business;First equipment
ASP receives the first instruction message that the service module of first equipment is sent according to second report message, and described first
Instruction message is used to indicate first equipment and second equipment establishes second session;
After the request message that the ASP that the ASP of second equipment receives first equipment is sent, described second is set
Before standby ASP responds response message to the ASP of the first equipment according to the request message further include:
The ASP of second equipment sends third report to the service module of second equipment according to the request message
Whether message, the third report message receive to build with first equipment for asking for instructions to the service module of second equipment
Second session is stood, the third report message includes third cooperative information, and the third cooperative information is for indicating described
Second session and first session correspond to same business;
What the service module that the ASP of second equipment receives second equipment was sent according to the third report message
Second instruction message, second instruction message are used to indicate the ASP of second equipment to described in the ASP of the first equipment response
Response message.
In conjunction with the second aspect of the embodiment of the present invention, the second aspect of the embodiment of the present invention the first to the third realization
Any one in mode, in the 4th kind of implementation of the second aspect of the embodiment of the present invention, first cooperative information
Including address information of first equipment in the first network, the session identification of first session and first identifier letter
One or more of breath, wherein the identification information is that the address according to first equipment in the first network is believed
The information that breath and/or the session identification of first session obtain after being calculated.
In conjunction with the 4th kind of implementation of the second aspect of the embodiment of the present invention, in the second aspect of the embodiment of the present invention
In 5th kind of implementation, second cooperative information include address information of second equipment in the first network,
One or more of the session identification of first session and second identifier information, wherein the second identifier information is root
According to second equipment after the session identification of address information and/or first session in the first network is calculated
Obtained information;The third cooperative information includes address information of first equipment in the first network, described
One or more of the session identification of one session and first identifier information, wherein the first identifier information is according to
What the first equipment obtained after the session identification of address information and/or first session in the first network is calculated
Information.
The first in conjunction with the second aspect of the embodiment of the present invention, the second aspect of the embodiment of the present invention is realized to the 5th kind
Any one in mode, in the 6th kind of implementation of the second aspect of the embodiment of the present invention, the method also includes:
When meeting preset first switching condition, second equipment is made business corresponding to first session
Session switches to second session by first session, so that business corresponding to first session is according to
Second session carries out business transmission.
In conjunction with the 6th kind of implementation of the second aspect of the embodiment of the present invention, in the second aspect of the embodiment of the present invention
In 7th kind of implementation, preset first switching condition includes:
The signal quality of the first network is unsatisfactory for the signal quality of preset requirement or second network better than described
The signal quality of first network.
The third aspect of the embodiment of the present invention provides a kind of equipment, and the equipment is the first equipment, first equipment with
Establishing between second equipment has the first session based on first network, and first equipment includes:
Transmission unit, for when first equipment is connect by the second network with second equipment, Xiang Suoshu the
Two equipment send request message;The request message establishes the second session based on second network for requesting, described to ask
Seeking message includes the first cooperative information, and first cooperative information is corresponding for indicating second session and first session
In same business;
Receiving unit, the response message responded for receiving second equipment according to request message, the response message
For indicating that second equipment receives to establish second session with first equipment;
Unit is established, for establishing second session according to the response message and second equipment.
In conjunction with the third aspect of the embodiment of the present invention, in the first implementation of the third aspect of the embodiment of the present invention
In, first equipment further include:
First switch unit, for when meeting preset first switching condition, by industry corresponding to first session
Session used in being engaged in switches to second session by first session, so that business root corresponding to first session
Business transmission is carried out according to second session.
The fourth aspect of the embodiment of the present invention provides a kind of equipment, and the equipment is the first equipment, first equipment with
Establishing between second equipment has the first session based on first network, and first equipment includes the first ASP;
First ASP is used for when first equipment is connect by the second network with second equipment, to second
ASP sends request message, and the 2nd ASP is the ASP of second equipment, and the request message is based on institute for requesting to establish
The second session of the second network is stated, the request message includes the first cooperative information, and first cooperative information is for indicating institute
It states the second session and first session corresponds to same business;It is also used to receive the 2nd ASP according to the request message
The response message of response, the response message is for indicating that second equipment receives to establish described second with first equipment
Session;And for establishing second session according to the response message and the 2nd ASP.
In conjunction with the fourth aspect of the embodiment of the present invention, in the first implementation of the fourth aspect of the embodiment of the present invention
In, first equipment further includes first service module;
First service module in first equipment, for when meeting preset first switching condition, by described
Session used in business corresponding to one session switches to second session by first session, so that first meeting
The corresponding business of words carries out business transmission according to second session.
In conjunction with the first implementation of the fourth aspect of the embodiment of the present invention, in the fourth aspect of the embodiment of the present invention
In second of implementation,
First ASP is also used to establish second session according to the response message and the 2nd ASP described
Later, Xiang Suoshu first service module sends the first report message, and first report message is used to indicate first equipment
Second session has been had built up between second equipment;
The first service module is also used to receive first report message that the first ASP is sent.
In conjunction with the first or second kind implementation of the fourth aspect of the embodiment of the present invention, the 4th of the embodiment of the present invention the
In the third implementation of aspect,
First ASP is also used to before sending request message to the 2nd ASP, Xiang Suoshu first service module
Send the second report message, second report message is used to reporting first equipment can be with to the first service module
Second equipment establishes the second session based on second network, and second report message includes the second cooperative information,
Second cooperative information is for indicating that second session and first session correspond to same business;
The first service module is also used to after receiving the second report message that the first ASP is sent, according to
Second report message sends the first instruction message to the first ASP, and first instruction message is used to indicate described the
One equipment and second equipment establish second session;
First ASP is also used to receive first instruction message that the first service module is sent;
First ASP is used to receive the response message that the 2nd ASP is responded according to the request message, specifically:
First ASP for receive the 2nd ASP according to the request message second equipment carry out before processing operation after
The response message of response;Pre-treatment operation are as follows: the 2nd ASP is according to the request message to the second service module
Third report message is sent, the second service module is the service module of second equipment, and the third report message is used
Whether receive to establish second session with first equipment in asking for instructions to the second service module, the third report disappears
Breath includes third cooperative information, and the third cooperative information is for indicating that it is same that second session and first session correspond to
One business;2nd ASP receives the second instruction message that the first service module is sent according to the third report message,
Second instruction message is used to indicate the 2nd ASP and responds the response message to the first ASP.
5th aspect of the embodiment of the present invention provides a kind of equipment, and the equipment is the second equipment, second equipment with
Establishing between first equipment has the first session based on first network, and second equipment includes:
Receiving unit is used for when second equipment is connect by the second network with first equipment, described in reception
The request message that first equipment is sent;The request message establishes the second session based on second network, institute for requesting
Stating request message includes the first cooperative information, and first cooperative information is for indicating second session and first session
Corresponding to same business;
Response unit, for responding response message, the response message to first equipment according to the request message
For indicating that second equipment receives to establish second session with first equipment;
Unit is established, for establishing second session with first equipment.
In conjunction with the 5th aspect of the embodiment of the present invention, in the first implementation of the 5th aspect of the embodiment of the present invention
In, second equipment further include:
First switch unit, for when meeting preset first switching condition, by industry corresponding to first session
Session used in being engaged in switches to second session by first session, so that business root corresponding to first session
Business transmission is carried out according to second session.
6th aspect of the embodiment of the present invention provides a kind of equipment, and the equipment is the second equipment, second equipment with
Establishing between first equipment has the first session based on first network, and second equipment includes the 2nd ASP;
2nd ASP, for when second equipment is connect by the second network with first equipment, reception the
The request message that one ASP is sent, the first ASP are the ASP of first equipment, and the request message establishes base for requesting
In the second session of second network, the request message includes the first cooperative information, and first cooperative information is used for table
Show that second session and first session correspond to same business;It is also used to according to the request message to described first
ASP responds response message, and the response message is for indicating that second equipment receives to establish described the with first equipment
Two sessions;And for establishing second session with the first ASP.
In conjunction with the 6th aspect of the embodiment of the present invention, in the first implementation of the 6th aspect of the embodiment of the present invention
In, second equipment further includes second service module;
The second service module will be corresponding to first session for when meeting preset first switching condition
Business used in session second session switched to by first session so that industry corresponding to first session
Business carries out business transmission according to second session.
In conjunction with the first implementation of the 6th aspect of the embodiment of the present invention, in terms of the 6th of the embodiment of the present invention
In second of implementation,
2nd ASP is also used to send the first report message, first report message to the second service module
It is used to indicate between second equipment and first equipment and has had built up second session;
The second service module is also used to receive first report message that the 2nd ASP is sent.
In conjunction with the first or second kind implementation of the 6th aspect of the embodiment of the present invention, the 6th of the embodiment of the present invention the
In the third implementation of aspect,
2nd ASP is used to receive the request message of the first ASP transmission, specifically: the 2nd ASP is for receiving institute
It states the first ASP and carries out the request message sent after pretreatment operation in the first equipment;The pretreatment operation are as follows: described first
ASP sends the second report message to first service module, and the first service module is the service module of first equipment, institute
The second report message is stated for reporting first equipment that can establish base with second equipment to the first service module
In the second session of second network, second report message includes the second cooperative information, and second cooperative information is used
Correspond to same business in expression second session and first session;First ASP receives the first service mould
The first instruction message that root tuber is sent according to second report message, first instruction message are used to indicate first equipment
Second session is established with second equipment;
2nd ASP is also used to after the request message that the 2nd ASP receives that the first ASP is sent, institute
It states before the 2nd ASP responds response message to the first ASP according to the request message, according to the request message to described second
Service module send third report message, the third report message for asked for instructions to the second service module whether receive with
First equipment establishes second session, and the third report message includes third cooperative information, the third cooperation letter
Breath is for indicating that second session and first session correspond to same business;
The second service module is also used to after receiving the third report message that the 2nd ASP is sent, root
According to the second instruction message that the third report message is sent to the 2nd ASP, second instruction message is used to indicate institute
It states the 2nd ASP and responds the response message to the first ASP;
2nd ASP is also used to receive second instruction message that the second service module is sent.
7th aspect of the embodiment of the present invention provides a kind of transaction processing system, comprising:
First equipment and the second equipment;Establishing between first equipment and second equipment has based on first network
First session;
First equipment is used for when first equipment is connect by the second network with second equipment, to institute
It states the second equipment and sends request message;The request message establishes the second session based on second network, institute for requesting
Stating request message includes the first cooperative information, and first cooperative information is for indicating second session and first session
Corresponding to same business;It is also used to receive the response message that second equipment is responded according to the request message, the response
Message is for indicating that second equipment receives to establish second session with first equipment;And for according to the sound
Message and second equipment is answered to establish second session.
Second equipment is used for when the equipment is connect by the second network with the target device, described in reception
The request message that target device is sent;It is also used to respond the response message to the first equipment according to the request message;And
For establishing second session with the target device.
In conjunction with the 7th aspect of the embodiment of the present invention, in the first implementation of the 7th aspect of the embodiment of the present invention
In,
First equipment or second equipment are also used to described first when meeting preset first switching condition
Session used in business corresponding to session switches to second session by first session, so that first session
Corresponding business carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
First equipment includes the first cooperative information in the request message sent to the second equipment, and first cooperative information is for indicating institute
It states the second session and the first session corresponds to same business, and after the response message for receiving the response of the second equipment, set with second
It is standby to establish second session, so that the first equipment is based on the second network and right corresponding to the first session institute with the foundation of the second equipment room
Second session of the business answered.Therefore compared with the existing technology, the embodiment of the present invention is directed to same industry by establishing in equipment room
Business and the second session based on the second network, bad or when be switched, the equipment that signal quality can occurs in first network
Between the first session corresponding to business can continue to run in the second network, with guarantee business transmission reliability, effectively mention
High service transmission quality, and can be improved network resource utilization, avoid the waste of Internet resources.
Description and claims of this specification and term " first ", " second ", " third " " in above-mentioned attached drawing
The (if present)s such as four " are to be used to distinguish similar objects, without being used to describe a particular order or precedence order.It should manage
The data that solution uses in this way are interchangeable under appropriate circumstances, so that the embodiments described herein can be in addition to illustrating herein
Or the sequence other than the content of description is implemented.In addition, term " includes " and " having " and their any deformation, it is intended that
Cover it is non-exclusive include, for example, containing the process, method, system, product or equipment of a series of steps or units need not limit
In step or unit those of is clearly listed, but may include be not clearly listed or for these process, methods, produce
The other step or units of product or equipment inherently.
Firstly, it is necessary to it is clear that, in following each embodiments of the present invention, between the first equipment and the second equipment
It is set up the first session based on first network.It is understood that having been had built up in the first equipment and second equipment
When connection based on first network, a set of address based on first network is can be used in the first equipment and second equipment, i.e., should
First address of the first address of the first equipment and second equipment, and using a set of address based on first network establish this
One session.After first session establishment, the first equipment is attached and transmits data by first session with the second equipment,
To realize business transmission of the business corresponding to the first session between the first equipment and the second equipment.It is understood that
In the present invention, address may include IP address or MAC Address etc., and each embodiment can select which kind of is used according to the actual situation
The address of type, specifically herein without limitation.It should be noted that first network and the second network can be two different types
Network, for example, cable network, WI-FI, bluetooth, NFC and Powerline etc., are also possible to same type but have heterogeneous networks
The network of structure, such as the P2P network based on WI-FI and the infrastructure network based on WI-FI, wherein based on Wi-Fi's
P2P network can be the net that the Wi-Fi Direct agreement based on WFA (Wi-Fi Alliance, Wi-Fi Alliance) is set up
Network, in this case, the first equipment and the second equipment can be directly connected to;Infrastructure network based on Wi-Fi, can be base
In the network that 802.11 agreements of IEEE are set up, in this case, the first equipment and the second equipment are all connected to AP
(Access Point, access point), and communication between the two can be realized by AP.It is understood that actually answering
In, the quantity of the second network can be one or more, be not construed as limiting herein.
It should be noted that the first equipment and the second equipment can be and has in following each embodiments of the present invention
The equipment of network connecting function, such as support that the mobile phone of network connecting function, television set, server, wireless router, other are each
Kind household electrical appliance or office equipment etc..For example, the first equipment can be mobile phone, the second equipment can be television set, and access point can
To be wireless router, at this point, mobile phone can establish the infrastructure network based on Wi-Fi by wireless router with television set
Connection, and the infrastructure network based on this based on Wi-Fi establishes the first session, so that mobile phone passes through the first session handle
Broadcasting content is transferred to television set.It is emphasized that being directed to above-mentioned first equipment and the second equipment, have inside each equipment
ASP (Application Service Platform, application service platform) and service module, these modules are all inside equipment
Logic entity, realize logic function by running on the software of processor.In an equipment, ASP and service module it
Between can be communicated by way of inter-process.In equipment room, can lead between the ASP of equipment and the ASP of other equipment
The modes such as other modules and the hardware such as antenna of system are crossed to communicate.
Referring to Fig. 1, method for processing business one embodiment includes: in the embodiment of the present invention
101, when the first equipment is connect by the second network with the second equipment, the first equipment sends to the second equipment and requests
Message;
It should be noted that the application scenarios when the first equipment is connect by the second network with the second equipment can be
One equipment has just established the situation connecting based on the second network with the second equipment, such as the first equipment and the second equipment use are based on
When first session of first network carries out business transmission, both discoveries can also establish the connection based on the second network, and then two
Person establishes the connection based on the second network can execute the first equipment after the completion of the above-mentioned connection for establishing the second network at once
Request message is sent to the second equipment;It is also possible to be set up already based on second between the first device and the second device
The situation of the connection of network, can be at this time meet preset trigger condition just execute the first equipment to the second equipment transmission ask
Seek message, for example, the connection based on the second network is set up between the first equipment and the second equipment already, in the first equipment and
During second equipment carries out business transmission using the first session based on first network, the quality of the first session is found not
It is good, the first equipment, which is then triggered, to the second equipment sends request message.
It is understood that first sets when the first equipment and second equipment foundation have the connection based on the second network
Standby and second equipment can be used a set of address based on the second network, i.e., the second address of first equipment and this second set
The second standby address.It should be noted that the first equipment and the second equipment use one based on first network in first network
Address is covered, in the second network, the first equipment and the second equipment use a set of address based on the second network, and should be based on first
A set of address of network is different from a set of address based on the second network.
It should be noted that request message establishes the second session based on second network for requesting, and the request disappears
Breath includes the first cooperative information, and first cooperative information is for indicating that second session and first session correspond to same industry
Business.
102, the first equipment receives the response message that the second equipment is responded according to request message;
After the first equipment sends request message to the second equipment, the second equipment is rung according to the request message received
It answers, and responds response message to the first equipment.In the present embodiment, response message is for indicating that the receiving of the second equipment is set with first
It is standby to establish second session.
103, message and the second equipment establish the second session to the first equipment according to response;
After the response message that the first equipment receives the response of the second equipment, the first equipment and the second equipment utilization are based on second
Second session is established in a set of address of network, i.e. the first equipment and the second equipment are established based on the second network and corresponds to first
Second session of business corresponding to session.
After second session establishment, the first equipment can be attached and be transmitted by second session with the second equipment
Data to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment, but do not have in session
Having before being switched to the second session from the first session, session used in business corresponding to the first session remains the first session,
Second session can be used as the spare session for business corresponding to first session.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
First equipment includes the first cooperative information in the request message sent to the second equipment, and first cooperative information is for indicating institute
It states the second session and the first session corresponds to same business, and after the response message for receiving the response of the second equipment, set with second
It is standby to establish second session, so that the first equipment is based on the second network and right corresponding to the first session institute with the foundation of the second equipment room
Second session of the business answered.Therefore compared with the existing technology, the embodiment of the present invention is directed to same industry by establishing in equipment room
Business and the second session based on the second network, bad or when be switched, the equipment that signal quality can occurs in first network
Between the first session corresponding to business can continue to run in the second network, with guarantee business transmission reliability, effectively mention
High service transmission quality, and can be improved network resource utilization, avoid the waste of Internet resources.
It is understood that the establishment process of above-mentioned second session can be based on different signaling processes, below to being based on
The specific implementation that the first signaling process establishes the second session is described in detail, referring to Fig. 2, in the embodiment of the present invention
Another embodiment of method for processing business includes:
201, when the first equipment is connect by the second network with the second equipment, the ASP of the first equipment is to the second equipment
ASP sends confirmation version request message;
It should be noted that the application scenarios when the first equipment is connect by the second network with the second equipment can be
One equipment has just established the situation connecting based on the second network with the second equipment, such as the first equipment and the second equipment use are based on
When first session of first network carries out business transmission, both discoveries can also establish the connection based on the second network, and then two
Person establishes the connection based on the second network can execute the first equipment after the completion of the above-mentioned connection for establishing the second network at once
Request message is sent to the second equipment;It is also possible to be set up already based on second between the first device and the second device
The situation of the connection of network, can be at this time meet preset trigger condition just execute the first equipment to the second equipment transmission ask
Seek message, for example, the connection based on the second network is set up between the first equipment and the second equipment already, in the first equipment and
During second equipment carries out business transmission using the first session based on first network, the quality of the first session is found not
It is good, the first equipment, which is then triggered, to the second equipment sends request message.
It is understood that first sets when the first equipment and second equipment foundation have the connection based on the second network
Standby and second equipment can be used a set of address based on the second network, i.e., the second address of first equipment and this second set
The second standby address.It should be noted that the first equipment and the second equipment use one based on first network in first network
Address is covered, in the second network, the first equipment and the second equipment use a set of address based on the second network, and should be based on first
A set of address of network is different from a set of address based on the second network.
In the present embodiment, confirmation version request message includes the version information of the ASP of the first equipment, which asks
Ask message for confirming the ASP institute of the protocol version that the ASP of first equipment is supported and the second equipment to the ASP of the second equipment
Whether the protocol version of support matches.It should be noted that in the present embodiment, the agreement version that the ASP of the first equipment is supported
It is consistent that the case where when this is matched with protocol version that the ASP of the second equipment is supported, both can be the protocol version supported,
The second equipment can be matched by being also possible to the ASP of the second equipment its high protocol version supported under backward compatible mechanism
The low protocol version that ASP is supported.In actual application, it is fixed to be specifically as follows ASP for the version information of the ASP of the first equipment
The version information of the cooperation agreement (Coordination protocol) of justice.202, the ASP of the first equipment receives the second equipment
The confirmation version feedback message that ASP is responded according to confirmation version request message;
After the ASP of the first equipment sends confirmation version request message to the ASP of the second equipment, ASP pairs of the second equipment
Whether the protocol version that the ASP of first equipment is supported matches progress really with the protocol version that the ASP of the second equipment is supported
Recognize, and when the protocol version that the ASP of the first equipment is supported is matched with the ASP of the second equipment protocol version supported, to
The ASP of first equipment responds confirmation version feedback message, which includes the version letter of the ASP of the second equipment
Breath.Correspondingly, in actual application, the version information of the ASP of the second equipment is specifically as follows the cooperation agreement that ASP is defined
The version information of (Coordination protocol), and as the ASP of the version information of the ASP of the first equipment and the second equipment
Version information it is identical when, then confirm the association that the ASP of the protocol version that the ASP of the first equipment is supported and the second equipment is supported
It is matched for discussing version.
In the present embodiment, step 201 and step 202 are used to carry out version to the ASP of the first equipment and the ASP of the second equipment
This confirmation, the protocol version supported with the ASP of the ASP protocol version supported of the first equipment of guarantee and the second equipment
Match.It is understood that in certain specific other application scenarios, can not also the ASP to the first equipment and the second equipment ASP
Version confirmation is carried out, for example, the association that the ASP protocol version supported of the first equipment of default and the ASP of the second equipment are supported
It is matched for discussing version;Moreover, the present embodiment only by way of example to how to carry out version confirmation be described, actually answering
With in the process, the ASP of the ASP of the first equipment and the second equipment can also carry out version confirmation using other modes, herein to being
No progress version confirmation and how to carry out version confirmation be not construed as limiting.
203, the ASP of the first equipment sends request message to the ASP of the second equipment;
It should be noted that request message establishes the second session based on second network for requesting, and the request disappears
Breath includes the first cooperative information, and first cooperative information is for indicating that second session and first session correspond to same industry
Business.In the present embodiment, the first cooperative information may include that address information of first equipment in first network (is specifically as follows
IP address or MAC Address of first equipment in first network), the session identification (session_id) and first of the first session
One or more of identification information, wherein the first identifier information can ground of according to first equipment in first network
The information that location information and/or the session identification of the first session obtain after being calculated, or the first equipment is according to default rule
The identification information then generated, such as a number being randomly generated of the first equipment or the device name of the first equipment etc..This
Place is not construed as limiting the first cooperative information design parameter form, as long as meeting can allow the ASP of the second equipment to identify to be established be somebody's turn to do
Second session corresponds to business corresponding to the first session, herein without limitation.It is understood that the first cooperative information
The ASP of the second equipment can also be allowed to identify that second session to be established corresponds to the first session institute comprising multiple satisfactions simultaneously
The parameter of corresponding business, this is not limited here.
It is understood that the first cooperative information in the present embodiment is other than comprising above content, it can also be into one
Step includes other parameters, for example, the identification information or first of the first equipment address information in the second network, the second session
The service identification etc. of business corresponding to session, this is not limited here.In the present embodiment, request message can be
REQUEST_SESSION message is also possible to the message of other titles with the same function, specifically herein without limitation.
204, the ASP of the first equipment receives the response message response message that the ASP of the second equipment is responded according to request message;
After the ASP of the first equipment sends request message to the ASP of the second equipment, the ASP of the second equipment is according to receiving
Request message responded, and to the ASP of the first equipment respond response message.In the present embodiment, response message is used for table
Show that the second equipment receives to establish second session with the first equipment.It should be noted that the receiving of the second equipment is built with the first equipment
Stand second session show the second equipment can the business according to corresponding to first session open corresponding port, and by all
Such as the first equipment of ALLOWED_PORT message informing.In the present embodiment, response message can be ADDED_SESSION message,
It is also possible to the message of other titles with the same function, this is not limited here.
205, the ASP of message and the second equipment establishes the second session to the ASP of the first equipment according to response;
After the response message that the ASP that the ASP of the first equipment receives the second equipment is responded, the ASP of the first equipment and second
The ASP of equipment establishes second session using a set of address based on the second network, i.e. the ASP of the first equipment and the second equipment
ASP establishes the second session for having based on the second network and corresponding to business corresponding to the first session.Establish the tool of the second session
Body process may include that the first equipment business according to corresponding to first session opens corresponding port, and passes through such as
The second equipment of ALLOWED_PORT message informing;It simultaneously also may include that the first equipment receives the second equipment according to first session
Corresponding business opens the ALLOWED_PORT message sent behind corresponding port.The specific knot of the ALLOWED_PORT message
Structure can not repeat them here in the present embodiment with reference to the regulation in existing relevant criterion and subsequent relevant criterion.
206, the ASP of the first equipment sends the first report message to the service module of the first equipment;
In the present embodiment, which is used to indicate between the first equipment and the second equipment and has had built up this
Second session.It is understood that also correspondence is used to indicate for one the ASP of the second equipment to the transmission of the service module of the second equipment
The report message of second session is had built up between first equipment and the second equipment.It is received in the service module of the first equipment
After first report message, the service module of the first equipment can identify second session that presence can be spare, and as needed
Data are attached and transmit by the service module of second session and the second equipment, to realize industry corresponding to the first session
The business transmission being engaged between the first equipment and the second equipment.
It is understood that in the present embodiment, the execution opportunity for sending the first report message can be after step 205
It is immediately performed, is also possible to just execute after determination meets preset first switching condition, is not construed as limiting, need to only guarantee herein
Post-processing operation has been completed when executing session switching.
Optionally, after step 206, the present embodiment can also further comprise:
207, when meeting preset first switching condition, the service module of the first equipment is by industry corresponding to the first session
Session used in being engaged in switches to the second session by the first session;
After sending the first report message, session used in business corresponding to the first session remains the first session,
Second session is as the spare session for business corresponding to first session.When meeting preset first switching condition,
Session used in business corresponding to first session is switched to the second session by the first session by the service module of the first equipment,
So that business corresponding to the first session carries out business transmission according to the second session.It is understood that in concrete application process
In, step 206 can not be executed first, but: when meeting preset first switching condition, step 206 is executed, the first equipment
Session used in business corresponding to first session is switched to the second session by the first session by service module, so that the first meeting
The corresponding business of words carries out business transmission according to the second session.
In the present embodiment, above-mentioned preset first switching condition may include first network signal quality be unsatisfactory for it is pre-
If it is required that or the second network signal quality be better than first network signal quality, it is to be understood that in practical applications, in advance
If the first switching condition can also include various ways, such as the first equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
208, when meeting preset second switching condition, the service module of the first equipment is by industry corresponding to the first session
Session used in being engaged in switches to the first session by the second session;
Session used in business corresponding to the first session is switched into the second session by the first session in the first equipment
Later, when meeting preset second switching condition, the service module of the first equipment is made business corresponding to the first session
Session switches to the first session by the second session, so that business corresponding to the first session carries out business according to the first session
Transmission.
In the present embodiment, above-mentioned preset second switching condition may include the second network signal quality be unsatisfactory for it is pre-
If it is required that or first network signal quality be better than the second network signal quality, it is to be understood that in practical applications, in advance
If the second switching condition can also include various ways, such as the first equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
The ASP of first equipment includes the first cooperative information, first cooperative information in the request message sent to the ASP of the second equipment
For indicating that the second session and the first session correspond to same business, and the response message responded in the ASP for receiving the second equipment
Afterwards, second session is established with the ASP equipment of the second network, so that establishing between the ASP of the first equipment and the ASP of the second equipment
Based on the second network and correspond to the second session of business corresponding to the first session, the service module of the first equipment is receiving the
After the first report message that the ASP of one equipment is sent can as desired by the service module of the second session and the second equipment into
Row connection and transmission data, to realize that business of the business corresponding to the first session between the first equipment and the second equipment passes
It is defeated.Therefore compared with the existing technology, the embodiment of the present invention in equipment room by establishing for same business and being based on the second network
The second session, can occur that signal quality is bad or when be switched, and the first session institute of equipment room is right in first network
The business answered can continue to run in the second network, to guarantee the reliability of business transmission, effectively improve service transmission quality, and
It can be improved network resource utilization, avoid the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The specific implementation for establishing the second session based on second of signaling process is described in detail below, is please referred to
Fig. 3, another embodiment of method for processing business includes: in the embodiment of the present invention
301, when the first equipment is connect by the second network with the second equipment, the first equipment executes pretreatment operation;
It should be noted that the application scenarios when the first equipment is connect by the second network with the second equipment can be
One equipment has just established the situation connecting based on the second network with the second equipment, such as the first equipment and the second equipment use are based on
When first session of first network carries out business transmission, both discoveries can also establish the connection based on the second network, and then two
Person establishes the connection based on the second network can execute the first equipment after the completion of the above-mentioned connection for establishing the second network at once
Request message is sent to the second equipment;It is also possible to be set up already based on second between the first device and the second device
The situation of the connection of network, can be at this time meet preset trigger condition just execute the first equipment to the second equipment transmission ask
Seek message, for example, the connection based on the second network is set up between the first equipment and the second equipment already, in the first equipment and
During second equipment carries out business transmission using the first session based on first network, the quality of the first session is found not
It is good, the first equipment, which is then triggered, to the second equipment sends request message.
It is understood that first sets when the first equipment and second equipment foundation have the connection based on the second network
Standby and second equipment can be used a set of address based on the second network, i.e., the second address of first equipment and this second set
The second standby address.It should be noted that the first equipment and the second equipment use one based on first network in first network
Address is covered, in the second network, the first equipment and the second equipment use a set of address based on the second network, and should be based on first
A set of address of network is different from a set of address based on the second network.
In the present embodiment, pretreatment operation are as follows: the ASP of the first equipment sends the second report to the service module of the first equipment
Message is accused, which is used to report the first equipment that can establish base with the second equipment to the service module of the first equipment
In the second session of the second network, which includes second cooperative information;The ASP of first equipment receives first and sets
The first instruction message that standby service module is sent according to the second report message, the first instruction message be used to indicate the first equipment with
Second equipment establishes the second session.
In the present embodiment, second cooperative information is for indicating that second session and first session correspond to same industry
Business, the second cooperative information includes that address information of second equipment in first network (is specifically as follows the first equipment in the first net
IP address or MAC Address in network), one in the session identification (session_id) and second identifier information of the first session
It is or multiple, wherein second identifier information can address information and/or first session of according to second equipment in first network
Session identification calculated after obtained information, or the first equipment is believed according to the mark that preset rules generate
Breath, such as a number being randomly generated of the first equipment or the device name of the first equipment etc..Have herein to the second cooperative information
Body parametric form is not construed as limiting, as long as meeting can allow the service module of the first equipment to identify that second session to be established corresponds to
Business corresponding to first session, herein without limitation.It should be noted that the ASP of the first equipment detect this
When two networks, address information of available second equipment of the ASP of the first equipment in first network, specific acquisition modes are existing
There is technology, details are not described herein again.
In practical applications, which can be SearchResult message, which can be with
For ConnectSessions.
302, the ASP of the first equipment sends confirmation version request message to the ASP of the second equipment.
303, the ASP of the first equipment receives the confirmation version that the ASP of the second equipment is responded according to confirmation version request message
Feedback message;
In the present embodiment, step 302 and step 303 are used to carry out version to the ASP of the first equipment and the ASP of the second equipment
This confirmation, detailed process is identical as step 201 shown in Fig. 2 and step 202 process, and details are not described herein.It is understood that
Be, in certain specific other application scenarios, can not also the ASP of the ASP to the first equipment and the second equipment carry out version confirmation,
For example, the protocol version supported of ASP of the first equipment of default is to match with the ASP of the second equipment protocol version supported
's;Moreover, the present embodiment is only described to how carrying out version confirmation by way of example, and in actual application, the
The ASP of the one equipment and ASP of the second equipment can also carry out version confirmation using other modes, herein to whether to carry out version true
Recognize and how to carry out version confirmation and is not construed as limiting.
304, the ASP of the first equipment sends request message to the ASP of the second equipment;
It should be noted that request message establishes the second session based on second network for requesting, and the request disappears
Breath includes the first cooperative information, and first cooperative information is for indicating that second session and first session correspond to same industry
Business.In the present embodiment, the first cooperative information may include that address information of first equipment in first network (is specifically as follows
IP address or MAC Address of first equipment in first network), the session identification (session_id) and first of the first session
One or more of identification information, wherein the first identifier information can ground of according to first equipment in first network
The information that location information and/or the session identification of the first session obtain after being calculated, or the first equipment is according to default rule
The identification information then generated, such as a number being randomly generated of the first equipment or the device name of the first equipment etc..This
Place is not construed as limiting the first cooperative information design parameter form, as long as meeting can allow the ASP of the second equipment to identify to be established be somebody's turn to do
Second session corresponds to business corresponding to the first session, herein without limitation.It is understood that the first cooperative information
The ASP of the second equipment can also be allowed to identify that second session to be established corresponds to the first session institute comprising multiple satisfactions simultaneously
The parameter of corresponding business, this is not limited here.
It is understood that the first cooperative information in the present embodiment is other than comprising above content, it can also be into one
Step includes other parameters, for example, the identification information or first of the first equipment address information in the second network, the second session
The service identification etc. of business corresponding to session, this is not limited here.In the present embodiment, request message can be
REQUEST_SESSION message is also possible to the message of other titles with the same function, specifically herein without limitation.
305, the ASP that the ASP of the first equipment receives the second equipment handles behaviour before the second equipment carries out according to request message
The response message responded after work;
In the present embodiment, response message is for indicating that the second equipment receives to establish second session with the first equipment.It needs
It is noted that the second equipment receives and the first equipment establishes second session and shows that the second equipment can be according to first session
Corresponding business opens corresponding port, and passes through such as the first equipment of ALLOWED_PORT message informing.
It should be noted that in the present embodiment, pre-treatment operation specifically: the ASP of the second equipment is according to request message
Third report message is sent to the service module of the second equipment, third report message to the service module of the second equipment for asking for instructions
Whether receive to establish the second session with the first equipment, third report message includes third cooperative information, and third cooperative information is used for
Indicate that the second session and the first session correspond to same business;The ASP of second equipment receive the service module of the second equipment according to
The second instruction message that third report message is sent, the second instruction message are used to indicate the ASP of the second equipment to the first equipment
ASP responds response message.
It is understood that above-mentioned third cooperative information may include address information of first equipment in first network
The session identification of (being specifically as follows IP address or MAC Address of first equipment in first network), the first session
(session_id) and one or more of first identifier information, wherein the first identifier information according to first can be set
The information that the session identification of standby address information and/or the first session in first network obtains after being calculated, or
The identification information that first equipment is generated according to preset rules, such as the number or first that the first equipment is randomly generated
The device name etc. of equipment.In practical applications, third cooperative information can be the first cooperative information for including in request message.
In practical applications, which can be SessionRequest message, which can
Think ConfirmSession message, which can be ADDED_SESSION message, be also possible to identical function
Other titles message, this is not limited here.
306, the ASP of message and the second equipment establishes the second session to the ASP of the first equipment according to response;
In the response message that the ASP of the first equipment is responded by the service module that the ASP of the second equipment receives the second equipment
Afterwards, the ASP of the first equipment and ASP of the second equipment establishes second session using a set of address based on the second network, i.e., and the
The ASP of one equipment and the ASP of the second equipment, which are established, to be had based on the second network and corresponds to the of business corresponding to the first session
Two sessions.The detailed process for establishing the second session may include that the first equipment business according to corresponding to first session opens phase
The port answered, and pass through such as the second equipment of ALLOWED_PORT message informing;It simultaneously also may include that the first equipment receives the
Two equipment business according to corresponding to first session opens the ALLOWED_PORT message sent behind corresponding port.It should
The specific structure of ALLOWED_PORT message does not repeat them here in the present embodiment see the prior art.
It should be noted that in the present embodiment, due in the pretreatment operation of step 301, the ASP of the first equipment is to
The service module of one equipment is transmitted across the second report message (for reporting the first equipment can be with to the service module of the first equipment
Second equipment establishes the second session based on the second network), and in the pre-treatment operation of step 305 second equipment ASP to the
The service module of two equipment is transmitted across whether third report message (receives and first for asking for instructions to the service module of the second equipment
Equipment establishes the second session), therefore, after the ASP of the ASP of the first equipment and the second equipment establishes second session, the first equipment
ASP no longer need to send to the service module of the first equipment and be used to indicate between the first equipment and the second equipment and had built up this
The report message of second session, in this application scene, which is established, and the service module of the first equipment can identify
In the presence of second session that can be spare, and be attached as desired by the service module of second session and the second equipment and
Data are transmitted, to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment.
Optionally, after step 306, the present embodiment can also further comprise:
307, when meeting preset first switching condition, the service module of the first equipment is by industry corresponding to the first session
Session used in being engaged in switches to the second session by the first session;
After the ASP of the first equipment and the ASP of the second equipment establish second session, the institute of business corresponding to the first session
The session used remains the first session, and the second session is as the spare session for business corresponding to first session.When
When meeting preset first switching condition, the service module of the first equipment is by session used in business corresponding to the first session
Second session is switched to by the first session, so that business corresponding to the first session carries out business transmission according to the second session.
In the present embodiment, above-mentioned preset first switching condition may include first network signal quality be unsatisfactory for it is pre-
If it is required that or the second network signal quality be better than first network signal quality, it is to be understood that in practical applications, in advance
If the first switching condition can also include various ways, such as the second equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
308, when meeting preset second switching condition, the service module of the first equipment is by industry corresponding to the first session
Session used in being engaged in switches to the first session by the second session;
Session used in business corresponding to the first session is switched into the second session by the first session in the first equipment
Later, when meeting preset second switching condition, the service module of the first equipment is made business corresponding to the first session
Session switches to the first session by the second session, so that business corresponding to the first session carries out business according to the first session
Transmission.
In the present embodiment, above-mentioned preset second switching condition may include the second network signal quality be unsatisfactory for it is pre-
If it is required that or first network signal quality be better than the second network signal quality, it is to be understood that in practical applications, in advance
If the second switching condition can also include various ways, such as the first equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
The ASP of first equipment first passes through execution pretreatment operation and reports the first equipment that can set with second to the service module of the first equipment
It is standby to establish the second session based on the second network, and just start to send request after obtaining the instruction of service module of the first equipment
Message, and include the first cooperative information in the request message sent to the ASP of the second equipment, first cooperative information is for indicating
Second session and the first session correspond to same business, and locate before the second equipment carries out in the ASP for receiving the second equipment
After the response message responded after reason operation, second session is established with the ASP equipment of the second network, so that the ASP of the first equipment
The second session of business corresponding to the first session is established based on the second network and corresponded between the ASP of the second equipment, and
Second session one is established, and the service module of the first equipment can identify second session that presence can be spare, and as needed
Data are attached and transmit by the service module of second session and the second equipment, to realize industry corresponding to the first session
The business transmission being engaged between the first equipment and the second equipment.The embodiment of the present invention is directed to same business by establishing in equipment room
And the second session based on the second network, bad or when be switched, the equipment room that signal quality can occurs in first network
The first session corresponding to business can continue to run in the second network, with guarantee business transmission reliability, effectively improve
Service transmission quality, and can be improved network resource utilization, avoid the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
Fig. 1 to embodiment shown in Fig. 3 is described from the angle of the first equipment, below from the angle pair of the second equipment
The embodiment of the present invention is described in detail, referring specifically to Fig. 4, another embodiment packet of method for processing business in the embodiment of the present invention
It includes:
401, when the first equipment is connect by the second network with the second equipment, the second equipment receives what the first equipment was sent
Request message;
It should be noted that the application scenarios when the first equipment is connect by the second network with the second equipment can be
One equipment has just established the situation connecting based on the second network with the second equipment, such as the first equipment and the second equipment use are based on
When first session of first network carries out business transmission, both discoveries can also establish the connection based on the second network, and then two
Person establishes the connection based on the second network can execute the first equipment after the completion of the above-mentioned connection for establishing the second network at once
Request message is sent to the second equipment;It is also possible to be set up already based on second between the first device and the second device
The situation of the connection of network, can be at this time meet preset trigger condition just execute the first equipment to the second equipment transmission ask
Seek message, for example, the connection based on the second network is set up between the first equipment and the second equipment already, in the first equipment and
During second equipment carries out business transmission using the first session based on first network, the quality of the first session is found not
It is good, the first equipment, which is then triggered, to the second equipment sends request message.
It is understood that first sets when the first equipment and second equipment foundation have the connection based on the second network
Standby and second equipment can be used a set of address based on the second network, i.e., the second address of first equipment and this second set
The second standby address.It should be noted that the first equipment and the second equipment use one based on first network in first network
Address is covered, in the second network, the first equipment and the second equipment use a set of address based on the second network, and should be based on first
A set of address of network is different from a set of address based on the second network.
It should be noted that request message establishes the second session based on second network for requesting, and the request disappears
Breath includes the first cooperative information, and first cooperative information is for indicating that second session and first session correspond to same industry
Business.
402, the second equipment responds response message to the first equipment according to request message;
I.e. the second equipment is responded according to the request message received, and responds response message to the first equipment.At this
In embodiment, response message is for indicating that the second equipment receives to establish second session with the first equipment.
403, the second equipment and the first equipment establish the second session;
After the response message that the first equipment receives the response of the second equipment, the second equipment utilization is a set of based on the second network
Address and the second equipment establish second session, i.e. the first equipment and the foundation of the second equipment have based on the second network and corresponds to the
Second session of business corresponding to one session.
After second session establishment, the first equipment can be attached and be transmitted by second session with the second equipment
Data to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment, but are not being cut
Before changing, session used in business corresponding to the first session remains the first session, and the second session, which is used as, is directed to first meeting
The spare session of the corresponding business of words.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
Second equipment receives the request message that the first equipment is sent, and includes the first cooperative information in the request message, the first cooperation letter
It ceases for indicating that second session and the first session correspond to same business, and after responding response message to the first equipment,
Second session is established with the first equipment, so that the first equipment and the second equipment room are established based on the second network and correspond to first
Second session of business corresponding to session.Therefore compared with the existing technology, the embodiment of the present invention is by establishing needle in equipment room
To same business and based on the second session of the second network, it is bad or situations such as be switched can to there is signal quality in first network
When, business corresponding to the first session of equipment room can continue to run in the second network, to guarantee the reliability of business transmission,
Service transmission quality is effectively improved, and can be improved network resource utilization, avoids the waste of Internet resources.
Below for the specific implementation for establishing the second session based on the first signaling process, from the angle of the second equipment
The embodiment of the present invention is described in detail, referring specifically to Fig. 5, another embodiment of method for processing business in the embodiment of the present invention
Include:
501, when the first equipment is connect by the second network with the second equipment, the ASP of the second equipment receives the first equipment
ASP send confirmation version request message;
It should be noted that the application scenarios when the first equipment is connect by the second network with the second equipment can be
One equipment has just established the situation connecting based on the second network with the second equipment, such as the first equipment and the second equipment use are based on
When first session of first network carries out business transmission, both discoveries can also establish the connection based on the second network, and then two
Person establishes the connection based on the second network can execute the first equipment after the completion of the above-mentioned connection for establishing the second network at once
Request message is sent to the second equipment;It is also possible to be set up already based on second between the first device and the second device
The situation of the connection of network, can be at this time meet preset trigger condition just execute the first equipment to the second equipment transmission ask
Seek message, for example, the connection based on the second network is set up between the first equipment and the second equipment already, in the first equipment and
During second equipment carries out business transmission using the first session based on first network, the quality of the first session is found not
It is good, the first equipment, which is then triggered, to the second equipment sends request message.
It is understood that first sets when the first equipment and second equipment foundation have the connection based on the second network
Standby and second equipment can be used a set of address based on the second network, i.e., the second address of first equipment and this second set
The second standby address.It should be noted that the first equipment and the second equipment use one based on first network in first network
Address is covered, in the second network, the first equipment and the second equipment use a set of address based on the second network, and should be based on first
A set of address of network is different from a set of address based on the second network.
In the present embodiment, confirmation version request message includes the version information of the ASP of the first equipment, which asks
Ask message for confirming the ASP institute of the protocol version that the ASP of first equipment is supported and the second equipment to the ASP of the second equipment
Whether the protocol version of support matches.It should be noted that in the present embodiment, the agreement version that the ASP of the first equipment is supported
It is consistent that the case where when this is matched with protocol version that the ASP of the second equipment is supported, both can be the protocol version supported,
The second equipment can be matched by being also possible to the ASP of the second equipment its high protocol version supported under backward compatible mechanism
The low protocol version that ASP is supported.In actual application, it is fixed to be specifically as follows ASP for the version information of the ASP of the first equipment
The version information of the cooperation agreement (Coordination protocol) of justice.
502, the ASP of the second equipment responds confirmation version feedback to the ASP of the first equipment according to confirmation version request message
Message;
After the confirmation version request message that the ASP that the ASP of the second equipment receives the first equipment is sent, the second equipment
The protocol version that ASP supports the ASP of first equipment and the protocol version that the ASP of the second equipment is supported whether match into
Row confirmation, and the protocol version supported in the ASP of the first equipment is matched with the ASP of the second equipment protocol version supported
When, confirmation version feedback message is responded to the ASP of the first equipment, which includes the ASP's of the second equipment
Version information.Correspondingly, in actual application, the version information of the ASP of the second equipment is specifically as follows the conjunction that ASP is defined
Make the version information of agreement (Coordination protocol), and the version information and the second equipment of the ASP when the first equipment
ASP version information it is identical when, then confirm that the ASP of the protocol version that the ASP of the first equipment is supported and the second equipment is propped up
The protocol version held is matched.
In the present embodiment, step 501 and step 502 are used to carry out version to the ASP of the first equipment and the ASP of the second equipment
This confirmation, the protocol version supported with the ASP of the ASP protocol version supported of the first equipment of guarantee and the second equipment
Match.It is understood that in certain specific other application scenarios, can not also the ASP to the first equipment and the second equipment ASP
Version confirmation is carried out, for example, the association that the ASP protocol version supported of the first equipment of default and the ASP of the second equipment are supported
It is matched for discussing version;Moreover, the present embodiment only by way of example to how to carry out version confirmation be described, actually answering
With in the process, the ASP of the ASP of the first equipment and the second equipment can also carry out version confirmation using other modes, herein to being
No progress version confirmation and how to carry out version confirmation be not construed as limiting.
503, the ASP of the second equipment receives the request message that the ASP of the first equipment is sent;
It should be noted that request message establishes the second session based on second network for requesting, and the request disappears
Breath includes the first cooperative information, and first cooperative information is for indicating that second session and first session correspond to same industry
Business.In the present embodiment, the first cooperative information may include that address information of first equipment in first network (is specifically as follows
IP address or MAC Address of first equipment in first network), the session identification (session_id) and first of the first session
One or more of identification information, wherein the first identifier information can ground of according to first equipment in first network
The information that location information and/or the session identification of the first session obtain after being calculated, or the first equipment is according to default rule
The identification information then generated, such as a number being randomly generated of the first equipment or the device name of the first equipment etc..This
Place is not construed as limiting the first cooperative information design parameter form, as long as meeting can allow the ASP of the second equipment to identify to be established be somebody's turn to do
Second session corresponds to business corresponding to the first session, herein without limitation.It is understood that the first cooperative information
The ASP of the second equipment can also be allowed to identify that second session to be established corresponds to the first session institute comprising multiple satisfactions simultaneously
The parameter of corresponding business, this is not limited here.
It is understood that the first cooperative information in the present embodiment is other than comprising above content, it can also be into one
Step includes other parameters, for example, the identification information or first of the first equipment address information in the second network, the second session
The service identification etc. of business corresponding to session, this is not limited here.In the present embodiment, request message can be
REQUEST_SESSION message is also possible to the message of other titles with the same function, and this is not limited here.
504, the ASP of the second equipment responds response message to the ASP of the first equipment according to request message;
After the request message that the ASP that the ASP of the second equipment receives the first equipment is sent, the ASP of the second equipment is according to connecing
The request message received is responded, and responds response message to the ASP of the first equipment.In the present embodiment, response message is used
Receive to establish second session with the first equipment in the second equipment of expression.It should be noted that the receiving of the second equipment is set with first
It is standby establish second session show the second equipment can the business according to corresponding to first session open corresponding port, and lead to
Cross such as the first equipment of ALLOWED_PORT message informing.In the present embodiment, response message can disappear for ADDED_SESSION
Breath, is also possible to the message of other titles with the same function, this is not limited here.
505, the ASP of the second equipment and the ASP of the first equipment establish the second session;
After the response message that the ASP that the ASP of the first equipment receives the second equipment is responded, the ASP of the second equipment and first
The ASP of equipment establishes second session using a set of address based on the second network, i.e. the ASP of the second equipment and the first equipment
ASP establishes the second session for having based on the second network and corresponding to business corresponding to the first session.Establish the tool of the second session
Body process may include that the first equipment business according to corresponding to first session opens corresponding port, and passes through such as
The second equipment of ALLOWED_PORT message informing;It simultaneously also may include that the first equipment receives the second equipment according to first session
Corresponding business opens the ALLOWED_PORT message sent behind corresponding port.The specific knot of the ALLOWED_PORT message
Structure can not repeat them here in the present embodiment with reference to the regulation in existing relevant criterion and subsequent relevant criterion.
506, the second equipment sends the first report message to the service module of the first equipment;
In the present embodiment, which is used to indicate between the first equipment and the second equipment and has had built up this
Second session.It is understood that also correspondence is used to indicate for one the ASP of the first equipment to the transmission of the service module of the first equipment
The report message of second session is had built up between first equipment and the second equipment.It is received in the service module of the second equipment
After first report message, the service module of the second equipment can identify second session that presence can be spare, and as needed
Data are attached and transmit by the service module of second session and the second equipment, to realize industry corresponding to the first session
The business transmission being engaged between the first equipment and the second equipment.
It is understood that in the present embodiment, the execution opportunity for sending the first report message can be after step 205
It is immediately performed, is also possible to just execute after determination meets preset first switching condition, is not construed as limiting, need to only guarantee herein
Post-processing operation has been completed when executing session switching.
Optionally, after procedure 506, the present embodiment can also further comprise:
507, when meeting preset first switching condition, the service module of the second equipment is by industry corresponding to the first session
Session used in being engaged in switches to the second session by the first session;
After sending the first report message, session used in business corresponding to the first session remains the first session,
Second session is as the spare session for business corresponding to first session.When meeting preset first switching condition,
Session used in business corresponding to first session is switched to the second session by the first session by the service module of the second equipment,
So that business corresponding to the first session carries out business transmission according to the second session.It is understood that in concrete application process
In, step 206 can not be executed first, but: when meeting preset first switching condition, step 206 is executed, the first equipment
Session used in business corresponding to first session is switched to the second session by the first session by service module, so that the first meeting
The corresponding business of words carries out business transmission according to the second session.
In the present embodiment, above-mentioned preset first switching condition may include first network signal quality be unsatisfactory for it is pre-
If it is required that or the second network signal quality be better than first network signal quality, it is to be understood that in practical applications, in advance
If the first switching condition can also include various ways, such as the second equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
508, when meeting preset second switching condition, the service module of the second equipment is by industry corresponding to the first session
Session used in being engaged in switches to the first session by the second session;
Session used in business corresponding to the first session is switched into the second session by the first session in the second equipment
Later, when meeting preset second switching condition, the service module of the second equipment is made business corresponding to the first session
Session switches to the first session by the second session, so that business corresponding to the first session carries out business according to the first session
Transmission.
In the present embodiment, above-mentioned preset second switching condition may include the second network signal quality be unsatisfactory for it is pre-
If it is required that or first network signal quality be better than the second network signal quality, it is to be understood that in practical applications, in advance
If the second switching condition can also include various ways, such as the first equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
The ASP of second equipment receives the request message that the ASP of the first equipment is sent, and includes the first cooperative information in the request message, should
First cooperative information is responded for indicating that the second session and the first session correspond to same business to the ASP of the first equipment
After response message, second session is established with the ASP of the first equipment, so that between the ASP of the second equipment and the ASP of the first equipment
The second session of business corresponding to the first session is established based on the second network and corresponds to, the service module of the second equipment is connecing
Receive the second equipment ASP send the first report message after can be as desired by the service mould of the second session and the first equipment
Block is attached and transmits data, to realize business of the business between the first equipment and the second equipment corresponding to the first session
Transmission.The embodiment of the present invention, can be the by establishing in equipment room for same business and based on the second session of the second network
One network occurs that signal quality is bad or when being switched, and business corresponding to the first session of equipment room can be in the second net
It is continued to run in network, to guarantee the reliability of business transmission, effectively improves service transmission quality, and can be improved Internet resources benefit
With rate, the waste of Internet resources is avoided.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
Below for the specific implementation for establishing the second session based on second of signaling process, from the angle of the second equipment
The embodiment of the present invention is described in detail, referring specifically to Fig. 6, another embodiment of method for processing business in the embodiment of the present invention
Include:
In the present embodiment, when the first equipment is connect by the second network with the second equipment, the first equipment executes pre- place
Reason operation;
It should be noted that the application scenarios when the first equipment is connect by the second network with the second equipment can be
One equipment has just established the situation connecting based on the second network with the second equipment, such as the first equipment and the second equipment use are based on
When first session of first network carries out business transmission, both discoveries can also establish the connection based on the second network, and then two
Person establishes the connection based on the second network can execute the first equipment after the completion of the above-mentioned connection for establishing the second network at once
Request message is sent to the second equipment;It is also possible to be set up already based on second between the first device and the second device
The situation of the connection of network, can be at this time meet preset trigger condition just execute the first equipment to the second equipment transmission ask
Seek message, for example, the connection based on the second network is set up between the first equipment and the second equipment already, in the first equipment and
During second equipment carries out business transmission using the first session based on first network, the quality of the first session is found not
It is good, the first equipment, which is then triggered, to the second equipment sends request message.
It is understood that first sets when the first equipment and second equipment foundation have the connection based on the second network
Standby and second equipment can be used a set of address based on the second network, i.e., the second address of first equipment and this second set
The second standby address.It should be noted that the first equipment and the second equipment use one based on first network in first network
Address is covered, in the second network, the first equipment and the second equipment use a set of address based on the second network, and should be based on first
A set of address of network is different from a set of address based on the second network.
In the present embodiment, pretreatment operation are as follows: the ASP of the first equipment sends the second report to the service module of the first equipment
Message is accused, which is used to report the first equipment that can establish base with the second equipment to the service module of the first equipment
In the second session of the second network, which includes the second cooperative information;The ASP of first equipment receives the first equipment
The first instruction message for being sent according to the second report message of service module, the first instruction message is used to indicate the first equipment and the
Two equipment establish the second session.In the present embodiment, second cooperative information is for indicating second session and first session
Corresponding to same business, the second cooperative information includes that address information of second equipment in first network (is specifically as follows first
IP address or MAC Address of the equipment in first network), the session identification (session_id) of the first session and second identifier
One or more of information, wherein second identifier information can address information of according to second equipment in first network
And/or first session session identification calculated after obtained information, or the first equipment is generated according to preset rules
An identification information, such as a number being randomly generated of the first equipment or the device name of the first equipment etc..Herein to
Two cooperative information design parameter forms are not construed as limiting, as long as meeting can allow the service module of the first equipment to identify to be established this
Two sessions correspond to business corresponding to the first session, herein without limitation.It should be noted that in the first equipment
When ASP detects second network, address information of available second equipment of the ASP of the first equipment in first network, tool
Body acquisition modes are the prior art, and details are not described herein again.
In practical applications, which can be SearchResult message, which can be with
For ConnectSessions.
601, the ASP of the second equipment receives the confirmation version request message that the ASP of the first equipment is sent.
602, the ASP of the second equipment responds confirmation version feedback to the ASP of the first equipment according to confirmation version request message
Message;
In the present embodiment, step 601 and step 602 are used to carry out version to the ASP of the first equipment and the ASP of the second equipment
This confirmation, detailed process is identical as step 601 shown in fig. 5 and step 602 process, and details are not described herein.It is understood that
Be, in certain specific other application scenarios, can not also the ASP of the ASP to the first equipment and the second equipment carry out version confirmation,
For example, the protocol version supported of ASP of the first equipment of default is to match with the ASP of the second equipment protocol version supported
's;Moreover, the present embodiment is only described to how carrying out version confirmation by way of example, and in actual application, the
The ASP of the one equipment and ASP of the second equipment can also carry out version confirmation using other modes, herein to whether to carry out version true
Recognize and how to carry out version confirmation and is not construed as limiting.
603, the ASP that the service module of the second equipment receives the first equipment is sent after the first equipment carries out pretreatment operation
Request message;
It should be noted that request message establishes the second session based on second network for requesting, and the request disappears
Breath includes the first cooperative information, and first cooperative information is for indicating that second session and first session correspond to same industry
Business.In the present embodiment, the first cooperative information may include that address information of first equipment in first network (is specifically as follows
IP address or MAC Address of first equipment in first network), the session identification (session_id) and first of the first session
One or more of identification information, wherein the first identifier information can ground of according to first equipment in first network
The information that location information and/or the session identification of the first session obtain after being calculated, or the first equipment is according to default rule
The identification information then generated, such as a number being randomly generated of the first equipment or the device name of the first equipment etc..This
Place is not construed as limiting the first cooperative information design parameter form, as long as meeting can allow the ASP of the second equipment to identify to be established be somebody's turn to do
Second session corresponds to business corresponding to the first session, herein without limitation.It is understood that the first cooperative information
The ASP of the second equipment can also be allowed to identify that second session to be established corresponds to the first session institute comprising multiple satisfactions simultaneously
The parameter of corresponding business, this is not limited here.
It is understood that the first cooperative information in the present embodiment is other than comprising above content, it can also be into one
Step includes other parameters, for example, the identification information or first of the first equipment address information in the second network, the second session
The service identification etc. of business corresponding to session, this is not limited here.In the present embodiment, request message can be
REQUEST_SESSION message is also possible to the message of other titles with the same function, and this is not limited here.
604, the second equipment executes pre-treatment operation;
It should be noted that in the present embodiment, pre-treatment operation specifically: the ASP of the second equipment is according to request message
Third report message is sent to the service module of the second equipment, third report message to the service module of the second equipment for asking for instructions
Whether receive to establish the second session with the first equipment, third report message includes third cooperative information, and third cooperative information is used for
Indicate that the second session and the first session correspond to same business;The ASP of second equipment receive the service module of the second equipment according to
The second instruction message that third report message is sent, the second instruction message are used to indicate the ASP of the second equipment to the first equipment
ASP responds response message.
It is understood that above-mentioned third cooperative information may include address information of first equipment in first network
The session identification of (being specifically as follows IP address or MAC Address of first equipment in first network), the first session
(session_id) and one or more of first identifier information, wherein the first identifier information according to first can be set
The information that the session identification of standby address information and/or the first session in first network obtains after being calculated, or
The identification information that first equipment is generated according to preset rules, such as the number or first that the first equipment is randomly generated
The device name etc. of equipment.In practical applications, the second cooperative information can be the first cooperative information for including in request message.
In practical applications, which can be SessionRequest message, which can
Think ConfirmSession message.
605, the ASP of the second equipment responds response message to the ASP of the first equipment according to request message;
In the present embodiment, response message is for indicating that the second equipment receives to establish second session with the first equipment.It needs
It is noted that the second equipment receives and the first equipment establishes second session and shows that the second equipment can be according to first session
Corresponding business opens corresponding port, and passes through such as the first equipment of ALLOWED_PORT message informing.In the present embodiment
In, which can be ADDED_SESSION message, be also possible to the message of other titles with the same function, have
Body is not construed as limiting herein.
606, the ASP of the second equipment and the ASP of the first equipment establish the second session;
The ASP of the first equipment receive the second equipment service module respond response message after, the ASP of the second equipment with
The ASP of first equipment establishes second session using a set of address based on the second network, i.e. the ASP of the second equipment and first is set
Standby ASP establishes the second session for having based on the second network and corresponding to business corresponding to the first session.Establish the second session
Detailed process may include that the first equipment business according to corresponding to first session opens corresponding port, and by such as
The second equipment of ALLOWED_PORT message informing;It simultaneously also may include that the first equipment receives the second equipment according to first session
Corresponding business opens the ALLOWED_PORT message sent behind corresponding port.The specific knot of the ALLOWED_PORT message
Structure does not repeat them here in the present embodiment see the prior art.
It should be noted that in the present embodiment, in the pretreatment operation executed due to the first equipment, the first equipment
ASP is transmitted across the second report message (for reporting first to set to the service module of the first equipment to the service module of the first equipment
It is standby to establish the second session based on the second network with the second equipment), and the second equipment in the pre-treatment operation of step 604
ASP is transmitted across whether third report message (connects for asking for instructions to the service module of the second equipment to the service module of the second equipment
The second session is established by with the first equipment), therefore, after the ASP of the ASP of the first equipment and the second equipment establishes second session,
The ASP of second equipment is no longer needed to send to the service module of the second equipment and is used to indicate between the first equipment and the second equipment
The report message for having second session is established, in this application scene, which is established, the service module of the second equipment
Can identify in the presence of can be spare second session, and as desired by the service module of second session and the first equipment into
Row connection and transmission data, to realize that business of the business corresponding to the first session between the first equipment and the second equipment passes
It is defeated.
Optionally, after step 606, the present embodiment can also further comprise:
607, when meeting preset first switching condition, the service module of the second equipment is by industry corresponding to the first session
Session used in being engaged in switches to the second session by the first session;
After the ASP of the second equipment and the ASP of the first equipment establish second session, the institute of business corresponding to the first session
The session used remains the first session, and the second session is as the spare session for business corresponding to first session.When
When meeting preset first switching condition, the service module of the second equipment is by session used in business corresponding to the first session
Second session is switched to by the first session, so that business corresponding to the first session carries out business transmission according to the second session.
In the present embodiment, above-mentioned preset first switching condition may include first network signal quality be unsatisfactory for it is pre-
If it is required that or the second network signal quality be better than first network signal quality, it is to be understood that in practical applications, in advance
If the first switching condition can also include various ways, such as the second equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
608, when meeting preset second switching condition, the service module of the second equipment is by industry corresponding to the first session
Session used in being engaged in switches to the first session by the second session;
Session used in business corresponding to the first session is switched into the second session by the first session in the second equipment
Later, when meeting preset second switching condition, the service module of the second equipment is made business corresponding to the first session
Session switches to the first session by the second session, so that business corresponding to the first session carries out business according to the first session
Transmission.
In the present embodiment, above-mentioned preset second switching condition may include the second network signal quality be unsatisfactory for it is pre-
If it is required that or first network signal quality be better than the second network signal quality, it is to be understood that in practical applications, in advance
If the second switching condition can also include various ways, such as the first equipment receives network side or the triggering of user refers to
It enables, the concrete mode of preset first switching condition is not construed as limiting herein.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
The ASP of second equipment receives the request message that the ASP of the first equipment is sent after the first equipment is pre-processed, the request message
In include the first cooperative information, first cooperative information for indicating that the second session and the first session correspond to same business, and
Response message is responded to the ASP of the first equipment after processing operation before the progress of the second equipment, then should with the ASP foundation of the first equipment
Second session, so that being established between the ASP of the second equipment and the ASP of the first equipment based on the second network and corresponding to the first session
Second session of corresponding business, and second session one is established, the service module of the second equipment can identify that presence can be standby
Second session, and number is attached and transmitted as desired by the service module of second session and the first equipment
According to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment.The embodiment of the present invention
By establishing in equipment room for same business and based on the second session of the second network, signal quality can occur in first network
Bad or when being switched, business corresponding to the first session of equipment room can continue to run in the second network, to protect
The reliability of card business transmission, effectively improves service transmission quality, and can be improved network resource utilization, avoids Internet resources
Waste.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The method for processing business in the embodiment of the present invention is described above, below in the embodiment of the present invention
One equipment is described.Firstly, it is necessary to it is clear that, in following each embodiments of the present invention, the first equipment and second is set
The first session based on first network is had built up between standby.It is understood that the first equipment and second equipment
When being set up the connection based on first network, a set of ground based on first network is can be used in the first equipment and second equipment
Location, i.e. the first address of the first address of first equipment and second equipment, and utilize a set of address based on first network
Establish first session.After first session establishment, equipment is attached and is transmitted by first session with target device
Data, to realize business transmission of the business corresponding to the first session between equipment and target device.
It should be noted that first network and the second network can be two different types of networks, for example, wired network
Network, WI-FI, bluetooth, NFC and Powerline etc. are also possible to same type but have the network of heterogeneous networks structure, such as base
In the P2P network of WI-FI and based on the infrastructure network of WI-FI, wherein the P2P network based on Wi-Fi can be and be based on
The network that the Wi-Fi Direct agreement of WFA (Wi-Fi Alliance, Wi-Fi Alliance) is set up, in this case, first
Equipment and the second equipment can be directly connected to;Infrastructure network based on Wi-Fi can be 802.11 agreements based on IEEE
The network set up, in this case, the first equipment and the second equipment are all connected to AP (Access Point, access point),
And communication between the two can be realized by AP.It is understood that in practical applications, the quantity of the second network can be with
It is one or more, is not construed as limiting herein.
It should be noted that equipment and target device can be and have network in following each embodiments of the present invention
The equipment of linkage function, such as support mobile phone, television set, server, the wireless router, other various families of network connecting function
Electrical appliance or office equipment etc..For example, the equipment can be mobile phone, which can be television set, and access point can be
Wireless router, at this point, mobile phone can establish the company of the infrastructure network based on Wi-Fi with television set by wireless router
It connects, and the infrastructure network based on this based on Wi-Fi establishes the first session, so that mobile phone is by first session broadcasting
Content transmission is to television set.
Referring to Fig. 7, first equipment one embodiment includes: in the embodiment of the present invention
Transmission unit 701, for when first equipment also passes through the second network and connect with second equipment, to institute
It states the second equipment and sends request message;The request message establishes the second session based on second network, institute for requesting
Stating request message includes the first cooperative information, and first cooperative information is for indicating second session and first session
Corresponding to same business;
Receiving unit 702, the response message responded for receiving second equipment according to request message, the response disappear
Breath is for indicating that second equipment receives to establish second session with first equipment;
Unit 703 is established, for establishing second session according to the response message and second equipment.
For ease of understanding, below by taking a concrete application scene as an example, the inside of the network controller in the present embodiment is transported
It is described as process:
When first equipment, which also passes through the second network, to be connect with second equipment, transmission unit 701 is to described
Two equipment send request message, and the request message establishes the second session based on second network for requesting, described to ask
Seeking message includes the first cooperative information, and first cooperative information is corresponding for indicating second session and first session
In same business;Receiving unit 702 receives the response message that second equipment is responded according to request message, the response message
For indicating that second equipment receives to establish second session with first equipment;Unit 703 is established according to the sound
Message and second equipment is answered to establish second session.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
Transmission unit 701 includes the first cooperative information in the request message sent to the second equipment, which is used for table
Show that second session and the first session correspond to same business, and receives the response of the second equipment response in receiving unit 702
After message, second session is established by establishing unit 703 and the second equipment, so that the first equipment and the second equipment room establish base
In the second network and correspond to the first session corresponding to business the second session.The embodiment of the present invention in equipment room by establishing
For same business and based on the second session of the second network, it is bad or the feelings such as be switched can to there is signal quality in first network
When condition, business corresponding to the first session of equipment room can continue to run in the second network, to guarantee the reliable of business transmission
Property, service transmission quality is effectively improved, and can be improved network resource utilization, avoids the waste of Internet resources.
The specific structure of the equipment of the seamless switching between guaranteed service heterogeneous networks is described in detail below, asks
Refering to Fig. 8, another embodiment of the first equipment includes: in the embodiment of the present invention
Transmission unit 801, for when first equipment also passes through the second network and connect with second equipment, to institute
It states the second equipment and sends request message;The request message establishes the second session based on second network, institute for requesting
Stating request message includes the first cooperative information, and first cooperative information is for indicating second session and first session
Corresponding to same business;
Receiving unit 802, the response message responded for receiving second equipment according to request message, the response disappear
Breath is for indicating that second equipment receives to establish second session with first equipment;
Unit 803 is established, for establishing second session according to the response message and second equipment.
Further, equipment may further comprise: in the embodiment of the present invention
First switch unit 804 will be corresponding to first session for when meeting preset first switching condition
Session used in business switches to second session by first session, so that business corresponding to first session
Business transmission is carried out according to second session.
Optionally, equipment may further comprise: in the embodiment of the present invention
Second switch unit 805, for by session used in business corresponding to first session by described
Two sessions switch to after first session, will be corresponding to first session when meeting preset second switching condition
Business used in session first session switched to by second session so that industry corresponding to first session
Business carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
Transmission unit 801 includes the first cooperative information in the request message sent to the second equipment, which is used for table
Show that second session and the first session correspond to same business, and receives the response of the second equipment response in receiving unit 802
After message, second session is established by establishing unit 803 and the second equipment, so that the first equipment and the second equipment room establish base
In the second network and correspond to the first session corresponding to business the second session.The embodiment of the present invention in equipment room by establishing
For same business and based on the second session of the second network, it is bad or the feelings such as be switched can to there is signal quality in first network
When condition, business corresponding to the first session of equipment room can continue to run in the second network, to guarantee the reliable of business transmission
Property, service transmission quality is effectively improved, and can be improved network resource utilization, avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The establishment process of above-mentioned second session can be based on different signaling processes, below to can be based on the first signaling flow
First equipment of the second session of Cheng Jianli is described in detail, referring to Fig. 9, another implementation of the first equipment in the embodiment of the present invention
Example include:
Establishing between first equipment and the second equipment has the first session based on first network, the first equipment packet
Include the first ASP 901 and first service module 902;
First ASP 901 is used for when first equipment is connect by the second network with second equipment, to
The ASP of second equipment sends request message, and the request message is used to request to establish second based on second network
Session, the request message include the first cooperative information, and first cooperative information is for indicating second session and described
First session corresponds to same business;It is also used to receive the response that the ASP of second equipment is responded according to the request message
Message, the response message is for indicating that second equipment receives to establish second session with first equipment;And
For establishing second session according to the ASP of the response message and second equipment;
In the present embodiment, the first ASP 901 is also used to described according to the response message and second equipment
ASP is established after second session, and Xiang Suoshu first service module sends the first report message, and first report message is used
Second session has been had built up between instruction first equipment and second equipment;
The first service module 902, first report message sent for receiving the first ASP.
Optionally, in the present embodiment, the first service module 902 is also used to meet preset first switching item
When part, session used in business corresponding to first session is switched into second session by first session,
So that business corresponding to first session carries out business transmission according to second session.
Optionally, in the present embodiment, the first service module 902 is also used to will be corresponding to first session
Business used in after session switches to first session by second session, when meeting preset second switching item
When part, session used in business corresponding to first session is switched into first session by second session,
So that business corresponding to first session carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
First ASP 901 includes the first cooperative information in the request message sent to the ASP of the second equipment, which uses
Correspond to same business in the second session of expression and the first session, and after the response message that the ASP for receiving the second equipment is responded,
Second session is established with the ASP equipment of the second network, is based on so that being established between the first ASP 901 and the ASP of the second equipment
Second network and the second session for corresponding to business corresponding to the first session, first service module 902 are receiving the first ASP
Can be attached as desired by the service module of the second session and the second equipment after 901 the first report message sent and
Data are transmitted, to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment.Therefore phase
For the prior art, the embodiment of the present invention in equipment room by establishing for same business and based on the second meeting of the second network
Words, bad or when be switched, the business corresponding to the first session of equipment room that signal quality can occurs in first network
It can continue to run in the second network, to guarantee the reliability of business transmission, effectively improve service transmission quality, and can be improved
Network resource utilization avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The first equipment that the second session can be established based on second of signaling process is described in detail below, please refers to figure
10, another embodiment of the first equipment includes: in the embodiment of the present invention
First ASP 1001 is used for when first equipment is connect by the second network with second equipment, to institute
The ASP for stating the second equipment sends request message, and the request message establishes the second meeting based on second network for requesting
Words, the request message include the first cooperative information, and first cooperative information is for indicating second session and described the
One session corresponds to same business;The ASP for being also used to receive second equipment disappears according to the response that the request message is responded
Breath, the response message is for indicating that second equipment receives to establish second session with first equipment;And it uses
In establishing second session according to the ASP of the response message and second equipment;
In the present embodiment, the first ASP 1001 is also used to sending request message to the ASP of second equipment
Before, the first service module 1002 in the first equipment of Xiang Suoshu sends the second report message, and second report message is used for
Report first equipment that can establish with second equipment based on second network to the first service module 1002
The second session, second report message includes the second cooperative information, and second cooperative information is for indicating described second
Session and first session correspond to same business;
The first service module, for after receiving the second report message that the first ASP is sent, according to institute
It states the second report message and sends the first instruction message to the first ASP, first instruction message is used to indicate described first
Equipment and second equipment establish second session;
First ASP is also used to receive first instruction message that the first service module is sent;
First ASP has for receiving the response message that the ASP of second equipment is responded according to the request message
Body are as follows: the first ASP is used to receive the ASP of second equipment according to the request message before second equipment progress
The response message responded after processing operation;Pre-treatment operation are as follows: the ASP of second equipment according to the request message to
The service module of second equipment sends third report message, and the third report message is used for the clothes to second equipment
Business module asks whether receive to establish second session with first equipment for instructions, and the third report message cooperates comprising third
Information, the third cooperative information is for indicating that second session and first session correspond to same business;Described
The ASP of two equipment receives the second instruction message that the service module of second equipment is sent according to the third report message,
The ASP that second instruction message is used to indicate second equipment responds the response message to the first ASP.
Optionally, in the present embodiment, the first service module 1002 is also used to meet preset first switching item
When part, session used in business corresponding to first session is switched into second session by first session,
So that business corresponding to first session carries out business transmission according to second session.
Optionally, in the present embodiment, the first service module 1002 is also used to will be corresponding to first session
Business used in after session switches to first session by second session, when meeting preset second switching item
When part, session used in business corresponding to first session is switched into first session by second session,
So that business corresponding to first session carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
First ASP 1001 first reports the first equipment that can establish with the second equipment based on the second network to first service module 1002
Second session, and just start to send request message after the instruction for obtaining first service module 1002, and to the ASP of the second equipment
It include the first cooperative information in the request message of transmission, first cooperative information is for indicating second session and the first session
Corresponding to same business, and the response message responded after processing operation before the second equipment carries out in the ASP for receiving the second equipment
Afterwards, second session is established with the ASP equipment of the second network, so that establishing between the first ASP 1001 and the ASP of the second equipment
The second session based on the second network and corresponding to business corresponding to the first session, and second session one is established, the first clothes
Business module 1002 can identify second session that presence can be spare, and as desired by second session and the second equipment
Service module is attached and transmits data, to realize business corresponding to the first session between the first equipment and the second equipment
Business transmission.The embodiment of the present invention by establishing in equipment room for same business and based on the second session of the second network,
It is bad or when be switched can to there is signal quality in first network, business corresponding to the first session of equipment room can be
Second network trunk reforwarding row effectively improves service transmission quality, and can be improved network to guarantee the reliability of business transmission
Resource utilization avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The first equipment in the embodiment of the present invention is described from the angle of modular functionality entity above, below from hard
The first equipment in the embodiment of the present invention is described in the angle of part processing, please refers to Figure 11, and the in the embodiment of the present invention
Another embodiment of one equipment includes:
Input unit 1101, output device 1102, processor 1103 and (the wherein processor in equipment of memory 1104
1103 quantity can be one or more, in Figure 11 by taking a processor 1103 as an example).In some embodiments of the invention,
Input unit 1101, output device 1102, processor 1103 and memory 1104 can be connected by bus or other means.
Wherein,
The processor 1103, by the operational order for calling memory 1104 to store, for executing following steps:
Establishing between first equipment and the second equipment has the first session based on first network,
When first equipment is connect by the second network with second equipment, the second equipment of Xiang Suoshu sends request
Message;The request message establishes the second session based on second network for requesting, and the request message includes first
Cooperative information, first cooperative information is for indicating that second session and first session correspond to same business;
The response message that second equipment is responded according to the request message is received, the response message is for indicating institute
The second equipment is stated to receive to establish second session with first equipment;
The response message and second equipment establish second session.
In some embodiments of the invention, processor 1103 is especially by the operational order for calling memory 1104 to store
The ASP of first equipment is set to send request message to the ASP of second equipment;The ASP of first equipment is set to receive institute
State the response message that the ASP of the second equipment is responded according to the request message;Make the ASP of first equipment according to the response
The ASP of message and second equipment establishes second session.
In some embodiments of the invention, processor 1103 is also made by the operational order for calling memory 1104 to store
After the ASP of first equipment establishes second session according to the ASP of the response message and second equipment, the
The ASP of one equipment sends the first report message to the service module of the first equipment, and first report message is used to indicate described
Second session has been had built up between first equipment and second equipment.
In some embodiments of the invention, processor 1103 is also made by the operational order for calling memory 1104 to store
Before the ASP of first equipment sends request message to the ASP of second equipment, the ASP of first equipment is to institute
The service module for stating the first equipment sends the second report message, and second report message is for the service to first equipment
Module report first equipment can with second equipment establish the second session based on second network, described second
Report message includes the second cooperative information, and second cooperative information is for indicating second session and first session pair
It should be in same business;The ASP of first equipment receives the service module of first equipment according to second report message
The first instruction message sent, first instruction message are used to indicate described in first equipment and second equipment foundation
Second session;
Processor 1103 receives the ASP of first equipment especially by the operational order for calling memory 1104 to store
The response message that the ASP of second equipment is responded after processing operation before the second equipment carries out according to the request message;Institute
State pre-treatment operation are as follows: the ASP of second equipment is sent according to the request message to the service module of second equipment
Whether third report message, the third report message receive and described for asking for instructions to the service module of second equipment
One equipment establishes second session, and the third report message includes third cooperative information, and the third cooperative information is used for
Indicate that second session and first session correspond to same business;The ASP of second equipment receives described second and sets
The second instruction message that standby service module is sent according to the third report message, second instruction message are used to indicate institute
The ASP for stating the second equipment responds the response message to the ASP of the first equipment.
In some embodiments of the invention, processor 1103 is also used to execute following steps:
When meeting preset first switching condition, by session used in business corresponding to first session by institute
It states the first session and switches to second session, so that business corresponding to first session is carried out according to second session
Business transmission.
In some embodiments of the invention, processor 1103 is also used to execute following steps:
Session used in business corresponding to first session is being switched to described second by first session
After session, when meeting preset second switching condition, by session used in business corresponding to first session by
Second session switches to first session so that business corresponding to first session according to second session into
Industry business transmission.
In the embodiment of the present invention, the input unit 1101, output device 1102 are used for the control in the processor 1103
The lower reception for carrying out related news or information of system is sent.
In technical solution provided in an embodiment of the present invention, when the first equipment is connect by the second network with the second equipment,
Processor 1103 includes the first cooperative information in the request message sent to the second equipment by the output device 1102, should
First cooperative information passes through institute in processor 1103 for indicating that second session and the first session correspond to same business
State input unit 1101 receive the second equipment response response message after, by processor 1103 and the second equipment establish this second
Session, so that the first equipment and the second equipment room are established based on the second network and correspond to the of business corresponding to the first session
Two sessions.The embodiment of the present invention, can be by establishing in equipment room for same business and based on the second session of the second network
First network occurs that signal quality is bad or when being switched, and business corresponding to the first session of equipment room can be second
Network trunk reforwarding row effectively improves service transmission quality, and can be improved Internet resources to guarantee the reliability of business transmission
Utilization rate avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
Embodiment shown in Fig. 7 to Figure 11 is to describe the first equipment as the angle of the equipment for searching service role,
The second equipment of the embodiment of the present invention is described in detail from the angle for providing service role below, referring specifically to Figure 12,
Second equipment one embodiment includes: in the embodiment of the present invention
Receiving unit 1201, for receiving institute when second equipment also passes through the second network and connect with the first equipment
State the request message of the first equipment transmission;The request message establishes the second session based on second network for requesting,
The request message includes the first cooperative information, and first cooperative information is for indicating second session and first meeting
Words correspond to same business;
Response unit 1202, for responding response message, the response message to the first equipment according to the request message
For indicating that second equipment receives to establish second session with first equipment;
Unit 1203 is established, for establishing second session with first equipment.
For ease of understanding, below by taking a concrete application scene as an example, the inside of the network controller in the present embodiment is transported
It is described as process:
When second equipment, which also passes through the second network, to be connect with first equipment, receiving unit 1201 receives described
The request message that first equipment is sent;The request message establishes the second session based on second network, institute for requesting
Stating request message includes the first cooperative information, and first cooperative information is for indicating second session and first session
Corresponding to same business;Response unit 1202 responds response message to the first equipment according to the request message, and the response disappears
Breath is for indicating that second equipment receives to establish second session with first equipment;Establish unit 1203 and described the
One equipment establishes second session.
In technical solution provided in an embodiment of the present invention, when the second equipment is connect by the second network with the first equipment,
Receiving unit 1201 receives the request message that the first equipment is sent, and includes the first cooperative information in the request message, first association
Make information for indicating that second session and the first session correspond to same business, and is set from response unit 1202 to first
After standby response response message, second session is established by establishing unit 1203 and the first equipment, so that the second equipment and first
Equipment room is established based on the second network and corresponds to the second session of business corresponding to the first session.The embodiment of the present invention passes through
It establishes in equipment room for same business and based on the second session of the second network, it is bad signal quality can occur in first network
Or when being switched, business corresponding to the first session of equipment room can continue to run in the second network, to guarantee industry
The reliability of business transmission, effectively improves service transmission quality, and can be improved network resource utilization, avoids the wave of Internet resources
Take.
Below from the tool for the equipment for providing seamless switching of the angle of service role between guaranteed service heterogeneous networks
Body structure is described in detail, and please refers to Figure 13, another embodiment of the second equipment includes: in the embodiment of the present invention
Receiving unit 1301, for receiving institute when second equipment also passes through the second network and connect with the first equipment
State the request message of the first equipment transmission;The request message establishes the second session based on second network for requesting,
The request message includes the first cooperative information, and first cooperative information is for indicating second session and first meeting
Words correspond to same business;
Response unit 1302, for responding response message, the response message to the first equipment according to the request message
For indicating that second equipment receives to establish second session with first equipment;
Unit 1303 is established, for establishing second session with first equipment.
Further, equipment may further comprise: in the embodiment of the present invention
First switch unit 1304 will be corresponding to first session for when meeting preset first switching condition
Business used in session second session switched to by first session so that industry corresponding to first session
Business carries out business transmission according to second session.
Optionally, equipment may further comprise: in the embodiment of the present invention
Second switch unit 1305, for will be used in business corresponding to first session in second equipment
After session switches to first session by second session, when meeting preset second switching condition, by described
Session used in business corresponding to one session switches to first session by second session, so that first meeting
The corresponding business of words carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the second equipment is connect by the second network with the first equipment,
Receiving unit 1301 receives the request message that the first equipment is sent, and includes the first cooperative information in the request message, first association
Make information for indicating that second session and the first session correspond to same business, and is set from response unit 1302 to first
After standby response response message, second session is established by establishing unit 1303 and the first equipment, so that the second equipment and first
Equipment room is established based on the second network and corresponds to the second session of business corresponding to the first session.The embodiment of the present invention passes through
It establishes in equipment room for same business and based on the second session of the second network, it is bad signal quality can occur in first network
Or when being switched, business corresponding to the first session of equipment room can continue to run in the second network, to guarantee industry
The reliability of business transmission, effectively improves service transmission quality, and can be improved network resource utilization, avoids the wave of Internet resources
Take.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The establishment process of above-mentioned second session can be based on different signaling processes, below to can be based on the first signaling flow
Second equipment of the second session of Cheng Jianli is described in detail, and please refers to Figure 14, another reality of the second equipment in the embodiment of the present invention
Applying example includes:
Establishing between second equipment and the first equipment has the first session based on first network, the second equipment packet
Include the 2nd ASP 1401 and second service module 1402;
2nd ASP 1401 is used for when second equipment is connect by the second network with first equipment,
The request message that the ASP of first equipment is sent is received, the request message is based on second network for requesting to establish
The second session, the request message includes the first cooperative information, and first cooperative information is for indicating second session
Correspond to same business with first session;It is also used to be responded according to the request message to the ASP of first equipment and ring
Message is answered, the response message is for indicating that second equipment receives to establish second session with first equipment;With
And for establishing second session with the ASP of first equipment;
In the present embodiment, the 2nd ASP 1401 is also used to disappear to the first report of second service module transmission
Breath, first report message, which is used to indicate between second equipment and first equipment, has had built up second meeting
Words;
The second service module 1402, first report message sent for receiving the 2nd ASP.
Optionally, in the present embodiment, the second service module 1402 is also used to meet preset first switching item
When part, session used in business corresponding to first session is switched into second session by first session,
So that business corresponding to first session carries out business transmission according to second session.
Optionally, in the present embodiment, the second service module 1402 is also used to will be corresponding to first session
Business used in after session switches to first session by second session, when meeting preset second switching item
When part, session used in business corresponding to first session is switched into first session by second session,
So that business corresponding to first session carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the second equipment is connect by the second network with the first equipment,
2nd ASP 1401 receives the request message that the ASP of the first equipment is sent, and includes the first cooperative information in the request message, this
One cooperative information is rung for indicating that the second session and the first session correspond to same business responding to the ASP of the first equipment
After answering message, second session is established with the ASP of the first equipment, so that building between the 2nd ASP 1401 and the ASP of the first equipment
It is based on and the second network and corresponds to the second session of business corresponding to the first session, second service module 1402 is receiving the
It can be carried out as desired by the service module of the second session and the first equipment after the first report message that two ASP1401 are sent
Connection and transmission data, to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment.
The embodiment of the present invention, can be in first network by establishing in equipment room for same business and based on the second session of the second network
It is bad or when being switched to there is signal quality, business corresponding to the first session of equipment room can in the second network after
Reforwarding row effectively improves service transmission quality, and can be improved network resource utilization to guarantee the reliability of business transmission,
Avoid the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The second equipment that the second session can be established based on second of signaling process is described in detail below, please refers to figure
15, another embodiment of the second equipment includes: in the embodiment of the present invention
Establishing between second equipment and the first equipment has the first session based on first network, the second equipment packet
Include the 2nd ASP 1501 and second service module 1502;
2nd ASP 1501 is used for when second equipment is connect by the second network with first equipment,
The request message that the ASP of first equipment is sent is received, the request message is based on second network for requesting to establish
The second session, the request message includes the first cooperative information, and first cooperative information is for indicating second session
Correspond to same business with first session;It is also used to be responded according to the request message to the ASP of first equipment and ring
Message is answered, the response message is for indicating that second equipment receives to establish second session with first equipment;With
And for establishing second session with the ASP of first equipment;
In the present embodiment, the 2nd ASP 1501 is used to receive the request message that the ASP of the first equipment is sent, specifically
Are as follows: the ASP that the 2nd ASP is used to receive first equipment disappears in the request that the first equipment send after pretreatment operation
Breath;The pretreatment operation are as follows: the ASP of first equipment sends the second report to the service module of first equipment and disappears
Breath, second report message are used to report first equipment can be with described second to the service module of first equipment
Equipment establish the second session based on second network, second report message include the second cooperative information, described second
Cooperative information is for indicating that second session and first session correspond to same business;The ASP of first equipment connects
The first instruction message that the service module of first equipment is sent according to second report message is received, first instruction disappears
Breath is used to indicate first equipment and second equipment establishes second session;
2nd ASP 1501 is also used to send in the ASP that the 2nd ASP 1501 receives first equipment
After request message, before the 2nd ASP responds response message to the ASP of the first equipment according to the request message, according to
Second service module 1502 of the request message into second equipment sends third report message, and the third report disappears
Whether breath for asking for instructions to the second service module 1502 receives to establish second session with first equipment, and described the
Three report message include third cooperative information, and the third cooperative information is for indicating second session and first session
Corresponding to same business;
The second service module, for after receiving the third report message that the 2nd ASP is sent, according to
The second instruction message that the third report message is sent to the 2nd ASP, second instruction message are used to indicate described
2nd ASP responds the response message to the ASP of the first equipment;
2nd ASP is also used to receive second instruction message that the second service module is sent.
Optionally, in the present embodiment, the second service module 1502 is also used to meet preset first switching item
When part, session used in business corresponding to first session is switched into second session by first session,
So that business corresponding to first session carries out business transmission according to second session.
Optionally, in the present embodiment, the second service module 1502 is also used to will be corresponding to first session
Business used in after session switches to first session by second session, when meeting preset second switching item
When part, session used in business corresponding to first session is switched into first session by second session,
So that business corresponding to first session carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the second equipment is connect by the second network with the first equipment,
2nd ASP 1501 receives the request message that the ASP of the first equipment is sent after the first equipment is pre-processed, the request message
In include the first cooperative information, first cooperative information for indicating that the second session and the first session correspond to same business, and
After receiving the second instruction message that second service module 1502 is sent according to third report message, returned to the ASP of the first equipment
Answer response message, then establish second session with the ASP of the first equipment so that the 2nd ASP 1501 and ASP of the first equipment it
Between establish based on the second network and correspond to the first session corresponding to business the second session, and second session one establish,
Second service module 1502 can identify second session that presence can be spare, and as desired by second session and first
The service module of equipment is attached and transmits data, to realize that business corresponding to the first session is set in the first equipment and second
Business transmission between standby.The embodiment of the present invention is by establishing second for same business and based on the second network in equipment room
Session, bad or when be switched, the industry corresponding to the first session of equipment room that signal quality can occurs in first network
Business can continue to run in the second network, to guarantee the reliability of business transmission, effectively improve service transmission quality, and can mention
High network resource utilization avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
The second equipment in the embodiment of the present invention is described from the angle of modular functionality entity above, below from hard
The second equipment in the embodiment of the present invention is described in the angle of part processing, please refers to Figure 16, setting in the embodiment of the present invention
Include: for another embodiment
Input unit 1601, output device 1602, processor 1603 and (the wherein processor in equipment of memory 1604
1603 quantity can be one or more, in Figure 16 by taking a processor 1603 as an example).In some embodiments of the invention,
Input unit 1601, output device 1602, processor 1603 and memory 1604 can be connected by bus or other means.
Wherein,
The processor 1603, by the operational order for calling memory 1604 to store, for executing following steps:
Establishing between second equipment and the first equipment has the first session based on first network,
When second equipment, which also passes through the second network, to be connect with first equipment, receives first equipment and send
Request message;The request message establishes the second session based on second network, the request message packet for requesting
Containing the first cooperative information, first cooperative information is for indicating that second session and first session correspond to same industry
Business;
Response message is responded to first equipment according to the request message, the response message is for indicating described the
Two equipment receive to establish second session with first equipment;
Second session is established with first equipment.
In some embodiments of the invention, processor 1603 is especially by the operational order for calling memory 1104 to store
The ASP of second equipment is set to receive the request message that the ASP of first equipment is sent;Make the ASP root of second equipment
Response message is responded to the ASP of the first equipment according to the request message;Make the ASP of second equipment and first equipment
ASP establishes second session.
In some embodiments of the invention, processor 1603 is also made by the operational order for calling memory 1104 to store
The ASP of second equipment sends the first report message to the service module of the second equipment, and first report message is used to indicate institute
It states and has had built up second session between the second equipment and first equipment.
In some embodiments of the invention, processor 1603 is especially by the operational order for calling memory 1104 to store
The ASP for making the ASP of second equipment receive first equipment carries out the request sent after pretreatment operation in the first equipment
Message;The pretreatment operation are as follows: the ASP of first equipment sends the second report to the service module of first equipment and disappears
Breath, second report message are used to report first equipment can be with described second to the service module of first equipment
Equipment establish the second session based on second network, second report message include the second cooperative information, described second
Cooperative information is for indicating that second session and first session correspond to same business;
Processor 1603 also makes to receive in the ASP of second equipment by the operational order for calling memory 1104 to store
After the request message that the ASP of first equipment is sent, the ASP of second equipment is set according to the request message to first
Before standby ASP responds response message, service of the ASP of second equipment according to the request message to second equipment
Module sends third report message, and whether the third report message receives for asking for instructions to the service module of second equipment
Second session is established with first equipment, the third report message includes third cooperative information, the third cooperation
Information is for indicating that second session and first session correspond to same business;The ASP of second equipment receives institute
The second instruction message that the service module of the second equipment is sent according to the third report message is stated, second instruction message is used
The response message is responded to the ASP of the first equipment in the ASP of instruction second equipment.
In some embodiments of the invention, processor 1603 is also used to execute following steps:
When meeting preset first switching condition, by session used in business corresponding to first session by institute
It states the first session and switches to second session, so that business corresponding to first session is carried out according to second session
Business transmission.
In some embodiments of the invention, processor 1603 is also used to execute following steps:
Session used in business corresponding to first session is being switched to described second by first session
After session, when meeting preset second switching condition, by session used in business corresponding to first session by
Second session switches to first session so that business corresponding to first session according to second session into
Industry business transmission.
In the embodiment of the present invention, the input unit 1601, output device 1602 are used for the control in the processor 1603
The lower reception for carrying out related news or information of system is sent.
In technical solution provided in an embodiment of the present invention, when the second equipment is connect by the second network with the first equipment,
Processor 1603 receives the request message that the first equipment is sent by the input unit 1601, includes first in the request message
Cooperative information, first cooperative information correspond to same business for indicating second session and the first session, and by
After reason device 1603 responds response message to the first equipment by the output device 1602, pass through processor 1603 and the first equipment
Second session is established, so that the second equipment and the first equipment room are established based on the second network and corresponded to corresponding to the first session
Business the second session.The embodiment of the present invention is by establishing second for same business and based on the second network in equipment room
Session, bad or when be switched, the industry corresponding to the first session of equipment room that signal quality can occurs in first network
Business can continue to run in the second network, to guarantee the reliability of business transmission, effectively improve service transmission quality, and can mention
High network resource utilization avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
Method for processing business, the first equipment and the second equipment in the embodiment of the present invention are described above, under
Transaction processing system in the embodiment of the present invention is described.Need first it is clear that, the first equipment and the second equipment it
Between have built up the first session based on first network.It is understood that having been built in the first equipment and second equipment
It is vertical that a set of address based on first network can be used in first equipment and second equipment when having the connection based on first network,
That is the first address of the first address of first equipment and second equipment, and established using a set of address based on first network
First session.After first session establishment, the first equipment is attached and is transmitted by first session with the second equipment
Data, to realize business transmission of the business corresponding to the first session between the first equipment and the second equipment.
It should be noted that first network and the second network can be two different types of networks, for example, wired network
Network, WI-FI, bluetooth, NFC and Powerline etc. are also possible to same type but have the network of heterogeneous networks structure, such as base
In the P2P network of WI-FI and based on the infrastructure network of WI-FI, wherein the P2P network based on Wi-Fi can be and be based on
The network that the Wi-Fi Direct agreement of WFA (Wi-Fi Alliance, Wi-Fi Alliance) is set up, in this case, first
Equipment and the second equipment can be directly connected to;Infrastructure network based on Wi-Fi can be 802.11 agreements based on IEEE
The network set up, in this case, the first equipment and the second equipment are all connected to AP (Access Point, access point),
And communication between the two can be realized by AP.It is understood that in practical applications, the quantity of the second network can be with
It is one or more, is not construed as limiting herein.
It should be noted that the first equipment and the second equipment can be and has in following each embodiments of the present invention
The equipment of network connecting function, such as support that the mobile phone of network connecting function, television set, server, wireless router, other are each
Kind household electrical appliance or office equipment etc..For example, the first equipment can be mobile phone, the second equipment can be television set, and access point can
To be wireless router, at this point, mobile phone can establish the infrastructure network based on Wi-Fi by wireless router with television set
Connection, and the infrastructure network based on this based on Wi-Fi establishes the first session, so that mobile phone passes through the first session handle
Broadcasting content is transferred to television set.
Figure 17 is please referred to, transaction processing system one embodiment includes: in the embodiment of the present invention
First equipment 1701, for being connect by the second network with second equipment 1702 when first equipment 1701
When, the second equipment of Xiang Suoshu 1702 sends request message;The request message is for requesting to establish based on second network
Second session, the request message include the first cooperative information, first cooperative information for indicate second session and
First session corresponds to same business;It is also used to receive the sound that second equipment 1702 is responded according to the request message
Message is answered, the response message is for indicating that second equipment 1702 receives to establish described second with first equipment 1701
Session;And for establishing second session according to the response message and second equipment 1702.
Second equipment 1702, for receiving when the equipment is connect by the second network with the target device
The request message that the target device is sent;It is also used to respond the response message to the first equipment according to the request message;
And for establishing second session with the target device.
For ease of understanding, below by taking a concrete application scene as an example, to the inside of the transaction processing system in the present embodiment
Operation workflow is described:
When first equipment 1701 by the second network connect with second equipment 1702 when, the first equipment 1701 to
Second equipment sends request message;The request message establishes the second session based on second network for requesting,
The request message includes the first cooperative information, and first cooperative information is for indicating second session and first meeting
Words correspond to same business;Second equipment 1702 responds the response message to the first equipment 1701 according to the request message,
The response message is for indicating that second equipment 1702 receives to establish second session with first equipment 1701;The
One equipment 1701 receives the response message that second equipment 1702 is responded according to the request message;First equipment, 1701 basis
The response message and second equipment 1702 establish second session.
In technical solution provided in an embodiment of the present invention, when the first equipment 1701 passes through the second network and the second equipment 1702
When connection, the first equipment 1701 includes the first cooperative information in the request message sent to the second equipment 1702, first association
Make information for indicating that second session and the first session correspond to same business, and receives the response of the second equipment 1702
After response message, second session is established with the second equipment 1702, so that establishing between the first equipment 1701 and the second equipment 1702
The second session based on the second network and corresponding to business corresponding to the first session.The embodiment of the present invention in equipment room by building
It is vertical to be directed to same business and the second session based on the second network, it is bad or be switched can to there is signal quality in first network
When situation, business corresponding to the first session of equipment room can continue to run in the second network, with guarantee business transmission can
By property, service transmission quality is effectively improved, and can be improved network resource utilization, avoids the waste of Internet resources.
The specific structure of the transaction processing system of the seamless switching between guaranteed service heterogeneous networks carries out detailed below
It describes in detail bright, please refers to Figure 18, another embodiment of transaction processing system includes: in the embodiment of the present invention
First equipment 1801, for being connect by the second network with second equipment 1802 when first equipment 1801
When, the second equipment of Xiang Suoshu 1802 sends request message;The request message is for requesting to establish based on second network
Second session, the request message include the first cooperative information, first cooperative information for indicate second session and
First session corresponds to same business;It is also used to receive the sound that second equipment 1802 is responded according to the request message
Message is answered, the response message is for indicating that second equipment 1802 receives to establish described second with first equipment 1801
Session;And for establishing second session according to the response message and second equipment 1802.
Second equipment 1802, for receiving when the equipment is connect by the second network with the target device
The request message that the target device is sent;It is also used to respond the response message to the first equipment according to the request message;
And for establishing second session with the target device.
Further, transaction processing system may further comprise: in the embodiment of the present invention
First equipment 1801 or second equipment 1802, being also used to will when meeting preset first switching condition
Session used in business corresponding to first session switches to second session by first session, so that described
Business corresponding to first session carries out business transmission according to second session.
Optionally, transaction processing system may further comprise: in the embodiment of the present invention
First equipment 1801 or second equipment 1802, being also used to will when meeting preset second switching condition
Session used in business corresponding to first session switches to first session by second session, so that described
Business corresponding to first session carries out business transmission according to second session.
In technical solution provided in an embodiment of the present invention, when the first equipment 1801 passes through the second network and the second equipment 1802
When connection, the first equipment 1801 includes the first cooperative information in the request message sent to the second equipment 1802, first association
Make information for indicating that second session and the first session correspond to same business, and receives the response of the second equipment 1802
After response message, second session is established with the second equipment 1802, so that establishing between the first equipment 1801 and the second equipment 1802
The second session based on the second network and corresponding to business corresponding to the first session.The embodiment of the present invention in equipment room by building
It is vertical to be directed to same business and the second session based on the second network, it is bad or be switched can to there is signal quality in first network
When situation, business corresponding to the first session of equipment room can continue to run in the second network, with guarantee business transmission can
By property, service transmission quality is effectively improved, and can be improved network resource utilization, avoids the waste of Internet resources.
Further, the embodiment of the present invention can according to preset first switching condition and preset second switching condition,
Business corresponding to first session is switched in the first session based on first network and the second session based on the second network,
Bigger flexibility ratio is provided using the selection of network for business, and guarantees seamless switching of the business between heterogeneous networks, thus
Improve user experience.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, can refer to corresponding processes in the foregoing method embodiment, and details are not described herein.
In several embodiments provided herein, it should be understood that disclosed system, device and method can be with
It realizes by another way.For example, the apparatus embodiments described above are merely exemplary, for example, the unit
It divides, only a kind of logical function partition, there may be another division manner in actual implementation, such as multiple units or components
It can be combined or can be integrated into another system, or some features can be ignored or not executed.Another point, it is shown or
The mutual coupling, direct-coupling or communication connection discussed can be through some interfaces, the indirect coupling of device or unit
It closes or communicates to connect, can be electrical property, mechanical or other forms.
The unit as illustrated by the separation member may or may not be physically separated, aobvious as unit
The component shown may or may not be physical unit, it can and it is in one place, or may be distributed over multiple
In network unit.It can select some or all of unit therein according to the actual needs to realize the mesh of this embodiment scheme
's.
It, can also be in addition, the functional units in various embodiments of the present invention may be integrated into one processing unit
It is that each unit physically exists alone, can also be integrated in one unit with two or more units.Above-mentioned integrated list
Member both can take the form of hardware realization, can also realize in the form of software functional units.
If the integrated unit is realized in the form of SFU software functional unit and sells or use as independent product
When, it can store in a computer readable storage medium.Based on this understanding, technical solution of the present invention is substantially
The all or part of the part that contributes to existing technology or the technical solution can be in the form of software products in other words
It embodies, which is stored in a storage medium, including some instructions are used so that a computer
Equipment (can be personal computer, server or the network equipment etc.) executes the complete of each embodiment the method for the present invention
Portion or part steps.And storage medium above-mentioned includes: USB flash disk, mobile hard disk, read-only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), magnetic or disk etc. are various can store journey
The medium of sequence code.
The above, the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;Although referring to before
Stating embodiment, invention is explained in detail, those skilled in the art should understand that: it still can be to preceding
Technical solution documented by each embodiment is stated to modify or equivalent replacement of some of the technical features;And these
It modifies or replaces, the spirit and scope for technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution.