CN104837168A - Method and system for switching devices, and devices - Google Patents
Method and system for switching devices, and devices Download PDFInfo
- Publication number
- CN104837168A CN104837168A CN201410048426.4A CN201410048426A CN104837168A CN 104837168 A CN104837168 A CN 104837168A CN 201410048426 A CN201410048426 A CN 201410048426A CN 104837168 A CN104837168 A CN 104837168A
- Authority
- CN
- China
- Prior art keywords
- equipment
- information
- network
- ability
- ability information
- 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.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L41/00—Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
- H04L41/06—Management of faults, events, alarms or notifications
- H04L41/0654—Management of faults, events, alarms or notifications using network fault recovery
- H04L41/0668—Management of faults, events, alarms or notifications using network fault recovery by dynamic selection of recovery network elements, e.g. replacement by the most appropriate element after failure
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04L—TRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
- H04L1/00—Arrangements for detecting or preventing errors in the information received
- H04L1/22—Arrangements for detecting or preventing errors in the information received using redundant apparatus to increase reliability
Landscapes
- Engineering & Computer Science (AREA)
- Computer Networks & Wireless Communication (AREA)
- Signal Processing (AREA)
- Mobile Radio Communication Systems (AREA)
Abstract
The embodiment in the invention discloses a method and system for switching devices, and devices, which belong to the technical field of communication. When a main device breaks down, a new main device can be spontaneously reselected, so that possibility of disability of a mobile cooperation multimedia network is reduced. The specific scheme of the invention comprises: after a first device is accessed to a first network, receiving first candidate information from a second device; when a fault of the second device is detected, judging whether the first device is an auxiliary main device according to the ability information of the first device and the ability information of at least one third device; if the first device is the auxiliary main device, the wireless access node function of the first device is started; and if the first device is not the auxiliary main device, determining the auxiliary main device, and accessing a wireless access node provided by the auxiliary main device according to the network identification of the auxiliary main device. The method and the system for switching devices, and the devices are used in the switching process of main and auxiliary devices.
Description
Technical field
The present invention relates to communication technical field, particularly relate to a kind of equipment switching method, equipment and system.
Background technology
Along with the development of science and technology, the popularity rate of smart machine (such as mobile phone, PAD etc.) is more and more higher, increasing company and individual start the cooperation of smart machine multiple in short range and interactive function to be applied in the process of routine work, living and studying, with interconnecting by multiple smart machine, for user better, abundanter business experience, as cooperation music, cooperation game etc.
Wherein, present most smart machines (as mobile phone, PAD etc.) can as wireless access node (Access Point, AP), connect to form mobile cooperation multi-media network (i.e. WLAN (wireless local area network)) for other at least one smart machines, thus meet multiple smart machine and cooperate and carry out multimedia interactive and the demand communicated.
Concrete, in above-mentioned mobile cooperation multi-media network, be that this moves the main equipment in cooperation multi-media network as the smart machine of AP, for the running of the running and cooperation Multimedia Task (as cooperation music, cooperation game) that control whole mobile cooperation multi-media network.Other smart machines are slaves, perform cooperation Multimedia Task for coordinating main equipment.
But, Problems existing is: when the main equipment pre-set break down (as, power-off, abnormal deadlock, network connection are disconnected), or when the main equipment pre-set and the back-up master pre-set all break down, then mobile cooperation multi-media network may paralyse owing to losing the control of main equipment, affect between multiple smart machine alternately with communicate.
Summary of the invention
Embodiments of the invention provide a kind of equipment switching method, equipment and system, can after main equipment breaks down, spontaneously reselect new main equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
For achieving the above object, embodiments of the invention adopt following technical scheme:
The first aspect of the embodiment of the present invention, provides a kind of equipment switching method, comprising:
First equipment, after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in described first candidate information;
According to the ability information of described first equipment and the ability information of the 3rd equipment described at least one, described first equipment, when described second equipment fault being detected, judges whether described first equipment is back-up master;
If described first equipment is described back-up master, described first equipment then starts the wireless access node function of described first equipment;
If described first equipment is not described back-up master, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides.
In conjunction with first aspect, in a kind of possible implementation, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first equipment Inspection, to described second equipment fault, comprising:
Described first equipment receives the heartbeat packet that described second device periodically sends;
If the number that described first equipment receives from the heartbeat packet of described second equipment in Preset Time is less than predetermined threshold value, described first equipment then determines described second equipment fault.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability information of described first equipment the 3rd equipment according to the ability information of described first equipment and at least one judges whether described first equipment is back-up master, comprising:
Described first equipment is searched in the ability information of described first equipment and the ability information of the 3rd equipment described at least one, is arranged in primary ability information according to the order from big to small of the ability value indicated by ability information;
If the ability information found is the ability information of described first equipment, described first equipment then determines that described first equipment is described back-up master.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described equipment switching method, also comprises:
If the ability information found is not the ability information of described first equipment, described first equipment then determines that described first equipment is not described back-up master;
Described first equipment determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides, and comprising:
The 3rd equipment corresponding to the ability information found is defined as described back-up master by described first equipment, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first candidate information is specially the first candidate list;
The ability information of described first equipment the 3rd equipment according to the ability information of described first equipment and at least one judges whether described first equipment is back-up master, comprising:
If the ability information of described first equipment is arranged in first of described first candidate list, described first equipment then determines that described first equipment is described back-up master;
Wherein, in described first candidate list, the ability information of described first equipment and the ability information of described 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides, and comprising:
Primary 3rd equipment that ability information is arranged in described first candidate list by described first equipment is defined as described back-up master, and be arranged in the network identity of primary 3rd equipment of described first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in described first candidate list provides.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, before described first equipment receives the first candidate information from the second equipment, described method also comprises:
Described first equipment sends the ability reference information of described first equipment to described second equipment, to make described second equipment generate the ability information of described first equipment according to the ability reference information of described first equipment, and then the ability information and the ability information of network identity and at least one the 3rd equipment and the first candidate information of network identity that described second equipment are generated comprise described first equipment.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, after described first equipment to access the wireless access node that described back-up master provides according to the network identity of described back-up master, described method also comprises:
The ability information of the described back-up master comprised in the first candidate information described in described first unit deletion and network identity.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, after the wireless access node function of the first equipment described in described first device start, described method also comprises:
Described first equipment obtains the ability information of the 3rd equipment and the second candidate information of network identity that comprise the wireless access node that described first equipment of all accesses provides;
Described first equipment sends the 3rd equipment of the wireless access node that described second candidate information to described first equipment of all accesses provides.
In conjunction with first aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment;
The ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment;
Or the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
Or the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
The second aspect of the embodiment of the present invention, also provides a kind of equipment switching method, comprising:
Second equipment, after access first network, obtains ability information and the network identity of all first equipment of the described first network of access;
Generate and comprise the ability information of described first equipment and the first candidate information of network identity that get;
Send described first candidate information to described first equipment, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
In conjunction with second aspect, in a kind of possible implementation, described second equipment sets up into described first network with at least two described first equipment;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second equipment obtains ability information and the network identity of all first equipment of the described first network of access, comprising:
Described second equipment receives the ability reference information of all described first equipment from the described first network of access;
The ability reference information that described second device analysis receives, obtains the ability information of described first equipment, and obtains the network identity of described first equipment.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
At the ability reference information that described second device analysis receives, before obtaining the ability information of described first equipment, described method also comprises:
Described second equipment obtains the first weight and the second weight;
The ability reference information that described second device analysis receives, obtains the ability information of described first equipment, comprising:
Described second equipment, in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculates the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
At the ability reference information that described second device analysis receives, before obtaining the ability information of described first equipment, described method also comprises:
Described second equipment obtains the first weight and the second weight;
The ability reference information that described second device analysis receives, obtain the ability information of described first equipment, comprise: described second equipment in conjunction with described first weight, described second weight and described first equipment dump energy percentage analysis described in the described CPU speed of the first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment;
The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second equipment is in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculate the ability information of described first equipment, specifically comprise:
Described second equipment adopts
Capability(i)=CPU_speed(i)×w_CPU+Memory(i)×w_M
Calculate the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second equipment in conjunction with described first weight, described second weight and described first equipment dump energy percentage analysis described in the described CPU speed of the first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment, specifically comprise:
Described second equipment adopts
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight; Rest (i) represents the dump energy percentage of i-th described first equipment.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described equipment switching method, also comprises:
Described second equipment is after the described first network of access, periodically send heartbeat packet to described first equipment accessing described first network, so that described first equipment determines described second equipment whether fault according to the number of the heartbeat packet received in Preset Time.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described equipment switching method, also comprises:
Described second device periodically obtains the ability information of described first equipment of the described first network of access, and generates the ability information of described first equipment and the second candidate information of network identity that comprise the described first network of access;
Described second equipment sends described second candidate information to accessing the described from the first equipment second candidate information of described first network.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first candidate information is specially the first candidate list;
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described first candidate list.
In conjunction with second aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second candidate information is specially the second candidate list;
Wherein, in described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
The third aspect of the embodiment of the present invention, provides a kind of first equipment, comprising:
Receiving element, for after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in described first candidate information;
Detecting unit, for detecting described second equipment whether fault;
Judging unit, for when described detecting unit detects described second equipment fault, the ability information of described first equipment received according to described receiving element and the ability information of the 3rd equipment described at least one judge whether described first equipment is back-up master;
Start unit, if judge that obtaining described first equipment is described back-up master for described judging unit, described first equipment then starts the wireless access node function of described first equipment;
Access unit, if judge that obtaining described first equipment is not described back-up master for described judging unit, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides.
In conjunction with the third aspect, in a kind of possible implementation, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described detecting unit, also for receiving the heartbeat packet that described second device periodically sends; If the number that described first equipment receives from the heartbeat packet of described second equipment in Preset Time is less than predetermined threshold value, described first equipment then determines described second equipment fault.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described judging unit, comprising:
Search module, for searching the ability information of described first equipment and in the ability information of the 3rd equipment described at least one, being arranged in primary ability information according to the order from big to small of the ability value indicated by ability information;
Determination module, if for described in search module searches to ability information be the ability information of described first equipment, then determine that described first equipment is described back-up master.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described determination module, if also for described in search module searches to ability information be not the ability information of described first equipment, then determine that described first equipment is not described back-up master;
Described access unit, also for described first equipment, the 3rd equipment corresponding to the ability information found is defined as described back-up master, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first candidate information is specially the first candidate list;
Described judging unit, if be also arranged in first of described first candidate list for the ability information of described first equipment, then determines that described first equipment is described back-up master;
Wherein, in described first candidate list, the ability information of described first equipment and the ability information of described 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described access unit, primary 3rd equipment also for ability information being arranged in described first candidate list is defined as described back-up master, and be arranged in the network identity of primary 3rd equipment of described first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in described first candidate list provides.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first equipment, also comprises:
First transmitting element, before receiving the first candidate information from the second equipment at described receiving element, send the ability reference information of described first equipment to described second equipment, to make described second equipment generate the ability information of described first equipment according to the ability reference information of described first equipment, and then the ability information and the ability information of network identity and at least one the 3rd equipment and the first candidate information of network identity that described second equipment are generated comprise described first equipment.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first equipment, also comprises:
Delete cells, for to access wireless access node that described back-up master provides according to the network identity of described back-up master at described access unit after, delete ability information and the network identity of the described back-up master comprised in described first candidate information.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first equipment, also comprises:
Acquiring unit, after starting the wireless access node function of described first equipment at described start unit, described first equipment obtains the ability information of the 3rd equipment and the second candidate information of network identity that comprise the wireless access node that described first equipment of all accesses provides;
Second transmitting element, the 3rd equipment of the wireless access node that the second candidate information to described first equipment of all accesses got for sending described acquiring unit provides.
In conjunction with the third aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment;
The ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment;
Or the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
Or the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
The fourth aspect of the embodiment of the present invention, provides a kind of second equipment, comprising:
First acquiring unit, for after access first network, obtains ability information and the network identity of all first equipment of the described first network of access;
Generation unit, comprises for generating the ability information of described first equipment and the first candidate information of network identity that described first acquiring unit gets;
Transmitting element, for sending described first candidate information extremely described first equipment that described generation unit generates, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
In conjunction with fourth aspect, in a kind of possible implementation, described second equipment sets up into described first network with at least two described first equipment;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first acquiring unit, comprising:
Receiver module, for receiving the ability reference information of all described first equipment from the described first network of access;
Analysis module, for analyzing the ability reference information that described receiver module receives, obtains the ability information of described first equipment, and obtains the network identity of described first equipment.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
Described second equipment, also comprises:
Second acquisition unit, for the ability reference information received in described analysis module analysis, before obtaining the ability information of described first equipment, obtains the first weight and the second weight;
Described analysis module, also in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculates the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
Described second equipment, also comprises:
Second acquisition unit, for the ability reference information received in described analysis module analysis, before obtaining the ability information of described first equipment, obtains the first weight and the second weight;
Described analysis module, also for the described CPU speed of the first equipment described in the dump energy percentage analysis in conjunction with described first weight, described second weight and described first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment;
The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described analysis module, specifically for adopting
Capability(i)=CPU_speed(i)×w_CPU+Memory(i)×w_M
Calculate the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described analysis module, specifically for adopting
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight; Rest (i) represents the dump energy percentage of i-th described first equipment.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second equipment, also comprises:
Transmitting element, for after the described first network of access, periodically send heartbeat packet to described first equipment accessing described first network, so that described first equipment determines described second equipment whether fault according to the number of the heartbeat packet received in Preset Time.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second equipment, also comprises:
3rd acquiring unit, for periodically obtaining the ability information of described first equipment of the described first network of access, and generates the ability information of described first equipment and the second candidate information of network identity that comprise the described first network of access;
Transmitting element, also for sending described second candidate information to accessing described in described first network from the first equipment second candidate information.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described first candidate information is specially the first candidate list;
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described first candidate list.
In conjunction with fourth aspect and above-mentioned possible implementation, in the implementation that another kind is possible, described second candidate information is specially the second candidate list;
Wherein, in described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
5th aspect of the embodiment of the present invention, also provides a kind of equipment switching system, it is characterized in that, comprising: the second equipment and at least two the first equipment;
Described first equipment, for after access first network, receive from the first candidate information of described second equipment, in described first candidate information, comprise the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity; According to the ability information of described first equipment and the ability information of the 3rd equipment described at least one, described first equipment, when described second equipment fault being detected, judges whether described first equipment is back-up master; If described first equipment is described back-up master, described first equipment then starts the wireless access node function of described first equipment; If described first equipment is not described back-up master, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides.
Described second equipment, after access first network, obtains ability information and the network identity of all first equipment of the described first network of access; Described second equipment generates and comprises the ability information of described first equipment and the first candidate information of network identity that get; Described second equipment sends described first candidate information to described first equipment, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
The equipment switching method that the embodiment of the present invention provides, equipment and system, first equipment is after access first network, receive the first candidate information from the second equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master according to the ability information of the first equipment and the ability information of at least one the 3rd equipment; If the first equipment is back-up master, then start the wireless access node function of the first equipment; If the first equipment is not back-up master, then determine described back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, first equipment (from equipment) can after the second equipment (main equipment) breaks down, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, 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.
Fig. 1 is a kind of equipment switching method flow chart in one embodiment of the invention;
Fig. 2 is a kind of equipment switching method flow chart in another embodiment of the present invention;
Fig. 3 is the deployment schematic diagram of a kind of first network in another embodiment of the present invention;
Fig. 4 is a kind of equipment switching method flow chart in another embodiment of the present invention;
Fig. 5 is a kind of equipment switching method flow chart in another embodiment of the present invention;
Fig. 6 is a kind of equipment switching method flow chart in another embodiment of the present invention;
Fig. 7 is the composition schematic diagram of a kind of first equipment in another embodiment of the present invention;
Fig. 8 is the composition schematic diagram of a kind of first equipment in another embodiment of the present invention;
Fig. 9 is the composition schematic diagram of a kind of first equipment in another embodiment of the present invention;
Figure 10 is the composition schematic diagram of a kind of second equipment in another embodiment of the present invention;
Figure 11 is the composition schematic diagram of a kind of second equipment in another embodiment of the present invention;
Figure 12 is the composition schematic diagram of a kind of first equipment in another embodiment of the present invention;
Figure 13 is the composition schematic diagram of a kind of second equipment in another embodiment of the present invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In addition, term " system " and " network " are often used interchangeably in this article herein.Term "and/or" herein, being only a kind of incidence relation describing affiliated partner, can there are three kinds of relations in expression, and such as, A and/or B, can represent: individualism A, exists A and B simultaneously, these three kinds of situations of individualism B.In addition, character "/" herein, general expression forward-backward correlation is to the relation liking a kind of "or".
One embodiment of the invention provides a kind of equipment switching method, can be applied to the first equipment, and the first equipment, the second equipment and at least one the 3rd equipment set up into first network, and as shown in Figure 1, this equipment switching method, comprising:
S101, the first equipment, after access first network, receive the first candidate information from the second equipment, comprise the ability information of the first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in the first candidate information.
It should be noted that, in embodiments of the present invention, before the second equipment fault, the second equipment is the main equipment of first network, the first equipment and at least one the 3rd equipment be first network from equipment; Main equipment is used for, for providing wireless access node (Access Point, AP) function from equipment in first network, controlling the running of first network, is used for the described wireless access node access first network provided by access main equipment from equipment.
Wherein, first candidate information can be the second equipment (main equipment) after receiving the ability reference information from the first equipment and the 3rd equipment (access first network all from equipment), and what generate according to the ability reference information received and the network identity that gets comprises all from the ability information of equipment and the information of network identity of access first network.
Exemplary, in the first application scenarios of the embodiment of the present invention, the ability reference information of the first equipment can comprise the central processing unit of the first equipment (Central Processing Unit, CPU) speed; The ability reference information of the 3rd equipment can comprise the CPU speed of the 3rd equipment.
Or in the second application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the CPU speed of the first equipment and the memory capacity of the first equipment; The ability reference information of the 3rd equipment comprises: the CPU speed of the 3rd equipment and the memory capacity of the 3rd equipment.
Or in the third application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the dump energy percentage of the CPU speed of the first equipment, the memory capacity of the first equipment and the first equipment; The ability reference information of the 3rd equipment comprises: the dump energy percentage of the CPU speed of the 3rd equipment, the memory capacity of the 3rd equipment and the 3rd equipment.
Wherein, in the embodiment of the present invention, the memory capacity of the first equipment (from equipment) comprising: the internal memory residual capacity of the first equipment or the hard disk remaining capacity of the first equipment; The dump energy percentage of the first equipment is the percentage of dump energy shared by the saturated electricity of the first equipment of the first equipment.The memory capacity of the 3rd equipment (from equipment) comprising: the internal memory residual capacity of the 3rd equipment or the hard disk remaining capacity of the 3rd equipment; The dump energy percentage of the 3rd equipment is the percentage of dump energy shared by the saturated electricity of the 3rd equipment of the 3rd equipment.
Exemplary, the first candidate information is specifically as follows one and comprises all from the ability information of equipment (the first equipment and the 3rd equipment) and the information aggregate of network identity of access first network; Or the first candidate information is specifically as follows the first candidate list, comprise the ability list item from equipment of each access first network in the first candidate list, ability list item comprises this ability information from equipment and network identity.Arrange from the ability information of equipment according to the order from big to small of the ability value indicated by ability information in the first candidate list.
According to the ability information of the first equipment and the ability information of at least one the 3rd equipment, S102, the first equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master.
Exemplary, main equipment (the second equipment) can periodically send heartbeat packet to access first network from equipment (the first equipment and the 3rd equipment), therefore whether can be less than predetermined threshold value according to the number of the heartbeat packet receiving autonomous device in Preset Time from equipment, then determine main equipment whether fault.When the number of the heartbeat packet receiving autonomous device from equipment in Preset Time is less than predetermined threshold value, then determine main equipment (the second equipment) fault.
When the first candidate information be one comprise the information aggregate of access all ability information from equipment of first network and network identity time, can judge whether should be back-up master from equipment according to the ability information of the first equipment comprised the first candidate information and all 3rd equipment from equipment (the first equipment or the 3rd equipment).
Exemplary, the first equipment can be searched in the ability information of the first equipment and the ability information of at least one the 3rd equipment, is arranged in primary ability information according to the order from big to small of the ability value indicated by ability information; Judge that whether the ability information that finds is the ability information of the first equipment; If the ability information found is the ability information of the first equipment, the first equipment then determines that the first equipment is back-up master; If the ability information found is not the ability information of the first equipment, the first equipment then determines that the first equipment is not back-up master.
When the first candidate information is the first candidate list, judge whether should be back-up master from equipment from equipment (the first equipment or the 3rd equipment) according to the first candidate information.Concrete, the first equipment judges whether the ability information of the first equipment is arranged in first of the first candidate list; If the ability information of the first equipment is arranged in first of the first candidate list, the first equipment then determines that the first equipment is back-up master.Wherein, in the first candidate list, the ability information of the first equipment and the ability information of the 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
It should be noted that, the first equipment be access first network any one from equipment, the 3rd equipment be access first network any one from equipment.3rd equipment judges that whether the 3rd equipment be that the method for back-up master and the first equipment judge that whether the first equipment be that the method for back-up master is similar, and the embodiment of the present invention repeats no more here.
Concrete, if the first equipment judges that obtaining the first equipment is back-up master, then perform S103; If the first equipment judges that obtaining the first equipment is not back-up master, then perform S104:
The wireless access node function of S103, the first device start first equipment.
Concrete, after the first equipment judges that obtaining the first equipment is back-up master, first equipment then can start the AP function of the first equipment, so that the first equipment is defined as new main equipment, AP is provided to serve for other from equipment (the 3rd equipment), to ensure the normal operation of communication and data interaction in first network.
Wherein, after the wireless access node function of the first device start first equipment, then represent the current main equipment for first network of the first equipment, now the first equipment then can receive the ability reference information of other equipment of current access first network, obtain the network identity of other equipment of current access first network, and the ability information of other equipment of current each access first network is generated according to the ability reference information got, then the second candidate information comprising the network identity of the ability information of generation and other equipment of each access first network is generated, so that other equipment of current access first network can determine back-up master after the first equipment fault.
S104, the first equipment determination back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
Concrete, after the first equipment judges that obtaining the first equipment is not back-up master, first equipment then can search back-up master (in the first candidate information from the ability value indicated by the ability information of equipment the highest from equipment) network identity, and according to the AP that provides of network identity access back-up master found.
It should be noted that, when the first candidate information be one comprise the information aggregate of access all ability information from equipment of first network and network identity time, first equipment determines described back-up master, and the method for the wireless access node provided according to the network identity of back-up master access back-up master is specifically as follows: the 3rd equipment corresponding to the ability information found is defined as back-up master by the first equipment, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
When the first candidate information is the first candidate list, first equipment determines described back-up master, and the method for the wireless access node provided according to the network identity of back-up master access back-up master is specifically as follows: primary 3rd equipment that ability information is arranged in the first candidate list by the first equipment is defined as back-up master, and be arranged in the network identity of primary 3rd equipment of the first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in the first candidate list provides.
Further alternative, after the wireless access node that the first equipment provides according to the network identity access back-up master of back-up master, the method for the embodiment of the present invention can also comprise: the ability information of the back-up master comprised in the first unit deletion first candidate information and network identity.
The equipment switching method that the embodiment of the present invention provides, first equipment is after access first network, receive the first candidate information from the second equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master according to the ability information of the first equipment and the ability information of at least one the 3rd equipment; If the first equipment is back-up master, then start the wireless access node function of the first equipment; If the first equipment is not back-up master, then determine described back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, first equipment (from equipment) can after the second equipment (main equipment) breaks down, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
Another embodiment of the present invention provides a kind of equipment switching method, can be applied to the second equipment, and the second equipment, at least two the first equipment set up into first network, and as shown in Figure 2, this equipment switching method, comprising:
S201, the second equipment, after access first network, obtain ability information and the network identity of all first equipment of access first network.
It should be noted that, in embodiments of the present invention, the second equipment sets up into first network with at least two the first equipment; Wherein, before the second equipment fault, the second equipment is the main equipment of first network, the first equipment be first network from equipment; Main equipment is used for, for providing wireless access node function from equipment in first network, controlling the running of first network, is used for the wireless access node access first network provided by access main equipment from equipment.
Exemplary, the concrete grammar that the second equipment obtains the ability information of all first equipment of access first network can comprise: the second equipment receives the ability reference information of all first equipment from the described first network of access; The ability reference information that second device analysis receives, obtains the ability information of the first equipment.
In the first application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the CPU speed of the first equipment.Wherein, the ability information of the first equipment is the CPU speed of the first equipment.
In the second application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the CPU speed of the first equipment and the memory capacity of the first equipment.
In the second application scenarios, at the ability reference information that the second device analysis receives, before obtaining the ability information of the first equipment, the method for the embodiment of the present invention can also comprise: the second equipment obtains the first weight and the second weight.
Wherein, the ability reference information that second device analysis receives, the method obtaining the ability information of the first equipment can comprise: the second equipment, in conjunction with the first weight and the CPU speed of the second weight analysis first equipment and the memory capacity of the first equipment, calculates the ability information of the first equipment.
In the third application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the dump energy percentage of the CPU speed of the first equipment, the memory capacity of the first equipment and the first equipment.
In the third application scenarios, at the ability reference information that the second device analysis receives, before obtaining the ability information of the first equipment, the method for the embodiment of the present invention can also comprise: the second equipment obtains the first weight and the second weight.
Wherein, the ability reference information that second device analysis receives, the method obtaining the ability information of the first equipment can comprise: the second equipment, in conjunction with the CPU speed of dump energy percentage analysis first equipment of the first weight, the second weight and the first equipment and the memory capacity of the first equipment, calculates the ability information of the first equipment
It should be noted that, in the second application scenarios of the embodiment of the present invention and in the third application scenarios, first weight is CPU speed to the influence coefficient of the first equipment as network control capabilities during main equipment in first network, and the second weight is memory capacity to the influence coefficient of the first equipment as network control capabilities during main equipment in first network; The memory capacity of the first equipment comprises: the internal memory residual capacity of the first equipment or the hard disk remaining capacity of the first equipment; The dump energy percentage of the first equipment is the percentage of dump energy shared by the saturated electricity of the first equipment of the first equipment.
S202, the second equipment generate and comprise the ability information of the first equipment got and the first candidate information of network identity.
Exemplary, the second equipment can using the ability information of each the first equipment that gets and network identity as an item of information, and the first candidate information then can for comprising the set of the item of information of all first equipment of all access first networks; Or the first candidate information is specifically as follows the first candidate list, comprise the ability list item of the first equipment of each access first network in the first candidate list, ability list item comprises ability information and the network identity of this first equipment.In the first candidate list, the ability information of the first equipment is according to the order arrangement from big to small of the ability value indicated by ability information.
S203, the second equipment send the first candidate information to the first equipment, so that the first equipment selects back-up master according to the first candidate information after the second equipment fault.
Further alternative, the method of the embodiment of the present invention can also comprise: the second device periodically obtains the ability information of the first equipment of access first network, and generates the ability information of the first equipment and the second candidate information of network identity that comprise access first network; Second equipment send the second candidate information to access first network from the first equipment second candidate information.
Wherein, the second candidate information is specifically as follows the second candidate list; In the second candidate list, arrange from the ability information of equipment according to the order from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in the second candidate list.
The equipment switching method that the embodiment of the present invention provides, the second equipment after access first network, can obtain ability information and the network identity of all first equipment of the described first network of access; Generate and comprise the ability information of described first equipment and the first candidate information of network identity that get; Send the first candidate information to the first equipment, so that the first equipment selects back-up master according to the first candidate information after the second equipment fault.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, second equipment (main equipment) can send ability information to the first equipment of all first equipment of access first network after access first network, so that the first equipment (from equipment) can after the second device fails, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility moving cooperation multi-media network and paralyse can be reduced, to ensure between multiple equipment normal alternately with communicate.
Another embodiment of the present invention provides a kind of equipment switching method, as shown in Figure 3, set up into first network with three from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) for main equipment (the second equipment), as shown in Figure 4, this equipment switching method can comprise:
S301, the second equipment, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 set up into first network.
Concrete, the second equipment first can set up an AP access point, then by the access request of reception first equipment, the 3rd equipment 1 and the 3rd equipment 2, sets up into first network as shown in Figure 3 with the first equipment, the 3rd equipment 1 and the 3rd equipment 2.
It should be noted that, the first network in the embodiment of the present invention can comprise wifi network, blueteeth network and near-field communication (Near Field Communication, NFC) network, any one namely in the network such as short-range communication network.
In the present embodiment, main equipment (the second equipment) sets up into first network with three from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2).Before the second equipment fault, the second equipment is the main equipment of first network, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 be first network from equipment.Wherein, main equipment (the second equipment) is for for providing wireless access node function from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) in first network, control the running of first network, the wireless access node access first network provided by access main equipment is provided from equipment.
S302, the first equipment, after access first network, send ability reference information to the second equipment of the first equipment.
Wherein, after being reduced in the second device fails, the possibility that first network paralyses, so that can according to each ability as new main equipment from equipment when the second equipment fault, reselect the second new equipment, each access first network from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) access first network after, all to send ability reference information to the second equipment of the first equipment.
Exemplary, in the first application scenarios of the embodiment of the present invention, the ability reference information of the first equipment can comprise: the CPU speed of the first equipment.Accordingly, the ability reference information of the 3rd equipment 1 can comprise: the CPU speed of the 3rd equipment 1; The ability reference information of the 3rd equipment 2 can comprise: the CPU speed of the 3rd equipment 2.
Optionally, in the second application scenarios of the embodiment of the present invention, the ability reference information of the first equipment can comprise: the CPU speed of the first equipment and the memory capacity of the first equipment.Namely the ability reference information of the first equipment can comprise: the CPU speed of the first equipment and the memory capacity of the first equipment.Accordingly, the ability reference information of the 3rd equipment 1 can comprise: the CPU speed of the 3rd equipment 1 and the memory capacity of the 3rd equipment 1; The ability reference information of the 3rd equipment 2 can comprise: the CPU speed of the 3rd equipment 2 and the memory capacity of the 3rd equipment 2.
Preferably, in the third application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the dump energy percentage of the CPU speed of the first equipment, the memory capacity of the first equipment and the first equipment.Accordingly, the ability reference information of the 3rd equipment 1 can comprise: the dump energy percentage of the CPU speed of the 3rd equipment 1, the memory capacity of the 3rd equipment 1 and the 3rd equipment 1; The ability reference information of the 3rd equipment 2 can comprise: the dump energy percentage of the CPU speed of the 3rd equipment 2, the memory capacity of the 3rd equipment 2 and the 3rd equipment 2.
Wherein, comprising from the memory capacity of equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) in the embodiment of the present invention: from the internal memory residual capacity of equipment or the hard disk remaining capacity from equipment; Be at percentage shared from the saturated electricity of equipment from the dump energy of equipment from the dump energy percentage of equipment.
The ability reference information of the first equipment that S303, the second device analysis receive, obtains the ability information of the first equipment, and obtains the network identity of the first equipment.
In the first application scenarios of the embodiment of the present invention, the ability reference information of the first equipment can comprise: the CPU speed of the first equipment.Now, as shown in Figure 4, the second equipment can directly using the ability value of the value of the CPU speed of the first equipment as the ability information of the first equipment.
Optionally, in the second application scenarios of the embodiment of the present invention, the ability reference information of the first equipment can comprise: the CPU speed of the first equipment and the memory capacity of the first equipment.In this application scenarios, as shown in Figure 5, the method for the embodiment of the present invention can also comprise S202 ', and S203 can replace with S203 ':
S302 ', the second equipment obtain the first weight and the second weight.
S303 ', the second equipment, in conjunction with the first weight and the CPU speed of the second weight analysis first equipment and the memory capacity of the first equipment, calculate the ability information of the first equipment.
In this application scenarios, the second equipment can adopt following formula:
Capability(i)=CPU_speed(i)×w_CPU+Memory(i)×w_M
Calculate the ability information from equipment (the first equipment, the 3rd equipment 1 or the 3rd equipment 2).
Wherein, i represents the call number from equipment, and Capability (i) represents i-th ability information from equipment; CPU_speed (i) represents i-th the CPU speed from equipment; W_CPU represents the first weight; Memory (i) represents i-th memory capacity from equipment; W_M represents the second weight.
Exemplary, the second equipment can adopt following formula:
Capability(1)=CPU_speed(1)×w_CPU+Memory(1)×w_M
Calculate the ability information of the first equipment.
Wherein, Capability (1) represents the ability information of the first equipment, and CPU_speed (1) represents the CPU speed of the first equipment; Memory (1) represents the memory capacity of the first equipment.
Preferably, in the third application scenarios of the embodiment of the present invention, the ability reference information of the first equipment comprises: the dump energy percentage of the CPU speed of the first equipment, the memory capacity of the first equipment and the first equipment.In this application scenarios, as shown in Figure 6, the method for the embodiment of the present invention can also comprise S302 ', and S303 can replace with S303 〞:
S303 〞, the second equipment, in conjunction with the dump energy percentage of the first weight, the second weight and the first equipment, are analyzed the CPU speed of the first equipment and the memory capacity of the first equipment, are calculated the ability information of the first equipment.
In this application scenarios, the second equipment can adopt following formula:
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information from equipment (the first equipment, the 3rd equipment 1 or the 3rd equipment 2).
Wherein, i represents the call number from equipment, and Capability (i) represents i-th ability information from equipment; CPU_speed (i) represents i-th the CPU speed from equipment; W_CPU represents the first weight; Memory (i) represents i-th memory capacity from equipment; W_M represents the second weight; Rest (i) represents i-th the dump energy percentage from equipment.
Exemplary, the second equipment can adopt following formula:
Capability (1)=(CPU_speed (1) × w_CPU+Memory (1) × w_M) × Rest (1) calculates the ability information of the first equipment.
Wherein, Capability (1) represents the ability information of the first equipment, and CPU_speed (1) represents the CPU speed of the first equipment; Memory (1) represents the memory capacity of the first equipment; Rest (1) represents the dump energy percentage of the first equipment.
First weight for CPU speed to described in first network from the influence coefficient of equipment as network control capabilities during the second equipment, the second weight be memory capacity in first network from the influence coefficient of equipment as network control capabilities during the second equipment; The memory capacity of the first equipment comprises: the internal memory residual capacity of the first equipment or the hard disk remaining capacity of the first equipment; The dump energy percentage of the first equipment is the percentage of dump energy shared by the saturated electricity of the first equipment of the first equipment.
S304, the 3rd equipment 1, after access first network, send ability reference information to the second equipment of the 3rd equipment 1.
It should be noted that, 3rd equipment 1 is after access first network, the ability reference information sending the 3rd equipment 1 to the first equipment in the method and S302 of main equipment second equipment after accessing first network, the ability reference information sending the first equipment is similar to the concrete grammar of main equipment second equipment, the ability reference information of the 3rd equipment 1 can with reference to the associated description in S302, and the embodiment of the present invention repeats no more here.
The ability reference information of the 3rd equipment 1 that S305, the second device analysis receive, obtains the ability information of the 3rd equipment 1, and obtains the network identity of the 3rd equipment 1.
In the first application scenarios of the embodiment of the present invention, the ability reference information of the 3rd equipment 1 can comprise: the CPU speed of the 3rd equipment 1.Now, as shown in Figure 4, the second equipment can directly using the ability value of the value of the CPU speed of the 3rd equipment 1 as the ability information of the 3rd equipment 1.
Optionally, in the second application scenarios of the embodiment of the present invention, the ability reference information of the 3rd equipment 1 comprises: the CPU speed of the 3rd equipment 1 and the memory capacity of the 3rd equipment 1.In this application scenarios, as shown in Figure 5, the method for the embodiment of the present invention can also comprise S302 ', and S305 can replace with S305 ':
S305 ', the second equipment, in conjunction with the first weight and the CPU speed of the second weight analysis the 3rd equipment 1 and the memory capacity of the 3rd equipment 1, calculate the ability information of the 3rd equipment 1.
In this application scenarios, the second equipment can adopt following formula:
Capability(2)=CPU_speed(2)×w_CPU+Memory(2)×w_M
Calculate the ability information of the 3rd equipment 1.
Wherein, Capability (2) represents the ability information of the 3rd equipment 1, and CPU_speed (2) represents the CPU speed of the 3rd equipment 1; Memory (2) represents the memory capacity of the 3rd equipment 1; W_CPU represents the first weight; W_M represents the second weight.
Preferably, in the third application scenarios of the embodiment of the present invention, comprise from the ability reference information of equipment: from the CPU speed of equipment, the memory capacity from equipment and the dump energy percentage from equipment.In this application scenarios, as shown in Figure 6, the method for the embodiment of the present invention can also comprise S302 ', and S305 can replace with S305 〞:
S305 〞, the second equipment, in conjunction with the dump energy percentage of the first weight, the second weight and the 3rd equipment 1, are analyzed the CPU speed of the 3rd equipment 1 and the memory capacity of the 3rd equipment 1, are calculated the ability information of the 3rd equipment 1.
In this application scenarios, the second equipment can adopt following formula:
Capability (2)=(CPU_speed (2) × w_CPU+Memory (2) × w_M) × Rest (2) calculates the ability information of the 3rd equipment 1.
Wherein, i=2, Capability (2) represent the ability information of the 3rd equipment 1, and CPU_speed (2) represents the CPU speed of the 3rd equipment 1; Memory (2) represents the memory capacity of the 3rd equipment 1; Rest (2) represents the dump energy percentage of the 3rd equipment 1; W_CPU represents the first weight; W_M represents the second weight.
First weight for CPU speed to described in first network from the influence coefficient of equipment as network control capabilities during the second equipment, the second weight be memory capacity in first network from the influence coefficient of equipment as network control capabilities during the second equipment; The memory capacity of the 3rd equipment 1 comprises: the internal memory residual capacity of the 3rd equipment 1 or the hard disk remaining capacity of the 3rd equipment 1; The dump energy percentage of the 3rd equipment 1 is the percentage of dump energy shared by the saturated electricity of the 3rd equipment 1 of the 3rd equipment 1.
S306, the 3rd equipment 2, after access first network, send ability reference information to the second equipment of the 3rd equipment 2.
It should be noted that, 3rd equipment 2 is after access first network, first equipment that to send in the method for ability reference information to the second equipment of the 3rd equipment 2 and S202 is after accessing first network, the concrete grammar sending ability reference information to the second equipment of the first equipment is similar, the ability reference information of the 3rd equipment 2 can with reference to the associated description in S302, and the embodiment of the present invention repeats no more here.
The ability reference information of the 3rd equipment 2 that S307, the second device analysis receive, obtains the ability information of the 3rd equipment 2, and obtains the network identity of the 3rd equipment 2.
In the first application scenarios of the embodiment of the present invention, the ability reference information of the 3rd equipment 2 can comprise: the CPU speed of the 3rd equipment 2.Now, as shown in Figure 4, the second equipment can directly using the ability value of the value of the CPU speed of the 3rd equipment 2 as the ability information of the 3rd equipment 2.Optionally, in the second application scenarios of the embodiment of the present invention, the ability reference information of the 3rd equipment 2 can comprise: the CPU speed of the 3rd equipment 2 and the memory capacity of the 3rd equipment 2.In this application scenarios, as shown in Figure 5, the method for the embodiment of the present invention can also comprise S302 ', and S307 can replace with S307 ':
S307 ', the second equipment, in conjunction with the first weight and the CPU speed of the second weight analysis the 3rd equipment 2 and the memory capacity of the 3rd equipment 2, calculate the ability information of the 3rd equipment 2.
In this application scenarios, the second equipment can adopt following formula:
Capability(3)=CPU_speed(3)×w_CPU+Memory(3)×w_M
Calculate the ability information of the 3rd equipment 2.
Wherein, Capability (3) represents the ability information of the 3rd equipment 2, and CPU_speed (3) represents the CPU speed of the 3rd equipment 2; Memory (3) represents the memory capacity of the 3rd equipment 2; W_CPU represents the first weight; W_M represents the second weight.
Preferably, in the third application scenarios of the embodiment of the present invention, comprise from the ability reference information of equipment: from the CPU speed of equipment, the memory capacity from equipment and the dump energy percentage from equipment.In this application scenarios, as shown in Figure 6, the method for the embodiment of the present invention can also comprise S302 ', and S207 can replace with S307 〞:
S307 〞, the second equipment, in conjunction with the dump energy percentage of the first weight, the second weight and the 3rd equipment 2, are analyzed the CPU speed of the 3rd equipment 2 and the memory capacity of the 3rd equipment 2, are calculated the ability information of the 3rd equipment 2.
In this application scenarios, the second equipment can adopt following formula:
Capability (3)=(CPU_speed (3) × w_CPU+Memory (3) × w_M) × Rest (3) calculates the ability information of the 3rd equipment 2.
Wherein, i=3, Capability (3) represent the ability information of the 3rd equipment 2, and CPU_speed (3) represents the CPU speed of the 3rd equipment 2; Memory (3) represents the memory capacity of the 3rd equipment 2; Rest (3) represents the dump energy percentage of the 3rd equipment 2; W_CPU represents the first weight; W_M represents the second weight.
First weight for CPU speed to described in first network from the influence coefficient of equipment as network control capabilities during the second equipment, the second weight be memory capacity in first network from the influence coefficient of equipment as network control capabilities during the second equipment; The memory capacity of the 3rd equipment 2 comprises: the internal memory residual capacity of the 3rd equipment 2 or the hard disk remaining capacity of the 3rd equipment 2; The dump energy percentage of the 3rd equipment 2 is the percentage of dump energy shared by the saturated electricity of the 3rd equipment 2 of the 3rd equipment 2.
Further, first can perform S302-S303 in embodiments of the present invention, then perform S304-S305, then perform S306-S307; Also first can perform S304-S305, then perform S306-S307, then perform S302-S303.Other the execution sequence embodiment of the present invention repeats no more here.The embodiment of the present invention does not limit the sequencing that S302-S303, S304-S305 and S306-S307 perform.
S308, the second equipment generate the first candidate information of the network identity comprising the ability information of the first equipment, the network identity of the first equipment, the ability information of the 3rd equipment 1, the network identity of the 3rd equipment 1, the ability information of the 3rd equipment 2 and the 3rd equipment 2.
Wherein, in a kind of application scenarios of the embodiment of the present invention, the first candidate information is specifically as follows one and comprises all from the ability information of equipment and the information aggregate of network identity of access first network.
In the another kind of application scenarios of the embodiment of the present invention, first candidate information is specifically as follows the first candidate list, comprise the ability list item from equipment of each access first network in first candidate list, described ability list item comprises this ability information from equipment and network identity.Arrange from the ability information of equipment according to the order from big to small of the ability value indicated by ability information in the first candidate list.
Exemplary, suppose Capability (1) >Capability (3) >Capability (2), wherein, Capability (1) represents the ability information of the first equipment, and mark a is the network identity of the first equipment; Capability (2) represents the ability information of the 3rd equipment 1, and mark b is the network identity of the 3rd equipment 1; Capability (3) represents the ability information of the 3rd equipment 2, and mark c is the network identity of the 3rd equipment 2.Table 1 is a first candidate list example:
Table 1
It should be noted that, in the embodiment of the present invention from the network identity of equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) can be the above-mentioned network address from equipment, as Internet protocol (the Internet Protocol from equipment, IP) address, physical address (Media Access Control, MAC) address etc.Wherein, the IP address in the embodiment of the present invention can be the 4th edition IPv4 of Internet protocol or the sixth version IPv6 of Internet protocol.
S309, the second equipment send the first candidate information to the first equipment, the 3rd equipment 1 and the 3rd equipment 2.
Further alternative, due in first network from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) carry out communicating and data interaction process may exist new for equipment (the 4th equipment) request access first network, or access first network exit first network from equipment (as the first equipment).
Therefore, if suppose the first equipment be access first network the ability value from equipment indicated by ability information the highest from equipment, if then the first equipment exits first network, and other exit first network from equipment (the 3rd equipment 1 and the 3rd equipment 2) first equipment that can not obtain.Now, if when the second equipment fault, then other AP that still can provide at request access first equipment from equipment, then may cause dynamic cooperation multi-media network (first network) to paralyse, to ensure between multiple equipment can not normally alternately with communicate.
If suppose the 4th equipment be new access first network from equipment, and the ability value indicated by ability information of the 4th equipment higher than access first network other all ability information from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2) indicated by ability value, and ability value indicated by the ability information of the first equipment higher than the 3rd equipment 1 and the 3rd equipment 2 ability information indicated by ability value.Now, the ability information of the 4th equipment is not known due to the first equipment, the 3rd equipment 1 and the 3rd equipment 2, if then when the second equipment fault, then the first equipment then starts its AP function, the AP that 3rd equipment 1 and the 3rd equipment 2 can ask access first equipment to provide, but the first equipment be not access first network in can as the control performance of main equipment best from equipment.Now, during communication in first network between equipment, can not reach the Internet resources made full use of in first network, communication efficiency can not reach optimum.
Based on foregoing description, the method of the embodiment of the present invention can also comprise: second device periodically obtain access first network from equipment (namely current access first network from equipment, comprise the new for equipment of access first network, but do not comprise current exited first network from equipment) ability reference information, analyze the ability reference information from equipment got, obtain the described ability information from equipment, and obtain the described network identity from equipment; Generate and comprise the access described ability information from equipment of described first network and the second candidate information of network identity; Send described second candidate information to access described first network from equipment.
Accordingly, if access first network receive the second candidate information from described second equipment from equipment, then adopt described second candidate information to replace described first candidate information; The ability information from equipment and the network identity of at least two access first networks is comprised in described second candidate information.
It should be noted that, the second candidate information is specially the second candidate list; In described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
Exemplary, if now the 3rd equipment 1 exits first network, the 4th equipment access first network, the ability value indicated by ability information of the 4th equipment is higher than the ability value indicated by all ability information from equipment of other of access first network, the network identity of the 4th equipment is mark d, then the second candidate list is as shown in table 2:
Table 2
Wherein, can detect the second equipment whether fault by receiving from the heartbeat packet of the second equipment in real time from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2), concrete, the method for the embodiment of the present invention can also comprise S310-S311:
S310, the second device periodically send heartbeat packet to the first equipment, the 3rd equipment 1 and the 3rd equipment 2.
S311, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 detect the second equipment whether fault respectively.
Concrete, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 determine that the method for the second equipment fault can be S311a, S311b and S311c respectively:
If the number that S311a first equipment receives from the heartbeat packet of the second equipment in Preset Time is less than predetermined threshold value, the first equipment then determines the second equipment fault.
If the number that S311b the 3rd equipment 1 receives from the heartbeat packet of the second equipment in Preset Time is less than predetermined threshold value, the 3rd equipment 1 determines the second equipment fault.
If the number that S311c the 3rd equipment 2 receives from the heartbeat packet of the second equipment in Preset Time is less than predetermined threshold value, the 3rd equipment 2 determines the second equipment fault.
S312, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 determine whether self is back-up master respectively.
Concrete, whether the first equipment, the 3rd equipment 1 and the 3rd equipment 2 are determined self to be the method for back-up master can be S312a, S312b and S312c respectively:
According to the ability information of the ability information of the first equipment comprised in the first candidate information, the ability information of the 3rd equipment 1 and the 3rd equipment 2, S312a, the first equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master.
Concrete, according to the ability information of the ability information of the first equipment comprised in the first candidate information, the ability information of the 3rd equipment 1 and the 3rd equipment 2, first equipment judges that whether the first equipment be that the method for back-up master can comprise: the first equipment is searched in the ability information of the first equipment and the ability information of at least one the 3rd equipment, is arranged in primary ability information according to the order from big to small of the ability value indicated by ability information; Judge that whether the ability information that finds is the ability information of the first equipment; If the ability information found is the ability information of the first equipment, then determine that described first equipment is described back-up master; If the ability information found is not the ability information of the first equipment, then determine that the first equipment is not back-up master.
Further, the first candidate information is specially the first candidate list; First equipment can by judging whether be arranged in the first candidate list according to ability information from the ability information of equipment first, if the ability information of the first equipment is arranged in first of the first candidate list, then can determine that the first equipment is the second equipment for subsequent use.
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of described second equipment for subsequent use is arranged in first in described first candidate list.
According to the ability information of the ability information of the first equipment comprised in the first candidate information, the ability information of the 3rd equipment 1 and the 3rd equipment 2, S312b, the 3rd equipment 1, when the second equipment fault being detected, judge whether the 3rd equipment 1 is back-up master.
According to the ability information of the ability information of the first equipment comprised in the first candidate information, the ability information of the 3rd equipment 1 and the 3rd equipment 2, S312c, the 3rd equipment 2, when the second equipment fault being detected, judge whether the 3rd equipment 2 is back-up master.
It should be noted that, 3rd equipment 1 judges whether the 3rd equipment 1 is back-up master, and the 3rd equipment 2 judge that whether the 3rd equipment 2 be that the method for back-up master and the first equipment judge that whether the first equipment be that the method for back-up master is similar, the embodiment of the present invention repeats no more here.
Exemplary, in a kind of application scenarios of the embodiment of the present invention, the ability value indicated by ability information of the first equipment comprised in the first candidate information if suppose is greater than the ability value indicated by ability information of the 3rd equipment 1, and be greater than the ability value indicated by ability information of the 3rd equipment 2, then the first equipment can determine that the first equipment is back-up master, 3rd equipment 1 can determine that the 3rd equipment 1 is not back-up master, and the 3rd equipment 2 can determine that the 3rd equipment 2 is not back-up master.Therefore can continue to perform S313-S317:
The wireless access node function of S313, the first device start first equipment.
S314, the 3rd equipment 1 determine that the first equipment is back-up master.
S315, the 3rd equipment 1 access according to the network identity of the first equipment the AP that the first equipment provides.According to the wireless access node that network identity access the 3rd equipment 1 of the 3rd equipment 1 provides.
S316, the 3rd equipment 2 determine that the first equipment is back-up master.
S317, the 3rd equipment 2 access according to the network identity of the first equipment the AP that the first equipment provides.
Wherein, ability information can be arranged in the primary of the first candidate list and be defined as back-up master from equipment by the 3rd equipment 1 and the 3rd equipment 2.
Wherein, in described first candidate list, the ability information of the ability information of the first equipment, the 3rd equipment 1 and the 3rd equipment 2 is according to the order arrangement from big to small of the ability value indicated by ability information.
In the another kind of application scenarios of the embodiment of the present invention, the ability value indicated by ability information of the 3rd equipment 1 comprised in the first candidate information if suppose is greater than the ability value indicated by ability information of the first equipment, and be greater than the ability value indicated by ability information of the 3rd equipment 2, as shown in Figure 5,3rd equipment 1 can determine that the 3rd equipment 1 is back-up master, and the 3rd equipment 1 can start the AP function of the 3rd equipment 1; First equipment can determine that the first equipment is not back-up master, and according to the AP that network identity access the 3rd equipment 1 of the 3rd equipment 1 provides; 3rd equipment 2 can determine that the 3rd equipment 2 is not back-up master, and according to the AP that network identity access the 3rd equipment 1 of the 3rd equipment 1 provides.
Accordingly, in the another kind of application scenarios of the embodiment of the present invention, the ability value indicated by ability information of the 3rd equipment 2 comprised in the first candidate information if suppose is greater than the ability value indicated by ability information of the first equipment, and be greater than the ability value indicated by ability information of the 3rd equipment 1, as shown in Figure 6,3rd equipment 2 can determine that the 3rd equipment 2 is back-up master, and the 3rd equipment 2 can start the AP function of the 3rd equipment 1; First equipment can determine that the first equipment is not back-up master, and according to the AP that network identity access the 3rd equipment 1 of the 3rd equipment 1 provides; 3rd equipment 1 can determine that the 3rd equipment 1 is not back-up master, and according to the AP that network identity access the 3rd equipment 2 of the 3rd equipment 2 provides.
Further, the method for the embodiment of the present invention can also comprise S318:
S318, delete ability information and the network identity of the back-up master comprised the first candidate information from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2).
Wherein, ability information and the network identity of the back-up master comprised the first candidate information can be deleted from equipment (the first equipment, the 3rd equipment 1 and the 3rd equipment 2).If the first candidate information is the first candidate list, then the first equipment, the 3rd equipment 1 and the 3rd equipment 2 can be deleted ability information in the first candidate list and be arranged in the primary ability information from equipment and network identity.
In embodiments of the present invention, if the first equipment is back-up master, then as shown in Figure 2, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 can delete ability information and the network identity of the first equipment comprised in the first candidate information.
If the 3rd equipment 1 is back-up master, then as shown in Figure 3, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 can delete ability information and the network identity of the 3rd equipment 1 comprised in the first candidate information.
If the 3rd equipment 2 is back-up master, then as shown in Figure 4, the first equipment, the 3rd equipment 1 and the 3rd equipment 2 can delete ability information and the network identity of the 3rd equipment 2 comprised in the first candidate information.
The equipment switching method that the embodiment of the present invention provides, first equipment is after access first network, receive the first candidate information from the second equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master according to the ability information of the first equipment and the ability information of at least one the 3rd equipment; If the first equipment is back-up master, then start the wireless access node function of the first equipment; If the first equipment is not back-up master, then determine described back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, first equipment (from equipment) can after the second equipment (main equipment) breaks down, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
Another embodiment of the present invention provides a kind of first equipment, and as shown in Figure 7, described first equipment comprises:
Receiving element 41, for after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in described first candidate information.
Detecting unit 42, for detecting described second equipment whether fault.
Judging unit 43, for when described detecting unit 42 detects described second equipment fault, the ability information of described first equipment received according to described receiving element 41 and the ability information of the 3rd equipment described at least one judge whether described first equipment is back-up master.
Start unit 44, if judge that obtaining described first equipment is described back-up master for described judging unit 43, described first equipment then starts the wireless access node function of described first equipment.
Access unit 45, if judge that obtaining described first equipment is not described back-up master for described judging unit 43, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides.
Further, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network.
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment.
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
Further, described detecting unit 42, also for receiving the heartbeat packet that described second device periodically sends; If the number that described first equipment receives from the heartbeat packet of described second equipment in Preset Time is less than predetermined threshold value, described first equipment then determines described second equipment fault.
Further, as shown in Figure 8, described judging unit 43, can comprise: search module 431 and determination module 432.
Search module 431, for searching the ability information of described first equipment and in the ability information of the 3rd equipment described at least one, being arranged in primary ability information according to the order from big to small of the ability value indicated by ability information.
Determination module 432, if for described in search the ability information that ability information that module 431 finds is described first equipment, then determine that described first equipment is described back-up master.
Further, described determination module 432, if also for described in search the ability information that ability information that module 431 finds is not described first equipment, then determine that described first equipment is not described back-up master.
Described access unit 45, also for described first equipment, the 3rd equipment corresponding to the ability information found is defined as described back-up master, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
Further alternative, in a kind of application scenarios of the embodiment of the present invention, described first candidate information is specially the first candidate list.
Described judging unit 43, if be also arranged in first of described first candidate list for the ability information of described first equipment, then determines that described first equipment is described back-up master.
Wherein, in described first candidate list, the ability information of described first equipment and the ability information of described 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
Further, described access unit 45, primary 3rd equipment also for ability information being arranged in described first candidate list is defined as described back-up master, and be arranged in the network identity of primary 3rd equipment of described first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in described first candidate list provides.
Further, as shown in Figure 9, described first equipment, can also comprise: the first transmitting element 46.
First transmitting element 46, before receiving the first candidate information from the second equipment at described receiving element 41, send the ability reference information of described first equipment to described second equipment, to make described second equipment generate the ability information of described first equipment according to the ability reference information of described first equipment, and then the ability information and the ability information of network identity and at least one the 3rd equipment and the first candidate information of network identity that described second equipment are generated comprise described first equipment.
Further, described first equipment, can also comprise: delete cells.
Delete cells, for to access wireless access node that described back-up master provides according to the network identity of described back-up master at described access unit 45 after, delete ability information and the network identity of the described back-up master comprised in described first candidate information.
Further, after the wireless access node function of the first device start first equipment, then represent the current main equipment for first network of the first equipment, now the first equipment then can receive the ability reference information of other equipment of current access first network, obtain the network identity of other equipment of current access first network, and the ability information of other equipment of current each access first network is generated according to the ability reference information got, then the second candidate information comprising the network identity of the ability information of generation and other equipment of each access first network is generated, so that other equipment of current access first network can determine back-up master after the first equipment fault.
Therefore, described first equipment, can also comprise: acquiring unit and the second transmitting element.
Acquiring unit, after starting the wireless access node function of described first equipment at described start unit 44, described first equipment obtains the ability information of the 3rd equipment and the second candidate information of network identity that comprise the wireless access node that described first equipment of all accesses provides.
Second transmitting element, the 3rd equipment of the wireless access node that the second candidate information to described first equipment of all accesses got for sending described acquiring unit provides.
Further, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment.
In a kind of application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
Accordingly, in this application scenarios, the ability reference information of described 3rd equipment comprises: the central processor CPU speed of described 3rd equipment.
On the other hand, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment.
Accordingly, in this application scenarios, the ability reference information of described 3rd equipment comprises: the CPU speed of described 3rd equipment and the memory capacity of described 3rd equipment.
On the other hand, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment.
Accordingly, in this application scenarios, the ability reference information of described 3rd equipment comprises: the dump energy percentage of the CPU speed of described 3rd equipment, the memory capacity of described 3rd equipment and described 3rd equipment.
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
Accordingly, the memory capacity of described 3rd equipment comprises: the internal memory residual capacity of described 3rd equipment or the hard disk remaining capacity of described 3rd equipment; The dump energy percentage of described 3rd equipment is the percentage of dump energy shared by the saturated electricity of described 3rd equipment of described 3rd equipment.
It should be noted that, in the first equipment that the embodiment of the present invention provides, the specific descriptions of part functional module can with reference to the corresponding content in the inventive method embodiment, and the present embodiment is no longer described in detail here.
It should be noted that, the first equipment be access first network any one from equipment, the 3rd equipment be access first network any one from equipment.Therefore, the concrete function of the 3rd equipment can with reference to function concrete to the first equipment in the embodiment of the present invention, and the embodiment of the present invention repeats no more here.
The first equipment that the embodiment of the present invention provides, can after access first network, receive the first candidate information from the second equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master according to the ability information of the first equipment and the ability information of at least one the 3rd equipment; If the first equipment is back-up master, then start the wireless access node function of the first equipment; If the first equipment is not back-up master, then determine described back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, first equipment (from equipment) can after the second equipment (main equipment) breaks down, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
Another embodiment of the present invention provides a kind of second equipment, and as shown in Figure 10, described second equipment, comprising:
First acquiring unit 51, for after access first network, obtains ability information and the network identity of all first equipment of the described first network of access.
Generation unit 52, comprises for generating the ability information of described first equipment and the first candidate information of network identity that described first acquiring unit gets.
Transmitting element 53, for sending described first candidate information extremely described first equipment that described generation unit generates, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
Further, described second equipment sets up into described first network with at least two described first equipment.
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment be described first network from equipment.
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
Further, described first acquiring unit 51, comprising: receiver module and analysis module.
Receiver module, for receiving the ability reference information of all described first equipment from the described first network of access.
Analysis module, for analyzing the ability reference information that described receiver module receives, obtains the ability information of described first equipment, and obtains the network identity of described first equipment.
Further, in the first application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
Further alternative, in the second application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment.
In the second application scenarios, as shown in figure 11, described second equipment, can also comprise: second acquisition unit 54.
Second acquisition unit 54, for the ability reference information received the analysis of described analysis module 512, before obtaining the ability information of described first equipment, obtains the first weight and the second weight.
Described analysis module 512, also in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculates the ability information of described first equipment.
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network.
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
Further alternative, in the third application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment.
In the third application scenarios, as shown in figure 11, described second equipment, also comprises: second acquisition unit 54.
Second acquisition unit 54, for the ability reference information received in described analysis module analysis, before obtaining the ability information of described first equipment, obtains the first weight and the second weight.
Described analysis module, also for the described CPU speed of the first equipment described in the dump energy percentage analysis in conjunction with described first weight, described second weight and described first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment.
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network.
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
Further, in the second application scenarios of the embodiment of the present invention, described analysis module 512, specifically for adopting
Capability (i)=CPU_speed (i) × w_CPU+Memory (i) × w_M calculates the ability information of described first equipment.
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight.
Further, in the third application scenarios of the embodiment of the present invention, described analysis module 512, specifically for adopting
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information of described first equipment.
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight; Rest (i) represents the dump energy percentage of i-th described first equipment.
Further, described second equipment, can also comprise: transmitting element.
Transmitting element, for after the described first network of access, periodically send heartbeat packet to described first equipment accessing described first network, so that described first equipment determines described second equipment whether fault according to the number of the heartbeat packet received in Preset Time.
Further, described second equipment, can also comprise: the 3rd acquiring unit.
3rd acquiring unit, for periodically obtaining the ability information of described first equipment of the described first network of access, and generates the ability information of described first equipment and the second candidate information of network identity that comprise the described first network of access.
Transmitting element, also for sending described second candidate information to accessing described in described first network from the first equipment second candidate information.
Further, described first candidate information is specially the first candidate list.
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described first candidate list.
Further, described second candidate information is specially the second candidate list.
Wherein, in described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
It should be noted that, in the second equipment that the embodiment of the present invention provides, the specific descriptions of part functional module can with reference to the corresponding content in the inventive method embodiment, and the present embodiment is no longer described in detail here.
The second equipment that the embodiment of the present invention provides, after access first network, can obtain ability information and the network identity of all first equipment of the described first network of access; Generate and comprise the ability information of described first equipment and the first candidate information of network identity that get; Send the first candidate information to the first equipment, so that the first equipment selects back-up master according to the first candidate information after the second equipment fault.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, second equipment (main equipment) can send ability information to the first equipment of all first equipment of access first network after access first network, so that the first equipment (from equipment) can after the second device fails, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility moving cooperation multi-media network and paralyse can be reduced, to ensure between multiple equipment normal alternately with communicate.
One embodiment of the invention provides a kind of first equipment, and as shown in figure 12, described first equipment, comprising: receiver 61 and processor 62.
Receiver 61, for after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in described first candidate information.
According to the ability information of described first equipment and the ability information of the 3rd equipment described at least one, processor 62, for when described second equipment fault being detected, judges whether described first equipment is back-up master; If described first equipment is described back-up master, then start the wireless access node function of described first equipment; If described first equipment is not described back-up master, then determine described back-up master, and access according to the network identity of described back-up master the wireless access node that described back-up master provides.
Further, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network.
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment.
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
Further, described processor 62, also for receiving the heartbeat packet that described second device periodically sends; If the number that described first equipment receives from the heartbeat packet of described second equipment in Preset Time is less than predetermined threshold value, then determine described second equipment fault.
Further, described processor 62, also for searching the ability information of described first equipment and in the ability information of the 3rd equipment described at least one, being arranged in primary ability information according to the order from big to small of the ability value indicated by ability information; If the ability information found is the ability information of described first equipment, then determine that described first equipment is described back-up master.
Further, described processor 62, if the ability information also for finding is not the ability information of described first equipment, then determines that described first equipment is not described back-up master.
Further, described processor 62, also for determining described back-up master, and access according to the network identity of described back-up master the wireless access node that described back-up master provides, comprise: the 3rd equipment corresponding to the ability information found is defined as described back-up master, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
Further, described first candidate information is specially the first candidate list.
Further, described processor 62, if be also arranged in first of described first candidate list for the ability information of described first equipment, described first equipment then determines that described first equipment is described back-up master.
Wherein, in described first candidate list, the ability information of described first equipment and the ability information of described 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
Further, described processor 62, primary 3rd equipment also for ability information being arranged in described first candidate list is defined as described back-up master, and be arranged in the network identity of primary 3rd equipment of described first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in described first candidate list provides.
Further, as shown in figure 12, described first equipment, can also comprise: transmitter 63.
Transmitter 63, before receiving the first candidate information from the second equipment at described receiver 61, send the ability reference information of described first equipment to described second equipment, to make described second equipment generate the ability information of described first equipment according to the ability reference information of described first equipment, and then the ability information and the ability information of network identity and at least one the 3rd equipment and the first candidate information of network identity that described second equipment are generated comprise described first equipment.
Further, described processor 62, also for after access wireless access node that described back-up master provides according to the network identity of described back-up master, delete ability information and the network identity of the described back-up master comprised in described first candidate information.
Further, after the wireless access node function of the first device start first equipment, then represent the current main equipment for first network of the first equipment, now the first equipment then can receive the ability reference information of other equipment of current access first network, obtain the network identity of other equipment of current access first network, and the ability information of other equipment of current each access first network is generated according to the ability reference information got, then the second candidate information comprising the network identity of the ability information of generation and other equipment of each access first network is generated, so that other equipment of current access first network can determine back-up master after the first equipment fault.
Therefore, described processor 61, also for after the wireless access node function starting described first equipment, obtains the ability information of the 3rd equipment and the second candidate information of network identity that comprise the wireless access node that described first equipment of all accesses provides.
Described first equipment sends the 3rd equipment of the wireless access node that described second candidate information to described first equipment of all accesses provides.
Exemplary, the first candidate information is specifically as follows one and comprises all from the ability information of equipment (the first equipment and the 3rd equipment) and the information aggregate of network identity of access first network; Or the first candidate information is specifically as follows the first candidate list, comprise the ability list item from equipment of each access first network in the first candidate list, ability list item comprises this ability information from equipment and network identity.Arrange from the ability information of equipment according to the order from big to small of the ability value indicated by ability information in the first candidate list.
Further, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment.
In a kind of application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
Accordingly, in this application scenarios, the ability reference information of described 3rd equipment comprises: the central processor CPU speed of described 3rd equipment.
On the other hand, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment.
Accordingly, in this application scenarios, the ability reference information of described 3rd equipment comprises: the CPU speed of described 3rd equipment and the memory capacity of described 3rd equipment.
On the other hand, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment.
Accordingly, in this application scenarios, the ability reference information of described 3rd equipment comprises: the dump energy percentage of the CPU speed of described 3rd equipment, the memory capacity of described 3rd equipment and described 3rd equipment.
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
Accordingly, the memory capacity of described 3rd equipment comprises: the internal memory residual capacity of described 3rd equipment or the hard disk remaining capacity of described 3rd equipment; The dump energy percentage of described 3rd equipment is the percentage of dump energy shared by the saturated electricity of described 3rd equipment of described 3rd equipment.
It should be noted that, in the first equipment that the embodiment of the present invention provides, the specific descriptions of part functional module can with reference to the corresponding content in the inventive method embodiment and device embodiment, and the present embodiment is no longer described in detail here.
It should be noted that, the first equipment be access first network any one from equipment, the 3rd equipment be access first network any one from equipment.Therefore, the concrete function of the 3rd equipment can with reference to function concrete to the first equipment in the embodiment of the present invention, and the embodiment of the present invention repeats no more here.
The first equipment that the embodiment of the present invention provides, can after access first network, receive the first candidate information from the second equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master according to the ability information of the first equipment and the ability information of at least one the 3rd equipment; If the first equipment is back-up master, then start the wireless access node function of the first equipment; If the first equipment is not back-up master, then determine described back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, first equipment (from equipment) can after the second equipment (main equipment) breaks down, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
One embodiment of the invention provides a kind of second equipment, and as shown in figure 13, described second equipment can comprise: processor 71 and transmitter 72.
Processor 71, for after access first network, obtains ability information and the network identity of all first equipment of the described first network of access; Generate and comprise the ability information of described first equipment and the first candidate information of network identity that get.
Transmitter 72, for sending described first candidate information extremely described first equipment that described processor 71 generates, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
Further, described second equipment sets up into described first network with at least two described first equipment.
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment be described first network from equipment.
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
Further, as shown in figure 13, described second equipment, can also comprise: receiver 73.
Receiver 73, for receiving the ability reference information of all described first equipment from the described first network of access.
Described processor 71, also for analyzing the ability reference information received, obtains the ability information of described first equipment, and obtains the network identity of described first equipment.
Further, in the first application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
Further, in second of the embodiment of the present invention in application scenarios, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment.
Described processor 71, also for analyzing the ability reference information received, before obtaining the ability information of described first equipment, obtains the first weight and the second weight.
The CPU speed of the first equipment and the memory capacity of described first equipment described in first weight described in described combination and described second weight analysis, calculate the ability information of described first equipment.
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network.
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
Further, in the third application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment.
Described processor 71, also for analyzing the ability reference information received, before obtaining the ability information of described first equipment, obtains the first weight and the second weight.
Described processor 71, also for the described CPU speed of the first equipment described in the dump energy percentage analysis in conjunction with described first weight, described second weight and described first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment.
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network.
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
Further, in second of the embodiment of the present invention in application scenarios, described processor 71, also for adopting
Capability (i)=CPU_speed (i) × w_CPU+Memory (i) × w_M calculates the ability information of described first equipment.
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight.
Further, in the third application scenarios of the embodiment of the present invention, described processor 71, also for adopting
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information of described first equipment.
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight; Rest (i) represents the dump energy percentage of i-th described first equipment.
Further, described transmitter 72, also for after the described first network of access, periodically send heartbeat packet to described first equipment accessing described first network, so that described first equipment determines described second equipment whether fault according to the number of the heartbeat packet received in Preset Time.
Further, described processor 71, also for periodically obtaining the ability information of described first equipment of the described first network of access, and generates the ability information of described first equipment and the second candidate information of network identity that comprise the described first network of access.
Described second equipment sends described second candidate information to accessing the described from the first equipment second candidate information of described first network.
Further, described first candidate information is specially the first candidate list.
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described first candidate list.
Further, described second candidate information is specially the second candidate list.
Wherein, in described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
It should be noted that, in the second equipment that the embodiment of the present invention provides, the specific descriptions of part functional module can with reference to the corresponding content in the inventive method embodiment and device embodiment, and the present embodiment is no longer described in detail here.
The second equipment that the embodiment of the present invention provides, after access first network, can obtain ability information and the network identity of all first equipment of the described first network of access; Generate and comprise the ability information of described first equipment and the first candidate information of network identity that get; Send the first candidate information to the first equipment, so that the first equipment selects back-up master according to the first candidate information after the second equipment fault.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, second equipment (main equipment) can send ability information to the first equipment of all first equipment of access first network after access first network, so that the first equipment (from equipment) can after the second device fails, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility moving cooperation multi-media network and paralyse can be reduced, to ensure between multiple equipment normal alternately with communicate.
Another embodiment of the present invention also provides a kind of equipment switching system, and as shown in Figure 3, this equipment switching system, can comprise: the second equipment, the first equipment and at least one the 3rd equipment (the 3rd equipment and the first equipment are all from equipment).
First equipment, for after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in the first candidate information; When described second equipment fault being detected, judge whether described first equipment is back-up master according to the ability information of described first equipment and the ability information of the 3rd equipment described at least one; If described first equipment is described back-up master, then start the wireless access node function of described first equipment; If described first equipment is not described back-up master, then determine described back-up master, and access according to the network identity of described back-up master the wireless access node that described back-up master provides.
Second equipment, for after access first network, obtains access all first equipment of described first network, the ability information of the 3rd equipment and network identity; Generate and comprise the ability information of described first equipment and the first candidate information of network identity that get; Send described first candidate information to described first equipment and the 3rd equipment, so that described first equipment and the 3rd equipment select back-up master according to described first candidate information after described second equipment fault.
Wherein, the 3rd equipment has identical function with the first equipment, and the concrete function of the embodiment of the present invention to the 3rd equipment repeats no more.
It should be noted that, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network.
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment.
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
Further, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment.
In a kind of application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
Further alternative, in the another kind of application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment.
Further alternative, in the another kind of application scenarios of the embodiment of the present invention, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment.
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
Exemplary, the particular content of the particular content of the ability reference information of the 3rd equipment and the ability reference information of the first equipment is similar, and the particular content embodiment of the present invention for the ability reference information of the 3rd equipment repeats no more here.
It should be noted that, in the first equipment in the equipment switching system that the embodiment of the present invention provides and the second equipment, the specific descriptions of part functional module can with reference to the corresponding content in the inventive method embodiment and device embodiment, and the present embodiment is no longer described in detail here.
The equipment switching system that the embodiment of the present invention provides, first equipment can after access first network, receive the first candidate information from the second equipment, when the second equipment fault being detected, judge whether the first equipment is back-up master according to the ability information of the first equipment and the ability information of at least one the 3rd equipment; If the first equipment is back-up master, then start the wireless access node function of the first equipment; If the first equipment is not back-up master, then determine described back-up master, and according to the wireless access node that the network identity access back-up master of back-up master provides.
With prior art, when the main equipment pre-set breaks down, or when the main equipment pre-set and the back-up master pre-set all break down, owing to losing the control of main equipment and the network paralysis caused is compared, first equipment (from equipment) can after the second equipment (main equipment) breaks down, spontaneously reselect new main equipment according to the ability information from equipment, thus the possibility that mobile cooperation multi-media network paralyses can be reduced, ensure between multiple equipment normal alternately with communicate.
Through the above description of the embodiments, those skilled in the art can be well understood to, for convenience and simplicity of description, only be illustrated with the division of above-mentioned each functional module, in practical application, can distribute as required and by above-mentioned functions and be completed by different functional modules, the internal structure by device is divided into different functional modules, to complete all or part of function described above.The system of foregoing description, the specific works process of device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that, disclosed system, apparatus and method, can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described module or unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.Above-mentioned integrated unit both can adopt the form of hardware to realize, and the form of SFU software functional unit also can be adopted to realize.
If described integrated unit using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part that technical scheme of the present invention contributes to prior art in essence in other words or all or part of of this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) or processor (processor) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: 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.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the protection range of described claim.
Claims (47)
1. an equipment switching method, is characterized in that, comprising:
First equipment, after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in described first candidate information;
According to the ability information of described first equipment and the ability information of the 3rd equipment described at least one, described first equipment, when described second equipment fault being detected, judges whether described first equipment is back-up master;
If described first equipment is described back-up master, described first equipment then starts the wireless access node function of described first equipment;
If described first equipment is not described back-up master, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides.
2. equipment switching method according to claim 1, is characterized in that, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
3. equipment switching method according to claim 1, is characterized in that, described first equipment Inspection, to described second equipment fault, comprising:
Described first equipment receives the heartbeat packet that described second device periodically sends;
If the number that described first equipment receives from the heartbeat packet of described second equipment in Preset Time is less than predetermined threshold value, described first equipment then determines described second equipment fault.
4. equipment switching method according to claim 1, is characterized in that, the ability information of described first equipment the 3rd equipment according to the ability information of described first equipment and at least one judges whether described first equipment is back-up master, comprising:
Described first equipment is searched in the ability information of described first equipment and the ability information of the 3rd equipment described at least one, is arranged in primary ability information according to the order from big to small of the ability value indicated by ability information;
If the ability information found is the ability information of described first equipment, described first equipment then determines that described first equipment is described back-up master.
5. the equipment switching method according to claim 1 or 4, is characterized in that, also comprises:
If the ability information found is not the ability information of described first equipment, described first equipment then determines that described first equipment is not described back-up master;
Described first equipment determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides, and comprising:
The 3rd equipment corresponding to the ability information found is defined as described back-up master by described first equipment, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
6. equipment switching method according to claim 1, is characterized in that, described first candidate information is specially the first candidate list;
The ability information of described first equipment the 3rd equipment according to the ability information of described first equipment and at least one judges whether described first equipment is back-up master, comprising:
If the ability information of described first equipment is arranged in first of described first candidate list, described first equipment then determines that described first equipment is described back-up master;
Wherein, in described first candidate list, the ability information of described first equipment and the ability information of described 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
7. the equipment switching method according to claim 1 or 6, is characterized in that, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides, and comprising:
Primary 3rd equipment that ability information is arranged in described first candidate list by described first equipment is defined as described back-up master, and be arranged in the network identity of primary 3rd equipment of described first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in described first candidate list provides.
8. equipment switching method according to claim 1, is characterized in that, before described first equipment receives the first candidate information from the second equipment, described method also comprises:
Described first equipment sends the ability reference information of described first equipment to described second equipment, to make described second equipment generate the ability information of described first equipment according to the ability reference information of described first equipment, and then the ability information and the ability information of network identity and at least one the 3rd equipment and the first candidate information of network identity that described second equipment are generated comprise described first equipment.
9. equipment switching method according to claim 1, is characterized in that, after described first equipment to access the wireless access node that described back-up master provides according to the network identity of described back-up master, described method also comprises:
The ability information of the described back-up master comprised in the first candidate information described in described first unit deletion and network identity.
10. equipment switching method according to claim 1, is characterized in that, after the wireless access node function of the first equipment described in described first device start, described method also comprises:
Described first equipment obtains the ability information of the 3rd equipment and the second candidate information of network identity that comprise the wireless access node that described first equipment of all accesses provides;
Described first equipment sends the 3rd equipment of the wireless access node that described second candidate information to described first equipment of all accesses provides.
11. equipment switching methods according to claim 8, is characterized in that, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment;
The ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment;
Or the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
Or the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
12. 1 kinds of equipment switching methods, is characterized in that, comprising:
Second equipment, after access first network, obtains ability information and the network identity of all first equipment of the described first network of access;
Described second equipment generates and comprises the ability information of described first equipment and the first candidate information of network identity that get;
Described second equipment sends described first candidate information to described first equipment, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
13. equipment switching methods according to claim 12, is characterized in that, described second equipment sets up into described first network with at least two described first equipment;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
14. equipment switching methods according to claim 12, is characterized in that, described second equipment obtains ability information and the network identity of all first equipment of the described first network of access, comprising:
Described second equipment receives the ability reference information of all described first equipment from the described first network of access;
The ability reference information that described second device analysis receives, obtains the ability information of described first equipment, and obtains the network identity of described first equipment.
15. equipment switching methods according to claim 14, is characterized in that, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
16. equipment switching methods according to claim 14, is characterized in that, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
At the ability reference information that described second device analysis receives, before obtaining the ability information of described first equipment, described method also comprises:
Described second equipment obtains the first weight and the second weight;
The ability reference information that described second device analysis receives, obtains the ability information of described first equipment, comprising:
Described second equipment, in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculates the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
17. equipment switching methods according to claim 14, is characterized in that, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
At the ability reference information that described second device analysis receives, before obtaining the ability information of described first equipment, described method also comprises:
Described second equipment obtains the first weight and the second weight;
The ability reference information that described second device analysis receives, obtains the ability information of described first equipment, comprising:
Described second equipment in conjunction with described first weight, described second weight and described first equipment dump energy percentage analysis described in the described CPU speed of the first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment;
The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
18. equipment switching methods according to claim 16, it is characterized in that, described second equipment is in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculate the ability information of described first equipment, specifically comprise:
Described second equipment adopts
Capability (i)=CPU_speed (i) × w_CPU+Memory (i) × w_M calculates the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight.
19. equipment switching methods according to claim 17, it is characterized in that, described second equipment in conjunction with described first weight, described second weight and described first equipment dump energy percentage analysis described in the described CPU speed of the first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment, specifically comprise:
Described second equipment adopts
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight; Rest (i) represents the dump energy percentage of i-th described first equipment.
20. equipment switching methods according to claim 12, is characterized in that, also comprise:
Described second equipment is after the described first network of access, periodically send heartbeat packet to described first equipment accessing described first network, so that described first equipment determines described second equipment whether fault according to the number of the heartbeat packet received in Preset Time.
21. equipment switching methods according to claim 12, is characterized in that, also comprise:
Described second device periodically obtains the ability information of described first equipment of the described first network of access, and generates the ability information of described first equipment and the second candidate information of network identity that comprise the described first network of access;
Described second equipment sends described second candidate information to accessing the described from the first equipment second candidate information of described first network.
22. equipment switching methods according to claim 19, is characterized in that, described first candidate information is specially the first candidate list;
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described first candidate list.
23. equipment switching methods according to claim 21, is characterized in that, described second candidate information is specially the second candidate list;
Wherein, in described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
24. a kind of first equipment, is characterized in that, comprising:
Receiving element, for after access first network, receives the first candidate information from the second equipment, comprises the ability information of described first equipment and the ability information of network identity and at least one the 3rd equipment and network identity in described first candidate information;
Detecting unit, for detecting described second equipment whether fault;
Judging unit, for when described detecting unit detects described second equipment fault, the ability information of described first equipment received according to described receiving element and the ability information of the 3rd equipment described at least one judge whether described first equipment is back-up master;
Start unit, if judge that obtaining described first equipment is described back-up master for described judging unit, described first equipment then starts the wireless access node function of described first equipment;
Access unit, if judge that obtaining described first equipment is not described back-up master for described judging unit, described first equipment then determines described back-up master, and accesses according to the network identity of described back-up master the wireless access node that described back-up master provides.
25. first equipment according to claim 24, is characterized in that, described first equipment, described second equipment and the 3rd equipment described at least one set up into described first network;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment and at least one described in the 3rd equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
26. first equipment according to claim 24, is characterized in that, described detecting unit, also for receiving the heartbeat packet that described second device periodically sends; If the number that described first equipment receives from the heartbeat packet of described second equipment in Preset Time is less than predetermined threshold value, described first equipment then determines described second equipment fault.
27. first equipment according to claim 24, it is characterized in that, described judging unit, comprising:
Search module, for searching the ability information of described first equipment and in the ability information of the 3rd equipment described at least one, being arranged in primary ability information according to the order from big to small of the ability value indicated by ability information;
Determination module, if for described in search module searches to ability information be the ability information of described first equipment, then determine that described first equipment is described back-up master.
28. the first equipment according to claim 24 or 27, it is characterized in that, described determination module, if also for described in search module searches to ability information be not the ability information of described first equipment, then determine that described first equipment is not described back-up master;
Described access unit, also for described first equipment, the 3rd equipment corresponding to the ability information found is defined as described back-up master, and the network identity of the 3rd equipment corresponding to the ability information found accesses the wireless access node that the 3rd equipment corresponding to ability information that finds provides.
29. first equipment according to claim 24, is characterized in that, described first candidate information is specially the first candidate list;
Described judging unit, if be also arranged in first of described first candidate list for the ability information of described first equipment, then determines that described first equipment is described back-up master;
Wherein, in described first candidate list, the ability information of described first equipment and the ability information of described 3rd equipment are according to the order arrangement from big to small of the ability value indicated by ability information.
30. the first equipment according to claim 24 or 29, it is characterized in that, described access unit, primary 3rd equipment also for ability information being arranged in described first candidate list is defined as described back-up master, and be arranged in the network identity of primary 3rd equipment of described first candidate list according to ability information, the wireless access node that primary 3rd equipment that access capability information is arranged in described first candidate list provides.
31. first equipment according to claim 24, is characterized in that, also comprise:
First transmitting element, before receiving the first candidate information from the second equipment at described receiving element, send the ability reference information of described first equipment to described second equipment, to make described second equipment generate the ability information of described first equipment according to the ability reference information of described first equipment, and then the ability information and the ability information of network identity and at least one the 3rd equipment and the first candidate information of network identity that described second equipment are generated comprise described first equipment.
32. first equipment according to claim 24, is characterized in that, also comprise:
Delete cells, for to access wireless access node that described back-up master provides according to the network identity of described back-up master at described access unit after, delete ability information and the network identity of the described back-up master comprised in described first candidate information.
33. first equipment according to claim 24, is characterized in that, also comprise:
Acquiring unit, after starting the wireless access node function of described first equipment at described start unit, described first equipment obtains the ability information of the 3rd equipment and the second candidate information of network identity that comprise the wireless access node that described first equipment of all accesses provides;
Second transmitting element, the 3rd equipment of the wireless access node that the second candidate information to described first equipment of all accesses got for sending described acquiring unit provides.
34. first equipment according to claim 31, is characterized in that, the ability information of described first equipment is that described second equipment obtains according to the ability reference information analysis of described first equipment;
The ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment;
Or the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
Or the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
Wherein, the memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment; The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
35. a kind of second equipment, is characterized in that, comprising:
First acquiring unit, for after access first network, obtains ability information and the network identity of all first equipment of the described first network of access;
Generation unit, comprises for generating the ability information of described first equipment and the first candidate information of network identity that described first acquiring unit gets;
Transmitting element, for sending described first candidate information extremely described first equipment that described generation unit generates, so that described first equipment selects back-up master according to described first candidate information after described second equipment fault.
36. second equipment according to claim 35, is characterized in that, described second equipment sets up into described first network with at least two described first equipment;
Wherein, before described second equipment fault, described second equipment is the main equipment of described first network, described first equipment be described first network from equipment;
Described main equipment is used for providing described wireless access node function from equipment described in described first network, control the running of described first network, the described described wireless access node being used for providing by accessing described main equipment from equipment accesses described first network.
37. second equipment according to claim 35, is characterized in that, described first acquiring unit, comprising:
Receiver module, for receiving the ability reference information of all described first equipment from the described first network of access;
Analysis module, for analyzing the ability reference information that described receiver module receives, obtains the ability information of described first equipment, and obtains the network identity of described first equipment.
38., according to the second equipment according to claim 37, is characterized in that, the ability reference information of described first equipment comprises: the central processor CPU speed of described first equipment.
39., according to the second equipment according to claim 37, is characterized in that, the ability reference information of described first equipment comprises: the CPU speed of described first equipment and the memory capacity of described first equipment;
Described second equipment, also comprises:
Second acquisition unit, for the ability reference information received in described analysis module analysis, before obtaining the ability information of described first equipment, obtains the first weight and the second weight;
Described analysis module, also in conjunction with the CPU speed of the first equipment described in described first weight and described second weight analysis and the memory capacity of described first equipment, calculates the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment.
40., according to the second equipment according to claim 37, is characterized in that, the ability reference information of described first equipment comprises: the dump energy percentage of the CPU speed of described first equipment, the memory capacity of described first equipment and described first equipment;
Described second equipment, also comprises:
Second acquisition unit, for the ability reference information received in described analysis module analysis, before obtaining the ability information of described first equipment, obtains the first weight and the second weight;
Described analysis module, also for the described CPU speed of the first equipment described in the dump energy percentage analysis in conjunction with described first weight, described second weight and described first equipment and the memory capacity of described first equipment, calculate the ability information of described first equipment;
Wherein, described first weight is described CPU speed to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network, and described second weight is described memory capacity to the influence coefficient of described first equipment as network control capabilities during main equipment in described first network;
The memory capacity of described first equipment comprises: the internal memory residual capacity of described first equipment or the hard disk remaining capacity of described first equipment;
The dump energy percentage of described first equipment is the percentage of dump energy shared by the saturated electricity of described first equipment of described first equipment.
41., according to the second equipment according to claim 39, is characterized in that, described analysis module, specifically for adopting
Capability (i)=CPU_speed (i) × w_CPU+Memory (i) × w_M calculates the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight.
42. second equipment according to claim 40, is characterized in that, described analysis module, specifically for adopting
Capability (i)=(CPU_speed (i) × w_CPU+Memory (i) × w_M) × Rest (i) calculates the ability information of described first equipment;
Wherein, i represents the call number of described first equipment, and Capability (i) represents the ability information of i-th described first equipment; CPU_speed (i) represents the CPU speed of i-th described first equipment; W_CPU represents described first weight; Memory (i) represents the memory capacity of i-th described first equipment; W_M represents described second weight; Rest (i) represents the dump energy percentage of i-th described first equipment.
43. second equipment according to claim 35, is characterized in that, also comprise:
Transmitting element, for after the described first network of access, periodically send heartbeat packet to described first equipment accessing described first network, so that described first equipment determines described second equipment whether fault according to the number of the heartbeat packet received in Preset Time.
44. second equipment according to claim 35, is characterized in that, also comprise:
3rd acquiring unit, for periodically obtaining the ability information of described first equipment of the described first network of access, and generates the ability information of described first equipment and the second candidate information of network identity that comprise the described first network of access;
Transmitting element, also for sending described second candidate information to accessing described in described first network from the first equipment second candidate information.
45. second equipment according to claim 42, is characterized in that, described first candidate information is specially the first candidate list;
Wherein, in described first candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described first candidate list.
46. second equipment according to claim 44, is characterized in that, described second candidate information is specially the second candidate list;
Wherein, in described second candidate list, the described ability information from equipment is according to the order arrangement from big to small of the ability value indicated by ability information; The ability information of back-up master is arranged in first in described second candidate list.
47. 1 kinds of equipment switching systems, is characterized in that, comprising:
The second equipment according to any one of claim 35-46;
At least two the first equipment according to any one of claim 24-34;
Wherein, described second equipment sets up into first network with at least two described first equipment.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410048426.4A CN104837168B (en) | 2014-02-12 | 2014-02-12 | A kind of equipment switching method, equipment and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410048426.4A CN104837168B (en) | 2014-02-12 | 2014-02-12 | A kind of equipment switching method, equipment and system |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104837168A true CN104837168A (en) | 2015-08-12 |
CN104837168B CN104837168B (en) | 2019-02-26 |
Family
ID=53814743
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410048426.4A Active CN104837168B (en) | 2014-02-12 | 2014-02-12 | A kind of equipment switching method, equipment and system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104837168B (en) |
Cited By (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105916100A (en) * | 2016-04-01 | 2016-08-31 | 华为技术有限公司 | Heartbeat packet agency method, device and communication system |
CN107483300A (en) * | 2017-07-24 | 2017-12-15 | 广东美的环境电器制造有限公司 | Inter-linked controlling method, system and the smart machine of multiple smart machines |
CN108600040A (en) * | 2018-03-16 | 2018-09-28 | 国电南瑞科技股份有限公司 | A kind of distributed system node failure detection method based on High Availabitity detection node |
CN108650115A (en) * | 2018-04-16 | 2018-10-12 | 宁波三星医疗电气股份有限公司 | Centralized meter-reading system multichannel cascade connection topological structure fault handling method |
CN111643893A (en) * | 2019-03-04 | 2020-09-11 | 网易(杭州)网络有限公司 | Multi-player game method and device |
CN112584463A (en) * | 2019-09-30 | 2021-03-30 | 华为技术有限公司 | Information synchronization method and system among multiple devices and electronic device |
CN112954819A (en) * | 2019-12-11 | 2021-06-11 | 华为技术有限公司 | Equipment networking method, electronic equipment and system |
CN113900386A (en) * | 2021-11-17 | 2022-01-07 | 北京联盛德微电子有限责任公司 | Self-adaptive linkage control method and system for Internet of things equipment |
CN114710534A (en) * | 2022-04-15 | 2022-07-05 | 杭州老板电器股份有限公司 | Control authority switching method and device and electronic equipment |
CN114979176A (en) * | 2022-05-11 | 2022-08-30 | 江苏领焰智能科技股份有限公司 | Network-based dimming data hot backup method, system, equipment and storage medium |
CN116107817A (en) * | 2023-04-10 | 2023-05-12 | 湖南博匠信息科技有限公司 | Redundant working method and system for double computing modules of VPX server |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102257848A (en) * | 2011-05-31 | 2011-11-23 | 华为技术有限公司 | Main and secondary apparatuses conversion method betwenn communication equipment, communication equipment and system, and request equipment of system and service |
WO2012151803A1 (en) * | 2011-07-20 | 2012-11-15 | 中兴通讯股份有限公司 | Virtual terminal system and method for implementing same |
CN103298041A (en) * | 2012-02-27 | 2013-09-11 | 联想(北京)有限公司 | Method, equipment and system for automatic switching of wireless router |
-
2014
- 2014-02-12 CN CN201410048426.4A patent/CN104837168B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102257848A (en) * | 2011-05-31 | 2011-11-23 | 华为技术有限公司 | Main and secondary apparatuses conversion method betwenn communication equipment, communication equipment and system, and request equipment of system and service |
WO2012151803A1 (en) * | 2011-07-20 | 2012-11-15 | 中兴通讯股份有限公司 | Virtual terminal system and method for implementing same |
CN103298041A (en) * | 2012-02-27 | 2013-09-11 | 联想(北京)有限公司 | Method, equipment and system for automatic switching of wireless router |
Cited By (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105916100A (en) * | 2016-04-01 | 2016-08-31 | 华为技术有限公司 | Heartbeat packet agency method, device and communication system |
US10425318B2 (en) | 2016-04-01 | 2019-09-24 | Huawei Technologies Co., Ltd. | Method for heartbeat packet processing by using proxy, apparatus, and communications system |
CN105916100B (en) * | 2016-04-01 | 2020-04-28 | 华为技术有限公司 | Method, device and communication system for acting heartbeat packet |
CN107483300A (en) * | 2017-07-24 | 2017-12-15 | 广东美的环境电器制造有限公司 | Inter-linked controlling method, system and the smart machine of multiple smart machines |
CN108600040A (en) * | 2018-03-16 | 2018-09-28 | 国电南瑞科技股份有限公司 | A kind of distributed system node failure detection method based on High Availabitity detection node |
CN108600040B (en) * | 2018-03-16 | 2022-03-15 | 国电南瑞科技股份有限公司 | Distributed system node fault detection method based on high-availability detection node |
CN108650115B (en) * | 2018-04-16 | 2021-08-24 | 宁波三星医疗电气股份有限公司 | Fault processing method for multi-channel cascade topological structure of centralized meter reading system |
CN108650115A (en) * | 2018-04-16 | 2018-10-12 | 宁波三星医疗电气股份有限公司 | Centralized meter-reading system multichannel cascade connection topological structure fault handling method |
CN111643893A (en) * | 2019-03-04 | 2020-09-11 | 网易(杭州)网络有限公司 | Multi-player game method and device |
CN111643893B (en) * | 2019-03-04 | 2024-02-23 | 网易(杭州)网络有限公司 | Multi-player game method and device |
CN112584463A (en) * | 2019-09-30 | 2021-03-30 | 华为技术有限公司 | Information synchronization method and system among multiple devices and electronic device |
CN112584463B (en) * | 2019-09-30 | 2022-04-22 | 华为技术有限公司 | Information synchronization method and system among multiple devices and electronic device |
CN112954819B (en) * | 2019-12-11 | 2023-09-22 | 华为技术有限公司 | Equipment networking method, electronic equipment and system |
CN112954819A (en) * | 2019-12-11 | 2021-06-11 | 华为技术有限公司 | Equipment networking method, electronic equipment and system |
WO2021115193A1 (en) * | 2019-12-11 | 2021-06-17 | 华为技术有限公司 | Device networking method, electronic device, and system |
CN113900386A (en) * | 2021-11-17 | 2022-01-07 | 北京联盛德微电子有限责任公司 | Self-adaptive linkage control method and system for Internet of things equipment |
CN113900386B (en) * | 2021-11-17 | 2022-02-25 | 北京联盛德微电子有限责任公司 | Self-adaptive linkage control method and system for Internet of things equipment |
CN114710534A (en) * | 2022-04-15 | 2022-07-05 | 杭州老板电器股份有限公司 | Control authority switching method and device and electronic equipment |
CN114979176A (en) * | 2022-05-11 | 2022-08-30 | 江苏领焰智能科技股份有限公司 | Network-based dimming data hot backup method, system, equipment and storage medium |
CN114979176B (en) * | 2022-05-11 | 2024-07-16 | 江苏领焰智能科技股份有限公司 | Network-based hot backup method, system, equipment and storage medium for dimming data |
CN116107817B (en) * | 2023-04-10 | 2023-06-13 | 湖南博匠信息科技有限公司 | Redundant working method and system for double computing modules of VPX server |
CN116107817A (en) * | 2023-04-10 | 2023-05-12 | 湖南博匠信息科技有限公司 | Redundant working method and system for double computing modules of VPX server |
Also Published As
Publication number | Publication date |
---|---|
CN104837168B (en) | 2019-02-26 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104837168A (en) | Method and system for switching devices, and devices | |
US8055762B2 (en) | Method and system for location identification | |
KR101795993B1 (en) | Motion detection via a bluetooth low energy scan | |
US20160072917A1 (en) | Distributed computing method and system | |
KR20170132292A (en) | Systems for network discovery and synchronization | |
KR20120102446A (en) | Mobile terminal, method for controlling wireless charge thereof, and wireless charging system thereof | |
CN103716906A (en) | Apparatus and method for controling power in a short-range communication device | |
US9866362B2 (en) | Method and system for searching network in long term evolution slave mode | |
CN103686938A (en) | Method, device and system for determining load state of access point (AP) | |
CN105580401B (en) | The discovery based on on-demand request response in peer-to-peer network | |
CN107484214B (en) | Internet of things access point frequency point selection method and device | |
US10461586B2 (en) | Methods and apparatus for cross connection detection and mitigation in wireless power transfer networks | |
CN103746934A (en) | CDN bandwidth balancing method, CDN control center and system | |
CN103023981A (en) | Cloud computation system | |
CN103200196A (en) | Accessing method, system and device between user equipment and accessing target | |
CN104349320A (en) | Sharing method and electronic equipment | |
CN106684987A (en) | Charging device searching method and apparatus and related devices | |
WO2017062166A1 (en) | Wireless communication using a channel schedule | |
CN106973404A (en) | The method and device that a kind of network is reconnected | |
KR20100057102A (en) | Method and apparatus for searching cell of mobile communication | |
KR20150134266A (en) | Device and method for transmitting file | |
KR101873296B1 (en) | Terminal Capable of Extending Storage Area and Extending Method thereof | |
CN104581902A (en) | Method and device for accessing wearable equipment to Internet | |
CN104185254A (en) | Researching method after offline of multi-mode terminal and multi-mode terminal | |
CN104125605A (en) | Implementing method and device for request of building WIFI connection |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
EXSB | Decision made by sipo to initiate substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |