CN108881436A - A kind of decision system of proxy terminal - Google Patents

A kind of decision system of proxy terminal Download PDF

Info

Publication number
CN108881436A
CN108881436A CN201810627107.7A CN201810627107A CN108881436A CN 108881436 A CN108881436 A CN 108881436A CN 201810627107 A CN201810627107 A CN 201810627107A CN 108881436 A CN108881436 A CN 108881436A
Authority
CN
China
Prior art keywords
terminal
intelligent
proxy
proxied
undetermined
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201810627107.7A
Other languages
Chinese (zh)
Inventor
吕海军
周旭峰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Sichuan Feixun Information Technology Co Ltd
Original Assignee
Sichuan Feixun Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Sichuan Feixun Information Technology Co Ltd filed Critical Sichuan Feixun Information Technology Co Ltd
Publication of CN108881436A publication Critical patent/CN108881436A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/12Protocols specially adapted for proprietary or special-purpose networking environments, e.g. medical networks, sensor networks, networks in vehicles or remote metering networks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/14Session management
    • H04L67/141Setup of application sessions
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/50Network services
    • H04L67/56Provisioning of proxy services
    • H04L67/562Brokering proxy services

Abstract

The invention discloses a kind of decision systems of proxy terminal, are related to smart machine and act on behalf of field.It is the intelligent terminal of initial communication state information and/or group-net communication status information including multiple communications status information, multiple intelligent terminals form at least one networking, select an intelligent terminal as decision terminal in each networking;Each intelligent terminal includes:Analysis of Networking module, Analysis of Policy Making module, wireless communication module, state change module;After communications status information is changed to the communications status information generated by the state change module, the wireless communication module establishes communication connection according to the communications status information after change;The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each proxy terminal proxied terminal corresponding with several forms a subnet.Proxy terminal can also be connect with server direct communication, increase the efficiency of the data transmission between server and intelligent terminal.

Description

A kind of decision system of proxy terminal
Technical field
The present invention relates to smart machines to act on behalf of field, espespecially a kind of decision system of proxy terminal.
Background technique
Internet of Things is the important component of generation information technology, and the important development stage in " informationization " epoch. As its name suggests, Internet of Things is exactly the connected internet of object object.This has two layers of meaning:First, the core of Internet of Things and basis are still It is internet, is the network of extension based on the internet and extension;Second, its user terminal extends and extends to any object Between product and article, information exchange and communication are carried out, that is, object object mutually ceases.Internet of Things by Intellisense, identification technology with General fit calculation etc. communicates cognition technology, is widely used in the fusion of network.
Currently, intelligent terminal can be directly communicatively coupled with server, but with the surge of smart machine quantity, Server needs are communicatively coupled with more and more intelligent terminals, and the requirement to server is continuously increased;Meanwhile in intelligence In the communication process of terminal and server, intelligent terminal itself has biggish data transmission capabilities, but required for intelligent terminal The data volume of transmission is smaller.
Therefore, it is connect by existing intelligent terminal with server direct communication, server receives multiple intelligent terminals and passes When defeated data, server needs to occupy a large amount of CPU, memory source and network bandwidth, and the concurrent pressure of server compared with Height, the data transmission efficiency between server and multiple intelligent terminals are lower.
Summary of the invention
The object of the present invention is to provide a kind of decision system of proxy terminal, in the present invention, proxy terminal and proxied end It can communicate directly connection between end, proxy terminal can also be connect with server direct communication, complete the number of proxied terminal According to transmission, the efficiency of the data transmission between server and intelligent terminal is increased.
Technical solution provided by the invention is as follows:
A kind of decision system of proxy terminal, including multiple communications status information are initial communication state information and/or group The intelligent terminal of Network Communication status information, multiple intelligent terminals form at least one networking, select one in each networking Intelligent terminal is as decision terminal;Each intelligent terminal includes:Analysis of Networking module, judges whether itself is decision end End;Analysis of Policy Making module, the performance benefit when the intelligent terminal is decision terminal, according to all intelligent terminals in networking With rate, the Agent Type of all intelligent terminals in networking is analyzed, and it is corresponding with its Agent Type to generate the intelligent terminal Communications status information;Wireless communication module is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is that decision is whole When end, and all intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligence When energy terminal is not decision terminal, the communications status information that the decision terminal is sent is received;State change module will communicate shape State information is changed to the communications status information generated;When the state change module is led to what communications status information was changed to generate After believing status information, the wireless communication module establishes communication connection according to the communications status information after change;The intelligence is eventually End is according to the communications status information after change as proxy terminal or proxied terminal;Each proxy terminal is corresponding with several Proxied terminal forms a subnet.
Further, the Analysis of Policy Making module includes:Classification submodule, the property according to all intelligent terminals in the networking Energy utilization rate classifies to all intelligent terminals, forms proxy terminal set and proxied terminal set;Select submodule Block, for choosing several intelligent terminals respectively as proxy terminal undetermined from the proxy terminal set, and from the quilt In the intelligent terminal that proxy terminal set is not chosen and/or in intelligent terminal that the proxy terminal set is not chosen, respectively Each proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as proxied terminal undetermined, until described There is no the intelligent terminals that do not choose in proxy terminal set, or when there is no the intelligence that do not choose in the proxied terminal set Energy terminal, and at most there is an intelligent terminal that do not choose in the proxy terminal set;Information determines submodule, for true The Agent Type of fixed each proxy terminal undetermined and its proxy terminal undetermined, and generate the intelligent terminal and its proxy class The corresponding communications status information of type.
Further, when there is the intelligent terminal that do not choose in the proxy terminal set or proxied terminal set, institute The Agent Type for the intelligent terminal that information determines that submodule determines that residue is not chosen is stated as not Agent Type, and generates residue The communications status information for the intelligent terminal that do not choose is group-net communication status information.
Further, whether the classification submodule is according to the performance utilization rate of all intelligent terminals less than the first utilization Rate is classified;The classification submodule generates proxy terminal set, and the proxy terminal set includes all properties utilization rate Less than the intelligent terminal of the first utilization rate;The classification submodule generates proxied terminal set, the proxied terminal set It is greater than or equal to the intelligent terminal of the first utilization rate comprising all properties utilization rate.
Further, parameter current i=1 is arranged in the selection submodule, and i is the integer more than or equal to 1;The selection Submodule chooses an intelligent terminal that do not choose as i-th of proxy terminal undetermined from the proxy terminal set;It is described Selection submodule is not chosen from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal set In intelligent terminal, until the intelligent terminal of the corresponding quantity of i-th of more options proxy terminal undetermined is as proxied terminal undetermined;When When the intelligent terminal that do not choose being not present in the proxy terminal set, or when there is no unselected in the proxied terminal set The intelligent terminal taken, and in the proxy terminal set at most exist one do not choose intelligent terminal when, selection course complete; When there is the intelligent terminal do not chosen in the proxy terminal set, and there is the intelligence that do not choose in the proxied terminal set When energy terminal, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, enable i=i+1.
Further, the classification submodule is from the proxy terminal set, from big to small according to free memory, chooses one A intelligent terminal that do not choose is as i-th of proxy terminal undetermined.
Further, the Analysis of Policy Making module further includes quantity judging submodule, for judging the proxy terminal set In with the presence or absence of the corresponding quantity of i-th of proxy terminal undetermined the intelligent terminal that do not choose;When the proxied terminal There are when the intelligent terminal that do not choose of the corresponding quantity of i-th of proxy terminal undetermined in set, the selection submodule The intelligent terminal of the corresponding quantity of i-th of proxy terminal undetermined is chosen from the proxied terminal set as i-th The proxied terminal undetermined of the proxy terminal undetermined;When there is no i-th of generations undetermined in the proxied terminal set When managing the intelligent terminal that do not choose of the corresponding quantity of terminal, the quantity judging submodule judge the proxy terminal set and In the proxied terminal set, it is corresponding whether all intelligent terminals that do not choose are greater than i-th of proxy terminal undetermined Quantity;In the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are less than or equal to When the corresponding quantity of i-th of proxy terminal undetermined, the selection submodule selects the proxy terminal set and proxied Undetermined proxied terminal of all intelligent terminals that do not choose as i-th of proxy terminal undetermined in terminal set;Work as institute It states in proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are greater than i-th of generation undetermined When managing the corresponding quantity of terminal, the selection submodule selects all intelligent terminals that do not choose in the proxied terminal set Several are selected not as the proxied terminal undetermined of i-th of proxy terminal undetermined, and from the proxy terminal set The intelligent terminal of selection makes i-th of agency undetermined as the proxied terminal undetermined of i-th of proxy terminal undetermined The proxied terminal undetermined of terminal meets its corresponding quantity.
Further, the selection submodule is from the proxied terminal set, from big to small according to performance utilization rate, choosing Take undetermined quilt of the intelligent terminal of the corresponding quantity of i-th of proxy terminal undetermined as i-th of proxy terminal undetermined Proxy terminal;Or;The selection submodule is from the proxy terminal set, from small to large according to spare space, selects several A intelligent terminal that do not choose, the proxied terminal undetermined as i-th of proxy terminal undetermined.
It further, further include transimiison analysis module;Whether the performance utilization rate of the transimiison analysis module analysis itself is big In the second utilization rate, and whether the memory usage for analyzing itself is greater than third utilization rate;When the performance benefit of the proxy terminal When being greater than the memory usage of the second utilization rate and/or the proxy terminal greater than third utilization rate with rate, the Analysis of Networking For module using itself as decision terminal again, all proxied terminals acted on behalf of re-form a new networking;It is described to determine It is whole to analyze all intelligence in new networking for performance utilization rate of the plan analysis module according to all intelligent terminals in new networking The Agent Type at end, and generate intelligent terminal communications status information corresponding with its Agent Type.
Compared with prior art, a kind of decision system of proxy terminal provided by the invention has the advantages that:
1, the data information of all intelligent terminals is converged on the same intelligent terminal, selects a decision terminal, used Going out which or which intelligent terminal in decision becomes proxy terminal, and all intelligent terminals can be obtained by the decision terminal Agent Type;It can communicate directly connection between proxy terminal and proxied terminal, proxy terminal also can be direct with server The data transmission of proxied terminal is completed in communication connection, increases the efficiency of the data transmission between server and intelligent terminal.
2, in forming proxy terminal set and proxied terminal set, the intelligence as proxy terminal undetermined is chosen first Terminal, and be the proxied terminal undetermined that terminal undetermined chooses the proxy terminal undetermined, and choose quantity and be fixed at correspondence Intelligent terminal in, while when to decision terminal sending performance utilization rate, the preset quantity of intelligent terminal can be also sent to Decision terminal;Until the intelligent terminal in networking can not re-form new subnet, decision process is completed.
3, the first utilization rate can be arranged in each intelligent terminal, and when decision terminal carries out in decision process, intelligence is eventually End can call first utilization rate, and for multiple intelligent terminals under different conditions, user can also be arranged different the One utilization rate realizes the determination of the proxy terminal of different modes to realize that the subnet of different modes creates mode.
4, in the proxied terminal of agency for choosing proxy terminal undetermined from proxy terminal set and proxied terminal set When, since the intelligent terminal in proxied terminal set can not be used as proxy terminal, first from proxied termination set It chooses in conjunction, chosen in proxied terminal set and then is chosen from proxy terminal set, at this point, being capable of forming maximum The subnet of quantity.
5, in proxy terminal in the data procedures for acting on behalf of proxied terminal, performance utilization rate can become larger, and be unfavorable for passing Transmission of data index is transmitted;Meanwhile in data transmission procedure, the spare space of proxy terminal can also become smaller, and also be unfavorable for The transmission of data target is transmitted, therefore proxy terminal needs to constantly detect the utilization rate and spare space of its performance.
Detailed description of the invention
Below by clearly understandable mode, preferred embodiment is described with reference to the drawings, to a kind of decision of proxy terminal Above-mentioned characteristic, technical characteristic, advantage and its implementation of system are further described.
Fig. 1 is a kind of structural schematic diagram of the decision system of proxy terminal of the present invention;
Fig. 2 is the structural schematic diagram of Analysis of Policy Making module in the decision system of another proxy terminal of the invention;
Fig. 3 is the structural schematic diagram of the decision system of another proxy terminal of the invention;
Drawing reference numeral explanation:10. Analysis of Networking module, 20. Analysis of Policy Making modules, 21. classification submodules, 22. selection Module, 23. information determine submodule, 24. quantity judging submodules, 30. wireless communication modules, 40. state change modules, 50. Transimiison analysis module.
Specific embodiment
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, Detailed description of the invention will be compareed below A specific embodiment of the invention.It should be evident that drawings in the following description are only some embodiments of the invention, for For those of ordinary skill in the art, without creative efforts, it can also be obtained according to these attached drawings other Attached drawing, and obtain other embodiments.
To make simplified form, part related to the present invention is only schematically shown in each figure, they are not represented Its practical structures as product.In addition, there is identical structure or function in some figures so that simplified form is easy to understand Component only symbolically depicts one of those, or has only marked one of those.Herein, "one" is not only indicated " only this ", can also indicate the situation of " more than one ".
A kind of embodiment provided according to the present invention, as shown in Figure 1, a kind of decision system of proxy terminal, including it is multiple Communications status information is the intelligent terminal of initial communication state information and/or group-net communication status information, and multiple intelligence are eventually End forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
Each intelligent terminal includes:
Analysis of Networking module 10, judges whether itself is decision terminal.
Analysis of Policy Making module 20, when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Performance utilization rate, analyze the Agent Type of all intelligent terminals in networking, and generate the intelligent terminal and acted on behalf of with it The corresponding communications status information of type.
Wireless communication module 30 is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, All intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligent terminal not When for decision terminal, the communications status information that the decision terminal is sent is received.
Communications status information is changed to the communications status information generated by state change module 40.
It is described wireless after communications status information is changed to the communications status information generated by the state change module 40 Communication module 30 establishes communication connection according to the communications status information after change.
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each agency Terminal proxied terminal corresponding with several forms a subnet.
Specifically, in the present embodiment, intelligent terminal refer mainly to the Intelligent bracelet that can be connect with server direct communication, Intelligence title, intelligent socket, intelligent video camera head or smartwatch, and each intelligent terminal individually can send its number to server According to packet, it is communicatively coupled with server.
Between multiple intelligent terminals and communication connection relationship is not present, therefore, multiple intelligent terminals are not aware that remaining intelligence The address information of energy terminal, i.e. IP address or MAC Address, or even the presence of remaining intelligent terminal is not known yet.
Therefore, before selecting proxy terminal, multiple intelligent terminals firstly the need of confirm remaining intelligent terminal presence, and The intelligent terminal that connection will be communicated with each other forms a networking, and each networking chooses a decision terminal to carry out generation The decision of terminal is managed, with the proxy terminal formed in itself networking.
The data information of all intelligent terminals is converged on the same intelligent terminal, a decision terminal is selected, is used for Decision becomes the intelligent terminal of proxy terminal.The performance utilization rate that decision terminal can be sent according to intelligent terminals all in networking As the factor of decision, corresponding decision is carried out, and analyzes and obtains the Agent Type of all intelligent terminals, and eventually by each intelligence In the data packet that the correspondence communications status information write-in at end is sent;Due to the address of the intelligent terminal of the transmission carried in data packet Information, therefore decision terminal can obtain the address information of all intelligent terminals in all networkings, therefore also can in data packet The address information of its corresponding required intelligent terminal acted on behalf of of the data packet is written, or acts on behalf of the proxy terminal of the intelligent terminal Address information, and the data packet is replied to original data packet.
Each intelligent terminal changes the communications status information of oneself when receiving its communications status information, and as generation Terminal or proxied terminal are managed, the address information of its proxy terminal or proxied terminal, therefore proxy terminal can be also got It can communicate directly and connect between proxied terminal, proxy terminal can also be connect with server direct communication, be completed by generation The data transmission for managing terminal increases the efficiency of the data transmission between server and intelligent terminal.
More specifically, one or more networkings can be obtained decision first for all intelligent terminals in areal, There is a decision terminal in each networking, each decision terminal can receive all kinds of letters of all intelligent terminals in networking Breath, decision terminal can utilize the various information of each intelligent terminal, decision obtain one or more proxy terminals with it is respective right The proxied terminal answered, each proxy terminal and corresponding proxied terminal can form a small subnet again, in subnet Proxied terminal can and proxy terminal communication connection, proxy terminal can communicate to connect with server.
Another embodiment provided according to the present invention, as depicted in figs. 1 and 2, a kind of decision system of proxy terminal, packet The intelligent terminal that multiple communications status information are initial communication state information and/or group-net communication status information is included, it is multiple described Intelligent terminal forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
Each intelligent terminal includes:
Analysis of Networking module 10, judges whether itself is decision terminal;
Analysis of Policy Making module 20, when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Performance utilization rate, analyze the Agent Type of all intelligent terminals in networking, and generate the intelligent terminal and acted on behalf of with it The corresponding communications status information of type;
Wireless communication module 30 is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, All intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligent terminal not When for decision terminal, the communications status information that the decision terminal is sent is received;
Communications status information is changed to the communications status information generated by state change module 40;
It is described wireless after communications status information is changed to the communications status information generated by the state change module 40 Communication module 30 establishes communication connection according to the communications status information after change;
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each agency Terminal proxied terminal corresponding with several forms a subnet.
The Analysis of Policy Making module 20 includes:
Classification submodule 21, the performance utilization rate according to all intelligent terminals in the networking is to all intelligent terminals Classify, forms proxy terminal set and proxied terminal set;
Submodule 22 is selected, for choosing several intelligent terminals respectively as generation undetermined from the proxy terminal set Terminal is managed, and from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal set is not chosen Intelligent terminal in, respectively each proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as undetermined Proxied terminal until there is no the intelligent terminals that do not choose in the proxy terminal set, or works as the proxied termination set There is no the intelligent terminals that do not choose in conjunction, and at most there is an intelligent terminal that do not choose in the proxy terminal set;
Information determines submodule 23, for determining the proxy class of each proxy terminal undetermined and its proxy terminal undetermined Type, and generate intelligent terminal communications status information corresponding with its Agent Type.
When there is the intelligent terminal that do not choose in the proxy terminal set or proxied terminal set, the information is true The Agent Type of the determining remaining intelligent terminal that do not choose of stator modules 23 is not Agent Type, and generates residue and do not choose The intelligent terminal communications status information be group-net communication status information.
Specifically, in the present embodiment, intelligent terminal can directly be sent out to decision terminal in addition to decision terminal in networking Send decision data packet, different intelligent terminal in networking, the performance utilization rate in decision data packet is also different, and performance is sharp The service condition that the intelligent terminal current performance has also been referred to rate, is primarily referred to as the service condition of CPU;Therefore, all intelligence Terminal passage capacity utilization rate is classified, the formation of the proxy terminal set of completion and proxied terminal set, and is acted on behalf of eventually Intelligent terminal in the set of end may can be used as proxied terminal as proxy terminal, also can individually connect with server It connects;And the intelligent terminal in proxied terminal set is merely able to as proxied terminal or individually connect with server.
It in the present embodiment, further include the address information of each smart machine in decision data packet, address information is mainly wrapped Include the IP address and/or MAC Address of intelligent terminal, decision terminal when forming proxy terminal set and proxied terminal set, Decision terminal can be corresponding with corresponding intelligent terminal respectively by its address information and preset quantity.
In forming proxy terminal set and proxied terminal set, by preset algorithm, chosen first as undetermined The intelligent terminal of proxy terminal, and be the proxied terminal undetermined that terminal undetermined chooses the proxy terminal undetermined, and choose quantity It is fixed in intelligent terminal, while when to decision terminal sending performance utilization rate, it also can be by the present count of intelligent terminal Amount is sent to decision terminal;Until there is no the intelligent terminals that do not choose in the proxy terminal set, or when described proxied There is no the intelligent terminals that do not choose in terminal set, and at most there is the intelligence that do not choose in the proxy terminal set Terminal, at this point, the intelligent terminal in networking can not re-form new subnet, decision process is completed.
After decision completion, decision terminal can generate the respective communications status information of intelligent terminal and Agent Type In the decision data packet respectively sent.
Preferably due to after the completion of decision, possible remaining multiple intelligent terminals that do not choose in proxied terminal set, Or a remaining intelligent terminal that do not choose in proxy terminal set, remaining intelligent terminal can not be made in the first situation For proxy terminal, and in second situation, be not present can as the intelligent terminal of proxied terminal, therefore, above-mentioned two The intelligent terminal of kind of situation individually connect with server, and continues to look for networking, to establish new communication connection, realization and its The agent relation of remaining intelligent terminal or proxied relationship.
More specifically, classify to obtain a proxy terminal set according to performance utilization rate in decision terminal, the intelligence in set Energy terminal may be used as proxy terminal;With a proxied terminal set, the intelligent terminal in set has performance reason, can not As proxy terminal.
After having chosen in proxy terminal set as the intelligent terminal of proxy terminal, then choose corresponding proxied end End, and no matter it is used as proxy terminal or proxied terminal, each intelligent terminal can only be selected once.
Selection process above carries out always, until choosing process when can not re-form subnet in two set and stopping. And after determining the various proxy terminal of completion or proxied terminal, decision terminal is that can determine the proxy class of all intelligent terminals Type, and in various communications status information write-in data, return to respective intelligent terminal.
Another embodiment provided according to the present invention, a kind of decision system of proxy terminal, including multiple communications status Information is the intelligent terminal of initial communication state information and/or group-net communication status information, multiple intelligent terminals formed to Lack a networking, selects an intelligent terminal as decision terminal in each networking.
Each intelligent terminal includes:
Analysis of Networking module 10, judges whether itself is decision terminal;
Analysis of Policy Making module 20, when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Performance utilization rate, analyze the Agent Type of all intelligent terminals in networking, and generate the intelligent terminal and acted on behalf of with it The corresponding communications status information of type;
Wireless communication module 30 is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, All intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligent terminal not When for decision terminal, the communications status information that the decision terminal is sent is received;
Communications status information is changed to the communications status information generated by state change module 40;
It is described wireless after communications status information is changed to the communications status information generated by the state change module 40 Communication module 30 establishes communication connection according to the communications status information after change;
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each agency Terminal proxied terminal corresponding with several forms a subnet.
The Analysis of Policy Making module 20 includes:
Classification submodule 21, the performance utilization rate according to all intelligent terminals in the networking is to all intelligent terminals Classify, forms proxy terminal set and proxied terminal set;
Submodule 22 is selected, for choosing several intelligent terminals respectively as generation undetermined from the proxy terminal set Terminal is managed, and from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal set is not chosen Intelligent terminal in, respectively each proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as undetermined Proxied terminal until there is no the intelligent terminals that do not choose in the proxy terminal set, or works as the proxied termination set There is no the intelligent terminals that do not choose in conjunction, and at most there is an intelligent terminal that do not choose in the proxy terminal set;
Information determines submodule 23, for determining the proxy class of each proxy terminal undetermined and its proxy terminal undetermined Type, and generate intelligent terminal communications status information corresponding with its Agent Type.
The classification submodule 21 according to the performance utilization rates of all intelligent terminals whether less than the first utilization rate into Row classification;
The classification submodule 21 generates proxy terminal set, and the proxy terminal set includes that all properties utilization rate is small In the intelligent terminal of the first utilization rate;
The classification submodule 21 generates proxied terminal set, and the proxied terminal set is utilized comprising all properties Rate is greater than or equal to the intelligent terminal of the first utilization rate.
Specifically, in the present embodiment, the big intelligent terminal of performance utilization rate shows that the current performance of intelligent terminal occupies Larger, when the intelligent terminal is as proxy terminal, the interactive speed between server is slower, is unfavorable between server Therefore the lower intelligent terminal of performance utilization rate is formed proxy terminal set, by the higher intelligence of performance utilization rate by data transmission Energy terminal forms proxied terminal set, is conducive to intelligent terminal as the information exchange between proxy terminal and server.
In the present embodiment, the first utilization rate can be arranged in each intelligent terminal, when decision terminal carries out decision mistake Cheng Zhong, intelligent terminal can call first utilization rate, and for multiple intelligent terminals under different conditions, user can also be set The first different utilization rates is set, to realize that the subnet of different modes creates mode, realizes the determination of the proxy terminal of different modes.
More specifically, in each intelligent terminal, directly with algorithm is judged, when intelligent terminal is as decision terminal When, whether successively judge the performance utilization rate of all intelligent terminals less than the first utilization rate, when the first utilization rate is chosen for 50%, Then intelligent terminal of all properties utilization rate less than 50% is sorted in inside proxy terminal set, may be used as proxy terminal, Remaining intelligent terminal is sorted in inside proxied terminal set, can not be used as proxy terminal.
The another embodiment provided according to the present invention, a kind of decision system of proxy terminal, including multiple communications status Information is the intelligent terminal of initial communication state information and/or group-net communication status information, multiple intelligent terminals formed to Lack a networking, selects an intelligent terminal as decision terminal in each networking.
Each intelligent terminal includes:
Analysis of Networking module 10, judges whether itself is decision terminal;
Analysis of Policy Making module 20, when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Performance utilization rate, analyze the Agent Type of all intelligent terminals in networking, and generate the intelligent terminal and acted on behalf of with it The corresponding communications status information of type;
Wireless communication module 30 is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, All intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligent terminal not When for decision terminal, the communications status information that the decision terminal is sent is received;
Communications status information is changed to the communications status information generated by state change module 40;
It is described wireless after communications status information is changed to the communications status information generated by the state change module 40 Communication module 30 establishes communication connection according to the communications status information after change;
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each agency Terminal proxied terminal corresponding with several forms a subnet.
The Analysis of Policy Making module 20 includes:
Classification submodule 21, the performance utilization rate according to all intelligent terminals in the networking is to all intelligent terminals Classify, forms proxy terminal set and proxied terminal set;
Submodule 22 is selected, for choosing several intelligent terminals respectively as generation undetermined from the proxy terminal set Terminal is managed, and from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal set is not chosen Intelligent terminal in, respectively each proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as undetermined Proxied terminal until there is no the intelligent terminals that do not choose in the proxy terminal set, or works as the proxied termination set There is no the intelligent terminals that do not choose in conjunction, and at most there is an intelligent terminal that do not choose in the proxy terminal set;
Information determines submodule 23, for determining the proxy class of each proxy terminal undetermined and its proxy terminal undetermined Type, and generate intelligent terminal communications status information corresponding with its Agent Type.
Parameter current i=1 is arranged in the selection submodule 22, and i is the integer more than or equal to 1;
It is described that submodule 22 is selected to choose an intelligent terminal that do not choose from the proxy terminal set as i-th Proxy terminal undetermined;
The selection submodule 22 is whole from the proxied unselected intelligent terminal taken of terminal set and/or the agency In the intelligent terminal do not chosen of end set, until the intelligent terminal of the corresponding quantity of i-th of more options proxy terminal undetermined be used as to Fixed proxied terminal;
When the intelligent terminal that do not choose is not present in the proxy terminal set, or when in the proxied terminal set There is no the intelligent terminals that do not choose, and in the proxy terminal set at most exist one do not choose intelligent terminal when, choosing Select process completion;
When there is the intelligent terminal do not chosen in the proxy terminal set, and exist not in the proxied terminal set When the intelligent terminal of selection, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, enable i=i+ 1。
Preferably, the classification submodule 21 is from the proxy terminal set, from big to small according to free memory, chooses One intelligent terminal that do not choose is as i-th of proxy terminal undetermined.
Specifically, in this embodiment, proxy terminal undetermined that how decision terminal determines and corresponding has been described in detail Proxied terminal undetermined.A parameter current is chosen first, and parameter current can be any number, preferably be chosen for 1, currently After the completion of parameter is chosen, an intelligent terminal is arbitrarily chosen from proxy terminal as first proxy terminal undetermined, and from generation Choose in reason terminal set and proxied terminal set multiple intelligent terminals that do not choose as the 1st proxy terminal undetermined to Fixed proxied terminal.
When there is the intelligent terminal do not chosen in the proxy terminal set, and exist not in the proxied terminal set When the intelligent terminal of selection, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, at this point, saying There are sufficient amount of intelligent terminals in bright current agent terminal set neutralization/or proxied terminal set, can be formed again Therefore subnet enables i=i+1=2, and it is undetermined as the 2nd to continue one intelligent terminal that do not choose of selection from agent list Proxy terminal continues the proxied terminal of the 2nd proxy terminal undetermined of above-mentioned selection.
When the intelligent terminal that do not choose is not present in the proxy terminal set, or when in the proxied terminal set There is no the intelligent terminals that do not choose, and in the proxy terminal set at most exist one do not choose intelligent terminal when, choosing Select process completion.
Preferably, in the present embodiment, since the performance utilization rate of intelligent terminal in proxy terminal is respectively less than the first utilization Rate, and the intelligent terminal big for spare space is more likely to as proxy terminal, the small intelligent terminal of spare space is as agency Terminal capabilities is also difficult to the proxied terminal of load;Therefore, by the size of free memory to all intelligence in proxy terminal set Energy terminal is ranked up again, and during selection, and the sequence from big to small according to free memory chooses intelligent terminal conduct Proxy terminal undetermined.
Another embodiment provided according to the present invention, a kind of decision system of proxy terminal, including multiple communications status Information is the intelligent terminal of initial communication state information and/or group-net communication status information, multiple intelligent terminals formed to Lack a networking, selects an intelligent terminal as decision terminal in each networking.
Each intelligent terminal includes:
Analysis of Networking module 10, judges whether itself is decision terminal;
Analysis of Policy Making module 20, when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Performance utilization rate, analyze the Agent Type of all intelligent terminals in networking, and generate the intelligent terminal and acted on behalf of with it The corresponding communications status information of type;
Wireless communication module 30 is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, All intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligent terminal not When for decision terminal, the communications status information that the decision terminal is sent is received;
Communications status information is changed to the communications status information generated by state change module 40;
It is described wireless after communications status information is changed to the communications status information generated by the state change module 40 Communication module 30 establishes communication connection according to the communications status information after change;
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each agency Terminal proxied terminal corresponding with several forms a subnet.
The Analysis of Policy Making module 20 includes:
Classification submodule 21, the performance utilization rate according to all intelligent terminals in the networking is to all intelligent terminals Classify, forms proxy terminal set and proxied terminal set;
Submodule 22 is selected, for choosing several intelligent terminals respectively as generation undetermined from the proxy terminal set Terminal is managed, and from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal set is not chosen Intelligent terminal in, respectively each proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as undetermined Proxied terminal until there is no the intelligent terminals that do not choose in the proxy terminal set, or works as the proxied termination set There is no the intelligent terminals that do not choose in conjunction, and at most there is an intelligent terminal that do not choose in the proxy terminal set;
Information determines submodule 23, for determining the proxy class of each proxy terminal undetermined and its proxy terminal undetermined Type, and generate intelligent terminal communications status information corresponding with its Agent Type.
Parameter current i=1 is arranged in the selection submodule 22, and i is the integer more than or equal to 1;
It is described that submodule 22 is selected to choose an intelligent terminal that do not choose from the proxy terminal set as i-th Proxy terminal undetermined;
The selection submodule 22 is whole from the proxied unselected intelligent terminal taken of terminal set and/or the agency In the intelligent terminal do not chosen of end set, until the intelligent terminal of the corresponding quantity of i-th of more options proxy terminal undetermined be used as to Fixed proxied terminal;
When the intelligent terminal that do not choose is not present in the proxy terminal set, or when in the proxied terminal set There is no the intelligent terminals that do not choose, and in the proxy terminal set at most exist one do not choose intelligent terminal when, choosing Select process completion;
When there is the intelligent terminal do not chosen in the proxy terminal set, and exist not in the proxied terminal set When the intelligent terminal of selection, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, enable i=i+ 1。
The Analysis of Policy Making module 20 further includes quantity judging submodule 24, is in the proxy terminal set for judging It is no that there are the intelligent terminals that do not choose of the corresponding quantity of i-th of proxy terminal undetermined;
When there are the intelligence that do not choose of the corresponding quantity of i-th of proxy terminal undetermined in the proxied terminal set When energy terminal, it is corresponding that the selection submodule 22 chooses i-th of proxy terminal undetermined from the proxied terminal set Quantity undetermined proxied terminal of the intelligent terminal as i-th of proxy terminal undetermined;
When not choosing for i-th of proxy terminal undetermined corresponding quantity is not present in the proxied terminal set When intelligent terminal, the quantity judging submodule 24 judges in the proxy terminal set and the proxied terminal set, institute Have whether the intelligent terminal that do not choose is greater than the corresponding quantity of i-th of proxy terminal undetermined;
In the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are less than or wait When i-th of proxy terminal undetermined corresponding quantity, the selection submodule 22 select the proxy terminal set and by Undetermined proxied terminal of all intelligent terminals that do not choose as i-th of proxy terminal undetermined in proxy terminal set;
In the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are greater than i-th When the corresponding quantity of a proxy terminal undetermined, the selection submodule 22 select in the proxied terminal set it is all not Undetermined proxied terminal of the intelligent terminal of selection as i-th of proxy terminal undetermined, and from the proxy terminal set Middle several intelligent terminals that do not choose of selection make i-th as the proxied terminal undetermined of i-th of proxy terminal undetermined The proxied terminal undetermined of a proxy terminal undetermined meets its corresponding quantity.
Preferably, the selection submodule 22 is from the proxied terminal set, from big to small according to performance utilization rate, The intelligent terminal of the corresponding quantity of i-th of proxy terminal undetermined is chosen as the undetermined of i-th proxy terminal undetermined Proxied terminal;
Or;
The selection submodule 22 from small to large according to spare space, selects several from the proxy terminal set The intelligent terminal that do not choose, the proxied terminal undetermined as i-th of proxy terminal undetermined.
Specifically, in the present embodiment, agency undetermined is being chosen from proxy terminal set and proxied terminal set eventually When the proxied terminal of the agency at end, since the intelligent terminal in proxied terminal set can not be used as proxy terminal, It chooses from proxied terminal set, chosen in proxied terminal set and then is chosen from proxy terminal set first, At this point, being capable of forming the subnet of maximum quantity.
Chosen from proxied terminal set proxy terminal undetermined for proxied terminal undetermined when, need to judge by generation The intelligent terminal that do not choose that whether there is the corresponding quantity of proxy terminal undetermined in terminal set is managed, when proxied terminal set It is middle there are when enough intelligent terminals that do not choose, proxy terminal undetermined only needs to choose corresponding intelligence from proxied terminal Terminal.
When the sufficient amount of intelligent terminal that do not choose is not present in proxied terminal set, then all proxied ends are chosen All intelligent terminals that do not choose in the set of end, then chosen from proxy terminal set, until selected is undetermined proxied The requirement that the quantity of terminal meets, and when acting on behalf of in termination set conjunction also there is no when enough intelligent terminals, then agency undetermined is whole Intelligent terminal all in proxy terminal set is chosen as proxied terminal undetermined in end.
Therefore, there is no when the intelligent terminal that do not choose in proxied terminal set, proxy terminal undetermined can be direct The proxied terminal undetermined from proxy terminal set.
Preferably, in the present embodiment, when choosing proxy terminal undetermined from proxied terminal set, due to proxied end Intelligent terminal in end can not be used as proxy terminal, therefore it may only be necessary to consider the performance utilization rate of all intelligent terminals, and one As in the case of, when in the range of the fixation of memory, the bigger intelligent terminal of performance utilization rate, free memory is also smaller, needs to pass Defeated data are also bigger, are more difficult to proxied.
And when choosing proxy terminal undetermined from proxy terminal set, still due to the intelligent terminal in proxy terminal set It may be used as proxy terminal undetermined, therefore, choose proxied terminal undetermined according to spare space size, it is empty after selection The biggish intelligent terminal of complementary space can be chosen for proxied terminal undetermined, realize and choose small number of proxy terminal undetermined.
More specifically, after such as all intelligent terminals being utilized classification according to performance, and performance utilization rate is greater than 50% Intelligent terminal form proxied terminal set, and the intelligent terminal less than or equal to 50% is formed into proxy terminal set.
Assuming that decision terminal can be according to the vacant interior of intelligent terminal there are when 5 intelligent terminals in proxy terminal set It deposits and is ranked up, and label is carried out from 1 to 5 from small to large to intelligent terminal, and the smaller intelligent terminal free memory of label is got over Greatly.
Assuming that proxied terminal set memory, in 10 intelligent terminals, decision terminal can be according to the performance of intelligent terminal Utilization rate is ranked up, and carries out label, and the intelligent terminal performance benefit that label is smaller from 1 to 10 from small to large to intelligent terminal It is bigger with rate.
It is 1 that parameter current, which is arranged, in decision terminal, and chooses the intelligent terminal marked as 1 in proxy terminal set as the One proxy terminal undetermined, and the quantity for the proxied terminal undetermined that the proxy terminal undetermined needs is got, which can Facility information is followed to send in decision data packet together.And after intelligent terminal gets the quantity, proxied The proxied terminal undetermined of the quantity is got in terminal.
Simultaneously during selection, elected to take second intelligent terminal in agent list be the 2nd proxy terminal undetermined, and The intelligent terminal quantity that do not choose in proxied terminal set only exists 4, as the corresponding agency undetermined of the proxy terminal undetermined When terminal quantity is 4 or 4 or less, the 2nd proxy terminal undetermined can be chosen all undetermined from proxied terminal set Proxied terminal;When the quantity is 5 or 6, after the completion of proxied terminal set is chosen, the 2nd proxy terminal undetermined Intelligent terminal can be chosen from big to small by label as proxied terminal undetermined from proxy terminal set;When the quantity is 7 A and at 7 or more, the 2nd proxied terminal undetermined can be chosen all from proxy terminal set and proxied terminal set Unselected intelligent terminal is as proxied terminal undetermined.
Therefore, proxy terminal undetermined is formed during subnet, it is not necessary to choose the intelligent terminal for arriving corresponding quantity, intelligence is eventually End can get most proxied terminals undetermined according to actual conditions.
It is at least deposited when acting on behalf of to exist in intelligent terminal or proxy terminal set in termination set conjunction and proxied terminal set In two intelligent terminals, under current state, at least exist one can as the intelligent terminal of proxy terminal undetermined, there is also At least one can be as the intelligent terminal of proxied terminal undetermined, therefore selection course still is able to carry out.
And when acting on behalf of termination set conjunction, there is only an intelligent terminals, and intelligent terminal is not present in proxied terminal set When, the intelligent terminal that proxy terminal set is only deposited does not have corresponding proxied terminal undetermined, it is therefore desirable to individually connect with server It connects, and networking again;Or there are intelligent terminals in proxied terminal set, but intelligent terminal is not present in proxy terminal set When, all intelligent terminals that do not choose can not be used as proxy terminal undetermined, therefore remaining intelligent terminal individually with service Device connection, and networking again.
Another embodiment provided according to the present invention, as shown in figure 3, a kind of decision system of proxy terminal, including it is more A communications status information is the intelligent terminal of initial communication state information and/or group-net communication status information, multiple intelligence Terminal forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
Each intelligent terminal includes:
Analysis of Networking module 10, judges whether itself is decision terminal;
Analysis of Policy Making module 20, when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Performance utilization rate, analyze the Agent Type of all intelligent terminals in networking, and generate the intelligent terminal and acted on behalf of with it The corresponding communications status information of type;
Wireless communication module 30 is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, All intelligent terminals into networking in addition to itself send its corresponding communications status information;Or work as the intelligent terminal not When for decision terminal, the communications status information that the decision terminal is sent is received;
Communications status information is changed to the communications status information generated by state change module 40;
It is described wireless after communications status information is changed to the communications status information generated by the state change module 40 Communication module 30 establishes communication connection according to the communications status information after change;
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each agency Terminal proxied terminal corresponding with several forms a subnet.
It further include transimiison analysis module 50;
Whether the performance utilization rate that the transimiison analysis module 50 analyzes itself is greater than the second utilization rate, and analyzes itself Whether memory usage is greater than third utilization rate;
When the memory that the performance utilization rate of the proxy terminal is greater than the second utilization rate and/or the proxy terminal utilizes When rate is greater than third utilization rate, for the Analysis of Networking module 10 using itself as decision terminal again, that is acted on behalf of is all by generation Reason terminal re-forms a new networking;
Performance utilization rate of the Analysis of Policy Making module 20 according to all intelligent terminals in new networking, analyzes new networking The Agent Type of interior all intelligent terminals, and generate intelligent terminal communications status letter corresponding with its Agent Type Breath.
Specifically, in the present embodiment, in proxy terminal in the data procedures for acting on behalf of proxied terminal, performance utilization rate It can become larger, and be unfavorable for transmission data target and transmitted;Meanwhile in data transmission procedure, the spare space of proxy terminal Also can become smaller, be also unfavorable for transmit data target transmission, therefore proxy terminal need to constantly detect its performance utilization rate and Spare space.
In the present embodiment, for proxy terminal when transmitting the data of multiple proxied terminals, proxy terminal is using poll Mode obtains transmission data from each proxied device, and is transmitted to server at once, upon completion of the transmission, then obtains next Therefore the data that a proxied terminal needs to transmit in data transmission procedure, have multiple proxied terminals to need to pass when simultaneously When transmission of data, proxy terminal successively acts on behalf of each proxied terminal according to the sequencing for receiving request.
In the present embodiment, the second utilization rate is also disposed in proxy terminal, and user can also set according to different situations Set the second different utilization rates.In the present embodiment, the second utilization rate is selected as 70%-90%, preferably 85%.
And when generating third utilization rate, proxy terminal can be calculated according to the free memory sent to decision terminal MPTS (single transmission data volume), MPTS are preferably the 10% of the free memory sent to decision terminal, and proxy terminal is in data The MPTS whether current free memory is less than fixed multiple, the 3-7 that fixed multiple is chosen can be calculated in transmission process, preferably It is 5, therefore, third utilization rate=1- (the fixed total memory size of multiple * MPTS/).
More specifically, it when total memory size of proxy terminal itself is 100, and in decision, is sent to decision terminal Free memory be 40 when, MPTS=40/10=4, thus third utilization rate=1- (4*5/100)=80%, i.e. memory utilize When rate is greater than 80%, the proxied terminal that proxy terminal starts to be acted on behalf of it forms new networking.
Another embodiment provided according to the present invention, a kind of decision system of proxy terminal, the connection shape of intelligent terminal State is as shown in table 1, and using proxied flag bit, Agent Markup position connects flag bit to characterize the communication shape of each intelligent terminal State information.
The communications status for the intelligent terminal newly networked is 1. i.e. initial communication state information, at this point, intelligent terminal can Enough broadcast, can also receive broadcast;The communications status information that the intelligent terminal of connection is individually established with server is 2. i.e. networking Communications status information, can broadcast can also receive broadcast, but by default and without broadcast;As the generation in subnet The communications status information for managing terminal is 3., to connect with server communication, is also communicated to connect with corresponding proxied terminal, i.e., wideless It broadcasts, does not also receive broadcast;The communications status information of proxied terminal in subnet is 4., individually to communicate with corresponding proxy terminal Connection, i.e., do not broadcast, also do not receive broadcast.
The connection status of 1 equipment of table
The first step:Networking packet is sought in the intelligent terminal broadcast for seeking networking in same network segment, and finding other can form The intelligent terminal of decision-making mode.
Broadcast rule is as follows:
1, seek the intelligent terminal A of networking and receive other intelligent terminals B and send when can receive to broadcast and broadcasting Seek networking packet after, A first records the facility information of B, and (standard of comparison is set the IP size both then compared by user It sets).
If IPA<IPB, then reply the information gone off the air and empty record to B, B, B records the facility information of A.
If IPA>IPB, then A goes off the air, and reverting equipment information records the facility information of A to B, B.
2, when can receive broadcast but itself not receive other intelligent terminals B in the intelligent terminal A of broadcast networking and send Seek networking package informatin.First look at whether itself has the facility information recorded.
If there is record, then any information is not replied.
If no record, compare the IP size (standard of comparison can customize) of the two.
If IPA<IPB, then A records the facility information of B, starts broadcast networking data packet, and reply the letter gone off the air It ceases and empties record to B, B, only record the facility information of A.
If IPA>IPB, then A records the facility information of B, and A reverting equipment information records the facility information of A to B, B.
3, each broadcast seeks intelligent terminal waiting time of networking and may be configured as 4 minutes (waiting time can customize, extensively The time-out time still exists after broadcasting stopping), intelligent terminal and server establish long connection after time-out, 1. connection status is from becoming 2. indicating that the equipment and server establish connection.
4, each broadcasting that seek the broadcast time of the intelligent terminal A of mesh information be to empty and set after 2 minutes, 2 minutes It the standby waiting time, goes off the air, stops finding networking.Check the other equipment information state of self record.
If there are other equipment information in record, sends request networking packet and give these intelligent terminals, request networking.A Equipment network after receiving all answers, with answer " receiving networking ".First the end of the step networking enters second step.Note that A at this time For the minimum IP device in the networking.
If establishing long connection with server without other equipment information in record, 1. connection status is from becoming 2. to indicate The equipment and server establish long connection.
5, when can receive broadcast but itself not the intelligent terminal A of broadcast networking receive request networking packet after, empty The equipment waiting time, and reply " receiving networking ".Hereafter refuse the request networking packet of other intelligent terminals.
Second step:Self-decision goes out one or more proxy for equipment in the successful intelligent terminal of first step networking.
Self-decision process is as follows:
Give IP address the smallest intelligent terminal 1. all communications status information send decision data packet for intelligent terminal 1., Packet content include oneself MAC Address, IP address, implementor name, cpu busy percentage, free memory, the proxied IP of equipment, to The proxied flag bit of quantity, equipment of fixed proxied terminal, proxy for equipment flag bit, equipment individually connects flag bit, equipment is determined Plan enabler flags position.
The smallest intelligent terminal in the address 2.IP arranges the cpu busy percentage and free memory of the decision data packet received Sequence, it is assumed that n equipment participative decision making is shared at this time, wherein the equipment met is known as proxy terminal undetermined, it is assumed that agency undetermined is eventually Holding number is t, and proxy terminal undetermined is sequentially placed into sequencing table G by free memory from high to low.Remaining (n-t) a equipment These proxied terminals undetermined are upset at random and are put into sequencing table G by proxied terminal referred to as undetermined.The most great achievement of each subnet Member's number is fixed as s.
A. then the proxy terminal undetermined in sequencing table G selects (s-1) a highest sequence in table successively since minimum serial number Number equipment, form subnet.Until any one following condition meets, group subnet process terminates.The all of subnet are not formed to set It is standby directly to be connect with server.
I. all devices in table G form subnet.
Ii. all optional equipment agencies have formed subnet in table G.
Iii. only a surplus optional equipment is acted on behalf of in table G, can not be combined again with other equipment.
B. formed subnet optional equipment agency connection status become 3. to have formed subnet optional equipment it is proxied Connection status become 4..The equipment of subnet does not all establish connection individually with server in groups, then the connection shape of these equipment 2. state becomes.
3. proxy terminal undetermined and server establish connection, is obtained and passed from each proxied device by the way of poll Transmission of data (single transmission data volume<MPTS it is immediately posted to server after), establishes the interaction of information.
Third step:
Any moment of proxy terminal networked data transmission process, proxy terminal itself have according to CPU utilization rate, interior Utilization rate is deposited to estimate the ability for whether needing to be forced out subnet.Work as utilcpu> 85% or 5MPTS > Spaceram(1- utilram) when (wherein utilramFor the utilization rate of memory, SpacreamFor total memory headroom size, i.e., free memory is less than 5 times MPTS when), other equipment of the proxy for equipment into subnet send the decision data packet request of orientation, and agent equipment uses second Step decision goes out the Agent Type of intelligent terminal, and the result of decision is sent to other intelligent terminals in subnet.Then agency sets Standby connection status individually establishes long connection by 3. becoming 2. with server.The MPTS of proxy terminal is quantified as the proxy for equipment and works as When be transmitted through come free memory index 10%.
It should be noted that above-described embodiment can be freely combined as needed.The above is only of the invention preferred Embodiment, it is noted that for those skilled in the art, in the premise for not departing from the principle of the invention Under, several improvements and modifications can also be made, these modifications and embellishments should also be considered as the scope of protection of the present invention.

Claims (9)

1. a kind of decision system of proxy terminal, which is characterized in that including multiple communications status information be initial communication state letter The intelligent terminal of breath and/or group-net communication status information, multiple intelligent terminals form at least one networking, in each networking Select an intelligent terminal as decision terminal;
Each intelligent terminal includes:
Analysis of Networking module, judges whether itself is decision terminal;
Analysis of Policy Making module, the performance when the intelligent terminal is decision terminal, according to all intelligent terminals in networking Utilization rate, analyzes the Agent Type of all intelligent terminals in networking, and generates the intelligent terminal and its Agent Type pair The communications status information answered;
Wireless communication module is carried out wireless communication with remaining intelligent terminal;When the intelligent terminal is decision terminal, to networking Interior all intelligent terminals in addition to itself send its corresponding communications status information;Or when the intelligent terminal is not decision When terminal, the communications status information that the decision terminal is sent is received;
Communications status information is changed to the communications status information generated by state change module;
After communications status information is changed to the communications status information generated by the state change module, the radio communication mold Block establishes communication connection according to the communications status information after change;
The intelligent terminal is according to the communications status information after change as proxy terminal or proxied terminal;Each proxy terminal Proxied terminal corresponding with several forms a subnet.
2. a kind of decision system of proxy terminal according to claim 1, which is characterized in that the Analysis of Policy Making module packet It includes:
Classification submodule, the performance utilization rate according to all intelligent terminals in the networking divide all intelligent terminals Class forms proxy terminal set and proxied terminal set;
Submodule is selected, it is whole respectively as agency undetermined for choosing several intelligent terminals from the proxy terminal set End, and from the proxied unselected intelligent terminal taken of terminal set and/or intelligence that the proxy terminal set is not chosen In terminal, respectively each proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as undetermined proxied Terminal until there is no the intelligent terminals that do not choose in the proxy terminal set, or is worked as in the proxied terminal set not In the presence of the intelligent terminal that do not choose, and at most there is an intelligent terminal that do not choose in the proxy terminal set;
Information determines submodule, for determining the Agent Type of each proxy terminal undetermined and its proxy terminal undetermined, and Generate intelligent terminal communications status information corresponding with its Agent Type.
3. a kind of decision system of proxy terminal according to claim 2, it is characterised in that:
When there is the intelligent terminal that do not choose in the proxy terminal set or proxied terminal set, the information determines son Module determines that the Agent Type of the remaining intelligent terminal that do not choose is not Agent Type, and generate it is remaining do not choose it is described The communications status information of intelligent terminal is group-net communication status information.
4. a kind of decision system of proxy terminal according to claim 2, it is characterised in that:
Whether the classification submodule classifies less than the first utilization rate according to the performance utilization rates of all intelligent terminals;
The classification submodule generates proxy terminal set, and the proxy terminal set includes all properties utilization rate less than first The intelligent terminal of utilization rate;
The classification submodule generates proxied terminal set, and the proxied terminal set includes that all properties utilization rate is greater than Or the intelligent terminal equal to the first utilization rate.
5. a kind of decision system of proxy terminal according to claim 2, it is characterised in that:
Parameter current i=1 is arranged in the selection submodule, and i is the integer more than or equal to 1;
It is described that submodule is selected to choose an intelligent terminal that do not choose from the proxy terminal set as i-th of generation undetermined Manage terminal;
The selection submodule is from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal set In the intelligent terminal that do not choose, until the intelligent terminal of the corresponding quantity of i-th of more options proxy terminal undetermined is as undetermined by generation Manage terminal;
It is not deposited when the intelligent terminal that do not choose is not present in the proxy terminal set, or when in the proxied terminal set When at most there is an intelligent terminal that do not choose in the intelligent terminal that do not choose, and in the proxy terminal set, selected Journey is completed;
When there is the intelligent terminal do not chosen in the proxy terminal set, and exists in the proxied terminal set and do not choose Intelligent terminal when, or when in the proxy terminal set at least exist two do not choose intelligent terminal when, enable i=i+1.
6. a kind of decision system of proxy terminal according to claim 5, it is characterised in that:
The classification submodule is from the proxy terminal set, from big to small according to free memory, what selection one was not chosen Intelligent terminal is as i-th of proxy terminal undetermined.
7. a kind of decision system of proxy terminal according to claim 5, it is characterised in that:
The Analysis of Policy Making module further includes quantity judging submodule, for judging in the proxy terminal set with the presence or absence of the The intelligent terminal that do not choose of the corresponding quantity of the described proxy terminal undetermined of i;
When there are the intelligence that do not choose of the corresponding quantity of i-th of proxy terminal undetermined in the proxied terminal set eventually When end, the selection submodule chooses the corresponding quantity of i-th of proxy terminal undetermined from the proxied terminal set Undetermined proxied terminal of the intelligent terminal as i-th of proxy terminal undetermined;
When the intelligence that do not choose that the corresponding quantity of i-th of proxy terminal undetermined is not present in the proxied terminal set When terminal, the quantity judging submodule judges in the proxy terminal set and the proxied terminal set, all unselected Whether the intelligent terminal taken is greater than the corresponding quantity of i-th of proxy terminal undetermined;
In the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are less than or equal to the When the corresponding quantity of the described proxy terminal undetermined of i, the selection submodule selection proxy terminal set and proxied end Undetermined proxied terminal of all intelligent terminals that do not choose as i-th of proxy terminal undetermined in the set of end;
In the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are greater than i-th of institute When stating the corresponding quantity of proxy terminal undetermined, the selection submodule selects all in the proxied terminal set not choose Undetermined proxied terminal of the intelligent terminal as i-th of proxy terminal undetermined, and selected from the proxy terminal set Several intelligent terminals that do not choose make described in i-th as the proxied terminal undetermined of i-th of proxy terminal undetermined The proxied terminal undetermined of proxy terminal undetermined meets its corresponding quantity.
8. a kind of decision system of proxy terminal according to claim 7, it is characterised in that:
The selection submodule is from the proxied terminal set, from big to small according to performance utilization rate, chooses described in i-th Undetermined proxied terminal of the intelligent terminal of the corresponding quantity of proxy terminal undetermined as i-th of proxy terminal undetermined;
Or;
The selection submodule from small to large according to spare space, selects several not choose from the proxy terminal set Intelligent terminal, the proxied terminal undetermined as i-th of proxy terminal undetermined.
9. a kind of decision system of proxy terminal according to claim 1, which is characterized in that further include transimiison analysis mould Block;
Whether the performance utilization rate of the transimiison analysis module analysis itself is greater than the second utilization rate, and analyzes the memory benefit of itself Whether it is greater than third utilization rate with rate;
When the memory usage that the performance utilization rate of the proxy terminal is greater than the second utilization rate and/or the proxy terminal is big When third utilization rate, the Analysis of Networking module is using itself as decision terminal again, all proxied terminals for being acted on behalf of Re-form a new networking;
Performance utilization rate of the Analysis of Policy Making module according to all intelligent terminals in new networking is analyzed in new networking and is owned The Agent Type of the intelligent terminal, and generate intelligent terminal communications status information corresponding with its Agent Type.
CN201810627107.7A 2018-05-22 2018-06-19 A kind of decision system of proxy terminal Pending CN108881436A (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2018104944335 2018-05-22
CN201810494433 2018-05-22

Publications (1)

Publication Number Publication Date
CN108881436A true CN108881436A (en) 2018-11-23

Family

ID=63403540

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201810627107.7A Pending CN108881436A (en) 2018-05-22 2018-06-19 A kind of decision system of proxy terminal
CN201810627109.6A Pending CN108512945A (en) 2018-05-22 2018-06-19 A kind of decision-making technique of proxy terminal

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN201810627109.6A Pending CN108512945A (en) 2018-05-22 2018-06-19 A kind of decision-making technique of proxy terminal

Country Status (1)

Country Link
CN (2) CN108881436A (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933840B (en) * 2018-09-28 2021-01-05 珠海沙盒网络科技有限公司 Distributed agent method and system
CN110022375A (en) * 2019-04-19 2019-07-16 宜人恒业科技发展(北京)有限公司 The distribution method and device of agent node

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729331A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Clustering method and device, routing method and device of cluster head and base station
CN103905977A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Mobile-terminal networking method and mobile terminal
CN104994159A (en) * 2015-06-30 2015-10-21 青岛海尔智能家电科技有限公司 Distributed agent method and device based on AllJoyn, and mobile equipment
CN105263175A (en) * 2015-10-29 2016-01-20 华为技术有限公司 Networking method for intelligent equipment, intelligent equipment and mobile terminal
US20170055195A1 (en) * 2015-08-21 2017-02-23 Samsung Electronics Co., Ltd Method and apparatus for offload operation of the idle mode in a cellular device
CN106972997A (en) * 2017-05-15 2017-07-21 上海博历机械科技有限公司 A kind of intelligent home control system
JP2017208697A (en) * 2016-05-18 2017-11-24 国立研究開発法人情報通信研究機構 Power saving communication system
CN107409274A (en) * 2015-03-06 2017-11-28 苹果公司 Determine when to establish the connection between mobile client and agent equipment

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7305429B2 (en) * 2002-06-10 2007-12-04 Utstarcom, Inc. Method and apparatus for global server load balancing
US20060171365A1 (en) * 2005-02-02 2006-08-03 Utstarcom, Inc. Method and apparatus for L2TP dialout and tunnel switching
CN102118206A (en) * 2011-02-23 2011-07-06 尚雪峰 Broadcast principle-based lighting equipment wireless network deployment method and system
CN103095691B (en) * 2012-12-31 2015-10-28 清华大学 Node access of internet of things control method
CN104184819B (en) * 2014-08-29 2017-12-05 城云科技(中国)有限公司 Multi-layer load balancing cloud resource monitoring method
CN107040877B (en) * 2017-03-31 2020-12-08 华为技术有限公司 Signal processing method and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101729331A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Clustering method and device, routing method and device of cluster head and base station
CN103905977A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Mobile-terminal networking method and mobile terminal
CN107409274A (en) * 2015-03-06 2017-11-28 苹果公司 Determine when to establish the connection between mobile client and agent equipment
CN104994159A (en) * 2015-06-30 2015-10-21 青岛海尔智能家电科技有限公司 Distributed agent method and device based on AllJoyn, and mobile equipment
US20170055195A1 (en) * 2015-08-21 2017-02-23 Samsung Electronics Co., Ltd Method and apparatus for offload operation of the idle mode in a cellular device
CN105263175A (en) * 2015-10-29 2016-01-20 华为技术有限公司 Networking method for intelligent equipment, intelligent equipment and mobile terminal
JP2017208697A (en) * 2016-05-18 2017-11-24 国立研究開発法人情報通信研究機構 Power saving communication system
CN106972997A (en) * 2017-05-15 2017-07-21 上海博历机械科技有限公司 A kind of intelligent home control system

Also Published As

Publication number Publication date
CN108512945A (en) 2018-09-07

Similar Documents

Publication Publication Date Title
CN101159898B (en) Systems and methods for determining granularity level of information about buffer status
CN109618373A (en) Link choosing method and relevant apparatus
Guo et al. Resource allocation for high-reliability low-latency vehicular communications with packet retransmission
CN102647355B (en) LACP (Link Aggregation Control Protocol) consultation processing method, relay node and system
CN100581290C (en) Voice packet scheduling method for wireless local area network
CN108768866A (en) Across the card retransmission method of multicast message, device, the network equipment and readable storage medium storing program for executing
CN108260210A (en) A kind of data transmission method and user equipment, radio reception device
CN104936156B (en) Note transmission method and device
CN108901058A (en) Internet of things node access channel optimization selection method
CN103384181A (en) Data packet transmission method and device
CN108881436A (en) A kind of decision system of proxy terminal
CN104113491A (en) Data transmission method and device
CN101562500B (en) Data transmission request method, data transmission method and data transmission device
CN109391667A (en) A kind of resource control method and terminal of car networking
CN108900587A (en) A kind of intelligent terminal acts on behalf of decision system
CN109617702A (en) Method, block chain node and the device with store function of information signature
CN102711192A (en) Method and device for processing network service quality and communication system
CN106027599A (en) Data transmission channel establishing method and system, and server
CN116390156B (en) LoRa communication method, device, equipment and readable storage medium
CN101695049A (en) Method and device for processing businesses in monitoring system
CN103118083A (en) Method and device of transmitting service messages
JP3961351B2 (en) Data transfer method, communication system, communication management apparatus, communication management program, and recording medium
CN113645594B (en) Channel resource management method, system, base station and computer readable storage medium
CN103379031B (en) Equipment connection method, system and apparatus
CN109981795A (en) Resource request dispatching method and device

Legal Events

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

Application publication date: 20181123

WD01 Invention patent application deemed withdrawn after publication