CN102685824B - Method, device and system for switching network - Google Patents

Method, device and system for switching network Download PDF

Info

Publication number
CN102685824B
CN102685824B CN201210152052.1A CN201210152052A CN102685824B CN 102685824 B CN102685824 B CN 102685824B CN 201210152052 A CN201210152052 A CN 201210152052A CN 102685824 B CN102685824 B CN 102685824B
Authority
CN
China
Prior art keywords
network
equipment
communication module
communication
type identification
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210152052.1A
Other languages
Chinese (zh)
Other versions
CN102685824A (en
Inventor
姜彤
刘培
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Original Assignee
Huawei Technologies Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd filed Critical Huawei Technologies Co Ltd
Priority to CN201210152052.1A priority Critical patent/CN102685824B/en
Publication of CN102685824A publication Critical patent/CN102685824A/en
Application granted granted Critical
Publication of CN102685824B publication Critical patent/CN102685824B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method, a device and a system for switching a network and belongs to the field of communication. The method comprises the following steps of: sending network switching request information to a first communication module of second equipment from a first communication module of first equipment; when receiving a response for receiving a network switching request, which is returned by a first communication module of the second equipment, searching an addable candidate network by a second communication module of the first equipment; when searching the addable candidate network, determining a second network corresponding to a second communication type mark from the candidate network by the second communication module on the first equipment, which corresponds to the second communication type mark, and adding the second network; and sending a network mark of the second network to the first communication module of the second equipment through the first communication module of the first equipment, so as to add the second communication module corresponding to the second communication type mark on the second equipment into the second network. According to the invention, the first equipment and the second equipment can successfully switch a communication network and carry out communication through the switched second network.

Description

Method, Apparatus and system that network switches
Technical field
The present invention relates to the communications field, particularly relate to method, Apparatus and system that a kind of network switches.
Background technology
Along with the differentiation of home network technologies, kind and the data format of current home digital device get more and more, and user is also more and more for the demand shared of data between the content of multimedia such as HDTV (High-Definition Television), internet video and subscriber equipment.In general family, single home network technologies can not realize the coverage rate of 100%.Such as, for PLC(Power Line Communication, power line communication) network, although there is supply socket in each room, the interference ratio of PLC channel is comparatively large, may affect the performance of PLC; For WiFi (Wireless Fidelity, adopting wireless fidelity technology), may can cause the decay of signal due to the density of building construction and construction material, and reduce coverage rate.Therefore, support that the seamless interlinkage between the subscriber equipment of the different communication technologys has become the requisite key element of interconnected family.
OMEGA(Home Gigabit Access, family's gigabit access) propose Inter-MAC layer concept and specification, it is positioned at OSI(Open System Interconnect, open system interconnection) between the layer two of protocol infrastructure and layer three, Ethernet, PLC, UWB (Ultra Wideband can be integrated, ultra broadband), the communication technology such as WiFi, optical fiber, provide public data and control Service Access Point, MAC layer information and the Inter-MAC Inter layer exchange of different technologies can be allowed.
Define three different faces in Inter-MAC layer, comprise chain of command, data surface and chain of command.Data surface is responsible for sending data, and it obtains packet from different queues, and transfers them to output queue or high level, and data surface mainly comprises forward direction sending module, encrypting module.Chain of command is responsible for QoS(Quality of Service, service quality) management, find and safeguard end-to-end path, the monitoring of local link condition and the foundation of link and dismounting, respectively by QoS module, path selection module, monitoring modular and link establishment/dismounting module have been come, wherein QoS module comprises QoS mapping and access control two submodules, in path selection module, save routing list, and monitoring modular is responsible for the direct connectedness verifying this equipment and neighbor device, and the path that the parameter of needs has been set up to recalculate path selection module is provided, and nearest and current link parameter is stored in an information database, link establishment/dismounting module in charge is set up and is removed link, and be the monitoring modular collection information of neighbor device and the QoS state of current ink.Chain of command primary responsibility provides block configuration, wrong parameter, performance parameter, configuration parameter, security parameter etc.In addition, Inter-MAC layer also has the Inter-MAC adapter corresponding to each technology modules outward, and being responsible for the MAC layer primitive of each technology, message translation is the method for expressing that technology modules has nothing to do.
Support, in the equipment of the Inter-MAC agreement of OMEGA, to incorporate the module of multiple support different communication technology.Each communication technology module has oneself device identification, as MAC Address.For whole multimode device, there is the device identification that total, as Inter-MAC address.When the equipment of two support Inter-MAC agreements communicates, support to communicate between the module of same communication technology especially by these two equipment.Such as, time between the PLC device all supporting IEEE P1901 standard for communicating, two equipment can directly be inserted on socket, utilize home power line to communicate as transmission medium.But the communication of the disparate modules of two equipment is also carried out by the Inter-MAC layer in two equipment, thus the connection between the home network realizing different technologies type, expand home network and cover.
According to different communication requirements, when communicating between the equipment of two support Inter-MAC agreements, usually can need to carry out network switching.
Such as, first equipment and the second equipment opposite equip. and be the equipment supporting Inter-MAC agreement each other, now, first equipment is communicated by power line network with the second equipment, is namely communicated by the communication link in power line network between the PLC module of the first equipment and the PLC module of the second equipment.If user needs power line network to be switched to WLAN(Wireless Local Area Network, WLAN (wireless local area network)) network time, then need to be switched between WiFi module on the first equipment and the upper WiFi module of the second equipment and communicated by the communication link in wlan network.But, adopt prior art, carry out in the process communicated between the first equipment and the second equipment, if when needing to carry out network switching, described first equipment and the second equipment need to perform separately to be switched to second network, when the second network that described first equipment and the second equipment are be switched to separately is not identical, then cannot realize between the first equipment and the second equipment communicating in network after handover, thus the failure causing network to switch.
Summary of the invention
The invention discloses method, Apparatus and system that a kind of network switches, by the present invention, ensure that the first equipment and the second equipment successfully can be switched communication network and be communicated by the second network after switching to a certain extent.
Present embodiments provide a kind of method that network switches, specifically comprise following technical scheme:
The first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
When the first communication module receiving the second equipment return accept the response of network switching request time, second communication module corresponding with second communication type identification on the first equipment searches for the current candidate network added;
When searching the candidate network that can add, second communication module corresponding with second communication type identification on the first equipment is determined the second network corresponding with second communication type identification and is added from candidate network;
The network identity of second network is sent to the first communication module of the second equipment by the first communication module of the first equipment, so that the second equipment second communication module corresponding with second communication type identification adds second network.
Present embodiments provide the method that the second network switches, specifically comprise following technical scheme:
The first communication module of the second equipment receives the network switching request information of the first communication module transmission of the first equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
The first communication module of the second equipment returns to the first communication module of the first equipment the response accepting network switching request;
The first communication module of the second equipment receives the network identity of the second network corresponding with second communication type identification of the first communication module transmission of the first equipment;
Second communication module corresponding with second communication type identification on second equipment adds second network.
Present embodiments provide the method that the third network switches, specifically comprise following technical scheme:
The first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
When the first communication module receiving the second equipment return accept the response of network switching request time, second communication module corresponding with second communication type identification on the first equipment searches for the current first group of candidate network added;
When searching first group of candidate network that can add, the network identity of first group of candidate network is sent to the first communication module of the second equipment by the first communication module of the first equipment, so that second communication mould corresponding with second communication type identification on the second equipment is determined the second network corresponding with second communication type identification and added from first group of candidate network;
The first communication module of the first equipment receives the network identity of the second network of the first communication module transmission of the second equipment;
Second communication module corresponding with second communication type identification on first equipment adds second network.
Present embodiments provide the method that the 4th kind of network switches, specifically comprise following technical scheme:
The first communication module of the second equipment receives the network switching request information of the first communication module transmission of the first equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
The first communication module of the second equipment returns to the first communication module of the first equipment the response accepting network switching request;
The first communication module of the second equipment receives first group of candidate network of the first communication module transmission of the first equipment;
Second communication module corresponding with second communication type identification on second equipment is determined the second network corresponding with second communication type identification and is added from first group of candidate network;
The network identity of second network is sent to the first communication module of the first equipment by the first communication module of the second equipment, so that second communication module corresponding with second communication type identification on the first equipment adds second network.
The present embodiment additionally provides the device that a kind of network switches, and specifically comprises:
First sending module, send network switching request information for the first communication module to the second equipment, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
Search module, for return when the first communication module receiving the second equipment accept the response of network switching request time, search for the current candidate network added;
Add module, for when searching the candidate network that can add, from candidate network, determining the second network corresponding with second communication type identification and add;
Second sending module, for the network identity of second network being sent to the first communication module of the second equipment, so that the second equipment second communication module corresponding with second communication type identification adds second network.
The present embodiment additionally provides the device that the second network switches, and specifically comprises:
First receiver module, the network switching request information that the first communication module for receiving the first equipment sends, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
First sending module, for returning the response accepting network switching request to the first communication module of the first equipment;
Second receiver module, the network identity of the second network corresponding with second communication type identification that the first communication module for receiving the first equipment sends;
Add module, for adding second network.
The present embodiment additionally provides the device that the third network switches, and specifically comprises:
First sending module, send network switching request information for the first communication module to the second equipment, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
Search module, for return when the first communication module receiving the second equipment accept the response of network switching request time, search for the current first group of candidate network added;
Second sending module, for when searching first group of candidate network that can add, the network identity of first group of candidate network is sent to the first communication module of the second equipment, so that second communication mould corresponding with second communication type identification on the second equipment is determined go up with the corresponding second network of second communication type identification and add from first group of candidate network;
Receiver module, the network identity of the second network that the first communication module for receiving the second equipment sends;
Add module, for adding second network.
The present embodiment additionally provides the device that the 4th kind of network switches, and specifically comprises:
First receiver module, the network switching request information that the first communication module for receiving the first equipment sends, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
First sending module, for returning the response accepting network switching request to the first communication module of the first equipment;
Second receiver module, first group of candidate network that the first communication module for receiving the first equipment sends;
Add module, for determining the second network corresponding with second communication type identification and add from first group of candidate network;
Second sending module, for the network identity of second network being sent to the first communication module of the first equipment, so that second communication module corresponding with second communication type identification on the first equipment adds second network.
Present invention also offers a kind of network switched system, comprise above-mentioned first equipment, above-mentioned second equipment, above-mentioned first equipment comprises first communication module and second communication module, and above-mentioned second equipment comprises first communication module and second communication module.
The method that a kind of network provided by the invention switches, Apparatus and system, in the present invention, between the first equipment and the second equipment, need to carry out network when switching, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the second communication module determination second network of the first equipment also adds, and by the first communication module of the first equipment, the network identity of second network is sent to the first communication module of the second equipment, the second communication module of the second equipment adds second network.
Or, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the network identity of first group of candidate network that the first communication module of the first equipment can add sends to the second equipment, the second communication module of the second equipment is determined second network and adds from first group of candidate network, by the first communication module of the second equipment, the network identity of second network is sent to the first communication module of the first equipment again, the second communication module of the first equipment adds second network.
Visible, pass through the present invention, ensure that the first equipment and the second equipment second communication module separately can add identical second network, thus make the first equipment and the second equipment successfully can switch communication network and communicated by the second network after switching.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
The method flow diagram that a kind of network that Fig. 1 provides for the present embodiment 1 switches;
The method flow diagram that the second network that Fig. 2 provides for the present embodiment 1 switches;
The method flow diagram that the third network that Fig. 3 provides for the present embodiment 1 switches;
The method flow diagram that the 4th kind of network that Fig. 4 provides for the present embodiment 1 switches;
The method flow diagram that a kind of network that Fig. 5 provides for the present embodiment 2 switches;
The method flow diagram that a kind of network that Fig. 6 provides for the present embodiment 3 switches;
The structure drawing of device that a kind of network that Fig. 7 provides for the present embodiment 4 switches;
The structure drawing of device that a kind of network that Fig. 8 provides for the present embodiment 4 switches;
The structure drawing of device that the second network that Fig. 9 provides for the present embodiment 4 switches;
The structure drawing of device that the second network that Figure 10 provides for the present embodiment 4 switches;
The structure drawing of device that the second network that Figure 11 provides for the present embodiment 4 switches;
The structure drawing of device that the second network that Figure 12 provides for the present embodiment 4 switches;
The structure drawing of device that the third network that Figure 13 provides for the present embodiment 4 switches;
The structure drawing of device that the third network that Figure 14 provides for the present embodiment 4 switches;
The structure drawing of device that the 4th kind of network that Figure 15 provides for the present embodiment 4 switches;
The structure drawing of device that the 4th kind of network that Figure 16 provides for the present embodiment 4 switches;
The structure drawing of device that the 4th kind of network that Figure 17 provides for the present embodiment 4 switches;
The structure drawing of device that the 4th kind of network that Figure 18 provides for the present embodiment 4 switches;
A kind of network switched system structure chart that Figure 19 provides for the present embodiment 4.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
In embodiments of the present invention, first equipment and the second equipment opposite equip. each other, and the first equipment is identical with the device type of the second equipment, be the equipment supporting Inter-MAC agreement, wherein, support that the equipment of Inter-MAC agreement can support the multiple communication technology simultaneously, such as: support the communication technologys such as powerline network communication, WLAN communication and coaxial cable communication simultaneously.Each communication technology is all undertaken realizing by different technology modules, such as: PLC module supports that powerline network communication, WiFi module support WLAN communication, MoCA(Multimedia over Coax Alliance, multimedia over Coax Alliance) module supports coaxial cable multimedia network service etc.
In following examples of the present invention, with under the first communication network, when the first communication module of the first equipment is communicated by the first communication link with the first communication module of the second equipment, the application scenarios being switched to second communication network is needed to be that example is specifically described the solution of the present invention.
Wherein, first communication module and second communication module are the module of carrying out data communication under dissimilar communication network, comprising: WiFi module, PLC module or MoCA module etc.First communication network and second communication network are the dissimilar communication network adopting the different communication technologys to set up, and this dissimilar communication network comprises: wireless network, power line network, coax network etc.Hereinafter, the first communication link mentioned, under the first communication network, carries out the link communicated between the first communication module of the first equipment and the first communication module of the second equipment; Second communication link is under second communication network, carries out the link communicated between the second communication module of the first equipment and the second communication module of the second equipment.
What deserves to be explained is, after the first equipment and the second equipment all successfully add communication network, this first equipment can be set up with the communication link adopted when corresponding communication module communicates separately on the second equipment.Such as, after the second communication module of the first equipment and the second communication module of the second equipment all successfully add second communication network, namely second communication link can be formed.
It should be noted that, after the first equipment and the second equipment all successfully add second communication network by respective second communication module, the second communication module of the first equipment can be communicated by second communication link with the second communication module of the second equipment, now, the demand different according to user or different types of service, can by the first communication network, the first communication link carrying out between the first communication module of the first equipment and the first communication module of the second equipment communicating is closed, also described first communication link can not be closed, realize being communicated with second communication link by the first communication link between the first equipment with the second equipment simultaneously.
Embodiment 1
See Fig. 1, be the method flow diagram of a kind of network switching that the present embodiment provides, the method is performed by the first equipment, specifically comprises the steps:
The first communication module of 101: the first equipment sends network switching request information to the first communication module of the second equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment.
102: when the first communication module receiving the second equipment return accept the response of network switching request time, second communication module corresponding with described second communication type identification on the first equipment searches for the current candidate network added.
103: when searching the candidate network that can add, second communication module corresponding with second communication type identification on the first equipment is determined the second network corresponding with second communication type identification and is added from candidate network.
The network identity of second network is sent to the first communication module of the second equipment by the first communication module of 104: the first equipment, so that the second equipment second communication module corresponding with second communication type identification adds second network.
Correspondingly, see Fig. 2, be the method flow diagram of a kind of network switching that the present embodiment provides, the method is performed by the second equipment, specifically comprises the steps:
The first communication module of 201: the second equipment receives the network switching request information of the first communication module transmission of the first equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment.
The first communication module of 202: the second equipment returns to the first communication module of the first equipment the response accepting network switching request.
The first communication module of 203: the second equipment receives the network identity of the second network of the first communication module transmission of the first equipment.
Second communication module corresponding with second communication type identification on 204: the second equipment adds the second network corresponding with second communication type identification.
The method that a kind of network that the present embodiment provides switches, in the present embodiment, between the first equipment and the second equipment, need to carry out network when switching, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the second communication module determination second network of the first equipment also adds, and by the first communication module of the first equipment, the network identity of second network is sent to the first communication module of the second equipment, the second communication module of the second equipment is made to add second network.
Visible, pass through the present embodiment, ensure that the first equipment and the second equipment second communication module separately can add identical second network, thus make the first equipment and the second equipment successfully can switch communication network and communicated by the second network after switching.
See Fig. 3, be the method flow diagram of the another kind of network switching that the present embodiment also provides, the method is performed by the first equipment, specifically comprises the steps:
The first communication module of 301: the first equipment sends network switching request information to the first communication module of the second equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment.
302: when the first communication module receiving the second equipment return accept the response of network switching request time, second communication module corresponding with second communication type identification on the first equipment searches for the current first group of candidate network added.
303: when searching first group of candidate network that can add, the network identity of first group of candidate network is sent to the first communication module of the second equipment by the first communication module of the first equipment, so that second communication mould corresponding with second communication type identification on the second equipment is determined the second network corresponding with second communication type identification and added from first group of candidate network.
The first communication module of 304: the first equipment receives the network identity of the second network of the first communication module transmission of the second equipment.
Second communication module corresponding with second communication type identification on 305: the first equipment adds second network.
Correspondingly, see Fig. 4, be the method flow diagram of the another kind of network switching that the present embodiment provides, the method is performed by the second equipment, specifically comprises the steps:
The first communication module of 401: the second equipment receives the network switching request information of the first communication module transmission of the first equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment.
The first communication module of 402: the second equipment returns to the first communication module of the first equipment the response accepting network switching request.
The first communication module of 403: the second equipment receives first group of candidate network of the first communication module transmission of the first equipment.
Second communication module corresponding with second communication type identification on 404: the second equipment is determined the second network corresponding with second communication type identification and is added from first group of candidate network.
The network identity of second network is sent to the first communication module of the first equipment by the first communication module of 405: the second equipment, so that second communication module corresponding with second communication type identification on the first equipment adds second network.
The method that the another kind of network that the present embodiment provides switches, in the method, between the first equipment and the second equipment, need to carry out network when switching, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the network identity of first group of candidate network that the first communication module of the first equipment can add sends to the second equipment, the second communication module of the second equipment is determined second network and adds from first group of candidate network, by the first communication mould of the second equipment the network identity of second network sent to the first communication module of the first equipment again, the second communication module of the first equipment adds second network.
Visible, pass through the present embodiment, ensure that the first equipment and the second equipment second communication module separately can add identical second network, thus make the first equipment and the second equipment successfully can switch communication network and communicated by the second network after switching.
Embodiment 2
See Fig. 5, it is the method flow diagram of a kind of network switching that the present embodiment provides.The method specifically comprises the steps:
The first communication module of 501: the first equipment sends network switching request information to the first communication module of the second equipment.
Wherein, the MAC Address of the second communication module of second communication type identification and the first equipment is at least comprised in above-mentioned network switching request information;
It should be noted that, at least comprise in second communication type identification for represent the communication module type identification of communication module that uses after network switches or for represent the second network be switched to network type mark in one.
Such as, just communicated by the first communication link in the first communication network between the first communication module of the first equipment and the first communication module of the second equipment, and first communication module is PLC module, first communication network is power line network, first communication link is under power line network, carries out the link communicated between the PLC module of the first equipment and the PLC module of the second equipment.Now, first equipment and the second equipment need to be switched to MoCA network when communicating, the MAC Address of the MoCA module comprising second communication type identification and the first equipment is then needed in network switching request information, wherein, second communication type identification is specifically as follows communication module type identification for representing MoCA module or for representing MoCA network of network type identification.
Further, above-mentioned network switching request information can also comprise the information such as the channel frequency of closing its work before second communication module.
After the first communication module of 502: the second equipment receives network switching request information, judge whether to accept network switching request.
503: when accepting network switching request, the first communication module of the second equipment sends to the first communication module of the first equipment the response accepting network switching request.
Particularly, when accepting network switching request, the first communication module of the second equipment sends to the first communication module of the first equipment the response accepting network switching request by the first communication link.
504: when refusing network switching request, the first communication module of the second equipment is refused the response of network switching request to the first communication module transmission of the first equipment or does not send any response message to the first communication module of the first equipment.
Such as, user is in order to reduce equipment power dissipation, and when arranging the second equipment, second communication module may be set to not opening, now, the second equipment then can not accept network switching request.
505: when the first communication module of the first equipment receive that the first communication module of the second equipment sends accept the response of network switching request after, the current candidate network added of second communication module search of the first equipment.
Wherein, in the present embodiment, the second communication module of the first equipment is second communication module corresponding with second communication type identification on the first equipment.
Optionally, the second communication module of the first equipment can by the first opening of device before the current candidate network added of second communication module search of the first equipment.
It should be noted that, the current candidate network added of second communication module search of the first equipment belongs to prior art, does not repeat them here.
506: when the second communication module of the first equipment does not search the candidate network that can add, the second communication module of the first equipment sets up the second network corresponding with second communication type identification, is added by the network of foundation as second network.
It should be noted that, because different communication networks has its respective characteristic, such as, power line network, coaxial cable multimedia network and part wireless network etc. can be created voluntarily by equipment, therefore, when the second network needing to be switched to is for supporting to create voluntarily, after this step of execution, the operation of step 508 can be performed, do not repeat them here; When the second network needing to be switched to is for creating network of network voluntarily, then stop the operation that network switches.
Wherein, the process that the second communication module of the first equipment sets up the second network corresponding with second communication type identification belongs to prior art, such as: when second communication module is MoCA module, the process that MoCA module sets up network is roughly: MoCA model choice operable frequency range sets up network, to go on the air beacon, and wait for the networking license request that other MoCA equipment sends.
507: when the second communication module of the first equipment searches the candidate network that can add, the second communication module of the first equipment is determined the second network corresponding with second communication type identification and adds from candidate network.
Further, the second communication module of the first equipment is determined the second network corresponding with second communication type identification and adds from candidate network, specifically comprises following two kinds of modes:
Mode one, when only comprising a network in candidate network, this candidate network adds as the second network corresponding with second communication type identification by the second communication module of the first equipment;
Optionally, when the network be switched to needed for the first equipment is the networks such as MoCA network, power line network, the manner can be adopted to add second network.
Mode two, when comprising at least two networks in candidate network, any one network in candidate network adds as the second network corresponding with second communication type identification by the second communication module of the first equipment;
Optionally, when the network be switched to needed for the first equipment is wlan network, the WiFi module of the first equipment can add second network by this kind of mode.
The network identity of second network is sent to the first communication module of the second equipment by the first communication module of 508: the first equipment.
Particularly, the network identity of second network is sent to the first communication module of the second equipment by the first communication module of the first equipment by the first communication link, wherein, comprises the network ID of second network in the network identity of second network.
Optionally, while the network identity of added second network is sent to the second communication module of the second equipment by the second communication module of the first equipment, the second communication module that can also send the first equipment successfully adds the response of second network.
509: when after the network identity receiving second network, the current candidate network added of second communication module search of the second equipment.
Wherein, in the present embodiment, the second communication module of the second equipment is second communication module corresponding with second communication type identification on the second equipment.
Optionally, the second communication module of the second equipment can by the second opening of device before the current first group of candidate network added of second communication module search of the second equipment.
It should be noted that, when the required network be switched to is power line network, second communication module is now PLC module, before the second communication module of the second equipment searches for the current candidate network added in above-mentioned steps 509, also can perform following steps:
The first communication module of the second equipment judges that whether the network identity of second network is identical with the network identity prestored.
When the network identity of second network is identical with the network identity prestored, perform the operation of the current candidate network added of second communication module search of the second equipment in above-mentioned steps 509;
It should be noted that, PLC module due to the second equipment need add the power line network corresponding with the network identity prestored to realize powerline network communication, support in second equipment to prestore the information such as network identity in the PLC module of powerline network communication, therefore when the PLC module of the second equipment is using candidate network as second network and before adding, the network identity of second network and the network identity prestored are compared, when the network identity of second network is identical with the network identity prestored, the PLC module of the second equipment can perform the operation of searching for the current power line network added.
When the network identity of second network is not identical with the network identity prestored, optionally, the first communication module of the second equipment returns to the first communication module of the first equipment the response adding second network failure.
510: when the second communication module of the second equipment does not search the current candidate network added, send to the first communication module of the first equipment the response adding second network failure by the first communication module of the second equipment.
Concrete, when the second communication module of the second equipment does not search the current candidate network added, the first communication module of the second equipment sends to the first communication module of the first equipment the response adding second network failure by the first communication link.
511: when the first communication module of the first equipment receive that the first communication module of the second equipment sends add the response of second network failure after, the second communication module of the first equipment is set up the second network corresponding with second communication type identification and adds.
It should be noted that, because different communication networks has its respective characteristic, such as, power line network, coaxial cable multimedia network and part wireless network etc. can be created voluntarily by equipment, therefore, when the second network needing to be switched to is for supporting to create voluntarily, after execution step 511, the operation of step 508 can be performed, do not repeat them here; When needing the second network be switched to be when can not create the wireless network of network voluntarily, then stop the operation that network switches.
Wherein, in the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification and above-mentioned steps 506, the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification is identical, does not repeat them here.
512: when the second communication module of the second equipment searches the current candidate network added, the second communication module of the second equipment judges the network identity that whether there is second network in the network identity of candidate network.
513: when there is not the network identity of second network in candidate network, the first communication module of the second equipment sends to the first communication module of the first equipment the response adding second network failure.
Particularly, when there is not the network identity of second network in candidate network, the first communication module of the second equipment sends to the first communication module of the first equipment the response adding second network failure by the first communication link.
514: when the first communication module of the first equipment receive that the first communication module of the second equipment sends add the response of second network failure after, the second communication module of the first equipment is set up the second network corresponding with second communication type identification and adds.
It should be noted that, because different communication networks has its respective characteristic, such as, power line network, coaxial cable multimedia network and part wireless network etc. can be created voluntarily by equipment, therefore, when the second network needing to be switched to is for supporting to create voluntarily, after execution step 514, the operation of step 508 can be performed, do not repeat them here; When needing the second network be switched to be when can not create the wireless network of network voluntarily, then stop the operation that network switches.
Wherein, in the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification and above-mentioned steps 506, the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification is identical, does not repeat them here.
515: when there is the network identity of second network in candidate network, the second communication module of the second equipment adds the network identity network identical with the network identity of second network.
In the method that the present embodiment provides, after the first equipment and the second equipment all successfully add second communication network, the second communication link adopted when this first equipment communicates with respective second communication module on the second equipment can be set up.
After the second communication module of 516: the second equipment adds second network, send the response successfully adding second network to the first equipment.
Optionally, after the second communication module of the second equipment adds the network identity network identical with the network identity of second network, the second communication module of the second equipment sends by the second communication module of second communication chain road direction first equipment the response successfully adding second network.
Optionally, after the second communication module of the second equipment adds the network identity network identical with the network identity of second network, the first communication module of the second equipment sends to the first communication module of the first equipment the response successfully adding second network by the first communication link.
The method that a kind of network that the present embodiment provides switches, in the method, between the first equipment and the second equipment, need to carry out network when switching, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the second communication module determination second network of the first equipment also adds, and by the first communication module of the first equipment, the network identity of second network is sent to the first communication module of the second equipment, the second communication module of the second equipment adds second network.
Visible, pass through the present embodiment, ensure that the first equipment and the second equipment second communication module separately can add identical second network, thus make the first equipment and the second equipment successfully can switch communication network and communicated by the second network after switching.
Embodiment 3
See Fig. 6, it is the method flow diagram of a kind of network switching that the present embodiment provides.The method specifically comprises the steps:
The first communication module of 601: the first equipment sends network switching request information to the first communication module of the second equipment.
Wherein, the MAC Address of the second communication module of second communication type identification and the first equipment is at least comprised in above-mentioned network switching request information;
It should be noted that, at least comprise in second communication type identification for represent the communication module type identification of communication module that uses after network switches or for represent the second network be switched to network type mark in one.
Such as, just communicated by the first communication link in the first communication network between the first communication module of the first equipment and the first communication module of the second equipment, and first communication module is PLC module, first communication network is power line network, first communication link is under power line network, carries out the link communicated between the PLC module of the first equipment and the PLC module of the second equipment.Now, first equipment and the second equipment need to be switched to MoCA network when communicating, the MAC Address of the MoCA module comprising second communication type identification and the first equipment is then needed in network switching request information, wherein, second communication type identification is specifically as follows communication module type identification for representing MoCA module or for representing MoCA network of network type identification.
Further, above-mentioned network switching request information can also comprise the information such as the channel frequency of closing its work before second communication module.
After the first communication module of 602: the second equipment receives network switching request information, judge whether to accept network switching request.
603: when accepting network switching request, the first communication module of the second equipment sends to the first communication module of the first equipment the response accepting network switching request.
Particularly, when accepting network switching request, the first communication module of the second equipment sends to the first communication module of the first equipment the response accepting network switching request by the first communication link.
604: when refusing network switching request, the first communication module of the second equipment is refused the response of network switching request to the first communication module transmission of the first equipment or does not send any response message to the first communication module of the first equipment.
Wherein, the situation of the second equipment refusal network switching request is identical with the situation that the second equipment in step 504 in above-described embodiment 2 refuses network switching request, no longer illustrates at this.
Particularly, when refusing network switching request, the first communication module of the second equipment is sent the response of refusal network switching request by the first communication module of the first communication link to the first equipment or is not sent any response message to the first communication module of the first equipment.
605: when the first communication module of the first equipment receive that the first communication module of the second equipment sends accept the response of network switching request after, the current first group of candidate network added of second communication module search of the first equipment.
Wherein, in the present embodiment, the second communication module of the first equipment is second communication module corresponding with second communication type identification on the first equipment.
Optionally, the second communication module of the first equipment can by the first opening of device before the current first group of candidate network added of second communication module search of the first equipment.
It should be noted that, the current first group of candidate network added of second communication module search of the first equipment belongs to prior art, does not repeat them here.
606: when the second communication module of the first equipment does not search first group of candidate network that can add, the second communication module of the first equipment sets up the second network corresponding with second communication type identification, is added by the network of foundation as second network.
It should be noted that, because different communication networks has its respective characteristic, such as, power line network, coaxial cable multimedia network and part wireless network etc. can be created voluntarily by equipment, therefore, when the second network needing to be switched to is for supporting to create voluntarily, after execution step 606, the operation that first equipment performs is identical with the operation that the first equipment in step 508-step 516 in above-described embodiment 2 performs, the operation that second equipment performs is identical with the operation that the second equipment in step 508-step 516 in above-described embodiment 2 performs, do not repeat them here, when needing the second network be switched to be when can not create the wireless network of network voluntarily, then stop the operation that network switches.
Wherein, the second communication module of the first equipment is set up in the method for second network corresponding with second communication type identification and the step 506 of above-mentioned enforcement 2, the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification is identical, does not repeat them here.
607: when the second communication module of the first equipment searches first group of candidate network that can add, the network identity of first group of candidate network is sent to the first module of the second equipment by the first communication module of the first equipment.
Particularly, when the second communication module of the first equipment searches first group of candidate network that can add, the network identity of first group of candidate network is sent to the first communication module of the second equipment by the first communication module of the first equipment by the first communication link.
608: after the network identity of the first group of candidate network sent when the first mould receiving the first equipment, the current second group of candidate network added of the second communication module of the second equipment search.
It should be noted that, in the present embodiment, the second communication module of the second equipment is second communication module corresponding with second communication type identification on the second equipment.
Optionally, the second communication module of the second equipment can by the second opening of device before the current second group of candidate network added of second communication module search of the second equipment.
Also it should be noted that, when the required network be switched to is power line network, second communication module is now PLC module, before the second communication module of the second equipment searches for the current second group of candidate network added in above-mentioned steps 608, also can perform following steps:
The first communication module of the second equipment judges whether there is the network identity prestored in first group of candidate network.
When there is the network identity prestored in first group of candidate network, perform the operation of the current second group of candidate network added of second communication module search of the second equipment in above-mentioned steps 608;
It should be noted that, PLC module due to the second equipment need add the power line network corresponding with the network identity prestored to realize powerline network communication, support in second equipment to prestore the information such as network identity in the PLC module of powerline network communication, therefore when the PLC module of the second equipment is using candidate network as second network and before adding, judge whether there is the network identity prestored in first group of candidate network, when there is the network identity prestored in first group of candidate network, the PLC module of the second equipment can perform the operation of searching for the current power line network added.
When there is not the network identity prestored in first group of candidate network, optionally, the first communication module of the second equipment returns to the first communication module of the first equipment the response adding second network failure.
609: when the second communication module of the second equipment does not search second group of candidate network that can add, send to the first communication module of the first equipment the response adding second network failure by the first communication module of the second equipment.
Particularly, when the second communication module of the second equipment does not search second group of candidate network that can add, the first communication module of the second equipment sends to the first communication module of the first equipment the response adding second network failure by the first communication link.
610: when the first communication module of the first equipment receive that the first communication module of the second equipment sends add the response of second network failure after, the second communication module of the first equipment is set up the second network corresponding with second communication type identification and adds.
It should be noted that, because different communication networks has its respective characteristic, such as, power line network, coaxial cable multimedia network and part wireless network etc. can be created voluntarily by equipment, therefore, when the second network needing to be switched to is for supporting to create voluntarily, after execution step 610, the operation that first equipment performs is identical with the operation that the first equipment in step 508-step 516 in above-described embodiment 2 performs, the operation that second equipment performs is identical with the operation that the second equipment in step 508-step 516 in above-described embodiment 2 performs, do not repeat them here, when needing the second network be switched to be when can not create the wireless network of network voluntarily, then stop the operation that network switches.
Wherein, the second communication module of the first equipment is set up in the method for second network corresponding with second communication type identification and the step 506 of above-mentioned enforcement 2, the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification is identical, does not repeat them here.
611: when the second communication module of the second equipment searches second group of candidate network that can add, the second communication module of the second equipment judges whether there is common network in second group of candidate network and first group of candidate network.
612: when there is not common network, the second equipment sends to the first communication module of the first equipment the response adding second network failure.
Particularly, when there is not common network, the first communication module of the second equipment sends to the first communication module of the first equipment the response adding second network failure by the first communication link.
613: when the first communication module of the first equipment receive that the first communication module of the second equipment sends add the response of second network failure after, the second communication module of the first equipment is set up the second network corresponding with second communication type identification and adds.
It should be noted that, because different communication networks has its respective characteristic, such as, power line network, coaxial cable multimedia network and part wireless network etc. can be created voluntarily by equipment, therefore, when the second network needing to be switched to is for supporting to create voluntarily, after execution step 613, the operation that first equipment performs is identical with the operation that the first equipment in step 508-step 516 in above-described embodiment 2 performs, the operation that second equipment performs is identical with the operation that the second equipment in step 508-step 516 in above-described embodiment 2 performs, do not repeat them here, when needing the second network be switched to be when can not create the wireless network of network voluntarily, then stop the operation that network switches.
Wherein, the second communication module of the first equipment is set up in the method for second network corresponding with second communication type identification and the step 506 of above-mentioned enforcement 2, the method that the second communication module of the first equipment sets up the second network corresponding with second communication type identification is identical, does not repeat them here.
614: when there is common network, the second communication module of the second equipment is determined second network and adds in common network.
Further, the second communication module of the second equipment is determined the second network corresponding with second communication type identification and adds in common network, specifically comprises following two kinds of modes:
Mode one, when only comprising a network in common network, this candidate network adds as the second network corresponding with second communication type identification by the second communication module of the second equipment;
Optionally, when the network be switched to needed for the second equipment is the networks such as MoCA network, power line network, the manner can be adopted to add second network.
Mode two, when comprising at least two networks in common network, any one network in common network adds as the second network corresponding with second communication type identification by the second communication module of the second equipment;
Optionally, when the network be switched to needed for the second equipment is wlan network, the WiFi module of the second equipment can add second network by this kind of mode.
The network identity of second network is sent to the first communication module of the first equipment by the first communication module of 615: the second equipment.
Particularly, the network identity of second network is sent to the first communication module of the first equipment by the first communication module of the second equipment by the first communication link, wherein, comprises the network ID of second network in the network identity of second network.
Optionally, the second communication module that can also send the second equipment while the network identity of second network is sent to the first communication module of the first equipment by the first communication module of the second equipment successfully adds the response of second network.
After the network identity of the second network that the first communication module that the first communication module of 616: the first equipment receives the second equipment sends, the second communication module of the second equipment adds second network.
In the method that the present embodiment provides, after the first equipment and the second equipment all successfully add second communication network, the second communication link adopted when this first equipment communicates with respective second communication module on the second equipment can be formed.
After the second communication module of 617: the first equipment adds second network, send the response successfully adding second network to the second equipment.
Optionally, after the second communication module of the first equipment adds second network, the second communication module of the first equipment sends by the second communication module of second communication chain road direction second equipment the response successfully adding second network.
Optionally, after the second communication module of the first equipment adds second network, the first communication module of the first equipment sends to the first communication module of the second equipment the response successfully adding second network by the first communication link.
The method that a kind of network that the present embodiment provides switches, in the method, between the first equipment and the second equipment, need to carry out network when switching, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the network identity of first group of candidate network that the first communication module of the first equipment can add sends to the second equipment, the second communication module of the second equipment is determined second network and adds from first group of candidate network, by the first communication mould of the second equipment the network identity of second network sent to the first communication module of the first equipment again, the second communication module of the first equipment adds second network.
Visible, pass through the present embodiment, ensure that the first equipment and the second equipment second communication module separately can add identical second network, thus make the first equipment and the second equipment successfully can switch communication network and communicated by the second network after switching.
Embodiment 4
See Fig. 7, it is the structure drawing of device of a kind of network switching that the present embodiment provides; Comprise:
First sending module 11, send network switching request information for the first communication module to the second equipment, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
Search module 12, for return when the first communication module receiving the second equipment accept the response of network switching request time, search for the current candidate network added;
Add module 13, for when searching the candidate network that can add, from candidate network, determining the second network corresponding with second communication type identification and add;
Second sending module 14, for the network identity of second network being sent to the first communication module of the second equipment, so that second communication module corresponding with second communication type identification on the second equipment adds second network.
Wherein, candidate network, specifically for when only comprising a network in candidate network, adds as the second network corresponding with second communication type identification by the above-mentioned module 13 that adds;
Or any one network in candidate network, specifically for when comprising at least two networks in candidate network, adds as the second network corresponding with second communication type identification by the above-mentioned module 13 that adds.
See Fig. 8, the device that the network that the present embodiment provides switches; Also comprise:
Set up module 15, for send when the first communication module receiving the second equipment add the response of second network failure time, set up the network corresponding with second communication type identification, the network of foundation added as second network;
Or, above-mentionedly setting up module 15, for when not searching the candidate network that can add, setting up the network corresponding with second communication type identification, the network of foundation is added as second network.
It should be understood that setting up module 15 can possess above-mentioned two functions simultaneously, just uses different functions under different situations.
See Fig. 9, it is the structure drawing of device of the second network switching that the present embodiment provides; Comprise:
First receiver module 21, the network switching request information that the first communication module for receiving the first equipment sends, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
First sending module 22, for returning the response accepting network switching request to the first communication module of the first equipment;
Second receiver module 23, the network identity of the second network corresponding with second communication type identification that the first communication module for receiving the first equipment sends;
Add module 24, for adding second network.
See Figure 10, the device that the second network that the present embodiment provides switches; Also comprise:
Search module 25, for searching for the current candidate network added;
First judge module 26, for when searching the candidate network that can add, judges the network identity that whether there is second network in the network identity of candidate network;
Further, specifically for when there is the network identity of second network in the above-mentioned module 24 that adds, second communication module corresponding with second communication type identification on the second equipment adds second network in the network identity of candidate network.
See Figure 11, the device that the second network that the present embodiment provides switches; Also comprise:
Whether the second judge module 27 is identical with the network identity prestored for judging the network identity of second network;
Further, above-mentioned search module 25, specifically for when the network identity of second network is identical with the network identity prestored, searches for the current candidate network added.
See Figure 12, the device that the second network that the present embodiment provides switches; Also comprise:
Second sending module 28, for when not searching the candidate network that can add, the first communication module to the first equipment sends the response adding second network failure;
Or, above-mentioned second sending module 28, for when there is not the network identity of second network in the network identity of candidate network, the first communication module to the first equipment sends the response adding second network failure;
Or above-mentioned second sending module 28, for when the network identity of second network is identical with the network identity prestored, the first communication module to the first equipment sends the response adding second network failure.
It should be understood that the second sending module 28 can possess any two or three of above-mentioned three kinds of functions simultaneously, just under different situations, trigger different functions, perform different operations.
See Figure 13, it is the structure drawing of device of the third network switching that the present embodiment provides; Comprise:
First sending module 31, send network switching request information for the first communication module to the second equipment, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
Search module 32, for return when the first communication module receiving the second equipment accept the response of network switching request time, search for the current first group of candidate network added;
Second sending module 33, for when searching first group of candidate network that can add, the network identity of first group of candidate network is sent to the first communication module of the second equipment, so that second communication mould corresponding with second communication type identification on the second equipment is determined go up with the corresponding second network of second communication type identification and add from first group of candidate network;
Receiver module 34, the network identity of the second network that the first communication module for receiving the second equipment sends;
Add module 35, for adding second network.
See Figure 14, the device that the third network that the present embodiment provides switches; Also comprise:
Set up module 36, for send when the first communication module receiving the second equipment add the response of second network failure time, set up the network corresponding with second communication type identification, the network of foundation added as second network.
See Figure 15, it is the structure drawing of device of the 4th kind of network switching that the present embodiment provides; Comprise:
First receiver module 41, the network switching request information that the first communication module for receiving the first equipment sends, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment;
First sending module 42, for returning the response accepting network switching request to the first communication module of the first equipment;
Second receiver module 43, first group of candidate network that the first communication module for receiving the first equipment sends;
Add module 44, for determining the second network corresponding with second communication type identification and add from first group of candidate network;
Second sending module 45, for the network identity of second network being sent to the first communication module of the first equipment, so that second communication module corresponding with second communication type identification on the first equipment adds second network.
See Figure 16, the device that the 4th kind of network that the present embodiment provides switches; Also comprise:
Search module 46, for searching for the current second group of candidate network added;
First judge module 47, for when searching second group of candidate network that can add, judges whether there is common network in second group of candidate network and first group of candidate network;
Further, common network, specifically for when there is a common network in second group of candidate network and first group of candidate network, adds as second network corresponding to second communication type identification by the above-mentioned module 44 that adds;
Above-mentionedly add module 44 also specifically for when there is at least two each and every one common networks in second group of candidate network and first group of candidate network, any one network in common network is added as second network corresponding to second communication type identification.
See Figure 17, when second communication module is PLC module, the device that the 4th kind of network that the present embodiment provides switches; Also comprise:
Second judge module 48, for judging whether there is the network identity prestored in first group of candidate network;
Further, when above-mentioned search module 46 is specifically for existing the network identity prestored in first group of candidate network, search for the current second group of candidate network added.
See Figure 18, the device that the 4th kind of network that the present embodiment provides switches; Also comprise:
3rd sending module 49, for ought not searching second group of candidate network that can add, the first communication module to the first equipment sends the response adding second network failure;
Or, above-mentioned 3rd sending module 49, for when there is not common network in second group of candidate network and first group of candidate network, the first communication module to the first equipment sends the response adding second network failure;
Or above-mentioned 3rd sending module 49, for when there is not the network identity prestored in first group of candidate network, the first communication module to the first equipment sends the response adding second network failure.
See Figure 19, for a kind of network switched system structure chart that the present embodiment provides, comprise: above-mentioned first equipment 500, above-mentioned second equipment 600, above-mentioned first equipment 500 comprises first communication module 501 and second communication module 502, and above-mentioned second equipment 600 comprises first communication module 601 and second communication module 602; Wherein:
Above-mentioned first equipment 500 sends network switching request information for the first communication module of: the first equipment to the first communication module of the second equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; When the first communication module receiving the second equipment return accept the response of network switching request time, second communication module corresponding with second communication type identification on the first equipment searches for the current candidate network added; When searching the candidate network that can add, second communication module corresponding with second communication type identification on the first equipment is determined the second network corresponding with second communication type identification and is added from candidate network; The network identity of second network is sent to the first communication module of the second equipment by the first communication module of the first equipment, so that second communication module corresponding with second communication type identification on the second equipment adds second network;
The network switching request information that the first communication module that above-mentioned second equipment 600 receives the first equipment for the first communication module of: the second equipment sends, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; The first communication module of the second equipment returns to the first communication module of the first equipment the response accepting network switching request; The first communication module of the second equipment receives the network identity of the second network corresponding with second communication type identification of the first communication module transmission of the first equipment; Second communication module corresponding with second communication type identification on second equipment adds second network.
In the network switched system that the present embodiment provides, above-mentioned first equipment 500 also sends network switching request information for the first communication module of: the first equipment to the first communication module of the second equipment, and network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; When the first communication module receiving the second equipment return accept the response of network switching request time, second communication module corresponding with second communication type identification on the first equipment searches for the current first group of candidate network added; When searching first group of candidate network that can add, the network identity of first group of candidate network is sent to the first communication module of the second equipment by the first communication module of the first equipment, so that second communication mould corresponding with second communication type identification on the second equipment is determined the second network corresponding with second communication type identification and added from first group of candidate network; The first communication module of the first equipment receives the network identity of the second network of the first communication module transmission of the second equipment; Second communication module corresponding with second communication type identification on first equipment adds second network;
Correspondingly, the network switching request information that the first communication module that above-mentioned second equipment 600 also receives the first equipment for the first communication module of: the second equipment sends, network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; The first communication module of the second equipment returns to the first communication module of the first equipment the response accepting network switching request; The first communication module of the second equipment receives first group of candidate network of the first communication module transmission of the first equipment; Second communication module corresponding with second communication type identification on second equipment is determined the second network corresponding with second communication type identification and is added from first group of candidate network; The network identity of second network is sent to the first communication module of the first equipment by the first communication module of the second equipment, so that second communication module corresponding with second communication type identification on the first equipment adds second network.
Present embodiments provide the Apparatus and system that network switches, by this Apparatus and system, between the first equipment and the second equipment, need to carry out network when switching, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the second communication module determination second network of the first equipment also adds, and by the first communication module of the first equipment, the network identity of second network is sent to the first communication module of the second equipment, the second communication module of the second equipment adds second network.
Or, the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and the first communication module receiving the second equipment return accept the response of network switching request after, the network identity of first group of candidate network that the first communication module of the first equipment can add sends to the second equipment, the second communication module of the second equipment is determined second network and adds from first group of candidate network, by the first communication mould of the second equipment the network identity of second network sent to the first communication module of the first equipment again, the second communication module of the first equipment adds second network.
Visible, pass through the present embodiment, ensure that the first equipment and the second equipment second communication module separately can add identical second network, thus make the first equipment and the second equipment successfully can switch communication network and communicated by the second network after switching.
One of ordinary skill in the art will appreciate that all or part of step realizing above-described embodiment can have been come by hardware, the hardware that also can carry out instruction relevant by program completes, described program can be stored in a kind of computer-readable recording medium, such as USB flash disk, portable hard drive, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
Be only preferred embodiment of the present invention described in upper, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (28)

1. a method for network switching, is characterized in that, comprising:
The first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and described second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
When the first communication module receiving described second equipment return accept the response of network switching request time, second communication module corresponding with described second communication type identification on described first equipment searches for the current candidate network added;
When searching the candidate network that can add, second communication module corresponding with described second communication type identification on described first equipment is determined the second network corresponding with described second communication type identification and is added from described candidate network;
The network identity of described second network is sent to the first communication module of described second equipment by the first communication module of described first equipment, so that second communication module corresponding with described second communication type identification on described second equipment adds described second network.
2. method according to claim 1, it is characterized in that, second communication module corresponding with described second communication type identification on described first equipment is determined the second network corresponding with described second communication type identification and is added from described candidate network, specifically comprises;
When only comprising a network in described candidate network, described candidate network adds as the second network corresponding with described second communication type identification by second communication module corresponding with described second communication type identification on described first equipment;
Or,
When comprising at least two networks in described candidate network, any one network in described candidate network adds as the second network corresponding with described second communication type identification by second communication module corresponding with described second communication type identification on described first equipment.
3. method according to claim 1, is characterized in that, also comprises:
When receive described second equipment first communication module send add the response of described second network failure time, second communication module corresponding with described second communication type identification on described first equipment sets up the network corresponding with described second communication type identification, added by the network of described foundation as described second network;
Or,
When not searching the candidate network that can add, the second communication module that described first equipment is corresponding with described second communication type identification sets up the network corresponding with described second communication type identification, is added by the network of described foundation as second network.
4. a method for network switching, is characterized in that, comprising:
The first communication module of the second equipment receives the network switching request information of the first communication module transmission of the first equipment, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and described second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
The first communication module of described second equipment returns to the first communication module of described first equipment the response accepting network switching request;
The first communication module of described second equipment receives the network identity of the second network corresponding with described second communication type identification of the first communication module transmission of described first equipment;
Second communication module corresponding with described second communication type identification on described second equipment adds described second network.
5. method according to claim 4, is characterized in that, second communication module corresponding with described second communication type identification on described second equipment also comprises before adding described second network:
Second communication module corresponding with described second communication type identification on described second equipment searches for the current candidate network added;
When searching the candidate network that can add, second communication module corresponding with described second communication type identification on described second equipment judges the network identity that whether there is described second network in the network identity of candidate network;
Second communication module corresponding with described second communication type identification on described second equipment adds described second network, specifically comprises:
When there is the network identity of described second network in the network identity of candidate network, second communication module corresponding with described second communication type identification on described second equipment adds described second network.
6. method according to claim 5, is characterized in that, when described second communication module is PLC module, before the candidate network that second communication module search corresponding with described second communication type identification on described second equipment can add, also comprises:
The first communication module of described second equipment judges that whether the network identity of described second network is identical with the network identity prestored;
Second communication module corresponding with described second communication type identification on described second equipment searches for the current candidate network added, and specifically comprises:
When the network identity of described second network is identical with the network identity prestored, second communication module corresponding with described second communication type identification on described second equipment searches for the current candidate network added.
7. method according to claim 6, is characterized in that, also comprises:
When not searching the candidate network that can add, the first communication module of described second equipment sends to the first communication module of described first equipment the response adding described second network failure;
Or,
When there is not the network identity of described second network in the network identity of candidate network, the first communication module of described second equipment sends to the first communication module of described first equipment the response adding described second network failure;
Or,
When the network identity of described second network is not identical with the network identity prestored, the first communication module of described second equipment sends to the first communication module of described first equipment the response adding described second network failure.
8. a method for network switching, is characterized in that, comprising:
The first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and described second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
When the first communication module receiving described second equipment return accept the response of network switching request time, second communication module corresponding with described second communication type identification on described first equipment searches for the current first group of candidate network added;
When searching first group of candidate network that can add, the network identity of described first group of candidate network is sent to the first communication module of described second equipment by the first communication module of described first equipment, so that second communication mould corresponding with described second communication type identification on described second equipment is determined the second network corresponding with described second communication type identification and added from described first group of candidate network;
The first communication module of described first equipment receives the network identity of the second network of the first communication module transmission of described second equipment;
Second communication module corresponding with described second communication type identification on described first equipment adds described second network.
9. method according to claim 8, is characterized in that, also comprises:
When receive described second equipment first communication module send add the response of described second network failure time, second communication module corresponding with described second communication type identification on described first equipment sets up the network corresponding with described second communication type identification, added by the network of described foundation as described second network.
10. a method for network switching, is characterized in that, comprising:
The first communication module of the second equipment receives the network switching request information of the first communication module transmission of the first equipment, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and described second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
The first communication module of described second equipment returns to the first communication module of described first equipment the response accepting network switching request;
The first communication module of described second equipment receives first group of candidate network of the first communication module transmission of the first equipment;
Second communication module corresponding with described second communication type identification on described second equipment is determined the second network corresponding with described second communication type identification and is added from described first group of candidate network;
The network identity of described second network is sent to the first communication module of described first equipment by the first communication module of described second equipment, so that second communication module corresponding with described second communication type identification on described first equipment adds described second network.
11. methods according to claim 10, is characterized in that, before the second communication module of described second equipment is determined second network and added from described first group of candidate network, also comprise:
Second communication module corresponding with described second communication type identification on described second equipment searches for the current second group of candidate network added;
When searching second group of candidate network that can add, second communication module corresponding with described second communication type identification on described second equipment judges whether there is common network in described second group of candidate network and described first group of candidate network;
Second communication module corresponding with described second communication type identification on described second equipment is determined second network and is added from described first group of candidate network, specifically comprises:
When there is a common network in described second group of candidate network and described first group of candidate network, described common network adds as with the corresponding described second network of described second communication type identification by second communication module corresponding with described second communication type identification on described second equipment;
When there is at least two common networks in described second group of candidate network and described first group of candidate network, any one network in described common network adds as with the corresponding described second network of described second communication type identification by second communication module corresponding with described second communication type identification on described second equipment.
12. methods according to claim 11, it is characterized in that, when described second communication module is PLC module, second communication module corresponding with described second communication type identification on described second equipment also comprises before searching for the current second group of candidate network added:
The first communication module of described second equipment judges whether there is the network identity prestored in described first group of candidate network;
Second communication module corresponding with described second communication type identification on described second equipment searches for the current second group of candidate network added, and specifically comprises:
When there is the network identity prestored in described first group of candidate network, second communication module corresponding with described second communication type identification on described second equipment searches for the current second group of candidate network added.
13. methods according to claim 12, is characterized in that, also comprise:
When not searching second group of candidate network that can add, the first communication module of described second equipment sends to the first communication module of described first equipment the response adding described second network failure;
Or,
When there is not common network in described second group of candidate network and described first group of candidate network, the first communication module of described second equipment sends to the first communication module of described first equipment the response adding described second network failure;
Or,
When there is not the network identity prestored in described first group of candidate network, the first communication module of described second equipment sends to the first communication module of described first equipment the response adding described second network failure.
The device that 14. 1 kinds of networks switch, is characterized in that, comprising:
First sending module, network switching request information is sent for the first communication module to the second equipment, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and described second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
Search module, for return when the first communication module receiving described second equipment accept the response of network switching request time, search for the current candidate network added;
Add module, for when described search module searches the candidate network that can add, from described candidate network, determine the second network corresponding with described second communication type identification and add;
Second sending module, for the network identity of described second network being sent to the first communication module of described second equipment, so that second communication module corresponding with described second communication type identification on described second equipment adds described second network.
15. devices according to claim 14, is characterized in that,
Described candidate network, specifically for when only comprising a network in described candidate network, adds as the described second network corresponding with described second communication type identification by the described module that adds;
Or,
Second network corresponding as described and described second communication type identification for any one network in described candidate network, specifically for when comprising at least two networks in described candidate network, adds by the described module that adds.
16. devices according to claim 14, is characterized in that, also comprise:
Set up module, for send when the first communication module receiving described second equipment add the response of described second network failure time, set up the network corresponding with described second communication type identification, the network of described foundation added as described second network;
Or,
Describedly set up module, for when described search module does not search the candidate network that can add, set up the network corresponding with described second communication type identification, the network of described foundation is added as second network.
The device that 17. 1 kinds of networks switch, is characterized in that, comprising:
First receiver module, for the network switching request information that the first communication module receiving the first equipment sends, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and the second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
First sending module, for returning to the first communication module of described first equipment the response accepting network switching request;
Second receiver module, the network identity of the second network corresponding with described second communication type identification that the first communication module for receiving described first equipment sends;
Add module, for adding described second network.
18. devices according to claim 17, is characterized in that, also comprise:
Search module, for searching for the current candidate network added;
First judge module, for when searching the candidate network that can add, judges the network identity that whether there is described second network in the network identity of candidate network;
Specifically for when there is the network identity of described second network in the described module that adds, second communication module corresponding with described second communication type identification on described second equipment adds described second network in the network identity of candidate network.
19. devices according to claim 18, is characterized in that, also comprise:
Whether the second judge module is identical with the network identity prestored for judging the network identity of described second network;
Described search module, specifically for when the network identity of described second network is identical with the network identity prestored, searches for the current candidate network added.
20. devices according to claim 19, is characterized in that, also comprise:
Second sending module, for when not searching the candidate network that can add, the first communication module to described first equipment sends the response adding described second network failure;
Or,
Described second sending module, for when there is not the network identity of described second network in the network identity of candidate network, the first communication module to described first equipment sends the response adding described second network failure;
Or,
Described second sending module, for when the network identity of described second network is identical with the network identity prestored, the first communication module to described first equipment sends the response adding described second network failure.
The device that 21. 1 kinds of networks switch, is characterized in that, comprising:
First sending module, network switching request information is sent for the first communication module to the second equipment, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and described second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
Search module, for return when the first communication module receiving described second equipment accept the response of network switching request time, search for the current first group of candidate network added;
Second sending module, for when searching first group of candidate network that can add, the network identity of described first group of candidate network is sent to the first communication module of described second equipment, so that second communication mould corresponding with described second communication type identification on described second equipment is determined go up with the corresponding second network of described second communication type identification and add from described first group of candidate network;
Receiver module, the network identity of the second network that the first communication module for receiving described second equipment sends;
Add module, for adding described second network.
22. devices according to claim 21, is characterized in that, also comprise:
Set up module, for send when the first communication module receiving described second equipment add the response of described second network failure time, set up the network corresponding with described second communication type identification, the network of described foundation added as described second network.
The device that 23. 1 kinds of networks switch, is characterized in that, comprising:
First receiver module, for the network switching request information that the first communication module receiving the first equipment sends, described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment, described first equipment and the second equipment opposite end each other, the type of described first equipment is identical with the type of described second equipment;
First sending module, for returning to the first communication module of described first equipment the response accepting network switching request;
Second receiver module, first group of candidate network that the first communication module for receiving the first equipment sends;
Add module, for determining the second network corresponding with described second communication type identification and add from described first group of candidate network;
Second sending module, for the network identity of described second network being sent to the first communication module of described first equipment, so that second communication module corresponding with described second communication type identification on described first equipment adds described second network.
24. devices according to claim 23, is characterized in that, also comprise:
Search module, for searching for the current second group of candidate network added;
First judge module, for when searching second group of candidate network that can add, judges whether there is common network in described second group of candidate network and described first group of candidate network;
Described common network, specifically for when there is a common network in described second group of candidate network and described first group of candidate network, adds as described second network corresponding to described second communication type identification by the described module that adds;
Describedly add module also specifically for when there is at least two each and every one common networks in described second group of candidate network and described first group of candidate network, any one network in described common network is added as described second network corresponding to described second communication type identification.
25. devices according to claim 24, is characterized in that, when described second communication module is PLC module, also comprise:
Second judge module, for judging whether there is the network identity prestored in described first group of candidate network;
Described search module, specifically for when there is the network identity prestored in described first group of candidate network, searches for the current second group of candidate network added.
26. devices according to claim 25, is characterized in that, also comprise:
3rd sending module, for ought not searching second group of candidate network that can add, the first communication module to described first equipment sends the response adding described second network failure;
Or,
Described 3rd sending module, for when there is not common network in described second group of candidate network and described first group of candidate network, the first communication module to described first equipment sends the response adding described second network failure;
Or,
Described 3rd sending module, for when there is not the network identity prestored in described first group of candidate network, the first communication module to described first equipment sends the response adding described second network failure.
27. 1 kinds of network switched systems, it is characterized in that, described system comprises: the first equipment, second equipment, described first equipment comprises first communication module and second communication module, described second equipment comprises first communication module and second communication module, described first equipment and described second equipment opposite end each other, and the type of described first equipment is identical with the type of described second equipment; Wherein:
Described first equipment is used for: the first communication module of described first equipment sends network switching request information to the first communication module of the second equipment, and described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; When the first communication module receiving described second equipment return accept the response of network switching request time, second communication module corresponding with described second communication type identification on described first equipment searches for the current candidate network added; When searching the candidate network that can add, second communication module corresponding with described second communication type identification on described first equipment is determined the second network corresponding with described second communication type identification and is added from described candidate network; The network identity of described second network is sent to the first communication module of described second equipment by the first communication module of described first equipment, so that second communication module corresponding with described second communication type identification on described second equipment adds described second network;
Described second equipment is used for: the first communication module of the second equipment receives the network switching request information of the first communication module transmission of the first equipment, and described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; The first communication module of described second equipment returns to the first communication module of described first equipment the response accepting network switching request; The first communication module of described second equipment receives the network identity of the second network corresponding with described second communication type identification of the first communication module transmission of described first equipment; Second communication module corresponding with described second communication type identification on described second equipment adds described second network.
28. 1 kinds of network switched systems, it is characterized in that, described system comprises: the first equipment, second equipment, described first equipment comprises first communication module and second communication module, described second equipment comprises first communication module and second communication module, described first equipment and described second equipment opposite end each other, and the type of described first equipment is identical with the type of described second equipment; Wherein:
Described first equipment is used for: the first communication module of the first equipment sends network switching request information to the first communication module of the second equipment, and described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; When the first communication module receiving described second equipment return accept the response of network switching request time, second communication module corresponding with described second communication type identification on described first equipment searches for the current first group of candidate network added; When searching first group of candidate network that can add, the network identity of described first group of candidate network is sent to the first communication module of described second equipment by the first communication module of described first equipment, so that second communication mould corresponding with described second communication type identification on described second equipment is determined the second network corresponding with described second communication type identification and added from described first group of candidate network; The first communication module of described first equipment receives the network identity of the second network of the first communication module transmission of described second equipment; Second communication module corresponding with described second communication type identification on described first equipment adds described second network;
Described second equipment is used for: the first communication module of the second equipment receives the network switching request information of the first communication module transmission of the first equipment, and described network switching request information comprises the MAC Address of the second communication module of second communication type identification and the first equipment; The first communication module of described second equipment returns to the first communication module of described first equipment the response accepting network switching request; The first communication module of described second equipment receives described first group of candidate network of the first communication module transmission of the first equipment; Second communication module corresponding with described second communication type identification on described second equipment is determined the second network corresponding with described second communication type identification and is added from described first group of candidate network; The network identity of described second network is sent to the first communication module of described first equipment by the first communication module of described second equipment, so that second communication module corresponding with described second communication type identification on described first equipment adds described second network.
CN201210152052.1A 2012-05-16 2012-05-16 Method, device and system for switching network Active CN102685824B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210152052.1A CN102685824B (en) 2012-05-16 2012-05-16 Method, device and system for switching network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210152052.1A CN102685824B (en) 2012-05-16 2012-05-16 Method, device and system for switching network

Publications (2)

Publication Number Publication Date
CN102685824A CN102685824A (en) 2012-09-19
CN102685824B true CN102685824B (en) 2015-04-29

Family

ID=46817039

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210152052.1A Active CN102685824B (en) 2012-05-16 2012-05-16 Method, device and system for switching network

Country Status (1)

Country Link
CN (1) CN102685824B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107925630B (en) * 2015-06-29 2022-06-03 瑞典爱立信有限公司 Communication policy control in machine-to-machine communication system
CN106255172A (en) * 2016-07-22 2016-12-21 乐视控股(北京)有限公司 Communication means based on multipath and device
CN109982427B (en) * 2019-03-29 2021-11-16 联想(北京)有限公司 Information processing method and device
CN111096046B (en) * 2019-12-09 2023-02-17 北京小米移动软件有限公司 Access mode determination method, device and communication equipment

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848826A (en) * 2006-04-30 2006-10-18 中国移动通信集团公司 Family gateway equipment
CN101227290A (en) * 2007-01-19 2008-07-23 华为技术有限公司 Data transmission method of household network and system and device of household network building

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8861502B2 (en) * 2008-03-03 2014-10-14 Qualcomm Incorporated Assisted initial network acquisition and system determination

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1848826A (en) * 2006-04-30 2006-10-18 中国移动通信集团公司 Family gateway equipment
CN101227290A (en) * 2007-01-19 2008-07-23 华为技术有限公司 Data transmission method of household network and system and device of household network building

Also Published As

Publication number Publication date
CN102685824A (en) 2012-09-19

Similar Documents

Publication Publication Date Title
US9271165B2 (en) Method for establishing connection by HNB
CN103209440B (en) Network insertion processing method and subscriber equipment
US7016325B2 (en) Link context mobility method and system for providing such mobility, such as a system employing short range frequency hopping spread spectrum wireless protocols
EP1430656B1 (en) Network with several subnetworks
JP2005192187A (en) Method for establishing channel between user agent and wireless lan access point in environment where a plurality of wireless lan access points are installed
WO2009039012A1 (en) Method and device for providing an alternative backhaul portal in a mesh network
CN102291796A (en) Service data transmission method, system and management control center
CN102204209B (en) Method, system and network device for quality of service (qos) negotiation in cross-medium networks
CN103248543B (en) Code verification method, code verification control equipment and code verification equipment
CN104703234A (en) Method and device for access switching in wireless local area network
CA2734041A1 (en) Communication control system, communication system and communication control method
WO2012106884A1 (en) Method for establishing x2 connection between base stations, base station and communication system
CN102685824B (en) Method, device and system for switching network
CN101627650A (en) The architecture that is used for multiple mih users
JP2007028233A (en) Wireless lan system
CN102281533B (en) Method, system and router for establishing LSP based on RT
CN102684966B (en) Equipment method of network entry, Apparatus and system
CN103796246A (en) Data distribution method, data distribution device and data distribution system
CN102404192A (en) Message transmission method and network equipment
CN103368847A (en) Broadband convergence communication method and router
CN102573104B (en) Method and device for wireless data access
CN101262448A (en) IP data packet transmission method and system
CN102685829B (en) Method, device and equipment for handover of user under base station straight-through architecture
CN105101324A (en) Heterogeneous network switching method, functional entity and terminal
CN101808430A (en) Method and device of cross-domain service strategy interaction for fixed mobile convergence network

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant