CN108512945A - A kind of decision-making technique of proxy terminal - Google Patents

A kind of decision-making technique of proxy terminal Download PDF

Info

Publication number
CN108512945A
CN108512945A CN201810627109.6A CN201810627109A CN108512945A CN 108512945 A CN108512945 A CN 108512945A CN 201810627109 A CN201810627109 A CN 201810627109A CN 108512945 A CN108512945 A CN 108512945A
Authority
CN
China
Prior art keywords
terminal
proxy
intelligent
proxied
decision
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
CN201810627109.6A
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 CN108512945A publication Critical patent/CN108512945A/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-making techniques of proxy terminal, are related to smart machine and act on behalf of field.Including:Communications status information is multiple intelligent terminals of initial communication state information and/or group-net communication status information, forms at least one networking, selects an intelligent terminal as decision terminal in each networking;Performance utilization rate of the decision terminal according to all intelligent terminals in networking, analyzes the Agent Type of all intelligent terminals in networking, and generates intelligent terminal communications status information corresponding with its Agent Type;All intelligent terminals of the decision terminal into networking in addition to decision terminal send its corresponding communications status information;The communications status information of intelligent terminal is changed to the communications status information generated, and establishes communication connection according to the communications status information after change.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-making technique of proxy terminal
Technical field
The present invention relates to smart machines to act on behalf of field, espespecially a kind of decision-making technique of proxy terminal.
Background technology
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 the extension and extension on Internet basic;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 larger data transmission capabilities, but required for intelligent terminal The data volume of transmission is smaller.
Therefore, it is connect with server direct communication by existing intelligent terminal, 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 relatively low.
Invention content
The object of the present invention is to provide a kind of decision-making techniques of proxy terminal, in of the 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-making technique of proxy terminal, including:S10, communications status information are initial communication state information and/or group Multiple intelligent terminals of Network Communication status information, form at least one networking, select an intelligent terminal to make in each networking For decision terminal;The performance utilization rate of S20, the decision terminal according to all intelligent terminals in networking, is analyzed in networking The Agent Type of all intelligent terminals, and generate intelligent terminal communications status information corresponding with its Agent Type; All intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its corresponding communications status letter Breath;S40, the intelligent terminal communications status information be changed to the communications status information generated, and according to the communication after change Status information establishes communication connection;The intelligent terminal is according to the communications status information after change as proxy terminal or proxied Terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
Further, step S20 includes:The performance of S21, the decision terminal according to all intelligent terminals in the networking Utilization rate classifies to all intelligent terminals, forms proxy terminal set and proxied terminal set;S22, it is described certainly Plan terminal chooses several intelligent terminals respectively as proxy terminal undetermined, and from described by generation from the proxy terminal set It manages in the unselected intelligent terminal taken of terminal set and/or in the intelligent terminal that the proxy terminal set is not chosen, respectively often A proxy terminal undetermined at most chooses the intelligent terminal of its corresponding quantity as proxied terminal undetermined, until the generation There is no the intelligent terminals that do not choose in reason terminal set, or when there is no the intelligence that do not choose in the proxied terminal set Terminal, and at most there is an intelligent terminal that do not choose in the proxy terminal set;S23, the decision terminal determine every The Agent Type of a proxy terminal undetermined and its proxy terminal undetermined, and generate the intelligent terminal and its Agent Type pair The communications status information answered.
Further, further include after step S22:S24, exist when in the proxy terminal set or proxied terminal set When the intelligent terminal that do not choose, the decision terminal determines that the Agent Type of the remaining intelligent terminal that do not choose is not act on behalf of Type, and the communications status information for generating the remaining intelligent terminal that do not choose is group-net communication status information.
Further, step S21 includes:S211, the decision terminal are according to the performance utilization rates of all intelligent terminals Whether classify less than the first utilization rate;S212, the decision terminal generate proxy terminal set, the proxy terminal set Including all properties utilization rate is less than the intelligent terminal of the first utilization rate;S213, the decision terminal generate proxied termination set It closes, the proxied terminal set includes the intelligent terminal that all properties utilization rate is greater than or equal to the first utilization rate.
Further, step S22 includes:Parameter current i=1 is arranged in S221, the decision terminal, and i is more than or equal to 1 Integer;S222, the decision terminal choose an intelligent terminal that do not choose as i-th from the proxy terminal set Proxy terminal undetermined;S223, the decision terminal are from the unselected intelligent terminal taken of the proxied terminal set and/or described In the intelligent terminal that proxy terminal set is not chosen, until the intelligent terminal of the corresponding quantity of i-th of more options proxy terminal undetermined As proxied terminal undetermined;S224, when in the proxy terminal set there is no when the intelligent terminal that do not choose, or when described There is no the intelligent terminals that do not choose in proxied terminal set, and are not chosen in the presence of one at most in the proxy terminal set Intelligent terminal when, selection course is completed, and is redirected and is executed step S23;S225, when in the proxy terminal set exist do not choose Intelligent terminal, and in the proxied terminal set exist do not choose intelligent terminal when, or work as the proxy terminal set In when at least there is two intelligent terminals that do not choose, enable i=i+1, redirect and execute step S222.
Further, step S222 is specifically included:S2221, the decision terminal are from the proxy terminal set, according to empty Not busy memory from big to small, chooses an intelligent terminal that do not choose as i-th of proxy terminal undetermined.
Further, step S223 includes:S2231, judge in the proxy terminal set with the presence or absence of waiting for described in i-th Determine the intelligent terminal that do not choose of the corresponding quantity of proxy terminal;S2232, when there are i-th in the proxied terminal set When the intelligent terminal that do not choose of the corresponding quantity of the proxy terminal undetermined, i-th is chosen from the proxied terminal set Undetermined proxied end of the intelligent terminal of the corresponding quantity of a proxy terminal undetermined as i-th of proxy terminal undetermined End;S2233, when not choosing for i-th corresponding quantity of proxy terminal undetermined is not present in the proxied terminal set Intelligent terminal when, judge in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose Whether the i-th undetermined proxy terminal corresponding quantity is more than;S2234, when the proxy terminal set and described proxied In terminal set, when all intelligent terminals that do not choose are less than or equal to i-th of proxy terminal undetermined corresponding quantity, choosing All intelligent terminals that do not choose are selected in the proxy terminal set and proxied terminal set as i-th of agency undetermined The proxied terminal undetermined of terminal;S2235, in the proxy terminal set and the proxied terminal set, it is all unselected When the intelligent terminal taken is more than i-th of proxy terminal undetermined corresponding quantity, institute in the proxied terminal set is selected There is undetermined proxied terminal of the intelligent terminal that do not choose as i-th of proxy terminal undetermined, and from the proxy terminal The intelligent terminal for selecting several not choose in set makes as the proxied terminal undetermined of i-th of proxy terminal undetermined The proxied terminal undetermined of i-th of proxy terminal undetermined meets its corresponding quantity.
Further, step S2232 is specifically included:From the proxied terminal set, according to performance utilization rate from greatly to It is small, it chooses the intelligent terminal of the corresponding quantity of i-th of proxy terminal undetermined and is waited for as i-th proxy terminal undetermined Fixed proxied terminal;Or;The intelligent terminal for selecting from the proxy terminal set several not choose in step S2235 is made For the proxied terminal undetermined of i-th of proxy terminal undetermined, specifically include:From the proxy terminal set, according to empty Complementary space from small to large, the intelligent terminal for selecting several not choose, as the undetermined by generation of i-th proxy terminal undetermined Manage terminal.
Further, further include after step S40:S50, the proxy terminal analyze whether the performance utilization rate of itself is more than Second utilization rate, and analyze whether the memory usage of itself is more than third utilization rate;S51, when the performance of the proxy terminal When utilization rate is more than the memory usage of the second utilization rate and/or the proxy terminal more than third utilization rate, the agency is eventually Using itself as decision terminal again, all proxied terminals acted on behalf of re-form a new networking at end;It is S52, described Performance utilization rate of the decision terminal according to all intelligent terminals in new networking again analyzes all intelligent terminals in networking Agent Type, and generate intelligent terminal communications status information corresponding with its Agent Type;S53, the decision terminal again All intelligent terminals into new networking send it and correspond to the communications status information generated;Own in S54, new networking The communications status information of the intelligent terminal is changed to the communications status information generated, and according to the communications status information after change Establish communication connection;Communications status information is changed to group-net communication status information by S55, the terminal of decision again.
Compared with prior art, a kind of decision-making technique 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 can be obtained all intelligent terminals 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 Communication connection, completes the data transmission of proxied terminal, 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, maximum can be formed 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 transmission data index, therefore proxy terminal needs to constantly detect the utilization rate and spare space of its performance.
Description of the drawings
Below by a manner of clearly understandable, 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 realization method of method are further described.
Fig. 1 is a kind of flow diagram of the decision-making technique of proxy terminal of the present invention;
Fig. 2 is the flow diagram of the decision-making technique of another proxy terminal of the invention;
Fig. 3 be proxy terminal of the invention another decision-making technique in step S21 flow diagram;
Fig. 4 be proxy terminal of the invention another decision-making technique in the flow diagram of step S22 and step S23;
Fig. 5 be proxy terminal of the invention another decision-making technique in step S223 flow diagram;
Fig. 6 is the flow diagram of the decision-making technique of another proxy terminal of the invention.
Specific implementation mode
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, control is illustrated below The specific implementation mode of the present 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, other are can also be obtained according to these attached drawings 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, so that simplified form is easy to understand, there is identical structure or function in some figures 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 ".
According to a kind of embodiment provided by the invention, as shown in Figure 1, a kind of decision-making technique of proxy terminal, including:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
The performance utilization rate of S20, the decision terminal according to all intelligent terminals in networking, analyzes in networking and owns The Agent Type of the intelligent terminal, and generate intelligent terminal communications status information corresponding with its Agent Type.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
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 for managing terminal, to form the proxy terminal 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.Decision terminal can be according to the performance utilization rate that all intelligent terminals are sent in networking As the factor of decision, corresponding decision is carried out, and analyze and obtain 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, and as generation when receiving its communications status information 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, for all intelligent terminals in areal, decision one or more networkings can be obtained first, There are one decision terminals, each decision terminal can receive all kinds of letters of all intelligent terminals in networking in each networking Breath, decision terminal can utilize the various information of each intelligent terminal, decision to obtain one or more proxy terminals and respectively correspond to Proxied terminal, each proxy terminal and corresponding proxied terminal can form a small subnet again, in subnet Proxied terminal can be communicated to connect with proxy terminal communication connection, proxy terminal with server.
According to another embodiment provided by the invention, as shown in Fig. 2, a kind of decision-making technique of proxy terminal, including:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
S21, the decision terminal according to all intelligent terminals in the networking performance utilization rate to all intelligence Terminal is classified, and proxy terminal set and proxied terminal set are formed;
S22, the decision terminal choose 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;
S23, the decision terminal determine 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.
Optionally, S24, when there is the intelligent terminal do not chosen in the proxy terminal set or proxied terminal set When, the communications status information that the decision terminal generates the remaining intelligent terminal that do not choose is group-net communication status information.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
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 been referred also to rate is primarily referred to as the service condition of CPU;Therefore, all intelligence Terminal is classified by performance utilization rate, 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 is individually connect with server.
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 the 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, the intelligence in set according to performance utilization rate in decision terminal 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 been chosen as the intelligent terminal of proxy terminal in proxy terminal set, then choose corresponding proxied end End, and no matter it is used as proxy terminal or proxied terminal, each intelligent terminal that can only be selected once.
Selection process above carries out always, until when can not re-form subnet in two set, chooses process and stops. 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.
According to another embodiment provided by the invention, as shown in Figures 2 and 3, a kind of decision-making technique of proxy terminal, packet It includes:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
S211, the decision terminal according to the performance utilization rates of all intelligent terminals whether be less than the first utilization rate into Row classification.
S212, the decision terminal generate proxy terminal set, and the proxy terminal set includes all properties utilization rate Less than the intelligent terminal of the first utilization rate.
S213, the decision terminal generate proxied terminal set, and the proxied terminal set includes all properties profit It is greater than or equal to the intelligent terminal of the first utilization rate with rate.
S22, the decision terminal choose 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.
S23, the decision terminal determine 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.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
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 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, judge whether the performance utilization rate of all intelligent terminals is less than the first utilization rate successively, 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.
According to another embodiment provided by the invention, as shown in Figure 2 and Figure 4, a kind of decision-making technique of proxy terminal, packet It includes:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
S21, the decision terminal according to all intelligent terminals in the networking performance utilization rate to all intelligence Terminal is classified, and proxy terminal set and proxied terminal set are formed.
Parameter current i=1 is arranged in S221, the decision terminal, and i is the integer more than or equal to 1.
S222, the decision terminal choose an intelligent terminal that do not choose as i-th from the proxy terminal set A proxy terminal undetermined.
S223, the decision terminal are from the proxied unselected intelligent terminal taken of terminal set and/or the agency In the unselected intelligent terminal taken of terminal set, until the intelligent terminal conduct of the corresponding quantity of i-th of more options proxy terminal undetermined Proxied terminal undetermined.
S224, when in the proxy terminal set there is no do not choose intelligent terminal when, or work as the proxied terminal There is no the intelligent terminals that do not choose in set, and at most there is an intelligent terminal that do not choose in the proxy terminal set When, selection course is completed, and is redirected and is executed step S23.
S225, when there is the intelligent terminal do not chosen in the proxy terminal set, and in the proxied terminal set When in the presence of the intelligent terminal that do not choose, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, I=i+1 is enabled, redirects and executes step S222.
S23, the decision terminal determine 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.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;Each proxy terminal and several proxied terminals form a subnet.
Preferably, in the present embodiment, step S222 is specifically included:S2221, the decision terminal are from the proxy terminal In set, from big to small according to free memory, an intelligent terminal that do not choose is chosen 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 the 1st proxy terminal undetermined, and from agency Multiple intelligent terminals that do not choose are chosen in terminal set and proxied terminal set as the undetermined of the 1st proxy terminal undetermined 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 big intelligent terminal of 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.
According to a kind of embodiment provided by the invention, as shown in Fig. 2, Fig. 4 and Fig. 5, a kind of decision-making technique of proxy terminal, Including:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
S21, the decision terminal according to all intelligent terminals in the networking performance utilization rate to all intelligence Terminal is classified, and proxy terminal set and proxied terminal set are formed.
Parameter current i=1 is arranged in S221, the decision terminal, and i is the integer more than or equal to 1.
S222, the decision terminal choose an intelligent terminal that do not choose as i-th from the proxy terminal set A proxy terminal undetermined.
S2231, judge in the proxy terminal set with the presence or absence of the corresponding quantity of i-th of proxy terminal undetermined The intelligent terminal that do not choose.
S2232, when there are the unselected of the corresponding quantity of i-th of proxy terminal undetermined in the proxied terminal set When the intelligent terminal taken, the intelligence of the corresponding quantity of i-th of proxy terminal undetermined is chosen from the proxied terminal set It can undetermined proxied terminal of the terminal as i-th of proxy terminal undetermined.
S2233, when the corresponding quantity of i-th of proxy terminal undetermined is not present in the proxied terminal set not When the intelligent terminal of selection, judge in the proxy terminal set and the proxied terminal set, all intelligence that do not choose Whether terminal is more than the corresponding quantity of i-th of proxy terminal undetermined.
S2234, in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are small When i-th of proxy terminal undetermined corresponding quantity, the proxy terminal set and proxied termination set are selected Undetermined proxied terminal of all intelligent terminals that do not choose as i-th of proxy terminal undetermined in conjunction.
S2235, in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are big When i-th of proxy terminal undetermined corresponding quantity, all intelligence that do not choose in the proxied terminal set are selected Undetermined proxied terminal of the terminal as i-th of proxy terminal undetermined, and select from the proxy terminal set several A intelligent terminal that do not choose, as the proxied terminal undetermined of i-th of proxy terminal undetermined, make i-th it is described undetermined The proxied terminal undetermined of proxy terminal meets its corresponding quantity.
S224, when in the proxy terminal set there is no do not choose intelligent terminal when, or work as the proxied terminal There is no the intelligent terminals that do not choose in set, and at most there is an intelligent terminal that do not choose in the proxy terminal set When, selection course is completed, and is redirected and is executed step S23.
S225, when there is the intelligent terminal do not chosen in the proxy terminal set, and in the proxied terminal set When in the presence of the intelligent terminal that do not choose, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, I=i+1 is enabled, redirects and executes step S222.
S23, the decision terminal determine 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.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
Preferably, in the present embodiment, step S2232 is specifically included:From the proxied terminal set, according to performance From big to small, the intelligent terminal for choosing the corresponding quantity of i-th of proxy terminal undetermined is described undetermined as i-th for utilization rate The proxied terminal undetermined of proxy terminal;
Or;
The intelligent terminal for selecting from the proxy terminal set several not choose in step S2235, as i-th of institute The proxied terminal undetermined for stating proxy terminal undetermined, specifically includes:
From the proxy terminal set, from small to large according to spare space, the intelligent terminal for selecting several not choose, 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, the subnet of maximum quantity can be formed.
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 When the middle intelligent terminal that do not choose existed enough, 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 also there is no when enough intelligent terminals in acting on behalf of termination set and closing, 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, proxied terminal undetermined is chosen according to spare space size, it is empty after selection The larger 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 more 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 there are when 5 intelligent terminals in proxy terminal set, decision terminal can be according to the vacant interior of intelligent terminal It deposits and is ranked up, and to intelligent terminal from small to large from 1 to 5 into line label, 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 to intelligent terminal from small to large from 1 to 10 into line label, and the intelligent terminal performance profit that label is smaller 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 be sended 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 chosen 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 to 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 It is at least one can be as the intelligent terminal of proxied terminal undetermined, therefore selection course remains 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 connects, and networking again.
According to another embodiment provided by the invention, as shown in fig. 6, a kind of decision-making technique of proxy terminal, including:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
The performance utilization rate of S20, the decision terminal according to all intelligent terminals in networking, analyzes in networking and owns The Agent Type of the intelligent terminal, and generate intelligent terminal communications status information corresponding with its Agent Type.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;Each proxy terminal and several proxied terminals form a subnet.
S50, the proxy terminal analyze whether the performance utilization rate of itself is more than the second utilization rate, and analyze the interior of itself Deposit whether utilization rate is more than third utilization rate.
S51, it is more than the memory of the second utilization rate and/or the proxy terminal when the performance utilization rate of the proxy terminal When utilization rate is more than third utilization rate, for the proxy terminal using itself as decision terminal again, that is acted on behalf of is all proxied Terminal re-forms a new networking.Otherwise, it redirects and executes step S50.
The performance utilization rate of S52, the terminal of decision again according to all intelligent terminals in new networking analyzes institute in networking There is the Agent Type of the intelligent terminal, and generates intelligent terminal communications status information corresponding with its Agent Type.
All intelligent terminals of S53, the terminal of decision again into new networking send it and correspond to the communication generated Status information.
The communications status information of all intelligent terminals is changed to the communications status information generated in S54, new networking, And communication connection is established according to the communications status information after change.
Communications status information is changed to group-net communication status information by S55, the terminal of decision again.
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 index and be transmitted;Meanwhile in data transmission procedure, the spare space of proxy terminal Also can become smaller, also be unfavorable for the transmission of transmission data index, thus 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 A proxied terminal needs the data transmitted, and therefore, in data transmission procedure, has multiple proxied terminals to need to pass when simultaneously When transmission of data, proxy terminal acts on behalf of each proxied terminal successively 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 total memory sizes of fixed 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 more than 80%, the proxied terminal that proxy terminal starts to be acted on behalf of it forms new networking.
According to a kind of embodiment provided by the invention, in conjunction with shown in Fig. 1 to Fig. 6, a kind of decision-making technique of proxy terminal, packet It includes:
S10, communications status information are whole for multiple intelligence of initial communication state information and/or group-net communication status information End, forms at least one networking, selects an intelligent terminal as decision terminal in each networking.
S211, the decision terminal according to the performance utilization rates of all intelligent terminals whether be less than the first utilization rate into Row classification.
S212, the decision terminal generate proxy terminal set, and the proxy terminal set includes all properties utilization rate Less than the intelligent terminal of the first utilization rate.
S213, the decision terminal generate proxied terminal set, and the proxied terminal set includes all properties profit It is greater than or equal to the intelligent terminal of the first utilization rate with rate.
Parameter current i=1 is arranged in S221, the decision terminal, and i is the integer more than or equal to 1.
S222, the decision terminal choose an intelligent terminal that do not choose as i-th from the proxy terminal set A proxy terminal undetermined;Step S222 is specifically included:S2221, the decision terminal are from the proxy terminal set, according to empty Not busy memory from big to small, chooses an intelligent terminal that do not choose as i-th of proxy terminal undetermined.
S2231, judge in the proxy terminal set with the presence or absence of the corresponding quantity of i-th of proxy terminal undetermined The intelligent terminal that do not choose.
S2232, when there are the unselected of the corresponding quantity of i-th of proxy terminal undetermined in the proxied terminal set When the intelligent terminal taken, the intelligence of the corresponding quantity of i-th of proxy terminal undetermined is chosen from the proxied terminal set It can undetermined proxied terminal of the terminal as i-th of proxy terminal undetermined.
Step S2232 is specifically included:
From the proxied terminal set, from big to small according to performance utilization rate, i-th of agency undetermined is chosen eventually Hold undetermined proxied terminal of the intelligent terminal of corresponding quantity as i-th of proxy terminal undetermined.
S2233, when the corresponding quantity of i-th of proxy terminal undetermined is not present in the proxied terminal set not When the intelligent terminal of selection, judge in the proxy terminal set and the proxied terminal set, all intelligence that do not choose Whether terminal is more than the corresponding quantity of i-th of proxy terminal undetermined.
S2234, in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are small When i-th of proxy terminal undetermined corresponding quantity, the proxy terminal set and proxied termination set are selected Undetermined proxied terminal of all intelligent terminals that do not choose as i-th of proxy terminal undetermined in conjunction.
S2235, in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are big When i-th of proxy terminal undetermined corresponding quantity, all intelligence that do not choose in the proxied terminal set are selected Undetermined proxied terminal of the terminal as i-th of proxy terminal undetermined, and select from the proxy terminal set several A intelligent terminal that do not choose, as the proxied terminal undetermined of i-th of proxy terminal undetermined, make i-th it is described undetermined The proxied terminal undetermined of proxy terminal meets its corresponding quantity.
The intelligent terminal for selecting from the proxy terminal set several not choose in step S2235, as i-th of institute The proxied terminal undetermined for stating proxy terminal undetermined, specifically includes:
From the proxy terminal set, from small to large according to spare space, the intelligent terminal for selecting several not choose, Proxied terminal undetermined as i-th of proxy terminal undetermined.
S224, when in the proxy terminal set there is no do not choose intelligent terminal when, or work as the proxied terminal There is no the intelligent terminals that do not choose in set, and at most there is an intelligent terminal that do not choose in the proxy terminal set When, selection course is completed, and is redirected and is executed step S23.
S225, when there is the intelligent terminal do not chosen in the proxy terminal set, and in the proxied terminal set When in the presence of the intelligent terminal that do not choose, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, I=i+1 is enabled, redirects and executes step S222.
S23, the decision terminal determine 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.
S24, when in the proxy terminal set or proxied terminal set exist do not choose intelligent terminal when, it is described certainly The communications status information for the intelligent terminal that residue is not chosen is changed to group-net communication status information by plan terminal.
It is corresponding logical that all intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its Believe status information.
S40, the intelligent terminal communications status information be changed to generate communications status information, and according to change after Communications status information establishes communication connection;The intelligent terminal according to the communications status information after change as proxy terminal or by Proxy terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
S50, the proxy terminal analyze whether the performance utilization rate of itself is more than the second utilization rate, and analyze the interior of itself Deposit whether utilization rate is more than third utilization rate.
S51, it is more than the memory of the second utilization rate and/or the proxy terminal when the performance utilization rate of the proxy terminal When utilization rate is more than third utilization rate, for the proxy terminal using itself as decision terminal again, that is acted on behalf of is all proxied Terminal re-forms a new networking.
The performance utilization rate of S52, the terminal of decision again according to all intelligent terminals in new networking analyzes institute in networking There is the Agent Type of the intelligent terminal, and generates intelligent terminal communications status information corresponding with its Agent Type.
All intelligent terminals of S53, the terminal of decision again into new networking send it and correspond to the communication generated Status information.
The communications status information of all intelligent terminals is changed to the communications status information generated in S54, new networking, And it is established and is communicated to connect according to the communications status information of generation.
Communications status information is changed to group-net communication status information by S55, the terminal of decision again.
Specifically, in the present embodiment, all intelligent terminals in networking are after determining a decision terminal, Neng Gouyi Classified and sorted according to the performance indicator of all intelligent terminals, selects proxy terminal undetermined and its corresponding undetermined proxied Terminal, and the Agent Type of the remaining intelligent terminal in proxy terminal set or proxied terminal set is determined into not proxy class The communications status information of each intelligent terminal is written in corresponding decision data packet, and sent it to corresponding by type respectively Intelligent terminal.
Intelligent terminal is changed accordingly after receiving communications status information, determines its corresponding type, and with it is right The intelligent terminal and/or server answered are communicatively coupled.
According to another embodiment provided by the invention, a kind of decision-making technique 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 be 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 be communicated 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 the 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 sizes 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 sizes (standard of comparison can customize) of the two.
If IPA<IPB, then A records the facility information of B, beginning broadcast networking data packet, and replys 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 record the facility information of B, A reverting equipments information records the facility information of A to B, B.
3, the intelligent terminal stand-by period that networking is sought in each broadcast may be configured as 4 minutes (stand-by period 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 is established with server to connect.
4, each broadcast time for broadcasting the intelligent terminal A for seeking mesh information is to empty to set after 2 minutes, 2 minutes It the standby stand-by period, 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, ask networking.A After receiving all answers, the equipment network 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 without other equipment information in record, long connection is established with server, 1. connection status is from becoming 2., to indicate The equipment establishes long connection with server.
5, when can receive broadcast but itself not the intelligent terminal A of broadcast networking receive request networking packet after, empty The equipment stand-by period, 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:
1. all communications status information are the intelligent terminal that intelligent terminal 1. sends decision data packet to IP address minimum, Packet content includes the MAC Address of oneself, IP address, implementor name, cpu busy percentage, free memory, the proxied IP of equipment, waits for 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 intelligent terminal of the addresses 2.IP minimum arranges the cpu busy percentage of decision data packet and free memory that receive 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 It is t to hold number, 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 and are put into sequencing table G by proxied terminal referred to as undetermined at random.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 individually establish connection with server in groups, then the connection shape of these equipment 2. state becomes.
3. proxy terminal undetermined is established with server and connected, 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 walks:
Any moment of proxy terminal networked data transmission process, proxy terminal itself have according to CPU utilization rates, 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 sends 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 the preferred of the present invention 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 improvements and modifications also should be regarded as protection scope of the present invention.

Claims (9)

1. a kind of decision-making technique of proxy terminal, which is characterized in that including:
S10, multiple intelligent terminals that communications status information is initial communication state information and/or group-net communication status information, shape At at least one networking, select an intelligent terminal as decision terminal in each networking;
The performance utilization rate of S20, the decision terminal according to all intelligent terminals in networking is analyzed all described in networking The Agent Type of intelligent terminal, and generate intelligent terminal communications status information corresponding with its Agent Type;
All intelligent terminals of S30, the decision terminal into networking in addition to decision terminal send its corresponding communication shape State information;
S40, the intelligent terminal communications status information be changed to the communications status information generated, and according to the communication after change Status information establishes communication connection;The intelligent terminal is according to the communications status information after change as proxy terminal or proxied Terminal;One subnet of each proxy terminal proxied terminal composition corresponding with several.
2. a kind of decision-making technique of proxy terminal according to claim 1, which is characterized in that step S20 includes:
S21, the decision terminal according to all intelligent terminals in the networking performance utilization rate to all intelligent terminals Classify, forms proxy terminal set and proxied terminal set;
It is whole respectively as agency undetermined that S22, the decision terminal choose 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;
S23, the decision terminal determine 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-making technique of proxy terminal according to claim 2, which is characterized in that further include after step S22:
S24, when there is the intelligent terminal that do not choose in the proxy terminal set or proxied terminal set, the decision is whole End determines the Agent Type of the remaining intelligent terminal that do not choose as not Agent Type, and generates the remaining intelligence that do not choose The communications status information of energy terminal is group-net communication status information.
4. a kind of decision-making technique of proxy terminal according to claim 2, which is characterized in that step S21 includes:
Whether S211, the decision terminal are divided less than the first utilization rate according to the performance utilization rates of all intelligent terminals Class;
S212, the decision terminal generate proxy terminal set, and the proxy terminal set is less than comprising all properties utilization rate The intelligent terminal of first utilization rate;
S213, the decision terminal generate proxied terminal set, and the proxied terminal set includes all properties utilization rate More than or equal to the intelligent terminal of the first utilization rate.
5. a kind of decision-making technique of proxy terminal according to claim 2, which is characterized in that step S22 includes:
Parameter current i=1 is arranged in S221, the decision terminal, and i is the integer more than or equal to 1;
S222, the decision terminal are chosen an intelligent terminal that do not choose from the proxy terminal set and are waited for as i-th Determine proxy terminal;
S223, the decision terminal are from the proxied unselected intelligent terminal taken of terminal set and/or the proxy terminal collection It closes in the intelligent terminal do not chosen, until the intelligent terminal of the corresponding quantity of i-th of more options proxy terminal undetermined is as quilt undetermined Proxy terminal;
S224, when in the proxy terminal set there is no do not choose intelligent terminal when, or work as the proxied terminal set In there is no the intelligent terminals do not chosen, and when at most there is an intelligent terminal that do not choose in the proxy terminal set, Selection course is completed, and is redirected and is executed step S23;
S225, when there is the intelligent terminal do not chosen in the proxy terminal set, and exist in the proxied terminal set When the intelligent terminal that do not choose, or when at least there is two intelligent terminals that do not choose in the proxy terminal set, enable i= I+1 is redirected and is executed step S222.
6. a kind of decision-making technique of proxy terminal according to claim 5, which is characterized in that step S222 is specifically included:
S2221, the decision terminal are from the proxy terminal set, and from big to small according to free memory, selection one is unselected The intelligent terminal taken is as i-th of proxy terminal undetermined.
7. a kind of decision-making technique of proxy terminal according to claim 5, which is characterized in that step S223 includes:
S2231, judge in the proxy terminal set with the presence or absence of the unselected of the corresponding quantity of i-th of proxy terminal undetermined The intelligent terminal taken;
S2232, when not choosing there are i-th of proxy terminal undetermined corresponding quantity in the proxied terminal set When intelligent terminal, the intelligence of the corresponding quantity of i-th of proxy terminal undetermined is chosen from the proxied terminal set eventually Hold the proxied terminal undetermined as i-th of proxy terminal undetermined;
S2233, when not choosing for i-th corresponding quantity of proxy terminal undetermined is not present in the proxied terminal set Intelligent terminal when, judge in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose Whether the i-th undetermined proxy terminal corresponding quantity is more than;
S2234, in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose be less than or When the corresponding quantity of described equal to i-th proxy terminal undetermined, select in the proxy terminal set and proxied terminal set Undetermined proxied terminal of all intelligent terminals that do not choose as i-th of proxy terminal undetermined;
S2235, in the proxy terminal set and the proxied terminal set, all intelligent terminals that do not choose are more than the When the corresponding quantity of the described proxy terminals undetermined of i, all intelligent terminals that do not choose in the proxied terminal set are selected As the proxied terminal undetermined of i-th of proxy terminal undetermined, and several are selected not 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.
8. a kind of decision-making technique of proxy terminal according to claim 7, it is characterised in that:
Step S2232 is specifically included:
From the proxied terminal set, from big to small according to performance utilization rate, i-th of proxy terminal pair undetermined is chosen Undetermined proxied terminal of the intelligent terminal for the quantity answered as i-th of proxy terminal undetermined;
Or;
The intelligent terminal for selecting from the proxy terminal set several not choose in step S2235, as being waited for described in i-th The proxied terminal undetermined for determining proxy terminal, specifically includes:
From the proxy terminal set, from small to large according to spare space, the intelligent terminal for selecting several not choose, as The proxied terminal undetermined of i-th of proxy terminal undetermined.
9. a kind of decision-making technique of proxy terminal according to claim 1, which is characterized in that further include after step S40:
S50, the proxy terminal analyze whether the performance utilization rate of itself is more than the second utilization rate, and analyze the memory profit of itself Whether it is more than third utilization rate with rate;
S51, it utilizes when the memory that the performance utilization rate of the proxy terminal is more than the second utilization rate and/or the proxy terminal When rate is more than third utilization rate, the proxy terminal is using itself as decision terminal again, all proxied terminals for being acted on behalf of Re-form a new networking;
The performance utilization rate of S52, the terminal of decision again according to all intelligent terminals in new networking analyzes all institutes in networking The Agent Type of intelligent terminal is stated, and generates intelligent terminal communications status information corresponding with its Agent Type;
All intelligent terminals of S53, the terminal of decision again into new networking send it and correspond to the communications status generated Information;
The communications status information of all intelligent terminals is changed to the communications status information generated, and root in S54, new networking Communication connection is established according to the communications status information after change;
Communications status information is changed to group-net communication status information by S55, the terminal of decision again.
CN201810627109.6A 2018-05-22 2018-06-19 A kind of decision-making technique of proxy terminal Pending CN108512945A (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
CN108512945A true CN108512945A (en) 2018-09-07

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 Before (1)

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

Country Status (1)

Country Link
CN (2) CN108881436A (en)

Cited By (2)

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

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003104927A2 (en) * 2002-06-10 2003-12-18 Utstarcom, Incorporated Method and apparatus for global server load balancing
WO2006083414A2 (en) * 2005-02-02 2006-08-10 Utstarcom, Inc. Method and apparatus for l2tp dialout and tunnel switching
CN101729331A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Clustering method and device, routing method and device of cluster head and base station
CN102118206A (en) * 2011-02-23 2011-07-06 尚雪峰 Broadcast principle-based lighting equipment wireless network deployment method and system
CN103095691A (en) * 2012-12-31 2013-05-08 清华大学 Method of controlling access to Internet of things nodes
CN103905977A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Mobile-terminal networking method and mobile terminal
CN104184819A (en) * 2014-08-29 2014-12-03 城云科技(杭州)有限公司 Multi-hierarchy load balancing cloud resource monitoring method
CN104994159A (en) * 2015-06-30 2015-10-21 青岛海尔智能家电科技有限公司 Distributed agent method and device based on AllJoyn, and mobile equipment
CN107040877A (en) * 2017-03-31 2017-08-11 华为技术有限公司 A kind of signal processing method and terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE112016001073B4 (en) * 2015-03-06 2023-02-02 Apple Inc. DETERMINE WHEN TO CONNECT MOBILE CLIENT AND PROXY DEVICES
WO2017034264A1 (en) * 2015-08-21 2017-03-02 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
JP6754127B2 (en) * 2016-05-18 2020-09-09 国立研究開発法人情報通信研究機構 Power saving communication system
CN106972997A (en) * 2017-05-15 2017-07-21 上海博历机械科技有限公司 A kind of intelligent home control system

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2003104927A2 (en) * 2002-06-10 2003-12-18 Utstarcom, Incorporated Method and apparatus for global server load balancing
WO2006083414A2 (en) * 2005-02-02 2006-08-10 Utstarcom, Inc. Method and apparatus for l2tp dialout and tunnel switching
CN101729331A (en) * 2008-10-28 2010-06-09 华为技术有限公司 Clustering method and device, routing method and device of cluster head and base station
CN102118206A (en) * 2011-02-23 2011-07-06 尚雪峰 Broadcast principle-based lighting equipment wireless network deployment method and system
CN103905977A (en) * 2012-12-27 2014-07-02 中兴通讯股份有限公司 Mobile-terminal networking method and mobile terminal
CN103095691A (en) * 2012-12-31 2013-05-08 清华大学 Method of controlling access to Internet of things nodes
CN104184819A (en) * 2014-08-29 2014-12-03 城云科技(杭州)有限公司 Multi-hierarchy load balancing cloud resource monitoring method
CN104994159A (en) * 2015-06-30 2015-10-21 青岛海尔智能家电科技有限公司 Distributed agent method and device based on AllJoyn, and mobile equipment
CN107040877A (en) * 2017-03-31 2017-08-11 华为技术有限公司 A kind of signal processing method and terminal

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108933840A (en) * 2018-09-28 2018-12-04 珠海沙盒网络科技有限公司 A kind of distributed agent method and system
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

Also Published As

Publication number Publication date
CN108881436A (en) 2018-11-23

Similar Documents

Publication Publication Date Title
CN101159898B (en) Systems and methods for determining granularity level of information about buffer status
US7801027B2 (en) Auto-negotiation by nodes on an infiniband fabric
DE69634983T2 (en) METHOD AND DEVICE FOR A HYBRID COMPETITION AND QUESTION PROTOCOL
CN109417691A (en) A kind of blue tooth cluster online upgrading method and device
CN100581290C (en) Voice packet scheduling method for wireless local area network
CN102077624A (en) Method, device and terminal for determining transmission mode
CN108512945A (en) A kind of decision-making technique of proxy terminal
CN104113491A (en) Data transmission method and device
CN100514955C (en) Method for dynamically-controlling read time muttimedia data generation rate and its device
CN109582335A (en) It is a kind of without interrupt storage cluster node online upgrading method, device and equipment
CN108322443A (en) Equipment interactive communication method, apparatus, storage medium and computer equipment
CN108881437A (en) A kind of intelligent terminal acts on behalf of decision-making technique
CN109617702A (en) Method, block chain node and the device with store function of information signature
CN101562500B (en) Data transmission request method, data transmission method and data transmission device
CN102711192A (en) Method and device for processing network service quality and communication system
CN108900627A (en) A kind of network request method, terminal installation and storage medium
CN101378351A (en) Method and apparatus for sending and receiving data
CN109600278A (en) A kind of data communications method, device, equipment and medium
CN108429703A (en) Dhcp client loading method and device
CN116390156B (en) LoRa communication method, device, equipment and readable storage medium
CN106332153A (en) Method and device for controlling bandwidth in WLAN (wireless local area network)
CN101695049A (en) Method and device for processing businesses in monitoring system
CN106875664A (en) A kind of exclusive formula collecting method based on CAN
CN101632261B (en) Full mesh rates transaction in a network
CN110351146A (en) A kind of server-side example determines method, system, client and storage medium

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: 20180907

WD01 Invention patent application deemed withdrawn after publication